Simon Willison used Claude Code to build a multi-device acoustic locator that found a beeping carbon monoxide detector
A storage room in the author's home, filled with moving boxes, began emitting an intermittent beep a few weeks earlier. The gap between beeps was too long to judge direction while standing in the room, and he did not want to dig through every box. So he had several devices in the room listen at once and used the differences in when the sound reached each device to work backwards to the source.
A storage room in the author's home, filled with moving boxes, began emitting an intermittent beep a few weeks earlier. The gap between beeps was too long to judge direction while standing in the room, and he did not want to dig through every box. So he had several devices in the room listen at once and used the differences in when the sound reached each device to work backwards to the source.
He had Claude Code build Beep Locator from scratch: a Python server coordinates, while phones, tablets and laptops open a link in the browser to become "listeners", connecting back to the server over WebSocket and requesting microphone permission. Each device keeps a rolling buffer of about 60 seconds of audio, detects suspected beeps locally using a fast Fourier transform (which splits sound into frequency components) plus a high-pass filter, and reports events to the server. The key to locating is time alignment: the server has one device play a short chirp, then has all listeners upload about 1.4 seconds of recording around the beep, and uses the chirp to align the recordings so it can compare when the beep reached each device. The idea came from a 2007 paper, BeepBeep, that Claude found during its research phase; the paper achieved high-precision ranging using speakers, microphones and communication between devices. Having devices emit sounds at each other to estimate their positions automatically did not work well, so the author added a "rough mode": he drags device icons to approximate positions by hand and the sound data fine-tunes them. He also added a clap test mode, marking different symbols on the map, to first verify the system really can locate a sound; once the beep's frequency was confirmed, the system kept listening on that frequency, measured the intervals, and combined multiple fixes to pin down the most likely location. The final result was off by about 40 centimetres, and he dug a nearly flat carbon monoxide detector out of the pile of boxes. The most notable engineering detail is hot reloading: the listeners include a module that can receive and execute new code over WebSocket, because some devices require microphone permission again on every page refresh; this let him set the devices up and walk away while Claude kept changing code, reading logs and experimenting. The author calls this "giving Claude Code ears" — the model has no audio input itself, but it can write code to capture and analyse sound.
The author's experience suggests coding agents often lack not reasoning ability but sensory channels; wiring up "senses" with off-the-shelf means such as a server plus browser microphones, and pairing that with hot reloading so the agent can iterate on its own, can solve real-world problems that require repeated trial and error. For people building agent products, the priority is designing interfaces that let models observe and intervene in the real environment, not just building stronger models.