Skip to content

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.

feat(init): guide new boards for people and agents [I9,I1]

Corey Olson85d1972112d6
diff --git a/src/cli.js b/src/cli.js
index cd291221..b646b7da 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -1278,8 +1278,7 @@ function setupCommands(io, { first, values }) {
const staging = notes.at(-1)?.startsWith('git add -f -- ') ? notes.at(-1) : null;
(staging ? notes.slice(0, -1) : notes).forEach((note) => io.say(note));
if (await registerProjectAndLink(info.root, new Date(), loadConfig(info.root), io)) io.say('registered this project on this machine, so pullboard view lists it');
- io.say('next: write SPEC.md rows, declare lanes in pullboard.json, then: pullboard add <lane> <title>');
- io.say('with an agent: start a new Claude Code session here, which loads the pullboard skills, then tell it what to build; the pullboard-run skill runs the team');
+ io.say('Next: ask your agent to set up Pullboard here');
if (staging) io.say(staging);
return 0;
},
diff --git a/src/templates.js b/src/templates.js
index e0d6f352..375e3148 100644
--- a/src/templates.js
+++ b/src/templates.js
@@ -92,6 +92,10 @@ Inherits Pullboard standard doctrine version 1.
*/
export function agentsBlock(doctrine = standardDoctrine()) {
return `${AGENTS_START}
+## A new board
+
+On a board that is not set up, run \`pullboard resume\` first. Walk the person through its setup steps before anything else.
+
## Working here: pullboard
This repo runs on pullboard: a work board, lanes and a spec that live in git. Nothing ships until a second agent verifies it.
diff --git a/test/init-ignore.test.js b/test/init-ignore.test.js
index 1660e998..156e04e9 100644
--- a/test/init-ignore.test.js
+++ b/test/init-ignore.test.js
@@ -28,12 +28,31 @@ function fixture(t, ignore) {
const result = runFixtureChild(process.execPath, [cliPath, ...args, '--json'], { cwd: root, env, encoding: 'utf8' });
return { code: result.status, document: JSON.parse(result.stdout), stderr: result.failure ?? result.stderr, failure: result.failure };
}
+ /** Run the real CLI in its person-facing output mode. */
+ function output(...args) {
+ const result = runFixtureChild(process.execPath, [cliPath, ...args], { cwd: root, env, encoding: 'utf8' });
+ return { code: result.status, stdout: result.stdout, stderr: result.failure ?? result.stderr, failure: result.failure };
+ }
git('init', '-q', '-b', 'main');
writeFileSync(join(root, 'pullboard.json'), JSON.stringify({ gate: 'true', lanes: { web: { owns: ['web/'], specs: [] } } }));
if (ignore !== undefined) writeFileSync(join(root, '.gitignore'), ignore);
- return { root, git, cli };
+ return { root, git, cli, output };
}
+test('a fresh init tells the person and the agent how to start [I9,I1]', t => {
+ const box = fixture(t);
+ rmSync(join(box.root, 'pullboard.json'));
+ const initialized = box.output('init');
+ assert.equal(initialized.code, 0, initialized.stderr);
+ assert.match(initialized.stdout, /^Next: ask your agent to set up Pullboard here$/mu, 'init prints the single plain setup instruction');
+ assert.match(initialized.stdout, /git add -f --/u, 'the init output keeps its staging instruction');
+
+ const agents = readFileSync(join(box.root, 'AGENTS.md'), 'utf8');
+ const section = agents.slice(agents.indexOf('## A new board'), agents.indexOf('## Working here: pullboard'));
+ assert.equal(section, '## A new board\n\nOn a board that is not set up, run `pullboard resume` first. Walk the person through its setup steps before anything else.\n\n', 'AGENTS.md includes the new-board setup section');
+ assert.doesNotMatch(section, /\b(?:spec|lanes|gates)\b/iu, 'the first setup guidance uses plain words');
+});
+
test('init appends only the agent-worktree ignore rule and the second init writes nothing [I1,I2,I16]', t => {
for (const previous of [undefined, '', '# existing rules\r\nnode_modules/\r\n!keep-this', '.claude/worktrees/\n# already configured\n']) {
const box = fixture(t, previous);