Line 1, as first set: “Your coding agents write the code of your product.” Superseded, kept.
Your coding agents write the
codebook
of your product. You read it.
Galley is a book of your product's work that runs on your machine. As your agents build, they record why each piece of work began, what it will give, how it gets built, and what they could prove. You read it like a book and sign off at the gates.
Nobody reads every line an agent writes. So the control moves from the code to the record of the work, and to the few moments where only you can decide.
What you would have to read
Why
People export their lists to share them. Today an export can stop halfway and say nothing, so a shared list can be quietly short. This work makes an export finish whole or fail out loud.
What you read instead
Agents write. You read. You sign off.
Agents write
As they work, they record why the work began, what you'll get, how it gets built, and each decision with the options they turned down.
Under way
You read
Features and their stories, a diary of each day, and an inbox of only what waits on you.
Waits on you
You sign off
Approve a paper, answer a question, approve a promise. The work moves past the gate.
Approved
Export to CSV · Why
Waits on you
An export finishes whole, or says it failed
A shared list that is quietly short is worse than no list. The export writes rows as it reads them and checks the count at the end. If the counts differ, it stops and tells you which rows it missed.
One book per product.
Everything your agents did, in the order it happened, written for a person to read.
The Why, What you'll get and How it gets built1
Decisions, with the options they turned down4
Findings and open questions9
Promises, and the tests that prove them12
Commits and reviews18
Releases, and how to undo each one23
The diary27
Export to CSV · Open question
Waits on you
Should an export include archived items?
The agent recommends leaving them out, so a shared list shows what is current. It will not guess for you.
An agent's word is a claim. Proof is something else.
A promise is a plain sentence that must always stay true for your users. It shows as Claimed until a clean run, your own try or a second agent's witness proves it. The agent that wrote the code cannot vouch for it.
Export to CSV · Promise
Claimed by the agent that wrote it
An export never loses a row.
A clean run of its test, on a fresh copy
Your own try
A second agent's witness
Rows in 0Rows out 0
Nothing is edited. Nothing is deleted.
Every change is a new record. When a decision is replaced, the old one stays, with the reason it lost. What you just did is already here.
AgentBegan “Export to CSV”. Wrote its Why.
AgentDecided to write rows as they are read. Turned down building the file in memory: large lists would run out of room.
AgentProposed a promise: an export never loses a row.
AgentAsked whether archived items belong in an export.
It runs on your machine. The book stays there.
Galley is a website, a database and an MCP server, all on localhost. There is no account to make and no service of ours in the middle. Your agents write to it, you read it, and nothing about your product leaves the machine.
Your machine
The bookNext.js, on 127.0.0.1The storeClickHouse, append-onlyThe toolsMCP, one key per agentYour agentsClaude Code, Codex, any MCP client
Any agent that speaks MCP can write in the book.
The method your agents follow lives in the running Galley, not in your repositories. Each session starts by asking for it, so after one git pull every repository follows the new version.
agent → book_guide
galley ← # How we work in Galley
Galley is a book of the work on one product. Agents are its
authors. The editor reads it, answers in the inbox and signs
off at the gates. …
cd galley && pnpm install && pnpm galley:setup && pnpm dev
pnpm galley:adopt ../my-app --book my-app
Or hand it to your agent
Paste this into a session opened in your repository. It sets Galley up if it isn't running, or connects to the one that is.
Set this repository up with Galley, the local book where our work is planned, followed and proven. If Galley is already running, connect to it; if not, set it up. Ask me before you install anything, and stop to tell me if a step fails.
1. Check whether Galley answers at http://127.0.0.1:3300.
- If it answers, its checkout is named on the second line of ~/.config/galley/bin/galley. Use that checkout and go to step 3.
- If it does not answer and that file exists, start Galley in its checkout with `pnpm dev`, running in the background, and go to step 3.
2. Otherwise, set Galley up. Clone https://github.com/Imagineers-dev/galley.git into ~/galley, unless I name another folder. In it, run `pnpm install` and `pnpm galley:setup`. If setup says ClickHouse is not answering, show me the commands it prints and run them once I agree, then run `pnpm galley:setup` again. Start Galley with `pnpm dev` in the background. Tell me the passcode setup printed, and that I sign in with it at http://127.0.0.1:3300.
3. In the Galley checkout, run `pnpm galley:adopt <this repository's full path> --book <name> --agent <you>`. For <name>, use a short lower-case name for this project, with hyphens. For <you>, use claude, codex or whichever agent you are.
4. Connect yourself to Galley's MCP endpoint with the command adopt printed. If your tools need a new session to load, say so and stop here; I will start one and ask you to continue from step 5.
5. Call book_guide and follow the method it returns. Call book_contents. If the book is not listed, start it with book_start: give the product's title and one sentence on what it does for the people who use it. Then read the repository and add its main features with book_add_feature, each named as a noun for what it is.
6. Call book_pickup and tell me what it says. Commit the AGENTS.md and CLAUDE.md changes in one commit that says this project now uses Galley.
You need Node 22.18 or later, pnpm and ClickHouse. Setup tells you how to start ClickHouse if it isn't running.
Open source, under Apache 2.0.
Read the code, run it, change it. Updating is git pull, pnpm install and pnpm migrate, and your repositories need no change.