If you've ever opened a 15-year-old codebase, scrolled through thousands of stored procedures, and quietly closed your laptop, this one is for you. On Sept. 29, 2026, MongoDB and Cognition, the company behind the AI software engineer Devin, launched Devin for MongoDB Modernizations. It's a joint bet that AI can finally take on the most dreaded job in enterprise software: getting off legacy infrastructure.
The real villain was never the database
Here's the line from the announcement that every senior engineer will nod at: legacy migrations to MongoDB "rarely stall due to the new database. They stall due to the wiring around the legacy code."
The pain isn't in spinning up a new cluster. It's in the thousands of queries, stored procedures, and data access layers that quietly hold a business together, often written by people who left the company years ago. Scripts can copy rows. They can't understand why a 2011-era function silently rounds a currency value. That untangling takes judgment, and that is exactly the work Cognition says Devin is built for.
"Even the most ambitious engineering teams spend much of their capacity keeping legacy systems alive. Devin for MongoDB Modernizations solves that pain."
Scott Wu, Co-founder and CEO, Cognition
The split: Devin writes the code, AMP moves the data
The clever part is the division of labor. AI is good at reading and rewriting messy code case by case. It is not what you want improvising with a billion customer records. So the two jobs are kept apart:
- Devin plans the migration and rewrites business logic and data access layers.
- AMP's deterministic tooling moves each record into MongoDB and validates it.
- The whole thing is orchestrated end to end, so it runs as one coordinated migration instead of a patchwork of scripts and manual handoffs.
AMP itself walks every project through four phases:
- UnderstandMap what the legacy system actually does and decide the migration order.
- TransformRewrite the code. This is where Devin now extends AMP's language coverage.
- MigrateMove the data into Atlas with deterministic, validated tooling.
- VerifyProve the modernized app behaves exactly like the original.
Early joint testing reported by MongoDB and Cognition.
A real team already felt the rush
MongoDB didn't launch this on theory alone. Bilt used Devin to rebuild its search and personalization on MongoDB, so members can use natural-language queries to discover businesses, services, and experiences.
"During the final push, our engineering team averaged dozens of merged pull requests a day, while Devin's connection to Atlas's managed MCP service helped us keep testing moving just as quickly."
Kosta Krauth, CTO, Bilt
Dozens of merged PRs a day. For anyone who has lived through a migration crawl, that's an almost emotional number. It's also a hint about where this is going: the AI agent isn't just writing code, it's plugged into the database through MCP (Model Context Protocol) so it can test against real infrastructure as it works.
Hold the hype: what the press release doesn't say
This is a vendor announcement, so it helps to read it with a skeptical eye:
- "Early joint testing" isn't an independent benchmark. The 5–6 hours to ~1 hour figure comes from the two companies selling the product.
- No public pricing is mentioned. You request an engagement through MongoDB's partner page.
- Humans still own the risky calls. Designing the target data model and sequencing the cutover stay with your team, and those are often the hardest parts.
- "Months, not years" is a goal for enterprise application estates, not a promise for every codebase.
Our take: the design is sound. Letting AI handle fuzzy code rewrites while deterministic tools handle data integrity is exactly the right split. Whether it delivers at scale is something to judge from customer case studies over the next year.
Why this matters even if you're a student
You might not be migrating a bank's mainframe next week. But this announcement tells you where the job market is heading:
- Data modeling becomes the premium skill. If AI rewrites the code, the humans who design good document schemas are the ones who matter. Start with our MongoDB tutorial.
- SQL still matters. You can't review an AI's migration of a stored procedure you can't read. Keep your relational fundamentals sharp.
- Reviewing AI code is a real job. "Dozens of PRs a day" means someone has to review dozens of PRs a day. Learn to read code critically, not just write it.
"Customers can move decades of legacy applications onto MongoDB in months instead of years, giving them a modern data foundation built to run AI applications and agents in production on live operational data."
Dev Ittycheria, CEO, MongoDB
Bottom line
Legacy modernization has been the thankless, years-long slog of enterprise IT. MongoDB and Cognition are betting that an AI engineer plus deterministic data tooling can turn it into a months-long, coordinated project. The claims are bold and still early, but the architecture is smart, and if it holds up, "we can't migrate, it's too risky" may stop being an excuse.
Source: MongoDB press release: "Cognition and MongoDB partner to modernize enterprise infrastructure in months, not years" (Sept. 29, 2026)

