Skip to content

GitHub uses Copilot to rewrite the Copilot runtime in Rust

GitHub Blog · AI & MLFrom the sourceStephen ToubPicksMigrating the GitHub Copilot runtime to Rust, using Copilot
Original

What happened

Using the GitHub Copilot app and Copilot CLI, GitHub completely rewrote the Copilot agent runtime from TypeScript into more than 800,000 lines of production Rust. AI agents wrote most of the code, merged incrementally into main across 128 pull requests rather than in a single cutover.

Why it matters

Drawing on firsthand experience, the author reviews the 800,000-line Rust rewrite and shares agent-orchestration and review practices that can be reused.

Read next

More changes in today’s briefingCodex Cloud Adds Browser and Desktop Access