Jarred Sumner picks agent-built projects by whether their tests predate the agent
Jarred Sumner, creator of Bun, now at Anthropic, chose to build an ahead-of-time JavaScript compiler instead of rewriting Claude Code in Rust. The deciding factor was which project had an independent way to check the agent's work.
Watch from 2:07Recording by AI Engineer.
The idea
The speaker’s argument, in our words.Sumner's rule is that the way you verify a large agent-written project should drive which project you take on and how you build it. Bun's earlier Rust rewrite was tractable because Bun's tests are written in TypeScript and could run unchanged against both the old Zig and the new Rust implementations. Rewriting Claude Code in Rust would have meant porting its TypeScript tests too, and once the tests are rewritten alongside the code they can no longer be trusted. So the team made JavaScript itself faster instead, with an ahead-of-time (AOT) compiler inside Bun.
That project has checks the agent did not write: Bun's existing test suite, WebKit's tests, test262 and Claude Code's own tests, plus Bun's test runner running in AOT mode. It also allows differential testing. Run an application under the JIT, under AOT and with types stripped, and treat identical behaviour as evidence that the compiler works for that application. Agent-written code generators then fuzz further patterns. Sumner adds that the checks need checking too, because it is easy to believe a test or fuzzer is finding bugs when it is not.
What they found
From the talk. Figures are self-reported unless stated.The team decided not to rewrite Claude Code in Rust because its tests would have to be ported, unlike Bun, whose TypeScript tests ran against both the Zig and Rust versions.
Sumner's account of the decision. Bun had already been rewritten in Rust by the same team.
Case study
3:44The compiler is checked against Bun's test suite, WebKit's tests, test262 and Claude Code's tests, and Bun's own test runner can run in AOT mode.
Remaining failures are attributed to two intentional breaking changes, mostly to block prototype pollution.
Case study
7:09Running an application with the JIT, with AOT compilation and without types, and requiring identical behaviour, validates the compiler for that application; agent-written code generators then fuzz more patterns.
Agreement only shows correctness for the programs tested.
Technical recommendation
8:06Most tests were not made up for the project; they predate it, so the agent could not have altered them. The team extended a JavaScript engine fuzzer used by V8 to cover TypeScript types, and stresses checking that tests actually catch bugs.
The fuzzer's name is garbled in the transcript and is not given here.
Technical recommendation
17:06
Why it matters
Our reading. Not said in the talk.Agents can now produce changes far larger than anyone can review line by line. Whether such a change can ship depends on the quality and independence of the checks, so it is worth judging candidate projects on that before starting.
What one could try
- Before a large agent-driven rewrite, list the tests that would survive it unchanged; if most would need porting, reconsider the project.
- Look for a second execution path (old implementation, reference library, interpreter) to compare outputs against.
- Confirm that the test suite and fuzzers catch real bugs, for example by planting known ones.
Limitations
- One very experienced engineer's account of a compiler project, a domain with unusually good test suites.
- Performance results mentioned in the talk are self-reported and their scope is unclear in the transcript, so they are not used here.
- Sumner notes AOT is not always faster, for example with heavy use of eval or new Function.
Original sources
AI Engineer CODE Summit 2026 · Nov 12, 2026
Choose the project you can verify
Jarred Sumner · Anthropic · 22 min
This is our synthesis of the talk, checked against the transcript at the linked moments.


