AIToday
AI Coding AssistantsGitHub Blog (AI)Published: 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 into more than 800,000 lines of production Rust using its own GitHub Copilot app and Copilot CLI. AI agents wrote most of the code, spanning 128 pull requests, largely by a single developer in a few months.

  2. Why it matters

    Work that would have taken a whole team of developers a year or two was completed by one person in a few months, and the runtime's performance improved by orders of magnitude, which is likely to change how fast such large rewrites can be done.

  3. What to watch

    The in-process entry points are currently opt-in while GitHub gains confidence in sharing a process, and therefore a failure boundary, with the consuming application. Watch whether the CLI fully moves onto the SDK surface area, which is ongoing work.

WHO IT HITSSoftware teams maintaining large codebases — especially those weighing a full rewrite — now have a proof point that agent-assisted porting can compress a year-long effort into months. Developers working in languages such as C#, Python, Go, Java, and Rust may also see performance benefits, since the runtime can now be embedded in-process rather than shipped as a separate process.

Not sure about something? Ask the AI

Summaries like this, in your inbox every morning.

Context & Analysis

The Copilot agent runtime arrived on GitHub's stack as a TypeScript codebase built on top of the Copilot CLI, because the CLI was written and shipped quickly and the layers were intertwined rather than cleanly separated. That design carried a cost for other products: GitHub says the runtime backs a growing set of Microsoft, GitHub, and ecosystem solutions, including the latest releases of VS Code, Visual Studio, CCA, Copilot Code Review, Copilot Cowork, Copilot Studio, and Excel, Outlook, PowerPoint, and Word. Over time most of those products replaced their own agent loop with the GitHub Copilot SDK, which is the entry point to the runtime.

GitHub's stated goals for the rewrite were a runtime that is its own library without the CLI's terminal interface, one written in a language with minimal overhead that can be embedded in-process, and one that works cleanly with all six SDK languages. The port had to proceed while the codebase kept moving. GitHub says it was done in place, component by component, with each pull request replacing the existing TypeScript implementation with a thin shim into Rust and deleting the old code in one atomic change, so the main branch stayed shippable. The company also shied away from maintaining TypeScript and Rust versions of the same component concurrently, noting that session orchestration owns mutable state, drives callbacks in both directions, and threads through nearly every other subsystem, which made running both versions in parallel impractical.

The stated payoff is that the shipped runtime is a platform library with two front doors: one for Node processes and one for any language that can call through a foreign function interface. GitHub says those in-process entry points are currently opt-in while it gains confidence in sharing a process, and therefore a failure boundary, with the consuming application. Whether teams adopt the in-process path is likely to hinge on how that confidence builds, since the SDK API above the transport — sessions, events, tools, permissions, and callbacks — stays the same either way.

FAQ
How long did the GitHub Copilot runtime rewrite take?
GitHub says the port was completed primarily by a single developer in only a few months, work that would have taken a whole team of developers a year or two before agents.
What are the in-process entry points and are they available now?
They are currently opt-in while GitHub gains confidence in sharing a process, and therefore a failure boundary, with the consuming application.
What performance improvement did GitHub report for the runtime?
GitHub says the performance of the runtime improved by orders of magnitude after the rewrite to Rust.
GitHub Blog (AI)Read Original Article

Also reported by GitHub Copilot Blog

Get the latest AI Coding Assistants news every morning

For example, today's edition would include:

  • Anthropic explains how Claude Code burns tokensITmedia AI+ · 2h ago
  • Snap's Specs Intelligence hits iOS previewThe Verge AI · 2h ago
  • renue, Marubeni AI app cuts blueprint quantity takeoff from 12 hours to 10 minutesTop Companies AI · 5h 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 articleApple reportedly building AI server with M-series Ultra chips for 2029