Agents Lookup

Use cases / Software development

Repetitive code migrations across a large monorepo

Find every call site of an old API or type, have a model draft each change, and route grouped diffs to owners for review.

DifficultyAdvanced
Setup time2-4 weeks
CategorySoftware development

The use case

Changing an ID type from 32 to 64 bits or retiring an old API touches thousands of files owned by hundreds of teams. Google published how it uses LLMs for these internal migrations: tools find the places that need changing, a model writes the edits, automated checks validate them, and changes go to the owning teams for review. They report that most landed code was model-written while engineers handled hard cases and review. The approach needs good code search and a reliable build and test system. Owners still review and approve each change in their area.

Example workflow

  1. Locate all affected call sites with code search
  2. Have the model draft edits for each location
  3. Build and test each change automatically
  4. Group passing changes and send to code owners
  5. Handle failures and edge cases by hand

Tools

Risks and guardrails

Sources

Written by Agents Lookup. Credits and official pages for the tools this use case names: