<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/github-and-anthropic-used-their-own-agents-for-major-rust-rewrites-with-very-different-playbooks-vadg1uged" -->

---
title: GitHub and Anthropic used their own agents for major...
description: GitHub and Anthropic both used their own AI coding agents to complete massive Rust rewrites of core software, but took very different approaches. GitHub used...
canonical: https://daily.dev/posts/github-and-anthropic-used-their-own-agents-for-major-rust-rewrites-with-very-different-playbooks-vadg1uged
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: GitHub and Anthropic used their own agents for major Rust rewrites — with very different playbooks | daily.dev
og:description: GitHub and Anthropic both used their own AI coding agents to complete massive Rust rewrites of core software, but took very different approaches. GitHub used...
og:url: https://daily.dev/posts/github-and-anthropic-used-their-own-agents-for-major-rust-rewrites-with-very-different-playbooks-vadg1uged
og:image: https://api.daily.dev/og/posts/VaDG1UGed.png
og:image:alt: GitHub and Anthropic used their own agents for major Rust rewrites — with very different playbooks
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.

# GitHub and Anthropic used their own agents for major Rust rewrites — with very different playbooks

**[The New Stack](https://daily.dev/sources/newstack)** · 6 min read · 3 upvotes · 2 comments

## Summary

GitHub and Anthropic both used their own AI coding agents to complete massive Rust rewrites of core software, but took very different approaches. GitHub used Copilot app and CLI agents to incrementally convert the Copilot agent runtime (800,000+ lines, formerly TypeScript/Node.js) across 128 pull requests over roughly 14.5 weeks, shipping alongside continued development. Anthropic's Bun, by contrast, used parallel Claude Code instances to port over 500,000 lines of Zig to Rust in just eleven days, an all-at-once effort led by founder Jarred Sumner. Similar agent-assisted Rust rewrites are also cited at Meta (React Compiler) and OpenAI (Habitat storage service, moving from Python to Rust, now handling 95% of production requests with far lower CPU and memory use). Both GitHub and Anthropic argue such rewrites weren't economically feasible before coding agents, though the piece notes both companies have a vested interest in promoting that narrative.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://thenewstack.io/github-copilot-anthropic-rust-migration>

## Questions this post answers

### How did GitHub rewrite the Copilot agent runtime from TypeScript to Rust using AI agents?

GitHub used its own Copilot app and Copilot CLI agents to rewrite over 800,000 lines of the Copilot agent runtime, previously built in TypeScript on Node.js and V8, into production Rust. The work was split into 128 incrementally merged pull requests over about 14.5 weeks, letting the team catch regressions while continuing to ship new features throughout the migration.

_Teams weighing a large-scale Rust migration can follow ongoing agent-driven rewrite case studies on daily.dev._

### How long did it take Anthropic's Bun team to rewrite Bun from Zig to Rust using Claude Code?

Bun founder Jarred Sumner used multiple parallel Claude Code agents to translate and check different parts of the codebase simultaneously, and eleven days after starting, the Rust version was passing Bun's existing tests on all six supported platforms. The rewrite covered 535,496 lines of Zig, a job Sumner estimated would otherwise have required a small team roughly a year.

_Developers comparing agent-driven rewrite speeds across Bun, GitHub, and OpenAI can track these results on daily.dev._

### Why did OpenAI rewrite its Habitat storage service from Python to Rust?

OpenAI rewrote Habitat, the storage service underlying ChatGPT and related products, from Python into Rust using Codex and GPT-5.5, with two engineers completing the work during the second quarter of 2026. The new Rust service already handles 95% of production requests while using six times less CPU and fifteen times less memory than the Python version, and OpenAI plans to deprecate the Python version within weeks.

_Engineers deciding whether Rust rewrites justify the switch can follow real performance numbers like these on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@barneysspeedshop** · 0 upvotes

> Hmm. I built Rope Notes using rust in the first place.

**@akkitto** · 0 upvotes

> #RewriteTheWorldInRust 🦀

---

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

[View this post on daily.dev](https://daily.dev/posts/github-and-anthropic-used-their-own-agents-for-major-rust-rewrites-with-very-different-playbooks-vadg1uged)

```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":"GitHub and Anthropic used their own agents for major Rust rewrites — with very different playbooks","url":"https://daily.dev/posts/github-and-anthropic-used-their-own-agents-for-major-rust-rewrites-with-very-different-playbooks-vadg1uged","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/github-and-anthropic-used-their-own-agents-for-major-rust-rewrites-with-very-different-playbooks-vadg1uged"},"datePublished":"2026-09-17T18:11:03.450Z","dateModified":"2026-09-17T20:31:02.967Z","description":"GitHub and Anthropic both used their own AI coding agents to complete massive Rust rewrites of core software, but took very different approaches. GitHub used...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ec0987867f82f27f294716394141026c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ec0987867f82f27f294716394141026c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"The New Stack","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":"The New Stack","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/newstack","url":"https://daily.dev/sources/newstack"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/github-and-anthropic-used-their-own-agents-for-major-rust-rewrites-with-very-different-playbooks-vadg1uged","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"github,ai-agents,rust,claude-code","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"The New Stack","item":"https://daily.dev/sources/newstack"},{"@type":"ListItem","position":3,"name":"GitHub and Anthropic used their own agents for major Rust rewrites — with very different playbooks"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/github-and-anthropic-used-their-own-agents-for-major-rust-rewrites-with-very-different-playbooks-vadg1uged","comment":[{"@type":"Comment","text":"Hmm. I built Rope Notes using rust in the first place.","datePublished":"2026-09-18T04:08:23.432Z","url":"https://daily.dev/posts/VaDG1UGed#c-yZ9QoDo6E","author":{"@type":"Person","name":"Barney's Speed Shop","url":"https://daily.dev/barneysspeedshop","image":"https://lh3.googleusercontent.com/a/ACg8ocKUOwM8vHpJpu-6xy8V-8casTQY5b-cloJ5dT82k3IVRm-z2BYY2Q=s96-c"}},{"@type":"Comment","text":"#RewriteTheWorldInRust 🦀","datePublished":"2026-09-20T10:53:16.712Z","url":"https://daily.dev/posts/VaDG1UGed#c-qu5Ve0PMS","author":{"@type":"Person","name":"Daniel","url":"https://daily.dev/akkitto","image":"https://media.daily.dev/image/upload/s--FtwJqX4c--/f_auto/v1754900041/avatars/avatar_29TCpY2hJR72V3BlxPXzX?_a=BAMClqZW0"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/github-and-anthropic-used-their-own-agents-for-major-rust-rewrites-with-very-different-playbooks-vadg1uged#faq","mainEntity":[{"@type":"Question","name":"How did GitHub rewrite the Copilot agent runtime from TypeScript to Rust using AI agents?","acceptedAnswer":{"@type":"Answer","text":"GitHub used its own Copilot app and Copilot CLI agents to rewrite over 800,000 lines of the Copilot agent runtime, previously built in TypeScript on Node.js and V8, into production Rust. The work was split into 128 incrementally merged pull requests over about 14.5 weeks, letting the team catch regressions while continuing to ship new features throughout the migration. Teams weighing a large-scale Rust migration can follow ongoing agent-driven rewrite case studies on daily.dev."}},{"@type":"Question","name":"How long did it take Anthropic's Bun team to rewrite Bun from Zig to Rust using Claude Code?","acceptedAnswer":{"@type":"Answer","text":"Bun founder Jarred Sumner used multiple parallel Claude Code agents to translate and check different parts of the codebase simultaneously, and eleven days after starting, the Rust version was passing Bun's existing tests on all six supported platforms. The rewrite covered 535,496 lines of Zig, a job Sumner estimated would otherwise have required a small team roughly a year. Developers comparing agent-driven rewrite speeds across Bun, GitHub, and OpenAI can track these results on daily.dev."}},{"@type":"Question","name":"Why did OpenAI rewrite its Habitat storage service from Python to Rust?","acceptedAnswer":{"@type":"Answer","text":"OpenAI rewrote Habitat, the storage service underlying ChatGPT and related products, from Python into Rust using Codex and GPT-5.5, with two engineers completing the work during the second quarter of 2026. The new Rust service already handles 95% of production requests while using six times less CPU and fifteen times less memory than the Python version, and OpenAI plans to deprecate the Python version within weeks. Engineers deciding whether Rust rewrites justify the switch can follow real performance numbers like these on daily.dev."}}]}
```

