Skip to content
AI Learning Ground Start learning

News ·

Locating the source of a mysterious beep with Claude

Simon Willison used Claude Code to build Beep Locator, a system that triangulates an intermittent beep in his house using multiple browser-connected listening devices, pinpointing the source to within about 40cm.

Locating the source of a mysterious beep with Claude
Image: Simon Willison

Frustrated by an intermittent beep coming from a room full of unpacked boxes, Simon Willison had Claude Code build Beep Locator, a Python web server that coordinates multiple devices—two iPads, a phone, a MacBook Pro and a Surface Ultra—as listeners, connected via a QR code or URL. Devices first estimate their own locations by playing sounds to each other, supplemented by a "Rough mode" where you drag device icons to approximate positions.

When listening, each device records a 60-second audio buffer and runs a beep detector using Fast Fourier Transform and a high-pass filter, reporting events over WebSockets. On detection, the device with the lowest round-trip time plays a chirp so all listeners can align their clips, which the server uses to triangulate. Detected sounds appear as Xs on a map and can be replayed from each device to confirm the mystery beep; a clapping mode helped validate accuracy. The system located the beep to within about 40cm, leading to an old carbon monoxide detector needing new batteries.

Claude found and applied the 2007 BeepBeep paper on acoustic ranging with commodity devices. Willison started with Claude Code Cloud on his iPhone using Opus 5.5, then continued on his laptop with Fable 5.2, making live changes via an installModule() method Opus had built that pushes new code to listeners over WebSockets. For builders, it's a concrete example of agentic coding: research a paper, scaffold a system from a problem.md prompt, and iterate on running software with live hot-patching across clients.

References

Read the full story at Simon Willison ↗Like, save or discuss on Buzz

#tooling #prompting