One Clock, Many Clients
There's a clock on the table. Inside it is a tiny computer, a Raspberry Pi Pico W, running a web server. Send it a message and it chimes and scrolls your words across its LEDs for the whole room.
Your mission: work out how to talk to the clock, then build your own client for it.
There's no API doc. There's no download. There's an address on the whiteboard, and the clock will tell you the rest, if you listen.
The lesson: build against an API you don't control, from what the service itself tells you. Explore it, write down what you find, build your own stand-in for it, check the stand-in against the real thing, then build against the stand-in. That's how teams work with other people's services, and it keeps everyone's debugging off one very small computer.
1 — Set up
Make a new folder, clock-client, and open it in VS Code. Join the library Wi-Fi, so your
laptop can reach the clock.
Make two files:
findings.md, where everything you learn about the clock goes.CLAUDE.md, with aCLOCK_URLsetting holding the address on the whiteboard, and "readfindings.mdbefore calling the clock".
Claude doesn't know this clock either. findings.md is how it learns.
2 — Try something...
On a Mac, in Terminal:
curl http://<address on the whiteboard>/
On Windows, in PowerShell, type curl.exe, not curl, which runs a different command there:
curl.exe http://<address on the whiteboard>/
Or, on either, just ask the agent to make the request for you: it knows how on your machine. Read the reply, and follow where it leads.
3 — Discover
Work out how to send the clock a message, and discover everything else the clock can do. Then find the in-built limitations: what's too long, what it can't do, how many messages it'll take from you, what happens when it's busy.
Read every reply in full, every field and not only the ones you expect, and every error message. What the clock tells you can change as you use it...
You might want Claude to write it all down in findings.md: each address, what you send, what comes back, every error, and what caused it. These notes become the spec for everything after.
Explore respectfully! Everyone in the room is exploring the same clock, so play nice!
4 — Build your own mock clock
Ask Claude Code to build a pretend clock from your findings.md: a small server on your
laptop that answers like the real one, at http://localhost:8080. Messages can "scroll" in its
terminal.
Where your notes have gaps, the agent will fill them with guesses. That's fine for now. The next step is where you catch them.
5 — Check the mock against the real clock
Send the same requests to both and compare the replies. Every difference is a
misunderstanding. Fix the mock, or go back and find out what the clock really does, and
update findings.md.
6 — Spec and build your client
Remember to write a CLAUDE.md (and have Claude read it) so Claude knows what is expected.
Switch CLOCK_URL to your mock, and decide what to build. Some ideas if you're stuck:
- A page to post from, friendly enough for anyone in the room to use on their phone
- A moderator, a relay that checks each message with Jev before passing it on (others point their clients at you)
- A scheduler that posts something useful every so often: the next bus, the weather, a countdown to the end of the session
- A Claude Code hook that posts "TESTS PASSED" when your tests go green
- Something you found in step 3 that nobody else has thought to build for
Test it!
7 — Go live
When your client handles everything, switch CLOCK_URL to the real clock and use it. If the
real clock does something your mock doesn't, that's one more thing for findings.md.
Rules for tonight
- It's a shared screen. Keep messages friendly; the leader can skip and clear.
- Be gentle with it. It's a very small computer serving the whole room. Never ask it anything more than once every 2 seconds unless it tells you otherwise, and if it tells you to wait, wait.
- Web pages: run yours from your own laptop (
http://localhostor as a file). A page hosted on anhttpssite can't talk to a plainhttpaddress.