Nubank used Devin to split an 8-year-old ETL monolith into sub-modules
Nubank had a core ETL codebase with millions of lines of code. Engineers gave the repetitive refactoring work to Devin and reviewed the output. Cognition reports large time and cost savings.
- Organization
- Nubank
- Industry
- Banking
- When
- 2024
- Evidence
- Vendor case study
- Agents and tools
- Devin
Reported outcome
Cognition reports 8–12x engineering-time efficiency and over 20x cost savings on the data-class migrations.
- 8–12x (vendor)Engineering efficiency
- >20x (vendor)Cost savings
Caveats
Published by the company that sells the agent. Treat numbers as marketing until confirmed elsewhere.
- Published by Cognition, the company that sells Devin.
- The case study page shows 8x in its header and 12x in its body text. Its own method note gives a range of 8–12x.
- Efficiency is measured against hours spent prompting and reviewing Devin, not against total project time.
What the agent does
Devin takes one migration task at a time. Each task moves one data class out of the monolith into a sub-module. Engineers write the instructions, then review and merge the result.
Why this works
The work is repetitive, well-defined, and checkable. Each migration follows the same pattern. Tests and the build tell you if a change is correct. This is the best kind of task to give to a coding agent.
What to copy
- Do one migration by hand first. Turn it into a written playbook.
- Give the agent the playbook plus one finished example.
- Run many small tasks in parallel. Review each one like a junior engineer's pull request.
- Track hours spent on prompting and review, so you can measure the real saving.
Starter prompt
Written by us, not by Nubank or Cognition.
Task: migrate {ClassName} out of {monolith_path} into the module {target_module}.
Follow the playbook in docs/migration-playbook.md exactly.
A finished example is in PR #{example_pr}. Match its structure.
Done means:
1. The class and its tests live in {target_module}.
2. All imports in the monolith point to the new location.
3. `make test` and `make lint` pass.
4. No behavior change. Do not refactor anything else.
Open one pull request. In the description, list every file you touched
and anything you were unsure about.
Sources
- How Nubank refactors millions of lines of code with Devin — Cognition, 2024
Added Oct 16, 2026. Spotted an error? Send a correction.
Get new use cases weekly
One short email. Sources included.
Related use cases
Goldman Sachs pilots Devin as an AI engineer next to its 12,000 developers
Pilot started with plans for hundreds of instances; the CIO expects 3–4x developer output on routine code updates.
Spotify's Honk background agent merges fleet-wide code migrations: 1,500+ PRs and counting
1,500+ merged AI-generated PRs; 1,000 merged PRs took three months at first and about ten days later on.
Airbnb migrated 3,500 test files with an LLM pipeline in 6 weeks instead of 1.5 years
~3,500 test files migrated in 6 weeks; about 97% fully automated and the rest finished by hand.