Skip to content
Innovation & Growth Talking point

Bun's creator says coding agents misjudge their own work, so he trusts older tests

Jarred Sumner says agents over- and under-rate their work, so he leans on checks they could not touch.

W
WebPulse Newsroom
AI-assisted · 2 min read
Share on X LinkedIn
Bun's creator says coding agents misjudge their own work, so he trusts older tests
In brief
  • Jarred Sumner of Bun said coding agents misjudge their own work in both directions. They can accept weak results and talk themselves out of good ideas.
  • He largely trusts tests that predate the project, because the agent could not have changed them. He also says to check that tests really catch bugs.

Jarred Sumner, creator of Bun, says coding agents misjudge their own work, and the error runs both ways. He made the point on the AI Engineer show. The episode title ties him to Anthropic. An agent can think weak results are good. It can also drop a strong idea too soon. His answer is to measure with checks the agent never had a chance to touch.

What was said

Sumner described a merge of several million lines. It gives Bun a compiler that prepares code ahead of time, not while the program runs. The show notes say the work was redone five times in about a month.

Claude sizes up each idea to judge if it is worth pursuing. Sumner said it is easy to convince yourself your measurements are good when they are not. Judging can also fail the other way. The agent sizes up an idea badly and talks itself out of it. In his words, "it tends to underestimate what it can do."

His team also used a JavaScript engine fuzzer. A fuzzer feeds odd inputs to code to find crashes. They extended it to check TypeScript types. His main safeguard was older tests. He called them "things that predated the project, so that way we know that the agent couldn't have messed with it."

He added a caution about the tests themselves. Check that they catch real problems, he said, because "it's really easy to fool yourself that it's finding bugs when it's not finding bugs."

An agent also posted an hourly scorecard to Slack. It showed previous and current numbers. Sumner said he leans on it to follow a huge project.

Why it matters

Our reading: when an agent says it succeeded, treat that as a claim, not proof. Anyone who approves or buys agent-written code should ask who did the measuring. They should also ask whether that check existed before the agent started.

A scorecard posted by the agent is only as good as the numbers behind it. A benchmark or fuzzer helps only if someone has seen it fail when a bug is present. The human job shifts from reading code to judging whether a measurement can be trusted. Teams with no older, independent test suite may have nothing to fall back on.

The other side

Sumner's method needs tests that predate the project. A new product may have none. He said the tests were, for the most part, not made up, which leaves room for exceptions. He also said he only "largely" trusts them.

He did not claim to have solved the judgment problem. He said Claude's way of sizing up ideas is still not right. Some dropped ideas deserve another try, and a sixth rewrite is possible. He also warned about the opposite failure. Without pressure to aim high, he said, models settle for small gains instead of big ones.

This is one builder describing one project. The talk gave no figure for how often agents misjudge their work. He also said the compiler is not faster in every case, such as code that leans on the interpreter.

Written by the WebPulse Newsroom with AI assistance, and checked by our editorial review: every quotation was verified against the recording's transcript. How we use AI.

The conversation this talking point comes from