An AI-Written TypeScript Compiler Claims 181,711 Passing Tests. What Does That Prove?
The ts-rust project reports a $24,047 AI rewrite and a huge passing test suite. The cost history, compiler versions and benchmark baselines deserve a closer look.

A compiler is an unforgiving place to test an AI coding agent. A small mistake can turn correct code into a build failure—or let a real problem slip through. That makes ts-rust, an experimental Rust port of TypeScript’s compiler, a more interesting story than another impressive-looking app demo.
The project reports 181,711 passing ported tests. Its maintainer puts the successful AI run at roughly $24,047, following an earlier attempt exceeding $400,000 in API-priced tokens. Those figures come from the project’s own account, not an independent audit.
What is ts-rust, in plain English?
TypeScript helps developers catch mismatches in their code before running it. If a function expects a number and receives text, the checker can flag the disagreement. A compiler also translates code into a form that other tools can execute. Preserving that behavior across a rewrite is a demanding engineering task.
There is an important piece of context: Microsoft already released a native, Go-based TypeScript 7 on July 8. Its official announcement describes a faithful port designed to retain the original compiler’s behavior while improving speed. This independent Rust project is another implementation of that existing toolchain, not a new programming language or a Microsoft product launch.
The $24,047 figure is only one part of the story
The maintainer attributes the successful rewrite to Claude Opus 5.5 over two weeks, after a longer attempt with OpenAI models. The account mixes API-equivalent token pricing with subscription usage. It should not be read as a verified cash invoice—or the cost of the whole experiment.
For a team considering a similar project, the useful question is broader: what would it cost to repeat the result? That includes failed runs, setup, review, debugging and ongoing maintenance. A successful final attempt cannot tell you how many unsuccessful attempts another team might need.
This is also why a single project cannot settle which coding model is best. The task, instructions, tools and stopping criteria all matter. Without a controlled comparison, treating a project diary as a model leaderboard would give the numbers more authority than they deserve.
Passing tests is evidence, not a universal guarantee
A large inherited test suite gives a port a concrete target. Instead of asking whether generated code looks plausible, developers can compare its answers with a reference implementation.
But a test count measures cases covered by that suite. It does not mean the compiler has successfully built the same number of production applications. Nor does it establish that every editor integration, unusual configuration or future change will work.
The upstream tracking document identifies a September 29 TypeScript 7.1 development revision as the compatibility reference. It specifically points comparisons toward typescript@7.1.0-dev.20260929.1. That detail matters: comparing two different language versions can produce different error messages even when neither implementation is broken.
Read the speed claim with its baseline attached
The README’s six-application benchmark reports a 1.61× geometric-mean speedup over TypeScript 7.0.2, versus 11.4× over TypeScript 6.0.3. It used an M4 Pro and full checks with incremental mode disabled. These are project-reported measurements; the compatibility target above is a different version.
For developers, faster checking can shorten the pause between making a change and finding out whether it is valid. That is valuable. But a full-check benchmark does not directly measure how responsive your editor will feel during an afternoon of small edits, or how much faster an entire deployment will become.
If type checking accounts for only a small part of your build, accelerating it will save only a small part of the total wait. Measure the bottleneck you actually have before changing tools to chase a multiplier.
What developers should check before switching
The maintainer says they have not read the code; the README also labels its technical section as AI-written and lists known problems. That makes independent reproduction especially valuable.
- Compare the same language revision. Keep compiler versions, settings and input files recorded so a difference can be investigated.
- Check correctness before speed. Compare diagnostics and any generated output that your build relies on. A faster run that skips required work is not a win.
- Try the workflow you use. Test your project references, editor actions and repeat builds in an isolated branch before changing the shared toolchain.
- Keep a rollback path. Preserve the existing compiler and lockfile so an experiment does not interrupt other developers.
If you are still learning, our guide to learning to code with AI explains how to use generated code while keeping responsibility for checking it.
The interesting possibility here is not that review has become unnecessary. It is that an existing implementation and a rich set of tests can give AI agents a precise engineering target. Whether that produces a dependable everyday compiler is the next question—and one users can help answer with reproducible results.
Reporting note: The Bot Post reviewed the project documentation and Microsoft’s release announcement on October 8, 2026. We did not run this compiler or independently verify its test totals, spending or performance. Project claims refer to the documentation available at review time.
About the author
UbedullaFounder & Editor
Founder and editor of The Bot Post, covering AI news and technology.


