Microsoft has described how it builds and runs AI agents to transform some of its largest codebases, including Windows and Azure, the company said on 26 October 2026.

In a post on its Command Line site, Microsoft said its work ranges from migrating a 400-million-line codebase to a new compiler toolchain to modernising 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," the post said. Microsoft said that since 2024 it has combined AI agents with static analysis, testing and formal verification to make large-scale software transformation practical.

The company said the flow of control has inverted. It began by hard-coding workflows that called large language models as subroutines, but by May 2025 agents had become better planners than its pipelines, and its job became building the tools that agents call. It said the most valuable of those tools are the ones that tell an agent, and the engineers behind it, whether a change is right.

Microsoft also said that even as models and agent harnesses improve, the cognitive load on human experts is growing. The post did not give error rates for agent-generated changes.


Share this post
The link has been copied!