- Theo Browne reportedly used AI agents to create TS Rust, a Rust-based rewrite of Microsoft's TypeScript compiler, type checker, and language server.
- The project is said to pass nearly all conformance tests and run about 2x faster than Microsoft's Go-based TypeScript v7 and roughly 12.5x faster than the older JavaScript-based v6.
- Reported costs range from $400,000 to $420,000 in earlier OpenAI token attempts, then about $20,000 to $24,000 with Claude Opus 5.5, with an effective figure near $500 through subscriptions.
- The larger claim is that Rust plus WebAssembly could let AI agents build and run inside V8 isolates instead of heavier virtual machines or Docker containers.
A developer and YouTuber known as Theo Browne has turned an unusual claim into one of the more debated stories in native developer tooling: he says an AI-agent workflow produced a working Rust version of Microsoft’s TypeScript compiler. The project, often called TS Rust, is not presented as an official Microsoft release, and Browne himself has said he did not read the generated code line by line. That combination of ambition, automation, and caveats is why the story has spread quickly.
The short version is that Browne allegedly began with OpenAI models and a very large token budget, hit a wall, then switched to Anthropic’s Claude Opus 5.5 and got a result. The claimed output includes the compiler, type checker, and language server, and it reportedly passed TypeScript conformance tests at close to full accuracy. The performance claims are striking, but they come from Browne’s own benchmarks and should be treated as reported results rather than independently verified facts.
From a failed OpenAI attempt to a two-week Claude run
Accounts of the experiment mostly agree on the broad arc. Browne first tried to use AI agents to move Microsoft’s TypeScript implementation from JavaScript to Rust. The OpenAI models involved are named differently across summaries, including GPT-5.6 Sol and GPT-6 Astra in some write-ups and similar model labels in others. After roughly $400,000 to $420,000 worth of API-equivalent tokens over about five months, the effort stalled near 84% compatibility. The last stretch proved much harder than the early progress.
When Anthropic released Claude Opus 5.5, Browne tried again. Reports say the successful run took about two weeks and consumed roughly $20,000 to $24,000 in inference at API-equivalent prices. Because he ran the work through multiple Claude Code subscription accounts, he has suggested the practical out-of-pocket cost was much lower, perhaps around $500 after subscription limits and a reset. Those numbers are accounting estimates, not audited invoices, and they depend on subscription terms that may not apply to everyone.
The final implementation was described as a drop-in replacement for TypeScript in the contexts Browne tested. It reportedly passed conformance tests with nearly 100% accuracy and covered the compiler, checker, and editor-facing language server. At the same time, Browne has been open that he did not personally inspect every line, which is a notable limitation for a project that aims to match a widely used toolchain.
What the performance claims actually compare
The headline speed figures place TS Rust against two baselines. The first is TypeScript v6, the older JavaScript-based compiler. The second is Microsoft’s Go-based TypeScript v7, also called TSGO. Browne’s reported numbers put TS Rust at about 12.5 times faster than v6 and about twice as fast as the Go version on projects such as tRPC, Sentry, Excalidraw, and his own T3 Code. Some summaries round the v6 improvement to 13x or more.
- TypeScript v6: JavaScript baseline, with TS Rust claimed around 12.5x faster.
- TSGO / TypeScript v7: Microsoft’s Go implementation, with TS Rust claimed around 2x faster.
- Test projects: tRPC, Sentry, Excalidraw, T3 Code, and the Effect codebase.
- Bun comparison: Bun’s Rust checker is said to be faster in some cases, but Browne still recommends Bun for maintainability.
Those claims need context. Browne’s benchmarks cover a limited set of repositories, and no independent benchmark suite has confirmed the exact multipliers. The more interesting technical point is not simply that Rust can be fast, but that the Go baseline was already a major step forward. TSGO replaced the JavaScript compiler and brought large gains, so beating it by a factor of two would be more than a minor optimization.
The second-order port and the bugs that came along
One of the strangest details is how the AI agent reached the result. Rather than translating the original JavaScript code directly into Rust, Claude reportedly ported Microsoft’s Go implementation into Rust. That meant the Rust project inherited months of Microsoft’s own performance tuning, but it also copied some existing defects. Browne said he only learned about this second-order strategy after someone else pointed it out, and that it explained why an early Rust build was slower than expected.
The port reportedly includes a go_std crate, a reimplementation of Go’s standard library in Rust, and a runtime.rs file with goroutine-like behavior moved into Rust. In a way, the project mirrors how Microsoft itself worked: Microsoft’s engineers moved TypeScript from JavaScript to Go and then refined it. Browne’s agents then moved the Go line to Rust. He has said a direct JavaScript-to-Rust translation would not have been viable.
The faithfulness cuts both ways. According to Browne, six issues were opened against TS Rust, and five of them were problems that already existed in the targeted TSGO version. Only one appeared specific to the Rust rewrite. That suggests the port was close enough to preserve behavior, including behavior that may not be desirable.
Why Go made sense for Microsoft, and why Rust matters for isolates
Browne has defended Microsoft’s choice of Go for its official TypeScript rewrite. Go offers strong concurrency primitives, a syntax that is relatively easy to read alongside JavaScript, and garbage collection that removes a large engineering burden. The usual worry about garbage-collection pauses matters less for a compiler that already takes seconds or minutes, because a rare slow request barely changes total runtime. Go is a reasonable fit for making a slow JavaScript-based tool faster and more concurrent.
Deployment changes the calculus. Bundling a Go application for WebAssembly is difficult because the garbage collector has to travel with the code, leading to larger bundles and less predictable performance. That matters for edge and isolate environments. TypeScript once ran anywhere JavaScript ran, including browsers, Node, and V8 isolates. The Go rewrite gave up some of that flexibility. Rust, which does not need a garbage collector, compiles to WebAssembly more cleanly, making it a better candidate for lightweight isolate deployments.
This is where the story shifts from compiler speed to infrastructure cost. Isolates have limitations: no normal file system, no native code execution, and no persistent servers. As Browne has put it, isolates are a fine place to run code after it is built, but not a natural place to build it. Tools such as Vercel’s Just Bash try to bridge that gap by giving agents a fake in-memory bash environment with simulated files and processes. If the TypeScript compiler can run inside that same isolate, the pretend environment can cover the full build loop.
Agents, V8, and the cost inversion argument
Browne’s larger case is that inference costs are falling fast while the compute that hosts agent workspaces is getting more expensive. He cites cost-efficiency data showing large drops in the price of a given model quality, with one estimate around 10x per year and some tiers falling even faster. At the same time, he argues that VM and RAM rental prices are rising by roughly 25% to 30% per year as AI demand consumes memory supply.
That leads to a prediction: the model call may stop being the expensive part of an agent run, and the virtual machine or container around the agent may become the bigger bill. Today, services like Cursor’s cloud threads are said to reserve full VMs with tens of gigabytes of RAM per thread, but those costs are hidden because inference dominates. If inference gets cheap enough, the economics reverse. Browne points to cheap models and says an hour of inference might cost only a few dollars, while the VM it runs on could soon cost more.
The architectural alternative is to place agents inside V8 isolates rather than full operating-system sandboxes. Cloudflare already uses V8 isolates to run many customers’ code in the same Linux instance, which can save hundreds of megabytes per environment. Traditional hosts put Docker at the application layer and run a full OS per tenant, which is why a Dockerized database costs far more than a browser tab. Browne’s demo reportedly ran an agent, type checking, compilation, and an app entirely inside a V8 isolate using under 260 MB of RAM and peaking near 4% CPU.
The idle-cost detail is important. An isolate that is waiting for tokens does not burn CPU, so it costs little beyond memory. A reserved VM bills whether or not the CPU is busy. Browne has said he told an agent to try running the demo on Cloudflare and expects it to work. That claim remains a demonstration and a direction, not a shipping product with broad third-party validation.
Bun, Effect, and the native tooling race
TS Rust is not alone. Bun’s bun check is another Rust rewrite of the TypeScript checker, and Browne says it is faster than TS Rust in many cases. He has also said he would recommend Bun for most users because he has more confidence that it will be maintained. The catch is fidelity. Browne reports that Bun’s checker produced incorrect errors on Sentry and tRPC and might not pass on the Effect codebase. TS Rust, by his account, worked faithfully on tRPC, T3 Code, and Effect.
Effect is a special case because it relies on TypeScript in demanding ways and ships its own patched fork of the compiler. Browne says he built that patch into TS Rust. On T3 Code, which depends on Effect, he claims TS Rust is around 4x faster than Bun end-to-end, not because bun check is slow, but because the Effect check has to run on top of it. Across the projects he tested, he reports a 13x-plus gain from TSC6 to TS Rust and usually about 2x over the Go version.
The wider pattern is a race to rewrite developer infrastructure in native languages, often with AI assistance. Microsoft reportedly spent around $120,000 in AI tokens to rewrite its Copilot runtime in Rust. Google, alongside its Gemini 4 Argon model, is said to be using agents to move large C and C++ codebases such as RE2, libgav1, and parts of Fuchsia’s Zircon kernel toward Rust. Multiple independent efforts are also targeting the TypeScript checker. The common thread is not only speed, but memory footprint, deployment shape, and the ability to run in constrained sandboxes.
What Browne says about the work itself
Browne has described the project as a deliberately unreasonable challenge, a way to test whether current models could do something widely considered impractical. He had not previously tried an Anthropic model on the task because it would burn usage too quickly, but Opus 5.5 was slow enough to try. After the result, he said he was running out of engineering ideas that feel too large for a model. He also framed the work as management rather than prompting: setting up environments, running audit threads, preventing parallel agents from colliding, granting SSH access to extra machines, restoring high-effort modes after crashes, and making OS-level changes after memory exhaustion affected systemd.
His final goal was reportedly to make the Rust build at least twice as fast as the Go build in every dimension, and he let it run for about two weeks. He has compared the role to managing a team rather than writing every line in the trenches. There is also a commercial side note: he mentioned a paid course called Mega Dev, aimed at employed developers, and said he would not personally pay for it but would expense it. That detail is minor, but it shows the episode sits inside a creator-and-tooling economy as much as a compiler project.
Open questions and unresolved caveats
Several central claims are difficult to verify. The $420,000 and $24,000 figures come from Browne’s own token accounting, and the roughly $500 effective cost depends on subscription limits, resets, and terms that may not generalize. The performance numbers, including 12.5x, 2x, 13x, and 4x, come from his benchmarks on a limited set of repositories. The assertion that Bun’s checker fails on Sentry or tRPC is his report, not a published result. That does not make the claims false; it means they need independent testing.
The strategic argument may be more durable than any single benchmark. If inference prices keep dropping by about 10x per year while RAM and VM prices rise by 25% to 30%, the economics of running agents in isolates rather than VMs will depend on that spread. Cloudflare’s platform already relies on isolate-level virtualization, and sandbox products from isolate-focused providers are still weaker than their core hosting because they run on different compute. That leaves room for tooling that lets agents build inside isolates instead of VMs. The Rust TypeScript compiler is one piece of that puzzle.
All told, the TS Rust story combines a bold AI-assisted rewrite, a complicated cost narrative, and a practical infrastructure argument. The compiler may never become the official TypeScript implementation, and Browne’s numbers still need outside verification. Even so, the experiment puts a spotlight on a real question: as model calls get cheaper, will the workspace around an agent become the main expense? If this shift happens, a memory-efficient TypeScript compiler that can run inside a WebAssembly isolate could matter well beyond benchmark bragging rights. The next step is for other developers to reproduce the build, test it on larger codebases, and see whether the claimed speed and compatibility hold up.
Contents
- 1 From a failed OpenAI attempt to a two-week Claude run
- 2 What the performance claims actually compare
- 3 The second-order port and the bugs that came along
- 4 Why Go made sense for Microsoft, and why Rust matters for isolates
- 5 Agents, V8, and the cost inversion argument
- 6 Bun, Effect, and the native tooling race
- 7 What Browne says about the work itself
- 8 Open questions and unresolved caveats
