Skip to content
GitHub Blog · AI & ML· Stephen Toub·· 2026-09-17

Migrating the GitHub Copilot runtime to Rust, using Copilot

Migrating the GitHub Copilot runtime to Rust, using Copilot

AI summary

A rewrite this size wasn't affordable before agents. Here's what porting the Copilot agent runtime to 800,000 lines of production Rust actually took.

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