← AUTOMATER NEWSROOM

What Simon Willison’s Beep Locator teaches about testing agent-written software

In a Nov. 29 podcast, Simon Willison revisited a Claude Code project that found a hidden beep. Its clap tests and audio replay show how engineers can verify an agent-built tool against evidence they control.

Two illustrated checks for Beep Locator. A known clap position is compared with a map estimate, and a recorded sound is replayed so a person can confirm the target beep.Two illustrated checks for Beep Locator. A known clap position is compared with a map estimate, and a recorded sound is replayed so a person can confirm the target beep.
Beep Locator gave Willison two ways to check its output. Claps from known spots tested location estimates, and replay let him identify the recorded sound. The positions are schematic.

Before trusting a map that claimed to locate a mysterious beep, Simon Willison stood in spots he knew and clapped. Claude Code had built Beep Locator to estimate where an intermittent sound came from using several devices scattered around a room. Clapping gave Willison a sound whose location he could check for himself. Replaying clips from the listening devices answered a second question. Had the software picked up the beep he actually cared about? Willison’s Beep Locator write-up

Willison revisited the project on the Nov. 29 episode of Lenny’s Podcast, where he argued that engineers still have to decide what to build and which properties matter when coding agents do much of the implementation. The locator makes that argument concrete for teams delegating internal tools to agents. The engineer can supply evidence from outside the implementation, choose what the software needs to expose for review, and decide whether the observed behavior is good enough for the job. Lenny Rachitsky’s episode page · Willison’s episode notes

Simon Willison’s weblog post titled Lenny’s Podcast: Coding is solved—now what do we do?
Simon Willison’s Weblog introduces his Nov. 29 appearance on Lenny’s Podcast. · Original source

Two checks for one map pin

Willison’s Nov. 9 write-up describes a setup that needed some help before the testing could begin. The devices played sounds to estimate their positions, but the initial results were poor enough that he added a rough mode. He could drag the device icons to approximate locations and let the software refine the positions from there. With clapping mode, he could then make a sound at a known spot and see where the app placed a diamond. Timestamps helped him match the event he had just made to the corresponding marker. Willison’s Beep Locator write-up

A plausible position still left open which sound the tool had detected. The app logged events and could replay the recordings from each device in sequence. Willison could listen, identify the mystery beep and explicitly label it. Once he had confirmed the signal, the software could look for more occurrences and combine their estimated locations. Willison reported that it pointed him to within about 40 centimeters of the source in that room. He searched the indicated pile of boxes and found an old carbon monoxide detector that needed new batteries. The distance is his reported result for that search. Willison’s Beep Locator write-up

Give the reviewer a known input and something to inspect

On the podcast, Willison describes building and testing as a loop that an agent can run when it has a clear goal and the right tools. For a team adopting that workflow, the Beep Locator example suggests a division of work. Give the agent cases it can rerun while it develops the tool. Have the reviewer establish the expected results from a separate record or observation and check the final output against those expectations. Give the reviewer a way to inspect the input that produced any surprising result. Real Alpha’s episode transcript

For example, suppose an agent builds a tool that matches supplier invoices to purchase orders. A reviewer could prepare three cases from documents they have already checked and ask the agent to make the tool show which fields produced each decision. Agree on the expected behavior before running the tool, including when it should leave a case for a person.

Review case Expected behavior Evidence to inspect
One eligible purchase order with matching supplier, order number and total Match the invoice to that order The fields from both records and the selected order ID
Same order number and total but a different supplier Leave the invoice unmatched The two supplier identifiers and the reason for leaving it unmatched
Missing order number and two orders with the same supplier and total Flag the invoice for manual review Both candidate orders and the field that is missing

Keep one additional case for acceptance review, such as a correctly numbered invoice with a partial delivery, and record the expected outcome according to your team’s rules. Run it with those expectations fixed. If the result is wrong, record the input, the expected decision and the actual decision before asking for a change. That gives the agent a specific failure to investigate and gives the reviewer a case to rerun after the fix.

For another example of checking an output against its underlying evidence, see Automater’s guide to verifying Datasette charts against their SQL.

Sources

  1. Lenny's Podcast: Coding is solved—now what do we do? - Simon Willison
  2. Coding is solved—now what do we do? | Simon Willison
  3. Locating the source of a mysterious beep with Claude
  4. Coding is solved: Now what do we… · Simon Willison · Transcript