Microsoft rewrites GitHub Copilot's runtime from TypeScript to Rust using AI agents
Microsoft used AI agents to convert the Copilot runtime's 430,000 lines of TypeScript into 800,000 lines of Rust, a project that took about 14.5 weeks, over 135 releases, roughly $120,000 in AI token costs, and three weeks of human developer oversight to fix dozens of regressions. The Rust version now powers Copilot across VS Code, Visual Studio, the CLI, SDK, and Office apps like Excel and Outlook.
GoKawiil's interpretation of the reporting above, not reported fact.
The rewrite delivered nearly 16x faster session throughput and over 10x lower memory use, showing tangible performance gains from moving core AI infrastructure off TypeScript. It also serves as a real-world case study on the current limits of AI-driven code migration, since human engineers still had to catch and fix numerous bugs the agents introduced.
- AI agents ported 430,000 lines of TypeScript to 800,000 lines of Rust for about $120,000 and three weeks of human effort.
- The Rust runtime is roughly 16x faster and uses about 10x less memory than the original TypeScript version.
- Despite automation, dozens of regressions required manual fixes, highlighting AI's current struggles with Rust's complexity.
The Rust Programming Language book — If Rust is now powering major Microsoft AI infrastructure, it's a great time to actually learn the language behind the hype. This is the definitive, official guide to Rust's ownership model, memory safety, and performance-oriented design that made this port worthwhile.
See The Rust Programming Language book on Amazon → Affiliate link — we may earn a commission on purchases, at no extra cost to you. Product picked by AI based on this article; it is not a tested recommendation.Source: theregister.com — Joab Jackson, 2026-09-20
Published there as: “Microsoft agentically ports Copilot runtime to Rust for $120K”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.