Cloudflare takes over the compiler AI agents check their code with
Cloudflare has taken ownership of tsrs, a Rust port of Microsoft's TypeScript compiler that AI agents wrote almost unaided. The compiler earns nothing; the play is owning the toolchain agent-built software must pass through before it lands on Cloudflare's bill.
Richard Tang · 3 min read
Cloudflare+7.24% — Cloudflare, up 7.24 percent today has taken ownership of tsrs, a Rust rewrite of Microsoft's+0.62% — Microsoft, up 0.62 percent today TypeScript compiler that AI agents wrote almost unaided. The compiler itself will earn nothing. What it buys Cloudflare is control of the tool every coding agent must run before its work can ship, and a reason that work lands on Workers, the company's paid compute platform. 1
A compiler written by agents, for agents
The project began in late September at Owner.com, a restaurant-software firm whose 37,000-file TypeScript backend overwhelmed Microsoft's official Go-based compiler: 80 seconds and 19 GB of memory for one check, too much for many agents to run at once 1. Max Schwenk, who leads AI developer tools there, directed more than 20 subagents running on Claude Opus 5.5, Anthropic's$350B — Anthropic, private, latest valuation $350B AI model, and wrote no code himself 1. Typechecking in the company's CI now takes about seven seconds. 1
tsrs's claimed speedup far exceeds TypeScript 7.1's own gains, on different baselines
- Estimate
Data
| Value | Range | |
|---|---|---|
| tsrs vs TypeScript 7.0 (Cloudflare claim) (estimate) | 8 | — |
| tsrs vs Go nightly (founder measurement) (estimate) | 3.75 | 2.5–5.0 |
| TypeScript 7.1 beta vs 7.0 (Microsoft) (estimate) | 1.3 | 1.13–1.47 |
The numbers carry two different baselines, and the chart marks them. Cloudflare says tsrs checks types up to 8 times faster than TypeScript 7.0 with about 70% less memory at equal thread counts; against Microsoft's current Go development build, the founder's own measurements across open-source projects are 2.5 to 5 times faster. 2 Version 0.18 is experimental, and Cloudflare is explicit that tsrs must follow Microsoft's compiler wherever the two disagree. 2
Why the toolchain lands on Cloudflare's bill
The link this development moves is the sandbox. Rust compiles to WebAssembly without dragging a garbage collector along, so a full agent toolchain, typecheck included, fits inside the isolated environments Workers sells. Cloudflare says this directly: tsrs matters when agents run complete development toolchains on its platform. 2
Cloudflare's own engineering shows the economics already work internally. In a case study published with OpenAI this week, the company says its developers all use Codex, and that a four-person team rebuilt a postponed product in three days for $1,100 in tokens, work it estimates would have needed roughly ten times more developers. 3 That is what agent-scale typechecking exists to serve.
No tsrs revenue yet, at about 179 times earnings
It does not yet prove the external claim: no tsrs revenue exists, and shareholders fund the engineering. The stock closed at $297.58 on October 19, priced at about 179 times expected earnings, exactly the valuation our October 20 piece examined when it fell 15% on doubts that Cloudflare's 10-million-developer claim can be verified. 4
Two tests: billed usage on Workers, and the speed edge
Two tests decide whether this strengthens the platform story. First, whether agent toolchains running on Workers start showing up in paid usage, the number the whole model turns on. Second, whether tsrs's speed edge survives: Microsoft's TypeScript 7.1 beta already checks code 13% to 47% faster than 7.0, and Microsoft credits some of those gains to optimizations discovered in tsrs. 2
The project's own author supplies the risk framing: "A faster compiler that finds fewer errors is a broken compiler with good marketing." 1 The compiler is the cheap part. Converting it into billed compute is the work Cloudflare has now taken on, and it is the right work to own.
Get Platforms by email, free
The cloud, data and developer software AI is built on. In our daily email, every weekday.






