Large-scale changes and migrations
For engineers
Framework upgrades, API migrations and codemods run by agents in verified batches
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
You are about to migrate 300 files to a new API with an agent. What should you build first?
Check yourself · 2 of 5
A rename of one import appears identically in 600 files. What is the best tool?
Check yourself · 3 of 5
Why run a pilot batch before the full migration?
Check yourself · 4 of 5
After a migration, what is the most direct check for missed call sites?
Check yourself · 5 of 5
What belongs in a per-file migration recipe?
Topics
- Planning a migration with an agent4 min read · Inventorying every call site, reading the upgrade guide and writing a per-file recipe the agent follows batch by batch
- Codemods versus agent edits4 min read · When a deterministic codemod or search-and-replace beats model edits, and having the agent write the codemod
- Batching a migration across many files4 min read · Running the recipe per module or file batch, in parallel or headless runs, with checks after every batch
- Verifying migrated code at scale4 min read · Type checks, test suites, sampled diff review, searches for leftovers and before-and-after behaviour comparisons
Start here
- Migrating Code At Scale With LLMs At Google (opens in a new tab)PaperFree
Google's report on LLM-driven migrations: a plan, per-file edits and automatic validation.
- How is Google using AI for internal code migrations? (opens in a new tab)PaperFree
An earlier Google write-up on where AI helps in migrations and where humans still review.
- OpenRewrite documentation (opens in a new tab)DocsFree
Recipe-based, deterministic refactoring for Java and more; a model for how a recipe should look.
Helps to know first
110 questions · last verified 2026-12