Skip to content
GitHub Blog · AI & ML· Stephen Toub·· 15 d ago

Migrating the GitHub Copilot runtime to Rust, using Copilot

Migrating the GitHub Copilot runtime to Rust, using Copilot

AI summary

GitHub used the Copilot app and Copilot CLI to completely rewrite the Copilot agent runtime from TypeScript into over 800,000 lines of production Rust. AI agents wrote most of the code, delivered incrementally across 128 PRs, improving performance by several orders of magnitude.

Selection record

AdmittedSum of both 154 ≥ twice the threshold 120

Source tier
Official, first-hand; this tier's threshold is 60
Pre-filter
passed:GitHub Copilot运行时迁移至Rust,AI代理写代码
Why it was chosen
The author's first-hand account of the full TypeScript-to-Rust migration with AI agents is transferable to large-scale refactoring.

A model scores each item twice, independently, against one written standard, out of 100. An item is admitted only when the two scores add up to twice the threshold. The threshold is set per source tier.

Source: GitHub Blog · AI & ML · github.blog