The promise—and challenges—of agentic software engineering, from large-scale code migration to language modernization.
What happens when AI agents can rewrite millions of lines of code orders of magnitude faster than humans can review them?
At Microsoft, we’re working on exactly that problem.
We’re building and running AI agents that transform some of the world’s largest codebases, including Windows and Azure. Our work ranges from migrating a 400-million-line codebase to a new compiler toolchain to modernizing legacy C and C++ code into Rust—increasingly backed by formal verification.
Generating code is becoming the easy part. Knowing whether to trust it is the real challenge. When agents make changes across hundreds of millions of lines of code, how do we know they haven’t…
This is an excerpt. The full article is published by Microsoft.
Answers to common questions regarding this article's topic, architecture, and practical applications.
The promise—and challenges—of agentic software engineering, from large-scale code migration to language modernization.
Definition / Understanding
Much of the world’s most critical software is written in languages like C /C++ that make memory-safety bugs easy to introduce and hard to eliminate. Rewriting in Rust promises safety by construction—but only if the rewrite preserves exactly what the original code did. At the scale of real systems, a manual rewrite is rarely practical, and an automated one is only useful if we can trust it. Our work focuses on moving legacy codebases to Rust, and
General
Imagine needing to make similar kinds of changes across hundreds of millions of lines of code, maintained by thousands of engineers. That’s the challenge of large-scale code migration. Generating any single edit is easy. The hard part is getting thousands of edits right in the same way: capturing what experts know, validating that knowledge, and applying it consistently—without pulling every engineer in the organization into the effort. We defin
General
Agents can produce changes faster than people can assess them, and locally plausible code can still violate architectural assumptions, distributed protocols, security boundaries, or operational invariants. Tests catch some of these problems, reviewers catch others, but neither keeps pace with the rate at which agents produce changes. We believe the answer is to make intent explicit. As agents write more of our code, developers’ attention is shift
General
Here are some open questions we’re grappling with: These aren’t hypothetical questions for us. They’re shaping what we build next. We would love to hear what you see in your own work, where you disagree with us, and which problems you think matter most. Please feel free to reach out with your thoughts.