Skip to content
TriedPrompts

More in Home, Repairs & Tech Help.

Find a mystery beeping device in a room full of boxes by triangulating sound with Claude Code

Simon Willison's Claude Code app turned spare devices into listeners and located a beeping carbon monoxide detector in a box room.

Result: WorkedTool: Claude CodeLevel: AdvancedSetup: Needs Python

Copy the prompt

Outcome

Something in Simon Willison's box room, still full of boxes from a move, started beeping every so often, too rarely to track down by ear. Willison had Claude Code build Beep Locator, a Python web app that turns spare devices into listeners through the browser microphone, and set up two iPads, a phone, a MacBook Pro and a Surface around the room. While writing up the problem, Claude found and read a research paper on measuring distance between ordinary devices with sound. Having the devices locate each other by sound didn't work well, so a rough mode let Willison drag them to approximate spots on a map, and replay and 'this is the mystery beep' buttons followed as feature requests. The system placed the beep within about 40 centimeters, and in that pile of boxes Willison found an old carbon monoxide detector that needed new batteries.

Evidence: Described by posterThe person describes what happened in words, without screenshots or video.

WorkedEvidence: Described by posterPosted Last checked

Level: Advanced. You need: A tool that takes actions for you or writes code, connected accounts, or some setup on your computer.

How to use this

  1. Tap Copy prompt.
  2. Open the tool the case used (or a similar one) and paste the prompt; results may differ from the original.
  3. Paste it into the message box.
  4. Send it, then read the answer before acting on it.
New to this? What's a prompt?

A prompt is the message you send to the AI tool. Copy the one on this page, put your own details where it asks, and read the answer before you act on it.

Prompt

Original prompt

The prompt as the person shared it in the source.

What the prompt labels mean

These are the person's own words, as shared in the source.

Write out a problem.md file describing the problem we want to solve
There is a device beeping in a room and I cannot find it
I want to set up several devices - laptops, phones, iPads - around the room all listening at the same time and have them help triangulate where the beep comes from
There needs to be a Python web app which coordinates it all - one device shows a web page for the app, other devices join a URL which turns them into listeners - all via browser WebAudio and WebSockets back to the Python server app
Ideally I wouldn't need to manually input the relative locations of the devices - it would be amazing if they could play sounds to each other in order to locate each other in 2D space - is that even possible though?

Try this in:

Sends the Original prompt shown above. ChatGPT and Grok open with it filled in, and ChatGPT may send it straight away. Gemini and Claude open empty, so we copy the prompt for you to paste. Every button also copies it.

The source used Claude Code, which can take actions on your computer or in a browser. These are general chat tools, so results may differ, and a normal chat may only give you a plan.

Opens in a new tab. We don't see what you send.

These links are only a shortcut. We're not affiliated with OpenAI, Google, Anthropic or xAI, and your results may not match the source.

Optional stronger version

Our rewrite with extra checks. The poster didn't test it.

Before you start, ask me 1–3 short questions about the details below and wait for my answers. Once I've answered, confirm the plan in one line and run the whole task start to finish.

Goal: Locate an intermittent beep in a cluttered room using spare phones, tablets and laptops as listeners.

Questions to ask me first:
- How many devices can you spare, and what kinds?
- How big is the room?
- How often does the beep happen?

Inputs (fill in or confirm):
- Devices: [LIST]
- Room: [SIZE, LAYOUT]
- Beep: [HOW OFTEN, HOW LOUD]
- Computer to run the server: [LAPTOP]

Rules:
- Write a problem.md describing the approach before coding.
- Use a small Python web app; other devices join by URL as listeners.
- Let me place devices on a map by hand if automatic positioning fails.
- Record each heard beep so I can replay it.

Checkpoint: Test with a clap before waiting for the real beep.

If you get stuck: If positioning by sound is unreliable, fall back to manual placement.

Verify before you finish: Check that the estimated spot matches a test sound played at a known spot.

Output: A running app, setup steps and a map showing where the beep came from.

Done when: I know which part of the room to search.

AI tool

Claude Code

Source

Posted
by Simon Willison
Last checked
Method:
How we verify

https://simonwillison.net/2026/Nov/9/mysterious-beeps/

Context: Blog post; date from the post. The prompt is the first of several quoted in the post.

Tell us how it went A reader message. It is not published on this page, and it is not a test of the prompt.

More in Home, Repairs & Tech Help

More in PersonalRandom case in Personal