Port 430,000 lines of TypeScript to Rust with coding agents
GitHub engineer Stephen Toub's September 16, 2026 account describes porting the AI runtime from TypeScript to Rust mostly with AI coding agents: 832,378 lines of production Rust plus 468,689 lines of tests across 128 merged pull requests in about fourteen and a half weeks. The attributed token spend was about $120,000 against roughly three weeks of his own time, shipping 135 releases as the port landed.
How it works
- Scope the port (about 430,000 production TypeScript lines)
- Agents port one component per pull request with atomic in-place replacement
- Merge 128 PRs to main
- Ship 135 releases during the port
- Finish at 832,378 lines of production Rust plus 468,689 lines of Rust tests
Why it’s worth knowing
One engineer and a fleet of agents rewrote the engine that runs the agents — 1.3 million lines — while the product kept shipping daily.
Where it’s from
Summarized from a public post on theaugmenteddev.com. See the original ↗