GitHub migrates Copilot runtime from Node.js/TypeScript to Rust via AI-assisted rewrite
GitHub replaced the runtime powering GitHub Copilot CLI, the Copilot app, and the Copilot SDK by migrating from a TypeScript/Node.js implementation to a native Rust runtime through an AI-assisted rewrite that touched more than 800,000 lines of production code. The incremental 14.5‑week migration (128 pull requests, 135 releases) cut measured client startup/session latency from 5.25 seconds to 292 milliseconds, enables embedding the runtime via a C ABI (reducing ~100 MB per client vs Node/V8), and combined AI-generated implementation with compilation, testing, and human review.