Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
docs(readme): tighten the quick start [I10,I12]
Corey Olsonc0162b03e8e1
diff --git a/README.md b/README.mdindex 3a3734f2..486f2351 100644--- a/README.md+++ b/README.md@@ -3,89 +3,42 @@ Website: [pullboard.dev](https://pullboard.dev)[](https://github.com/pullboard-dev/pullboard/actions/workflows/gate.yml)-**Vibe code a real product.** Your agents build from a spec you approved, in lanes that keep them out of each other's way, and nothing they build counts until a second agent verifies it.+Pullboard is a local-first work board for coding agents. You set the spec and house rules; agents build in separate lanes, and a second agent checks each submission before it counts. Start with `npm i -g pullboard`, then run `pullboard tour` and `pullboard init`.-Pullboard is a work board that lives in your git repo. Every requirement is a one-line row in `SPEC.md`. Agents claim work, build it in their own worktrees, and submit it at a commit with your tests passing. A different agent, from a different model family if you like, checks it against the bar that was frozen when the work started. You decide what to build, answer the questions, and watch it all on one page.--It runs locally: no account, nothing hosted, no dependencies. The board is one SQLite file inside `.git`. It works with Claude Code, Codex and any agent you can run from a shell, and it never calls a model.----## Why--Coding agents are fast, and on day one it feels like magic. Past a demo, the same things go wrong on every project:--- **It said done. It wasn't.** The test got weaker, the commit was never made, or the work skipped the hard case.-- **The agent forgot what you decided.** The plan lived in a chat that ended.-- **A fix broke something that worked.** Nobody ran the tests that would have caught it.-- **Two agents edited the same file.** Running more agents made it worse.--Pullboard gives your agents what a good team has: a shared plan, house rules, their own lanes, and someone who checks the work.--| | |-| --- | --- |-| **A spec they build against** | One row per requirement, with an id and a status. Only rows you approve are the contract; a guess stays a draft and a question waits for you. When an agent claims an item, its criterion and the rows it cites are frozen for that work. Commits cite the rows they serve. |-| **Rigor that runs itself** | Your house rules live in `PRACTICE.md`. Git hooks enforce them on every commit: commit messages cite real spec rows, nothing lands outside an agent's lane, and a deleted requirement is refused. Submit needs a clean tree and your test gate green at that commit. |-| **A team, not one agent** | Each agent works in its own worktree and lane. Claims are atomic, so two agents never take the same item, and an item can wait on another. Cheaper models take the simple items. |-| **Proof before it counts** | The builder can never verify its own work. A different agent checks out a tree that contains the submitted commit and records ACCEPT, with the proof it tried, or REJECT, with a reason. The verdict is bound to the submitted commit, and rejected work must come back changed. `pullboard ledger` prints the receipts. |--## Who asks whom--Questions go one step up. An agent asks its coordinator, who can answer or pass a decision to the person. The agent cannot bypass its coordinator; the person's answer comes back through the coordinator to the original asker.----## Built with itself--Pullboard is built with Pullboard. On 6 October 2026, one Claude agent made 17 changes to this CLI in 23 submissions. A Codex agent verified each one from its own worktree. It recorded 5 rejections, each with a counterexample anyone could rerun, and caught a sixth problem while that item's bar was being refrozen:+## Try it-- a suggested `cd` line sent agents to the wrong folder when a path held a `$`;-- the test-log digest lost its summary line when one failure line was very long;-- git settings from the environment leaked into the tour;-- a feature had no test that could fail;-- two messages that tell an agent what to do next were wrong in edge cases.+Install Pullboard and watch a complete build and review cycle in a throwaway repo.-All six were fixed before they merged. Before accepting each code change, the verifier tried to break it, usually by reverting the fix and watching its test fail. Here is one receipt from that day, with the board's agent ids (the builder, `coordinator`, was the Claude agent; the verifier, `tests-2`, a Codex agent) and the verifier's own words, abridged:+You need git and Node 22.13 or newer.+```sh+npm i -g pullboard # Node 22.13 or newer+pullboard tour # thirty seconds on a throwaway repo: a reject, the fix, the ledger```-#13 worktree prints a subagent's opening lines- criterion 5349dc84b0ab, frozen at claim built by coordinator, submitted 12f3640f8630-- REJECT BEHAVIOR_MISMATCH by tests-2- "...the generated prompt cd line double-quoted the token without shell- escaping it. With PULLBOARD_PATH_PROBE unset, copying the printed cd line- expanded the token away and exited 1 with no such directory."-- resubmitted 85f0f5d839c5- ACCEPT CRITERION_MET by tests-2- "...executes the printed cd line with a conflicting environment value, and- confirms it reaches the real target. Removing shell quoting and removing- apostrophe escaping each made the focused test fail."-```--As of 07:11 UTC on 7 October 2026, the board records 79 verified items, 79 accepted verdicts and 42 rejected verdicts. Run `pullboard status` to print the live totals.-## See every project at once+-`pullboard view` gives you a live board for your projects on this machine, with each item's state, decisions, shouts and review history. This screenshot comes from a disposable demo project rebuilt by `node docs/shots/demo.mjs`.+## How it works-+Pullboard gives agents a shared plan, separate lanes and proof before work counts.-## Try it+- **Spec.** Approved rows in `SPEC.md` are the contract. A claim freezes its criterion and cited rows.+- **House rules.** `PRACTICE.md` records how the team works. Hooks enforce checkable rules; they do not enforce every house rule.+- **Lanes.** Agents work in separate Git worktrees. Claims are atomic, and work can wait on another item.+- **Proof.** Submit needs a clean tree and a green gate. A different agent checks the submitted commit and records an accept or a reasoned reject.-You need git and Node 22.13 or newer.+-CI runs the gate on Linux with Node 22.13 and 24. On the maintainer's machine, the gate passes on macOS with Node 22.22 and 24. macOS will join CI once the repository is public. Windows has not yet been tested.+## Questions-```sh-npm i -g pullboard # Node 22.13 or newer-pullboard tour # thirty seconds on a throwaway repo: a reject, the fix, the ledger-```+Agents ask their coordinator, who can answer or pass a question to you; the reply returns to the original asker.-+## Start with an agent+Initialize Pullboard in your repo, commit its files, then start a fresh agent session there.+In your repo:@@ -95,18 +48,20 @@ pullboard initgit add -A && git commit -m "chore: set up pullboard"```-Then start a new Claude Code session in that folder, so it loads the skills init installed, and say what you want built, for example "use pullboard to build a notes app". The `pullboard-run` skill makes that session the coordinator. It writes the spec with you one question at a time, and only rows you approve get built. It proposes lanes and plans the items, starts a builder subagent in each lane's worktree and a verifier that built none of it, and merges only what was verified. Questions come back to you in the conversation.+Start a new Claude Code session in that folder and say what to build, such as “use pullboard to build a notes app.” The installed `pullboard-run` skill makes that agent the coordinator.++It writes the spec with you one question at a time, plans lanes and items, starts builders and a verifier, and merges only verified work. Questions come back through the coordinator.## Quick start-By hand, in your repo:+You can also define the spec and file work by hand from the main checkout, which is the coordinator.```shpullboard init # pullboard.json, SPEC.md, PRACTICE.md, AGENTS.md, git hooks, the boardgit add -A && git commit -m "chore: set up pullboard"```-`SPEC.md` starts with its sections and the row format. Write each requirement as a row under its section, and set your test command as the gate in `pullboard.json`:+`SPEC.md` starts with its sections and row format. Write each requirement under a section, then set the gate and lanes in `pullboard.json`:```markdown## G · Goals: what the client asked for@@ -124,22 +79,24 @@ git add -A && git commit -m "chore: set up pullboard"}```-Use `signers:` when a row needs one or more SSH principals to sign it. Each signer is a comma-separated principal:+Use `signers:` when a row needs one or more SSH principals. List each signer as a comma-separated principal, then run `pullboard spec signers add` to add your repo's signer:```markdown- R1 [approved, must] A release is tested. | gate: npm test- R2 [approved, must] A release is signed. | gate: npm test | signers: alice@workstation, bob@workstation```-Set up the repo's SSH signer with `pullboard spec signers add`.+```sh+pullboard spec signers add+```-Commit those, then file work from the main checkout, which is the coordinator:+Commit the spec and config, then file work from the coordinator checkout:```shpullboard add web "Upload page" --specs G1 --criterion "the same file uploaded twice is listed once"```-A builder gets its own worktree and claims the next item. The criterion freezes now:+A builder gets its own worktree and claims the next free item. The criterion freezes at the first claim:```shpullboard worktree web # makes ../<repo>-web-1, joined as web-1@@ -148,7 +105,7 @@ cd ../<repo>-web-1 && pullboard nextpullboard submit 1 # clean tree, gate green at HEAD```-A different agent verifies it. `next --verify` names the item, reserves its review for that agent for 30 minutes so no other verifier takes it, and prints the command that checks out its commit:+A different agent verifies the submitted commit. `next --verify` reserves the review for 30 minutes and prints the command to check out that commit:```shpullboard worktree review && cd ../<repo>-review-1@@ -156,82 +113,84 @@ pullboard next --verifygit switch --detach <the commit it names>```-Then one of:+Then accept with evidence or reject with a reason:```sh-pullboard verify 1 accept --note "uploaded twice: one row. Removed the dedupe: the test failed"+pullboard verify 1 accept --note "uploaded twice: one row. Removed the fix: the test failed"pullboard verify 1 reject --reason TEST_FAILURE --note "a 0-byte upload crashes the list"```-A reject reopens the item: the builder fixes it, commits, claims it again and submits the new commit.+A reject reopens the item. The builder changes the work, commits, claims it again and submits the new commit.## An item's life+The lifecycle lists each state, move, guard and refusal in one declaration.+-Every state, move, guard and refusal is declared once, in `src/machine.js`. The commands check it, the board file refuses any move it does not declare, and the help, [docs/lifecycle.md](docs/lifecycle.md), the view and this picture are drawn from it. Every way into `verified` passes the same guards, whatever command gets there. If you change the lifecycle, redraw the figures with `node docs/img/draw.mjs`; a test fails until you do.+Commands, the board, the view, [docs/lifecycle.md](docs/lifecycle.md) and this figure use `src/machine.js`. If you change the lifecycle, redraw the figures with `node docs/img/draw.mjs`; a test fails until they match.++## The board view-## See every project at once+`pullboard view` shows every project on this machine and refreshes as items and messages change.```shpullboard view```-`view` opens one page in your browser with every project on this machine. It shows items by state, what needs you, shouts between agents, your spec and practice rows, the agents, and recent activity, and it refreshes itself. From it you can add items, shout and hold a lane. A repo gets its board when you run `pullboard init` in it. It runs on 127.0.0.1 behind a secret link; nothing leaves your machine.+++From the page you can add items, send messages and hold a lane. The local view runs on 127.0.0.1 behind a secret link.## Working with agents-- **Claude Code.** Init installs the role guides as skills, and a session hook that runs `pullboard resume` whenever a session starts or compacts, so an agent picks up from the board.-- **Codex and every other agent.** The rules live in `AGENTS.md`. `pullboard prompt <role>` prints any role guide: decompose, plan, signoff, review, verify.-- **Teams of subagents.** `pullboard worktree` prints the opening lines for a subagent's prompt: its identity, its folder, and that the folder's rules govern.-- **Cheaper models.** Items route `light`, `mid` or `strong`. `pullboard run --agent-light "<any command>"` builds light items unattended, feeds each failure into the next attempt, submits what goes green for a second agent to verify, and escalates what stays red.--## Commands--Every command also supports a versioned JSON result; see the [CLI JSON API](docs/api.md).-`pullboard spec check --json` and `pullboard spec view --json` return machine-readable results with their shapes documented in the CLI JSON API.--| Command | What it does |-| --- | --- |-| `tour` | A reject and its rework on a throwaway repo. |-| `init`, `worktree <lane>`, `join <lane>` | Set up the repo; give an agent its own worktree in a lane. |-| `view` | Every project on this machine in your browser, live. |-| `resume` | Where you are: your claim, your branch against main, what came back, the next step. |-| `add`, `edit`, `list`, `show <id>` | File and read work. `show` names verified items that touched the same files. |-| `next [--wait <minutes>]`, `next --verify` | Claim the next free item nearest your recent files, or name the next one to verify. |-| `check [id]`, `submit <id>` | Run your item's check; submit at HEAD after the gate passes. |-| `verify <id> accept\|reject --note "..."` | A verdict from a tree that contains the submitted commit, by anyone but the builder. `--note-file` keeps quotes intact. |-| `shout`, `inbox` | Messages to a lane, an agent or everyone. |-| `hold <lane>`, `merged`, `withdraw`, `refreeze` | The coordinator's: pause a lane, record a merge, drop an item, re-freeze a bar. |-| `ledger`, `log` | Receipts. |-| `spec check\|view\|signoff` | Lint the spec, render it as one page, record a person's sign-off. |-| `run`, `sweep`, `escalate` | Unattended building for cheaper models; turn a linter's findings into items. |+These commands help an agent continue in the right worktree and take only available work.++- `pullboard worktree` creates a lane worktree and prints its opening instructions for a subagent.+- `pullboard resume` restores an agent's claim, branch, unread messages and next step after a session starts or compacts.+- `pullboard next` claims the next free item. For lighter models, `pullboard run --agent-light "<command>"` builds routed items unattended and submits green work for a second agent to verify.+- Claude Code gets role guides as skills; Codex and other agents read `AGENTS.md` or `pullboard prompt <role>`.++## Built with itself++On 6 October 2026, one Claude agent made 17 changes in 23 submissions; a Codex verifier recorded five rejections and found one more edge during a refreeze.## What lives where+The main checkout holds project rules; all worktrees share the board stored inside `.git`.+-| Path | What | In git? |+| Path | What it holds | In git? || --- | --- | --- |-| `SPEC.md`, `PRACTICE.md` | What to build, and the house rules for how, one row per id | yes |-| `pullboard.json` | The gate, lanes and commit rules | yes |-| `AGENTS.md`, `.claude/` | How agents work here: rules, role guides, the session hook | yes |-| `.githooks/` | pre-commit, commit-msg and pre-push | yes |-| `.git/pullboard/board.sqlite` | The board: items, claims, verdicts, shouts, events | no, it lives inside `.git` |-| `~/.pullboard/projects.json` | The projects `view` shows | no |+| `SPEC.md`, `PRACTICE.md` | Requirements and working rules | yes |+| `pullboard.json`, `AGENTS.md`, `.claude/` | Gate, lanes and agent instructions | yes |+| `.githooks/` | Commit and push checks | yes |+| `.git/pullboard/board.sqlite` | Items, claims, verdicts, messages and events | no; inside `.git` |+| `~/.pullboard/projects.json` | Projects shown by `view` | no; in your home folder |++Submitted commits are pinned under `refs/pullboard/items`, so work survives a deleted worktree. Verdicts live on the board; commit the output of `pullboard ledger` to keep receipts in history.++## Limits and what's next++Pullboard is local-first; the optional relay mirrors sealed board records without sending source files.-Submitted commits are pinned under `refs/pullboard/items`, so the work survives a deleted worktree. Verdicts live on the board; commit the output of `pullboard ledger` to keep the receipts in history.+- Worktree identity is useful on one machine, not a security boundary.+- Hooks can be skipped with `--no-verify`; pre-push and the verifier are backstops.+- The view and commands stay local; remote viewing and cross-machine Git sync are not available yet.+- GitHub Actions runs the gate on Linux with Node 22.13 and 24, and on macOS when the repository is public. Windows is not tested.-## Limits, stated+## Docs-- **Identity is the worktree.** On one machine that keeps honest agents honest; it is not a security boundary.-- **Hooks can be skipped** with `--no-verify`. Pre-push and the verifier are the backstop.-- **Verification costs a second agent's time.** The trade is a defect caught before merge instead of after it.+Use these pages when you need more detail than this quick guide.-## Today and next+- [CLI JSON API](docs/api.md)+- [Stored formats](docs/formats.md)+- [Lifecycle](docs/lifecycle.md)+- [RFCs](docs/rfcs/README.md)-Today the board lives in your repo's `.git` on one machine. Coming next: one board across machines through the repo's own git remote, and an opt-in pullboard.dev relay to see and run the board from anywhere. Neither is available yet.+`pullboard spec check --json` and `pullboard spec view --json` return machine-readable results documented in the CLI JSON API.## License-MIT. Copyright 2026 Corey Olson.+Pullboard is MIT licensed. Copyright 2026 Corey Olson.diff --git a/test/readme.test.js b/test/readme.test.jsindex 12407ebd..0b207f5c 100644--- a/test/readme.test.js+++ b/test/readme.test.js@@ -13,11 +13,20 @@ import { MACHINE } from '../src/machine.js';const ROOT = resolve(import.meta.dirname, '..');const README = readFileSync(join(ROOT, 'README.md'), 'utf8');const drawn = Object.keys(FIGURES).map((name) => `docs/img/${name}.svg`).sort();+const SHOT_FIGURES = [+ { path: 'docs/shots/tour.svg', alt: 'The timed Pullboard tour shows a change submitted, rejected for a missed edge, fixed and accepted.' },+ { path: 'docs/shots/desktop.png', alt: "The Pullboard board shows open, claimed, submitted and accepted work, with a pending decision and the accepted item's review history." },+];/** Average glyph width, in ems, generous enough for the widest system font each figure may get. */const EM = { sans: 0.56, mono: 0.62 };const SIZE = { head: 14, t1: 14, t2: 12, label: 12, aside: 12, code: 11.5 };+/** Count reader-facing words, ignoring Markdown punctuation. */+function wordCount(text) {+ return text.match(/[\p{L}\p{N}]+(?:['’.-][\p{L}\p{N}]+)*/gu)?.length ?? 0;+}+test('README links the official site directly under its title [I12]', () => {const firstTenLines = README.split(/\r?\n/).slice(0, 10);assert.equal(firstTenLines[0], '# Pullboard');@@ -61,6 +70,7 @@ test('the README links every figure draw.mjs draws, each committed exactly as drconst links = [...README.matchAll(/!\[([^\]]*)\]\((docs\/img\/[^)\s]+)\)/g)].map(([, alt, path]) => ({ alt, path }));assert.deepEqual(links.map((link) => link.path).sort(), drawn, 'the README links each drawn figure once, and nothing else under docs/img');for (const { alt, path } of links) assert.ok(alt.trim().length >= 40, `${path} has alt text that says what it shows`);+ for (const { alt, path } of SHOT_FIGURES) assert.ok(README.includes(``), `${path} and its alt text remain in the README`);const committed = readdirSync(join(ROOT, 'docs', 'img')).filter((file) => file.endsWith('.svg')).map((file) => `docs/img/${file}`).sort();assert.deepEqual(committed, drawn, 'docs/img holds exactly the figures draw.mjs draws');for (const [name, draw] of Object.entries(FIGURES)) {@@ -114,3 +124,59 @@ test('README shows the signers field and setup command [S18]', () => {assert.match(README, /```markdown\n- R1 \[approved, must\] A release is tested\. \| gate: npm test\n- R2 \[approved, must\] A release is signed\. \| gate: npm test \| signers: alice@workstation, bob@workstation\n```/);assert.match(README, /`pullboard spec signers add`/);});++test('README is concise and skimmable without removing its instructions or figures [I10,I12]', () => {+ const lines = README.split(/\r?\n/u);+ let insideFence = false;+ const proseLines = lines.map((line) => {+ if (line.startsWith('```')) {+ insideFence = !insideFence;+ return '';+ }+ return insideFence ? '' : line;+ });+ const firstSection = proseLines.findIndex((line) => /^##\s/u.test(line));+ assert.ok(firstSection > 0, 'the README has a section after its lead');+ assert.ok(wordCount(proseLines.slice(0, firstSection).join(' ')) <= 80, 'the lead is at most 80 words');++ const headings = proseLines.filter((line) => /^#{1,6}\s/u.test(line)).map((line) => line.replace(/^#{1,6}\s+/u, '').trim().toLocaleLowerCase());+ assert.equal(new Set(headings).size, headings.length, 'headings are unique');++ for (let index = 0; index < proseLines.length; index += 1) {+ if (!/^##\s/u.test(proseLines[index])) continue;+ let next = index + 1;+ while (next < proseLines.length && !proseLines[next].trim()) next += 1;+ assert.ok(next < proseLines.length, `${proseLines[index]} has an opening sentence`);+ assert.match(proseLines[next], /[.!?]$/u, `${proseLines[index]} opens with its point`);+ assert.doesNotMatch(proseLines[next], /^(?:!\[|\||```)/u, `${proseLines[index]} opens with prose`);+ }++ const paragraphs = [];+ let paragraph = [];+ let inCode = false;+ const flush = () => {+ if (paragraph.length) paragraphs.push(paragraph.join(' '));+ paragraph = [];+ };+ for (const line of lines) {+ if (line.startsWith('```')) {+ flush();+ inCode = !inCode;+ } else if (inCode || !line.trim() || /^#{1,6}\s|^!\[|^\|/u.test(line)) {+ flush();+ } else if (/^\s*[-*]\s/u.test(line)) {+ flush();+ paragraphs.push(line.replace(/^\s*[-*]\s+/u, ''));+ } else {+ paragraph.push(line);+ }+ }+ flush();+ for (const text of paragraphs) assert.ok(wordCount(text) <= 60, `paragraph has ${wordCount(text)} words: ${text}`);++ for (let index = 0; index < proseLines.length - 1; index += 1) {+ if (!/^\|/u.test(proseLines[index]) || !/^\|\s*:?-{3,}/u.test(proseLines[index + 1])) continue;+ const cells = proseLines[index].replace(/^\||\|$/gu, '').split('|').map((cell) => cell.trim());+ assert.ok(cells.length > 0 && cells.every(Boolean), 'tables have no empty header cells');+ }+});