October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Redmond desk3 min

Why GitHub Rewrote the Copilot Runtime in Rust with AI Assistance

GitHub says it used Copilot agents to write most of a component-by-component Rust rewrite of the Copilot agent runtime, motivated by embedding, overhead, interoperability and other project-specific goals.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

GitHub says it rewrote the production implementation of its Copilot agent runtime from TypeScript on Node.js and V8 to Rust, using Copilot agents to write most of the replacement code. The change targeted a specific runtime used by Copilot CLI, Copilot app, SDK, and other GitHub and Microsoft experiences—not every GitHub product written in TypeScript. GitHub’s engineering account describes the migration and its benefits; it is not an independent audit.

Why did GitHub choose Rust for the Copilot runtime?

According to Stephen Toub’s GitHub engineering post, the team was trying to reduce runtime overhead, support in-process embedding, improve performance and scalability, strengthen reliability, interoperate with six SDK languages, and use a toolchain that supported its security goals. The choice followed from those requirements rather than a general belief that Rust should replace TypeScript.

As an Amazon Associate I earn from qualifying purchases.

In the earlier design, SDKs could need a Node runtime or a bundled V8 binary, and they communicated with the CLI across a process boundary. GitHub says the Rust runtime can instead be embedded natively and expose a C ABI, allowing language SDKs to connect through foreign-function interfaces (FFI). This is an architectural advantage GitHub reports for its system, not a guarantee that Rust will improve every application or workload.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Toub summarized the motivation this way: “I didn’t set out to move to Rust, I set out to move away from Node.js and V8”.

How did GitHub migrate the implementation without stopping development?

GitHub chose a component-by-component port in place of a single cutover. For each change, a pull request replaced a TypeScript implementation with a Rust implementation and a temporary shim. Those changes shipped incrementally while ordinary work continued on the main branch, letting the team observe deployed builds as the port progressed.

GitHub reports that the migration took 128 pull requests. On August 21, 2026, the production implementation of the runtime was 100% Rust, according to the company.

How much code did the AI-assisted rewrite involve?

GitHub says Copilot agents wrote most of the Rust replacement. The company reports that approximately 430,000 lines of production TypeScript passed through the port. By August 21, 2026, the production Rust implementation comprised 832,378 lines, alongside 468,689 lines of Rust unit tests.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Those figures describe the size of the effort, not a direct measure of code quality or proof that an AI system independently completed the migration. GitHub’s account presents the work as an incremental engineering project involving replacements, temporary shims, releases, testing, and fixes.

What does GitHub report about performance and reliability?

GitHub says its benchmarks showed substantial performance improvements, and it describes lower runtime overhead and in-process SDK loading as outcomes of the new architecture. The available account here does not provide benchmark scenarios or numerical results, so it does not support a specific speedup figure or a like-for-like performance comparison.

GitHub also says the team had traced dozens of known regressions by September 14, 2026, and fixed those known issues. The company characterizes most as correctness problems, with a smaller group of performance regressions. It also acknowledges that further issues could remain undiscovered. Incremental releases gave the team opportunities to observe changes in production and address problems as they appeared; the migration was not regression-free.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What can other engineering teams take from the rewrite?

  • Start with the constraint, not the language. GitHub’s stated motivation was to address the runtime, embedding, interoperability, performance, reliability, and security requirements of this particular system.
  • Consider migration shape as well as destination. Replacing components through incremental changes let the team continue shipping rather than defer development for a one-time cutover.
  • Read headline metrics in context. Lines of code and tests indicate project scale, while benchmark conclusions require scenario details and measurements.
  • Plan for regressions and continuing discovery. GitHub reports fixes for known issues but does not claim that every regression was found.

The account is useful as a case study in a staged runtime rewrite, but its conclusions are GitHub’s description of its own project. It does not establish that a large TypeScript application should generally be rewritten in Rust.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.