Back to 17 September edition

AI in Practice, deep dive

GitHub rewrites the Copilot agent runtime into 800,000+ lines of Rust

GitHub used Copilot to migrate a production agent runtime from TypeScript to Rust over roughly fourteen weeks while shipping incrementally and tracking dozens of regressions.

Large code blocks moving through an incremental migration pipeline

GitHub rewrote the Copilot agent runtime from TypeScript into more than 800,000 lines of production Rust, using Copilot itself throughout the migration.

The interesting part is the operating method: incremental releases, agent-generated ports, independent test oracles, and explicit regression tracking. GitHub reports dozens of known port regressions, including behavioral mismatches and host-boundary problems.

Why it matters

This is a concrete example of agents making a migration economically feasible without making correctness free. The winning pattern is agent throughput plus aggressive verification, not autonomous bulk rewriting with blind trust.

VERIFICATION

Sources

Evidence
primary
Signal
high
Difficulty
advanced
  1. GitHub — Migrating the GitHub Copilot runtime to Rust, using Copilot