@vibest/cli 0.0.1-beta.17 → 0.0.1-beta.19
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 +0 -5
- package/harnesses/claude/.claude-plugin/plugin.json +1 -1
- package/harnesses/claude/README.md +21 -2
- package/harnesses/claude/hooks/register.mjs +7 -7
- package/harnesses/claude/skills/delegate/SKILL.md +5 -5
- package/harnesses/claude/skills/pipeline/SKILL.md +3 -3
- package/harnesses/cursor/.cursor-plugin/plugin.json +1 -1
- package/harnesses/cursor/hooks/hooks.json +13 -3
- package/harnesses/cursor/hooks/vibest.sh +3 -8
- package/harnesses/cursor/skills/delegate/SKILL.md +5 -5
- package/harnesses/cursor/skills/pipeline/SKILL.md +3 -3
- package/harnesses/pi/extension.mjs +474 -529
- package/harnesses/pi/skills/delegate/SKILL.md +5 -5
- package/harnesses/pi/skills/pipeline/SKILL.md +3 -3
- package/herdr-plugin/README.md +1 -1
- package/package.json +16 -14
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])
|
|
@@ -16,9 +16,22 @@ 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 render hook awaits
|
|
21
|
+
the submit before it returns: Claude Code reads the call against the hooks still running when it arrives, and under
|
|
22
|
+
load a hook that returned at once had often settled first, so its own `prompt.submit` hook was skipped the same way
|
|
23
|
+
and the line went out without its full text. The module remembers the
|
|
24
|
+
row ids it has taken, so a batch handed out again after its lease ran out or vibestd restarted is not shown twice:
|
|
25
|
+
in a batch that mixes taken rows with new ones, the taken ones are acked and the new ones given back, so they come
|
|
26
|
+
alone. Full texts wait for `prompt.submit` for at most the last 100 lines. A one-line notice is its own full text and
|
|
27
|
+
is not attached again. Using the AbovePrompt render hook as a place to submit from is undocumented; E2E covers it.
|
|
20
28
|
|
|
21
29
|
Reports (turn end, prompt) retry in the background after 1, 2, 4, 8, 15 and 30 s while vibestd does not take them.
|
|
30
|
+
A failed report never blocks or continues a stopped turn. Five failed polls in a row put "vibestd unreachable" on the
|
|
31
|
+
status line. `Session.Ready` goes with Claude Code's own pid, read as the `$PPID` of a command the module runs, since
|
|
32
|
+
a restart signals that process. A failed hook is skipped unless its handler answers, so outside vibest every listener
|
|
33
|
+
answers with a pass. The tool arguments sent to the guard are the `tool.call` input without its reserved keys
|
|
34
|
+
(`tool`, `tool_use_id`, `consent`, `agentId`).
|
|
22
35
|
|
|
23
36
|
Every request carries the session headers from `@vibest/protocol` `sessionHeaders`: protocol, `VIBEST_SESSION_ID`,
|
|
24
37
|
`VIBEST_PROJECT_ID`, the current Claude session id, `VIBEST_AGENT`, `VIBEST_HARNESS`, the cwd, `VIBEST_RUNTIME` and the
|
|
@@ -32,7 +45,7 @@ It ships inside `@vibest/cli` and is loaded only into the Claude sessions vibest
|
|
|
32
45
|
## Build
|
|
33
46
|
|
|
34
47
|
This package is private: the plugin is published as part of `@vibest/cli`, whose build writes it to
|
|
35
|
-
`
|
|
48
|
+
`packages/cli/harnesses/claude` (`scripts/build-harnesses.ts`).
|
|
36
49
|
|
|
37
50
|
bun scripts/build.ts <outdir> # the complete plugin directory in <outdir>
|
|
38
51
|
bun run build # the generated files in place, for the tests
|
|
@@ -45,10 +58,16 @@ The plugin directory holds exactly:
|
|
|
45
58
|
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
59
|
- `README.md` and `LICENSE`.
|
|
47
60
|
|
|
61
|
+
`$.plugin` has no version, so the build inlines it. Bun writes each module's path relative to the working directory
|
|
62
|
+
into the bundle, so the build pins the working directory and the bytes do not vary.
|
|
63
|
+
|
|
48
64
|
The generated files are ignored by Git. `test/distribution.test.ts` packs this package and checks the extracted files.
|
|
49
65
|
|
|
50
66
|
## Use
|
|
51
67
|
|
|
68
|
+
The launch side (arguments, models, resume, subscription reading) is the `claude` harness definition, added by the
|
|
69
|
+
builtin plugin `harness-claude` in `packages/plugin-harnesses`; this package is only what runs inside Claude.
|
|
70
|
+
|
|
52
71
|
Nothing to install. vibest starts each Claude session (and a Claude coordinator) with
|
|
53
72
|
`claude --plugin-dir <@vibest/cli>/harnesses/claude`, which loads the plugin for that session only. vibest writes
|
|
54
73
|
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 =
|
|
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
|
-
|
|
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
|
|
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 (!
|
|
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.
|
|
146
|
+
pluginVersion: "0.0.1-beta.19"
|
|
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.
|
|
240
|
+
const pid = await host.claudeCodePid().catch(() => {
|
|
241
241
|
return;
|
|
242
242
|
});
|
|
243
243
|
report(host, "/session/ready", pid === undefined ? {} : { pid });
|
|
@@ -255,7 +255,7 @@ function register(on, _options) {
|
|
|
255
255
|
draining = true;
|
|
256
256
|
queue.shift();
|
|
257
257
|
keep(batch.line, batch.text);
|
|
258
|
-
host.submit(batch.line).then((r) => {
|
|
258
|
+
await host.submit(batch.line).then((r) => {
|
|
259
259
|
draining = false;
|
|
260
260
|
if (r.drop !== undefined) {
|
|
261
261
|
forget(batch.line, batch.text);
|
|
@@ -12,18 +12,18 @@ 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>`
|
|
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.
|
|
@@ -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`
|
|
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: 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.
|
|
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.
|
|
@@ -24,7 +24,7 @@ Show the plan in full, including open questions. Do not implement until the user
|
|
|
24
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
25
|
|
|
26
26
|
```
|
|
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
|
+
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.'
|
|
28
28
|
```
|
|
29
29
|
|
|
30
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.
|
|
@@ -35,7 +35,7 @@ Its id is <implementer id>. The absolute plan path is the value of VIBEST_PROJEC
|
|
|
35
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.
|
|
36
36
|
|
|
37
37
|
```
|
|
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
|
+
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.'
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
Its id is <reviewer id>. Do not pass `--archive-on-completion`: later rounds go to this reviewer with `vibest send`.
|
|
@@ -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
|
-
"
|
|
20
|
+
"afterAgentThought": [
|
|
16
21
|
{
|
|
17
|
-
"command": "sh ./hooks/vibest.sh
|
|
22
|
+
"command": "sh ./hooks/vibest.sh prompt"
|
|
18
23
|
}
|
|
19
24
|
],
|
|
20
|
-
"
|
|
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.
|
|
2
|
+
# @vibest/cursor 0.0.1-beta.19: `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
|
|
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,18 +12,18 @@ 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>`
|
|
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.
|
|
@@ -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`
|
|
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: 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.
|
|
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.
|
|
@@ -24,7 +24,7 @@ Show the plan in full, including open questions. Do not implement until the user
|
|
|
24
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
25
|
|
|
26
26
|
```
|
|
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
|
+
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.'
|
|
28
28
|
```
|
|
29
29
|
|
|
30
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.
|
|
@@ -35,7 +35,7 @@ Its id is <implementer id>. The absolute plan path is the value of VIBEST_PROJEC
|
|
|
35
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.
|
|
36
36
|
|
|
37
37
|
```
|
|
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
|
+
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.'
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
Its id is <reviewer id>. Do not pass `--archive-on-completion`: later rounds go to this reviewer with `vibest send`.
|