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
feat(core): lead init with its next step [I10,B26]
Corey Olson6d4b40fd144f
diff --git a/src/cli.js b/src/cli.jsindex 6ba39bf2..c26690b3 100644--- a/src/cli.js+++ b/src/cli.js@@ -2052,6 +2052,9 @@ function setupCommands(io, { first, second, rest = [], values }) {...(landed.length ? { blueprint: blueprintResult(landed[0]), blueprints: landed.map(blueprintResult) } : {}) };io.result?.(result);const staging = notes.at(-1)?.startsWith('git add -f -- ') ? notes.at(-1) : null;+ io.say(agentSessionDigest()+ ? 'Next: run pullboard resume now to continue setup in this session; the new skills load next session, and setup does not need them.\nSetup details:'+ : 'Next: ask your agent to set up Pullboard here; in Claude Code, start a new session first so it loads the Pullboard skills.\nSetup details:');(staging ? notes.slice(0, -1) : notes).forEach((note) => io.say(note));for (const added of landed) {if (added.marked) io.say(alreadyAddedLine(added.blueprint));@@ -2064,9 +2067,6 @@ function setupCommands(io, { first, second, rest = [], values }) {io.result?.({ ...result, view });const viewLine = backgroundViewLine(view);if (viewLine) io.say(viewLine);- io.say(agentSessionDigest()- ? 'Next: run pullboard resume now to continue setup in this session; the new skills load next session, and setup does not need them.'- : 'Next: ask your agent to set up Pullboard here; in Claude Code, start a new session first so it loads the Pullboard skills.');// The offer comes before the staging line, which stays init's last line [I1,I2].const code = await offerRelayAtInit(info.root, io);if (staging) io.say(`To commit Pullboard's files: ${staging}`);diff --git a/test/init-ignore.test.js b/test/init-ignore.test.jsindex 008fe0a0..1efc7887 100644--- a/test/init-ignore.test.js+++ b/test/init-ignore.test.js@@ -60,6 +60,22 @@ test('a fresh init tells the person and the agent how to start [I9,I1]', t => {assert.doesNotMatch(section, /\b(?:spec|lanes|gates)\b/iu, 'the first setup guidance uses plain words');});+test('init leads with the next step and folds the details [I10,B26]', t => {+ const box = fixture(t);+ rmSync(join(box.root, 'pullboard.json'));+ const initialized = box.output('init');+ assert.equal(initialized.code, 0, initialized.stderr);+ const lines = initialized.stdout.trimEnd().split(/\r?\n/u);+ assert.match(lines[0] ?? '', /^Next:\s+\S/u,+ 'a newcomer sees the next step before setup details');+ assert.match(lines.slice(0, 2).join('\n'), /Next: ask your agent to set up Pullboard here/u,+ 'the first one or two lines say what to do next');+ const detailsHeading = lines.findIndex((line, index) => index >= 1 && /^(?:Setup details|Details):?$/iu.test(line));+ const verboseFlag = lines.slice(0, 2).some(line => /--verbose\b/u.test(line));+ assert.ok(verboseFlag || detailsHeading === 1 || detailsHeading === 2,+ 'setup details follow under a short heading or are explicitly behind --verbose');+});+/** Run init on a fresh repo and return the "Helping the person" section of the AGENTS.md it wrote. */function helpSection(t) {const box = fixture(t);