<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/one-engineer-120k-in-token-spend-800k-lines-of-rust-bqtd1anpe" -->

---
title: One Engineer, $120K in Token Spend, 800K Lines of Rust
description: A commentary breaks down Microsoft's migration of the GitHub Copilot runtime from TypeScript/Node.js to Rust, performed largely by AI agents at a cost of...
canonical: https://daily.dev/posts/one-engineer-120k-in-token-spend-800k-lines-of-rust-bqtd1anpe
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: One Engineer, $120K in Token Spend, 800K Lines of Rust | daily.dev
og:description: A commentary breaks down Microsoft's migration of the GitHub Copilot runtime from TypeScript/Node.js to Rust, performed largely by AI agents at a cost of...
og:url: https://daily.dev/posts/one-engineer-120k-in-token-spend-800k-lines-of-rust-bqtd1anpe
og:image: https://api.daily.dev/og/posts/bQtD1AnPE.png
og:image:alt: One Engineer, $120K in Token Spend, 800K Lines of Rust
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# One Engineer, $120K in Token Spend, 800K Lines of Rust

**[We Are .NET](https://daily.dev/sources/wearedotnet)** · 9 min read · 6 upvotes · 0 comments

## Summary

A commentary breaks down Microsoft's migration of the GitHub Copilot runtime from TypeScript/Node.js to Rust, performed largely by AI agents at a cost of $120,000 in credits and roughly three weeks of engineer Steven Toh's time, producing about 800,000 lines of Rust. The video explains why Rust was chosen over .NET (avoiding garbage collector overhead, wanting minimal dependencies, FFI support, and better performance/scalability), addresses backlash from the .NET community, discusses how code review worked at this scale (agents did mechanical comparisons and tests while the human engineer focused on architecture, risk, and final merge decisions), and cites benchmark results showing 3-6x speedups for out-of-process calls and 6-21x speedups for in-process calls compared to the original TypeScript implementation.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=dN11EApmfkM>

## Questions this post answers

### Why did Microsoft rewrite the GitHub Copilot runtime from TypeScript to Rust instead of using .NET?

Microsoft chose Rust because it wanted minimal dependencies and runtime overhead, the ability to embed the runtime in-process rather than out-of-process, strong performance/scalability/reliability characteristics, foreign function interface support for six Copilot SDKs, lower supply chain risk, and support for correct-by-construction code. Avoiding .NET's garbage collector overhead was also a factor.

_daily.dev surfaces engineering writeups like this for developers weighing Rust against .NET for performance-critical systems._

### How much did it cost to migrate the GitHub Copilot runtime to Rust using AI agents?

The migration cost about $120,000 in AI agent credits and roughly three weeks of developer time, performed largely by a single engineer, Steven Toh, using AI coding agents to write around 800,000 lines of Rust code between a May 12th TypeScript baseline and an August 21st comparison.

_Developers tracking real-world costs of agentic coding projects can follow reports like this on daily.dev._

### How much faster is the Rust version of the GitHub Copilot runtime compared to the original TypeScript implementation?

The Rust rewrite was roughly 3 to 5.9 times faster for out-of-process invocation and 6 to 21 times faster for in-process invocation across various agentic work scenarios, based on comparisons between a May 12th TypeScript baseline and an August 21st Rust measurement.

_Anyone benchmarking a language migration for performance gains can find comparisons like this on daily.dev._

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#github](https://daily.dev/tags/github), [#rust](https://daily.dev/tags/rust), [#.net](https://daily.dev/tags/.net)

[View this post on daily.dev](https://daily.dev/posts/one-engineer-120k-in-token-spend-800k-lines-of-rust-bqtd1anpe)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"One Engineer, $120K in Token Spend, 800K Lines of Rust","url":"https://daily.dev/posts/one-engineer-120k-in-token-spend-800k-lines-of-rust-bqtd1anpe","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/one-engineer-120k-in-token-spend-800k-lines-of-rust-bqtd1anpe"},"datePublished":"2026-09-27T08:07:14.023Z","dateModified":"2026-09-27T08:07:34.593Z","description":"A commentary breaks down Microsoft's migration of the GitHub Copilot runtime from TypeScript/Node.js to Rust, performed largely by AI agents at a cost of...","image":"https://i.ytimg.com/vi/dN11EApmfkM/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/dN11EApmfkM/sddefault.jpg","isAccessibleForFree":true,"articleSection":"We Are .NET","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"We Are .NET","logo":"https://media.daily.dev/image/upload/s--BsnVOa3i--/f_auto/v1718347410/logos/wearedotnet","url":"https://daily.dev/sources/wearedotnet"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/one-engineer-120k-in-token-spend-800k-lines-of-rust-bqtd1anpe","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":6},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,github,rust,.net","timeRequired":"PT9M","video":{"@type":"VideoObject","name":"One Engineer, $120K in Token Spend, 800K Lines of Rust","description":"A commentary breaks down Microsoft's migration of the GitHub Copilot runtime from TypeScript/Node.js to Rust, performed largely by AI agents at a cost of...","thumbnailUrl":"https://i.ytimg.com/vi/dN11EApmfkM/sddefault.jpg","uploadDate":"2026-09-27T08:07:14.023Z","duration":"PT9M","url":"https://api.daily.dev/r/bQtD1AnPE","embedUrl":"https://www.youtube.com/embed/dN11EApmfkM"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"We Are .NET","item":"https://daily.dev/sources/wearedotnet"},{"@type":"ListItem","position":3,"name":"One Engineer, $120K in Token Spend, 800K Lines of Rust"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/one-engineer-120k-in-token-spend-800k-lines-of-rust-bqtd1anpe#faq","mainEntity":[{"@type":"Question","name":"Why did Microsoft rewrite the GitHub Copilot runtime from TypeScript to Rust instead of using .NET?","acceptedAnswer":{"@type":"Answer","text":"Microsoft chose Rust because it wanted minimal dependencies and runtime overhead, the ability to embed the runtime in-process rather than out-of-process, strong performance/scalability/reliability characteristics, foreign function interface support for six Copilot SDKs, lower supply chain risk, and support for correct-by-construction code. Avoiding .NET's garbage collector overhead was also a factor. daily.dev surfaces engineering writeups like this for developers weighing Rust against .NET for performance-critical systems."}},{"@type":"Question","name":"How much did it cost to migrate the GitHub Copilot runtime to Rust using AI agents?","acceptedAnswer":{"@type":"Answer","text":"The migration cost about $120,000 in AI agent credits and roughly three weeks of developer time, performed largely by a single engineer, Steven Toh, using AI coding agents to write around 800,000 lines of Rust code between a May 12th TypeScript baseline and an August 21st comparison. Developers tracking real-world costs of agentic coding projects can follow reports like this on daily.dev."}},{"@type":"Question","name":"How much faster is the Rust version of the GitHub Copilot runtime compared to the original TypeScript implementation?","acceptedAnswer":{"@type":"Answer","text":"The Rust rewrite was roughly 3 to 5.9 times faster for out-of-process invocation and 6 to 21 times faster for in-process invocation across various agentic work scenarios, based on comparisons between a May 12th TypeScript baseline and an August 21st Rust measurement. Anyone benchmarking a language migration for performance gains can find comparisons like this on daily.dev."}}]}
```

