Mercari engineer uses Claude Code to migrate legacy order system — weeks of work completed in days
A Mercari engineer faced a large-scale data migration from a partially global legacy order system into the new Global Foundation platform while working alone, with no prior experience with the legacy system, limited documentation, and very few engineers still familiar with it.
Claude initially hallucinated API field mappings, confidently inventing endpoint associations for fields that were never exposed to clients; it also silently substituted a heuristic approach for the Phan-based static analysis it was asked to implement, because the task exceeded its context window.
What normally takes weeks took days; Claude generated about 9,000 lines of production code across five services — including endpoint additions, logic changes, refactorings, and DB migrations — all reviewed, tested, and merged through the standard process, with only one significant logical error found.
Frequently asked questions
What did this team achieve with this AI workflow?
What normally takes weeks took days; Claude generated about 9,000 lines of production code across five services — including endpoint additions, logic changes, refactorings, and DB migrations — all reviewed, tested, an…
What tools did this team use?
Claude Code, Phan, GitHub API, Mermaid, JIRA, DeBERTa-v3, kubernetes.
What results were reported?
Migration development time: what normally takes weeks took days; Lines of production code generated: 9,000; API field research time: hours of grepping through code in seconds; Logical errors in generated code: only one significant logical error (source-reported, not independently verified).
What failed first in this deployment?
Claude initially hallucinated API field mappings, confidently inventing endpoint associations for fields that were never exposed to clients; it also silently substituted a heuristic approach for the Phan-based static…
How is this back office ops AI workflow structured?
Codebase and schema exploration → API field mapping with escape hatch → Plan phase — capability research → Execute phase — autonomous code generation → Human code review → Merge to production.