Skip to content

Research Overview

ModernizeSpec is grounded in a 9-document research series produced during PearlThoughts’ ERPNext modernization effort in February 2026. The research combined deep web search, direct codebase analysis, experiment review, intern team output evaluation, GitHub organization analysis, Microsoft Teams channel analysis, and industry benchmarking.

A full ERPNext migration (all 521 doctypes, 768 API endpoints, 177 reports, full Frappe framework replacement) in 3 months is not achievable — even with unlimited AI credits and experienced engineers. The codebase represents ~216 person-years of effort (COCOMO estimate).

However, a strategically scoped migration of the core accounting engine (the highest-value 15-20% of the codebase) is achievable in 3 months with 3-5 skilled interns using AI tooling.

ScenarioScopeTeamTimelineFeasibility
Full ERPNext replacement521 doctypes, all modules3-5 interns3 monthsNot feasible
Core Accounting engine~60 doctypes, GL/AP/AR/Tax3-5 interns3 monthsAchievable with AI
Core + Stock + Selling/Buying~150 doctypes3-5 interns6-9 monthsAchievable with AI
Production-ready ERP (80% parity)~400 doctypes + framework8-12 engineers12-18 monthsAchievable with AI
  1. Deep web search — ERPNext history, market position, AI migration landscape
  2. Codebase analysis — Direct measurement of ERPNext Python LOC, doctypes, API endpoints, test coverage
  3. Experiment review — 3 completed Go extraction iterations, 68 tests
  4. Intern team output review — All 7 teams: GitHub commits, PR activity, parity test results
  5. GitHub organization analysis — 20 repos, commit activity over 3 weeks
  6. Teams channel analysis — 1,168 messages across 11 channels, synced February 8
  7. HR internship records — Team structure, evaluations, pain point analysis
  8. Industry benchmarking — Airbnb (3,500 files in 6 weeks), Amazon (30K apps), Microsoft CAMF

Codebase Complexity

316,679 Python LOC, 521 doctypes, controller inheritance chains, complexity tiers, and what makes ERPNext hard to migrate.

Read the assessment

AI Migration Landscape

Enterprise platforms (Amazon Q Transform, IBM watsonx), success stories (Airbnb 12x compression), and the 8 key patterns from industry research.

Read the landscape

Feasibility Forecast

4 scenarios analyzed, Go vs Kotlin comparison, intern velocity data, cost projections ($16.8K-$38.3K for 3 months).

Read the forecast

Standard Feasibility

Market gap analysis: no existing standard combines legacy measurement + DDD mapping + extraction sequencing + parity verification. 100% generalizable.

Read the analysis

PhaseCompressionAI Impact
Understanding legacy code5-10x with graph-RAG + code intelligenceHigh
Mechanical translation10-50x for typed codeHigh
Test generation3-5x for table-driven testsMedium-High
Architecture decisions1x (no compression)None — needs human judgment
Framework design1x (no compression)None — needs senior engineering
  1. Multi-agent pipelines (analyze, translate, validate, iterate) are the dominant architecture
  2. Retry with error feedback outperforms sophisticated prompt engineering
  3. Rich context is the primary success driver — choosing the right related files matters more than prompt engineering
  4. Specialized models outperform general-purpose LLMs for targeted language pairs
  5. Strangler Fig + AI is the lowest-risk combination
  6. Shadow testing and parity validation are non-negotiable before production cutover
  7. Team sizes shrink but skill requirements shift — 5-10x fewer people, but they need architectural judgment
  8. Vendor claims require verification on your own codebase

No standard combines:

  • Legacy codebase measurement in machine-readable format
  • DDD bounded context mapping consumable by AI agents
  • Extraction sequencing with risk scoring and priority
  • Parity verification standards
  • Multi-agent coordination for modernization

This gap is what ModernizeSpec fills.