✓ ShippedByAgents
Vendor-published Language port

GitHub ports the Copilot agent runtime from TypeScript to 800K+ lines of Rust, mostly by one engineer

Stephen Toub used the GitHub Copilot app and CLI to port the Copilot agent runtime in place, component by component, over roughly 14.5 weeks. 128 port PRs landed and main shipped 135 releases during the window. Dozens of regressions were traced and fixed; the post documents failure patterns in detail.

The numbers (as reported)

Production Rust written832,378 lines
TypeScript passed through the port (author estimate)~430,000 lines
Porting window~14.5 weeks
Port pull requests128
Token spend~$120,000 (~136.3B tokens)
Developer time (author estimate)~3 weeks
Prompt-cache hit rate96.22%
One-turn session, in-process vs before5.25 s → 292 ms

Facts

Company / subject
GitHub (Microsoft)
Tools
GitHub Copilot
Codebase
brownfield
Work type
Language port
Stack
TypeScript, Node.js, Rust
Published
2026-09-16
Last checked
2026-10-17

What the source claims Vendor-published

Claimed by the vendor that sells the tool. Not checked independently.

  • Runtime rewritten as 832,378 lines of production Rust for about $120,000 in tokens plus three weeks of a developer's time ~$120,000 + 3 weeks
    “the rough bill for the porting effort was about $120,000 in attributed token spend plus three weeks of a developer’s time”
  • A one-turn session went from 5.25 s to 292 ms in-process (18x) 18x
    “292 ms (18.0x)”
  • Ten-client memory delta cut by 91% before any optimisation work -91% memory
    “cutting the measured ten-client memory delta by 91% before that optimization work begins”

Caveats

Published by GitHub about its own product. The author notes team members also contributed (bindings, packaging, reviews), and that performance numbers include other changes from the same period.

More stories by tool: GitHub Copilot

Related topics: Language portsBrownfield codebasesVendor case studies

Source

The GitHub Blog

One email a week: what actually shipped

New sourced stories, the numbers behind them, and what didn't work. No hype.

We'll only use this to send the newsletter. See the privacy page.