AI-generated editorial illustration; not a documentary photograph.
GitHub says it has completely rewritten the GitHub Copilot agent runtime from TypeScript, Node.js and V8 into more than 800,000 lines of production Rust. Copilot coding agents produced most of the code during a migration led primarily by one developer over roughly 14-and-a-half weeks, according to Microsoft engineer Stephen Toub.
An Incremental Migration
The team used the GitHub Copilot app and Copilot CLI, dividing the rewrite across 128 pull requests that were merged and deployed incrementally. This allowed GitHub to continue developing the product while identifying regressions as converted components entered production.
Toub estimated that a conventional rewrite of this scale would previously have required an engineering team working for one or two years. That comparison is GitHub's assessment rather than an independent measurement of agent productivity.
Bun Chose Parallel Translation
Bun, the JavaScript runtime acquired by Anthropic last December, took a substantially different route for its own Rust migration. Founder Jarred Sumner coordinated multiple Claude Code agents to translate and check 535,496 lines of Zig in parallel, using a pre-release Claude model for much of the work.
Sumner said the Rust version passed Bun's existing tests across all six supported platforms 11 days after work began. The code was subsequently merged, but review and cleanup continued before release. Bun pursued the rewrite to address recurring memory-management problems involving its Zig code and embedded JavaScript engine, rather than attributing those issues to Zig generally.
Timelines Are Not Benchmarks
The reported 11-day Bun effort and GitHub's 14-and-a-half-week migration are not directly comparable. Bun used a highly parallel, largely all-at-once translation between systems languages, while GitHub progressively replaced a TypeScript and Node.js runtime without pausing ongoing product work.
Vendor Case Studies
Both accounts come from companies selling the coding agents credited with enabling the projects. They show how GitHub and Anthropic organized large migrations, but they do not provide an independent comparison of Copilot and Claude or establish that similar results would transfer to other codebases.
Other reported examples include a majority-AI-coded TypeScript-to-Rust port of the React Compiler and OpenAI's agent-assisted rewrite of its Habitat storage service. OpenAI said the Rust service was already handling 95% of production requests while using six times less CPU and 15 times less memory than its Python predecessor.
Source: GitHub and Anthropic used their own agents for major Rust rewrites — with very different playbooks

Leave a Reply