@vibest/cli 0.0.1-beta.16 → 0.0.1-beta.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/vibest.cjs CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- // npm entry point: runs the compiled vibest binary from the platform package, @vibest/cli-<platform>-<arch>.
3
2
  const childProcess = require("node:child_process")
4
3
  const os = require("node:os")
5
4
  const path = require("node:path")
@@ -9,7 +8,6 @@ let binary
9
8
  try {
10
9
  binary = require.resolve(`@vibest/cli-${target}/bin/vibest`)
11
10
  } catch {
12
- // The package manager skipped the optional platform package (bun does at times): the exact command that adds it.
13
11
  const pkg = `@vibest/cli-${target}@${require("../package.json").version}`
14
12
  const prefix = /^(.+)\/lib\/node_modules\/@vibest\/cli\/bin$/.exec(__dirname)
15
13
  const install = __dirname.includes("/.bun/")
@@ -21,10 +19,8 @@ try {
21
19
  process.exit(1)
22
20
  }
23
21
 
24
- // vibest's plugin for each harness ships in this package (scripts/build-harnesses.ts); the binary passes it to each harness it starts.
25
22
  const env = { ...process.env, VIBEST_HARNESSES: path.join(__dirname, "..", "harnesses") }
26
23
  const child = childProcess.spawn(binary, process.argv.slice(2), { stdio: "inherit", env })
27
- // The terminal already delivers Ctrl-C to the child (same process group); forwarding it as well would turn one Ctrl-C into two.
28
24
  process.on("SIGINT", () => {})
29
25
  for (const signal of ["SIGTERM", "SIGHUP"]) process.on(signal, () => child.kill(signal))
30
26
  child.on("error", (error) => {
@@ -33,7 +29,6 @@ child.on("error", (error) => {
33
29
  })
34
30
  child.on("exit", (code, signal) => {
35
31
  if (!signal) process.exit(code ?? 1)
36
- // Die of the same signal, so the caller sees what the binary saw; Node ignores some (SIGPIPE), so exit as a shell reports it.
37
32
  process.removeAllListeners(signal)
38
33
  process.kill(process.pid, signal)
39
34
  process.exit(128 + os.constants.signals[signal])
@@ -6,5 +6,5 @@
6
6
  },
7
7
  "repository": "https://github.com/vibest-dev/vibest",
8
8
  "license": "MIT",
9
- "version": "0.0.1-beta.16"
9
+ "version": "0.0.1-beta.18"
10
10
  }
@@ -16,9 +16,19 @@ vibestd's unix socket `<VIBEST_HOME>/vibest-http.sock`; the plugin runs no `vibe
16
16
  one short line (`<Type> Agent "<title>" completed (<id>) · +N more`) and its full text. The line is submitted with
17
17
  `$.prompt.submit` from the AbovePrompt `ui.render` hook, one batch per draw, and this module's own `prompt.submit`
18
18
  hook attaches the full text as context. An accepted submit is acked by row id (`/inbox/ack`) on the next tick; a
19
- `drop` puts the batch back at the front of the queue.
19
+ `drop` puts the batch back at the front of the queue. The submit has to come from inside a hook's call stack: a
20
+ submit from a clock callback would skip this module's own `prompt.submit` hook as re-entry. The module remembers the
21
+ row ids it has taken, so a batch handed out again after its lease ran out or vibestd restarted is not shown twice:
22
+ in a batch that mixes taken rows with new ones, the taken ones are acked and the new ones given back, so they come
23
+ alone. Full texts wait for `prompt.submit` for at most the last 100 lines. A one-line notice is its own full text and
24
+ is not attached again. Using the AbovePrompt render hook as a place to submit from is undocumented; E2E covers it.
20
25
 
21
26
  Reports (turn end, prompt) retry in the background after 1, 2, 4, 8, 15 and 30 s while vibestd does not take them.
27
+ A failed report never blocks or continues a stopped turn. Five failed polls in a row put "vibestd unreachable" on the
28
+ status line. `Session.Ready` goes with Claude Code's own pid, read as the `$PPID` of a command the module runs, since
29
+ a restart signals that process. A failed hook is skipped unless its handler answers, so outside vibest every listener
30
+ answers with a pass. The tool arguments sent to the guard are the `tool.call` input without its reserved keys
31
+ (`tool`, `tool_use_id`, `consent`, `agentId`).
22
32
 
23
33
  Every request carries the session headers from `@vibest/protocol` `sessionHeaders`: protocol, `VIBEST_SESSION_ID`,
24
34
  `VIBEST_PROJECT_ID`, the current Claude session id, `VIBEST_AGENT`, `VIBEST_HARNESS`, the cwd, `VIBEST_RUNTIME` and the
@@ -32,7 +42,7 @@ It ships inside `@vibest/cli` and is loaded only into the Claude sessions vibest
32
42
  ## Build
33
43
 
34
44
  This package is private: the plugin is published as part of `@vibest/cli`, whose build writes it to
35
- `apps/vibest-herdr/harnesses/claude` (`scripts/build-harnesses.ts`).
45
+ `packages/cli/harnesses/claude` (`scripts/build-harnesses.ts`).
36
46
 
37
47
  bun scripts/build.ts <outdir> # the complete plugin directory in <outdir>
38
48
  bun run build # the generated files in place, for the tests
@@ -45,10 +55,16 @@ The plugin directory holds exactly:
45
55
  helper it imports from `@vibest/protocol`; the build inlines the package version as `VIBEST_PLUGIN_VERSION`. Prebuilt JS is a delivery choice; Claude Code can also load TypeScript hooks modules.
46
56
  - `README.md` and `LICENSE`.
47
57
 
58
+ `$.plugin` has no version, so the build inlines it. Bun writes each module's path relative to the working directory
59
+ into the bundle, so the build pins the working directory and the bytes do not vary.
60
+
48
61
  The generated files are ignored by Git. `test/distribution.test.ts` packs this package and checks the extracted files.
49
62
 
50
63
  ## Use
51
64
 
65
+ The launch side (arguments, models, resume, subscription reading) is the `claude` harness definition, added by the
66
+ builtin plugin `harness-claude` in `packages/plugin-harnesses`; this package is only what runs inside Claude.
67
+
52
68
  Nothing to install. vibest starts each Claude session (and a Claude coordinator) with
53
69
  `claude --plugin-dir <@vibest/cli>/harnesses/claude`, which loads the plugin for that session only. vibest writes
54
70
  nothing into `~/.claude`. Plain `claude` sessions never load it, and in a Claude process without `VIBEST_AGENT` and
@@ -1,5 +1,5 @@
1
1
  // ../../protocol/src/protocol.ts
2
- var PROTOCOL = 4;
2
+ var PROTOCOL = 8;
3
3
  var PROTOCOL_HEADER = "vibest-protocol";
4
4
  var CALLER_HEADER = "vibest-caller";
5
5
  var SESSION_HEADER = "vibest-session-id";
@@ -75,17 +75,17 @@ function nativeHost($) {
75
75
  every: (ms, fn) => $.clock.every(ms, fn),
76
76
  after: (ms, fn) => $.clock.after(ms, fn),
77
77
  status: (text) => $.ui.status(text),
78
- pid: async () => {
78
+ claudeCodePid: async () => {
79
79
  const pid = Number((await $.process.run(["sh", "-c", 'echo "$PPID"'])).stdout.trim());
80
80
  return Number.isInteger(pid) && pid > 1 ? pid : undefined;
81
81
  }
82
82
  };
83
83
  }
84
- var RESERVED = new Set(["tool", "tool_use_id", "consent", "agentId"]);
84
+ var TOOL_CALL_RESERVED_KEYS = new Set(["tool", "tool_use_id", "consent", "agentId"]);
85
85
  var toolInput = (event) => {
86
86
  const input = {};
87
87
  for (const [key, value] of Object.entries(event)) {
88
- if (!RESERVED.has(key))
88
+ if (!TOOL_CALL_RESERVED_KEYS.has(key))
89
89
  input[key] = value;
90
90
  }
91
91
  return input;
@@ -143,7 +143,7 @@ function register(on, _options) {
143
143
  return;
144
144
  }),
145
145
  runtime: await host.env("VIBEST_RUNTIME"),
146
- pluginVersion: "0.0.1-beta.16"
146
+ pluginVersion: "0.0.1-beta.18"
147
147
  });
148
148
  const r = await timeout(host.fetch(who.socket, path, { ...headers, "content-type": "application/json" }, JSON.stringify(body)), ms, host.after);
149
149
  const reply = { status: r.status, body: parse(r.text) };
@@ -237,7 +237,7 @@ function register(on, _options) {
237
237
  if (await identity(host).catch(() => {
238
238
  return;
239
239
  })) {
240
- const pid = await host.pid().catch(() => {
240
+ const pid = await host.claudeCodePid().catch(() => {
241
241
  return;
242
242
  });
243
243
  report(host, "/session/ready", pid === undefined ? {} : { pid });
@@ -12,23 +12,23 @@ You direct subagents. You stay with the user. Each result arrives in your inbox
12
12
  Split independent pieces. Research and review run in parallel. One writing subagent per set of files. A few shell reads (`git diff`, `rg`) you do yourself.
13
13
 
14
14
  ```
15
- vibest run <harness> --title '<Title>' -- '<self-contained task>'
15
+ vibest run [<harness>] --title '<Title>' -- '<self-contained task>'
16
16
  ```
17
17
 
18
18
  Its id is <id>.
19
19
 
20
20
  ```
21
- vibest run <harness> --title '<Title>' --archive-on-completion -- '<task>'
21
+ vibest run [<harness>] --title '<Title>' --archive-on-completion -- '<task>'
22
22
  ```
23
23
 
24
24
  `--archive-on-completion` is only for a session you will not message again after it completes. It archives once the session reports completed and that result has reached you. The branch is kept. Do not `vibest send` it after that. Any turn that ends normally archives it, a question included, so do not use it for a session that may need an answer. A `failed` result has not archived it: send the correction to the id it printed; the flag still archives the completed result that follows. A reviewer that gets later rounds is the pipeline skill and must stay open, without this flag.
25
25
 
26
- - `<harness>` is `pi`, `claude` or `cursor` (`auto` only when a spawn plugin chooses).
26
+ - Leave `<harness>` out to use your own harness, provider and model; name one (`pi`, `claude`, `cursor`, or any harness a plugin adds; `vibest harness list`) to switch.
27
27
  - Always pass `--title`: three to six words, verb first, first letter capitalised, no kebab-case, saying what is done rather than how ("Fix login redirect loop"). The user's language is fine.
28
28
  - Each session gets its own new worktree.
29
29
  - Several `vibest run` commands in one message start in parallel.
30
30
  - A subagent cannot see this conversation. Say what to achieve, where (paths, lines), what done means, and how to verify it. For code: run the tests and typecheck, commit, and report the branch and hash.
31
- - Long material: `vibest project write scratch <name>.md --if-version new -- '<text>'`. The absolute path is `scratchPath` from `vibest project info`, plus the file name. If write says the file already exists, `vibest project read scratch <name>.md`, then write again with the version it prints, or pick a new file name.
31
+ - Long material: write it with your file tool to `$VIBEST_PROJECT_DIR/artifacts/<name>.md` (a new file name if that one exists) and give the agent its absolute path: the value of VIBEST_PROJECT_DIR (`echo $VIBEST_PROJECT_DIR`, or `directory` from `vibest project info`) plus `/artifacts/` and the file name.
32
32
  - If the user approved a specific action, quote their exact words.
33
33
 
34
34
  ## After you start
@@ -47,7 +47,7 @@ Then say what changed, the evidence, and the branch. `<id>` is the id the run pr
47
47
 
48
48
  ## Track
49
49
 
50
- `vibest ls` lists sessions that have not exited: task (cut to 500 characters), live status, and latest result. `vibest ls --all` includes exited sessions. `vibest result <id>` is the full latest result, with the task uncut. Use these after a restart, after compaction, or when you are unsure. Do not trust memory.
50
+ `vibest ls` prints `{ sessions, machines }`: the sessions that have not exited (task cut to 500 characters, live status, latest result), and the other machines with their connection state. `vibest ls --all` includes exited sessions. `vibest result <id>` is the full latest result, with the task uncut. Use these after a restart, after compaction, or when you are unsure. Do not trust memory.
51
51
 
52
52
  ## Follow up
53
53
 
@@ -59,7 +59,7 @@ Then say what changed, the evidence, and the branch. `<id>` is the id the run pr
59
59
 
60
60
  - Archive a research agent with `vibest archive <id>` once its findings are saved, or start that session with `--archive-on-completion` when you will not message it again. Same for a review or verification you will not continue.
61
61
  - Keep an agent that changed code until the user asks to remove it. Archiving keeps the branch, and the worktree whenever it holds unsaved work. `vibest archive --keep-worktree <id>` only when the user wants the directory kept.
62
- - A `## Remember` section: `vibest project write memory <name>.md --if-version new -- '<lesson>'`. If write says the file already exists, `vibest project read memory <name>.md`, then write again with the version it prints, or pick a new file name.
62
+ - A `## Remember` section: write each lesson with your file tool to `$VIBEST_PROJECT_DIR/memories/<name>.md`, one lesson per file; edit the file when a lesson there changes. Start the file with a one-line summary (or frontmatter with `name` and `description`), because that line is what the memory index shows.
63
63
 
64
64
  ## The user steps into a pane
65
65
 
@@ -10,7 +10,7 @@ Plan → the user agrees → implement → review until the reviewer approves
10
10
  ## 1. Plan
11
11
 
12
12
  ```
13
- vibest run <harness> --title 'Plan <topic>' -- 'Write an implementation plan for: <goal, paths, constraints>. Read the code. Report the approach, the files to change, the steps, how to verify, and open questions. Do not modify files.'
13
+ vibest run [<harness>] --title 'Plan <topic>' -- 'Write an implementation plan for: <goal, paths, constraints>. Read the code. Report the approach, the files to change, the steps, how to verify, and open questions. Do not modify files.'
14
14
  ```
15
15
 
16
16
  Its id is <planner id>. Tell the user the plan is being written and end your turn. Do not pass `--archive-on-completion`: the user has not agreed yet, and a completed result would archive the session before they can answer.
@@ -21,12 +21,13 @@ Show the plan in full, including open questions. Do not implement until the user
21
21
 
22
22
  ## 3. Implement
23
23
 
24
+ Save the agreed plan, verbatim, with your file tool as `$VIBEST_PROJECT_DIR/artifacts/pipeline-<topic>-plan.md` (a new file name if that one exists). Then:
25
+
24
26
  ```
25
- vibest project write scratch pipeline-<topic>-plan.md --if-version new -- '<the agreed plan, verbatim>'
26
- vibest run <harness> --title 'Implement <topic>' -- 'Implement the plan at <absolute scratch path> exactly. Run the tests and typecheck, commit on a branch, push, and report the branch and hash. Do not open a pull request.'
27
+ vibest run [<harness>] --title 'Implement <topic>' -- 'Implement the plan at <absolute plan path> exactly. Run the tests and typecheck, commit on a branch, push, and report the branch and hash. Do not open a pull request.'
27
28
  ```
28
29
 
29
- Its id is <implementer id>. The absolute path is `scratchPath` from `vibest project info`, plus the file name. If write says the file already exists, `vibest project read scratch pipeline-<topic>-plan.md`, then write again with the version it prints, or pick a new file name. Do not pass `--archive-on-completion`: this session stays for review and the pull request. When it reports, check the diff and the tests yourself before review.
30
+ Its id is <implementer id>. The absolute plan path is the value of VIBEST_PROJECT_DIR (`echo $VIBEST_PROJECT_DIR`, or `directory` from `vibest project info`) plus `/artifacts/` and the file name. Do not pass `--archive-on-completion`: this session stays for review and the pull request. When it reports, check the diff and the tests yourself before review.
30
31
 
31
32
  ## 4. Review
32
33
 
@@ -34,7 +35,7 @@ Its id is <implementer id>. The absolute path is `scratchPath` from `vibest proj
34
35
  Read-only here is the prompt you pass, plus the peer git rule the session already has: no commit, and nothing that moves HEAD, a branch, or the index.
35
36
 
36
37
  ```
37
- vibest run <harness> --title 'Review <topic>' --peer <implementer id> -- 'Review the change on this branch against the plan at <absolute scratch path>. Run git diff main...HEAD. Do not modify files, commit, or move HEAD. Look for bugs, missing tests, and departures from the plan; run the tests. Start with "verdict: approve" or "verdict: changes requested", then each comment with file and line.'
38
+ vibest run [<harness>] --title 'Review <topic>' --peer <implementer id> -- 'Review the change on this branch against the plan at <absolute plan path>. Run git diff main...HEAD. Do not modify files, commit, or move HEAD. Look for bugs, missing tests, and departures from the plan; run the tests. Start with "verdict: approve" or "verdict: changes requested", then each comment with file and line.'
38
39
  ```
39
40
 
40
41
  Its id is <reviewer id>. Do not pass `--archive-on-completion`: later rounds go to this reviewer with `vibest send`.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "vibest",
3
- "version": "0.0.1-beta.16",
3
+ "version": "0.0.1-beta.18",
4
4
  "description": "vibest's Cursor CLI plugin: a session's turn-end result and the tool guard, loaded with `cursor-agent --plugin-dir`."
5
5
  }
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "version": 1,
3
3
  "hooks": {
4
+ "sessionStart": [
5
+ {
6
+ "command": "sh ./hooks/vibest.sh ready"
7
+ }
8
+ ],
4
9
  "preToolUse": [
5
10
  {
6
11
  "command": "sh ./hooks/vibest.sh guard",
@@ -12,12 +17,17 @@
12
17
  "command": "sh ./hooks/vibest.sh prompt"
13
18
  }
14
19
  ],
15
- "afterAgentResponse": [
20
+ "afterAgentThought": [
16
21
  {
17
- "command": "sh ./hooks/vibest.sh stop"
22
+ "command": "sh ./hooks/vibest.sh prompt"
18
23
  }
19
24
  ],
20
- "stop": [
25
+ "postToolUse": [
26
+ {
27
+ "command": "sh ./hooks/vibest.sh prompt"
28
+ }
29
+ ],
30
+ "afterAgentResponse": [
21
31
  {
22
32
  "command": "sh ./hooks/vibest.sh stop"
23
33
  }
@@ -1,5 +1,5 @@
1
1
  #!/bin/sh
2
- # @vibest/cursor 0.0.1-beta.16: `vibest integration guard` before a tool call, `vibest integration prompt` when the user submits, `vibest integration stop` at a turn end.
2
+ # @vibest/cursor 0.0.1-beta.18: `vibest integration guard` before a tool call, `ready` at the session start, `prompt` when a turn starts or works, `stop` at its response.
3
3
  # The vibest vibestd started this agent with (VIBEST_COMMAND, a JSON argv), not the first vibest on PATH. A value this
4
4
  # cannot read safely (not a JSON array of plain strings: a backslash in it) falls back to PATH.
5
5
  vibest() {
@@ -27,14 +27,9 @@ case "${1:-}" in
27
27
  if [ -z "${VIBEST_AGENT:-}" ]; then cat >/dev/null; echo '{"permission":"allow"}'; exit 0; fi
28
28
  vibest integration guard --harness cursor || { echo "vibest integration guard failed; the tool call is refused." >&2; exit 2; }
29
29
  ;;
30
- prompt)
31
- # beforeSubmitPrompt can block the prompt. A missed report must not: the turn still runs.
30
+ ready | prompt | stop)
32
31
  if [ -z "${VIBEST_AGENT:-}" ] || [ -z "${VIBEST_SESSION_ID:-}" ]; then cat >/dev/null; exit 0; fi
33
- vibest integration prompt --harness cursor >/dev/null 2>&1 || true
34
- ;;
35
- stop)
36
- if [ -z "${VIBEST_AGENT:-}" ] || [ -z "${VIBEST_SESSION_ID:-}" ]; then cat >/dev/null; exit 0; fi
37
- vibest integration stop --harness cursor >/dev/null 2>&1 || true
32
+ vibest integration "$1" --harness cursor >/dev/null 2>>"${VIBEST_HOME:-$HOME/.vibest}/vibestd.log" || exit 1
38
33
  ;;
39
34
  esac
40
35
  exit 0
@@ -12,23 +12,23 @@ You direct subagents. You stay with the user. Each result arrives in your inbox
12
12
  Split independent pieces. Research and review run in parallel. One writing subagent per set of files. A few shell reads (`git diff`, `rg`) you do yourself.
13
13
 
14
14
  ```
15
- vibest run <harness> --title '<Title>' -- '<self-contained task>'
15
+ vibest run [<harness>] --title '<Title>' -- '<self-contained task>'
16
16
  ```
17
17
 
18
18
  Its id is <id>.
19
19
 
20
20
  ```
21
- vibest run <harness> --title '<Title>' --archive-on-completion -- '<task>'
21
+ vibest run [<harness>] --title '<Title>' --archive-on-completion -- '<task>'
22
22
  ```
23
23
 
24
24
  `--archive-on-completion` is only for a session you will not message again after it completes. It archives once the session reports completed and that result has reached you. The branch is kept. Do not `vibest send` it after that. Any turn that ends normally archives it, a question included, so do not use it for a session that may need an answer. A `failed` result has not archived it: send the correction to the id it printed; the flag still archives the completed result that follows. A reviewer that gets later rounds is the pipeline skill and must stay open, without this flag.
25
25
 
26
- - `<harness>` is `pi`, `claude` or `cursor` (`auto` only when a spawn plugin chooses).
26
+ - Leave `<harness>` out to use your own harness, provider and model; name one (`pi`, `claude`, `cursor`, or any harness a plugin adds; `vibest harness list`) to switch.
27
27
  - Always pass `--title`: three to six words, verb first, first letter capitalised, no kebab-case, saying what is done rather than how ("Fix login redirect loop"). The user's language is fine.
28
28
  - Each session gets its own new worktree.
29
29
  - Several `vibest run` commands in one message start in parallel.
30
30
  - A subagent cannot see this conversation. Say what to achieve, where (paths, lines), what done means, and how to verify it. For code: run the tests and typecheck, commit, and report the branch and hash.
31
- - Long material: `vibest project write scratch <name>.md --if-version new -- '<text>'`. The absolute path is `scratchPath` from `vibest project info`, plus the file name. If write says the file already exists, `vibest project read scratch <name>.md`, then write again with the version it prints, or pick a new file name.
31
+ - Long material: write it with your file tool to `$VIBEST_PROJECT_DIR/artifacts/<name>.md` (a new file name if that one exists) and give the agent its absolute path: the value of VIBEST_PROJECT_DIR (`echo $VIBEST_PROJECT_DIR`, or `directory` from `vibest project info`) plus `/artifacts/` and the file name.
32
32
  - If the user approved a specific action, quote their exact words.
33
33
 
34
34
  ## After you start
@@ -47,7 +47,7 @@ Then say what changed, the evidence, and the branch. `<id>` is the id the run pr
47
47
 
48
48
  ## Track
49
49
 
50
- `vibest ls` lists sessions that have not exited: task (cut to 500 characters), live status, and latest result. `vibest ls --all` includes exited sessions. `vibest result <id>` is the full latest result, with the task uncut. Use these after a restart, after compaction, or when you are unsure. Do not trust memory.
50
+ `vibest ls` prints `{ sessions, machines }`: the sessions that have not exited (task cut to 500 characters, live status, latest result), and the other machines with their connection state. `vibest ls --all` includes exited sessions. `vibest result <id>` is the full latest result, with the task uncut. Use these after a restart, after compaction, or when you are unsure. Do not trust memory.
51
51
 
52
52
  ## Follow up
53
53
 
@@ -59,7 +59,7 @@ Then say what changed, the evidence, and the branch. `<id>` is the id the run pr
59
59
 
60
60
  - Archive a research agent with `vibest archive <id>` once its findings are saved, or start that session with `--archive-on-completion` when you will not message it again. Same for a review or verification you will not continue.
61
61
  - Keep an agent that changed code until the user asks to remove it. Archiving keeps the branch, and the worktree whenever it holds unsaved work. `vibest archive --keep-worktree <id>` only when the user wants the directory kept.
62
- - A `## Remember` section: `vibest project write memory <name>.md --if-version new -- '<lesson>'`. If write says the file already exists, `vibest project read memory <name>.md`, then write again with the version it prints, or pick a new file name.
62
+ - A `## Remember` section: write each lesson with your file tool to `$VIBEST_PROJECT_DIR/memories/<name>.md`, one lesson per file; edit the file when a lesson there changes. Start the file with a one-line summary (or frontmatter with `name` and `description`), because that line is what the memory index shows.
63
63
 
64
64
  ## The user steps into a pane
65
65
 
@@ -10,7 +10,7 @@ Plan → the user agrees → implement → review until the reviewer approves
10
10
  ## 1. Plan
11
11
 
12
12
  ```
13
- vibest run <harness> --title 'Plan <topic>' -- 'Write an implementation plan for: <goal, paths, constraints>. Read the code. Report the approach, the files to change, the steps, how to verify, and open questions. Do not modify files.'
13
+ vibest run [<harness>] --title 'Plan <topic>' -- 'Write an implementation plan for: <goal, paths, constraints>. Read the code. Report the approach, the files to change, the steps, how to verify, and open questions. Do not modify files.'
14
14
  ```
15
15
 
16
16
  Its id is <planner id>. Tell the user the plan is being written and end your turn. Do not pass `--archive-on-completion`: the user has not agreed yet, and a completed result would archive the session before they can answer.
@@ -21,12 +21,13 @@ Show the plan in full, including open questions. Do not implement until the user
21
21
 
22
22
  ## 3. Implement
23
23
 
24
+ Save the agreed plan, verbatim, with your file tool as `$VIBEST_PROJECT_DIR/artifacts/pipeline-<topic>-plan.md` (a new file name if that one exists). Then:
25
+
24
26
  ```
25
- vibest project write scratch pipeline-<topic>-plan.md --if-version new -- '<the agreed plan, verbatim>'
26
- vibest run <harness> --title 'Implement <topic>' -- 'Implement the plan at <absolute scratch path> exactly. Run the tests and typecheck, commit on a branch, push, and report the branch and hash. Do not open a pull request.'
27
+ vibest run [<harness>] --title 'Implement <topic>' -- 'Implement the plan at <absolute plan path> exactly. Run the tests and typecheck, commit on a branch, push, and report the branch and hash. Do not open a pull request.'
27
28
  ```
28
29
 
29
- Its id is <implementer id>. The absolute path is `scratchPath` from `vibest project info`, plus the file name. If write says the file already exists, `vibest project read scratch pipeline-<topic>-plan.md`, then write again with the version it prints, or pick a new file name. Do not pass `--archive-on-completion`: this session stays for review and the pull request. When it reports, check the diff and the tests yourself before review.
30
+ Its id is <implementer id>. The absolute plan path is the value of VIBEST_PROJECT_DIR (`echo $VIBEST_PROJECT_DIR`, or `directory` from `vibest project info`) plus `/artifacts/` and the file name. Do not pass `--archive-on-completion`: this session stays for review and the pull request. When it reports, check the diff and the tests yourself before review.
30
31
 
31
32
  ## 4. Review
32
33
 
@@ -34,7 +35,7 @@ Its id is <implementer id>. The absolute path is `scratchPath` from `vibest proj
34
35
  Read-only here is the prompt you pass, plus the peer git rule the session already has: no commit, and nothing that moves HEAD, a branch, or the index.
35
36
 
36
37
  ```
37
- vibest run <harness> --title 'Review <topic>' --peer <implementer id> -- 'Review the change on this branch against the plan at <absolute scratch path>. Run git diff main...HEAD. Do not modify files, commit, or move HEAD. Look for bugs, missing tests, and departures from the plan; run the tests. Start with "verdict: approve" or "verdict: changes requested", then each comment with file and line.'
38
+ vibest run [<harness>] --title 'Review <topic>' --peer <implementer id> -- 'Review the change on this branch against the plan at <absolute plan path>. Run git diff main...HEAD. Do not modify files, commit, or move HEAD. Look for bugs, missing tests, and departures from the plan; run the tests. Start with "verdict: approve" or "verdict: changes requested", then each comment with file and line.'
38
39
  ```
39
40
 
40
41
  Its id is <reviewer id>. Do not pass `--archive-on-completion`: later rounds go to this reviewer with `vibest send`.