AIToday
AI Coding AssistantsGitHub Copilot BlogPublished: Sep 17, 2026, 10:00 JST

GitHub ports Copilot runtime to 800,000 lines of production Rust

GitHub ports Copilot runtime to 800,000 lines of production Rust

3 Key Points

  1. What happened

    GitHub rewrote the Copilot agent runtime from TypeScript into over 800,000 lines of production Rust, landing the work in 128 pull requests with AI agents writing most of the code.

  2. Why it matters

    The rewrite was done primarily by a single developer in a few months, a project GitHub says would have taken a whole team a year or two before agents.

  3. What to watch

    The completed runtime is 100% production Rust as of August 21, but in-process embedding stays opt-in while GitHub gains confidence in sharing a failure boundary with consuming applications.

WHO IT HITSTeams building or embedding the Copilot SDK in C#, TypeScript, Python, Rust, Go, or Java should note they can now run the runtime inside their own process instead of spawning a separate Node process. For application developers who supervise, memory-budget, and debug these integrations, the two-process setup that previously forced about 100 MB of working set minimum may no longer be required.

Not sure about something? Ask the AI

Summaries like this, in your inbox every morning.

Context & Analysis

The Copilot agent runtime was originally written in TypeScript on Node.js, backing the Copilot CLI, Copilot app, and cloud agent. That stack was fine for a console application, but as the runtime spread to VS Code, Visual Studio, Copilot Code Review, Copilot Cowork, Copilot Studio, and Office apps, its startup, memory, and throughput costs became harder to justify. The SDK had been layered on top of the CLI rather than the other way around, so every SDK consumer in C#, Python, Go, Java, or Rust spawned a subprocess and paid for a second language runtime it otherwise had no use for.

The port was done in place, component by component, with each pull request replacing a TypeScript implementation with a thin shim calling into Rust. That kept main shippable and let end-to-end tests run against the new code at every step. Early work began in early May 2026 with two pull requests setting up the Rust workspace, and progressed from pure-logic helpers inward to session orchestration, the most coupled part of the runtime.

What the outcome hinges on is confidence in sharing a process and a failure boundary with consuming applications. The completed Rust runtime supports both in-process and out-of-process hosting, but those in-process entry points remain opt-in for now, leaving the SDK's JSON-RPC path as the default while GitHub monitors feedback. For the six SDK language versions, the shift seems likely to reduce the overhead each consumer carries, though the timing of a full default change is not stated.

FAQ
How long did the GitHub Copilot runtime port to Rust take?
The porting window was roughly fourteen-and-a-half weeks, during which main shipped 135 releases, inclusive of 100 pre-release versions and 35 stable versions.
How many lines of Rust replaced the TypeScript runtime?
The runtime reached 832,378 lines of production Rust and 468,689 lines of Rust unit tests as of August 21, alongside 174,675 lines of E2E TypeScript tests.
Why did GitHub choose Rust over keeping TypeScript?
GitHub wanted a runtime with minimal dependencies and overhead that could be cleanly embedded in-process via a C ABI and used by all six Copilot SDK language versions.
GitHub Copilot BlogRead Original Article

Also reported by GitHub Blog (AI)

Get the latest AI Coding Assistants news every morning

For example, today's edition would include:

  • Anthropic explains how Claude Code burns tokensITmedia AI+ · 3h ago
  • Snap's Specs Intelligence hits iOS previewThe Verge AI · 3h ago
  • renue, Marubeni AI app cuts blueprint quantity takeoff from 12 hours to 10 minutesTop Companies AI · 7h ago

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. Q&As are published on this page for other readers too.

Related Articles

Next articleHistorian Andrew Scull talks psychiatry, ECT on Lex Fridman