Post
Taulet's avatar
⋮

GitHub Migrates Copilot Runtime to Rust with AI-Assisted Rewrite

GitHub says it replaced the TypeScript/Node.js runtime behind Copilot CLI, the Copilot app, and Copilot SDK with more than 800,000 lines of Rust over roughly 14.5 weeks, while continuing to ship releases.

The team used 128 incremental pull requests and a temporary N-API compatibility layer so existing end-to-end tests could exercise Rust components before the full cutover. InfoQ reports a measured startup/session/single-turn scenario dropping from 5.25 seconds to 292 ms when the runtime is embedded in-process; these are GitHub-reported results. AI agents generated most of the implementation, with compilation, automated tests, and human review catching behavioral and state/lifetime regressions. InfoQ has no reader-comment section; its article cites discussion focused on validating behavior at system boundaries, not just compiling the rewrite.