Microsoft's agents ported Copilot's runtime to Rust for $120K

Share
Microsoft's agents ported Copilot's runtime to Rust for $120K

GitHub rewrote the engine behind Copilot from TypeScript to Rust, with AI agents doing most of the typing — and put a receipt on the whole project.

GitHub says it ported the entire Copilot agent runtime to Rust, with agents writing the bulk of the code, for roughly $120,000 in tokens. The project — described by GitHub engineer Stephen Toub — started from a scoping estimate of about 130,000 lines of TypeScript and ended with more than 800,000 lines of production Rust, after roughly 430,000 lines of TypeScript passed through the port. Work landed as 128 pull requests merged incrementally into main rather than one cutover, spanning about 14.5 weeks and over 135 releases. The token bill was 136.3 billion tokens, most of it cached input reads; The Register puts the human cost at about three weeks of a developer's time, with a single developer carrying most of the work alongside a team that kept shipping features.

The performance numbers are the reason this is a story and not a blog post. On a benchmark of 1,000 one-turn session lifecycles sharing one client across 100 concurrent pipelines, the old TypeScript runtime managed 7.55 per second; Rust running in-process hit 120 per second, a 15.9x gain on that specific workload — Rust out-of-process landed at 57.45. Memory moved further: a ten-client batch peaked 1,383 MB above baseline under TypeScript and 126 MB in-process under Rust, a 91 percent cut, because the work no longer needs to spawn external background processes. GitHub's own framing is careful, and correct — the runtime is not universally 15.9x faster. But multi-session hosts are exactly the case server operators pay for.

What agents actually did is the more interesting finding. Across tool telemetry, sessions spent about ten times more effort gathering evidence than changing code — reading files, searching the repo, running diagnostics — which inverts the popular image of AI spraying code. The model-orchestration port ran a 42-hour wall-clock session that spawned 126 subagents, 22 working at once. One session used an orchestration skill to find every other active session and message the ones whose missions overlapped. Different jobs went to different models by strength: GPT-5.6 Sol and Claude Opus 4.8 were both used.

The caveat GitHub volunteered is the one to keep. By September 14 the team had traced dozens of port regressions, all fixed, mostly correctness bugs from reimplemented behavior, partially applied migrations, rebasing losses and tests that confidently validated the wrong thing. Rust's compiler proves a program compiles, not that it is coherent — "if it compiles, it compiles" is useful only as a joke, Toub writes. The port deliberately mirrored the old structure instead of redesigning it, so the ownership and concurrency gains Rust enables are still unclaimed.

What to watch: whether GitHub takes the structural rewrite it deferred, and whether other large runtimes treat a $120,000 agent-assisted port as a template.

Would you sign off on a 800,000-line rewrite where the compiler is the only reviewer? Tell us in the comments.

Read more

Akhetonics says its all-optical CPU reaches a customer in 2026

Akhetonics says its all-optical CPU reaches a customer in 2026

Light-based computing keeps promising more than it delivers — but one Munich startup has just put a date on its bet, and the interview laying it out is doing the rounds on Hacker News this week. Akhetonics says it will deploy its first commercial machine with a major customer by the end of 2026, with several more planned for 2027. The company, founded by Michael Kissner and Leonardo Del Bino, is building a computer where data enters as light, is switched as light, and circulates through memory

The Week in AI — October 5–11, 2026

The Week in AI — October 5–11, 2026

Every big claim this week turned out to rest on fine print more interesting than the headline: revenue only the company reporting it can define, safety tests sandboxed while the product keeps the web, and a Pentagon phase-out nobody would confirm until reporters kept asking. The week's top 5 1. OpenAI's revenue was $20 billion below the numbers everyone quoted — and the gap was definitional. The Financial Times reported Thursday that OpenAI's annualized revenue runs roughly $20 billion unde

Drone strike shuts a third Yandex data center, taking YandexGPT offline

Drone strike shuts a third Yandex data center, taking YandexGPT offline

Russia's largest tech company is learning what the AI era's infrastructure war looks like from the receiving end — three data centers in four days, and with them much of the cloud layer Russian businesses run on. A Ukrainian drone strike knocked out Yandex's data center in Vladimir early Sunday morning, the third of the company's facilities hit since October 8. The site — reported at roughly 50 MW and designed for about 2,880 server racks — stopped operating completely after the attack, Yandex

Agent teams cost up to 5x more, barely score higher

Agent teams cost up to 5x more, barely score higher

The multi-agent hype train hit a benchmark this weekend — and the grid and the trucking regulators had quiet weeks of their own. Vals AI put agent teams head-to-head with single agents on its Vibe Code Bench, and the teams cost between 1.8 and 5.1 times more for almost no extra quality. The evals company ran GPT-6 Sol and Claude Opus 5.5 solo and in teams across 50 apps at two reasoning efforts; out of four comparisons, only one was statistically significant — Sol at medium effort, where the t