Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Browser Claude and Claude Code

I work with two sessions of the same model, and they have different jobs.

Browser Claude is the conversation in a web browser. It has no access to my files and can’t run anything. That’s where I think a problem through, argue about it, and write the spec.

Claude Code runs in my development environment. It can read and change the files, run the build and the tests, and keep the project’s history. It writes the code and manages the project, from the spec that Browser Claude and I have written and approved.

But Claude Code doesn’t have to follow that spec when it finds things in test.

Roles, not models

Both are the same model. What makes them different is what each one has in front of it and what it’s allowed to do.

The browser session can’t see the code, so it thinks about the problem instead of the code. It’s the right place for the interrogator, asking what’s missing, and for the spec partner, helping write it down.

The development session can see the code and run it, so it finds out what’s actually true. It’s the right place for the builder. A fresh session on either side can be the reviewer, as long as it wasn’t the one that wrote what it’s reviewing.

The roles are the point. Any model you trust can fill them. Keep the roles separate and give each one only what it needs.

The spec is blessed, not sacred

The spec is written before anything runs. Tests are checked against what actually happens. When the two disagree, what actually happened is evidence, and the builder is allowed to follow it, visibly.

jemage has a file of tests that shows the split. Its header says the tests were written without a toolchain to hand, so nobody could run them, and that the first run should be treated as a check on the predictions. Any test that failed on the first run meant the prediction was wrong, and the actual behaviour was the thing to record. One session predicted; the other found out.

A deviation is only safe if it’s visible. When the builder departs from the spec, it says so in plain words, in the commit message and to me. If the deviation stands, it goes back into the spec, so the next session builds from the corrected page and not from a spec that the code no longer matches.

The handoff

What passes between the two sessions should be files, not chat. The spec lives as markdown in the repository, and the builder reads it from there.

Pasting a chat reply across brings the conversation with it. A reply once pasted whole into a chapter of this book arrived complete with “Want me to fold this in?” at the bottom. In a spec, the leftover conversation is harder to spot, and the builder may treat it as a requirement.

What each one needs

The browser session needs the purpose, the people’s answers, and room to argue. It doesn’t need the code.

The development session needs the blessed spec, the tests, clear limits on what it may do without asking, and a place to record what it changed and why. Commit messages are that place.

In short

One session thinks, one session builds. The spec passes between them as a file, and when the build proves the spec wrong, the spec gets fixed.

Divider: the gate at dawn. A thin horizontal band with a small pointed gold gate at the centre and a sun showing through it, flanked by two eight-point stars. On each side a band of interlaced gold strapwork in the Islamic girih style, on a Penrose tiling, fades out toward the ends.