@vibest/cli 0.0.2-beta.2 → 0.0.2-beta.4
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/harnesses/agy/.agents/plugins/vibest/hook.sh +3 -20
- package/harnesses/agy/.agents/plugins/vibest/plugin.json +1 -1
- package/harnesses/agy/.agents/plugins/vibest/skills/delegate/SKILL.md +6 -11
- package/harnesses/agy/.agents/plugins/vibest/skills/pipeline/SKILL.md +3 -3
- package/harnesses/claude/.claude-plugin/plugin.json +1 -1
- package/harnesses/claude/README.md +1 -1
- package/harnesses/claude/hooks/register.mjs +205 -85
- package/harnesses/claude/skills/delegate/SKILL.md +6 -11
- package/harnesses/claude/skills/pipeline/SKILL.md +3 -3
- package/harnesses/cursor/.cursor-plugin/plugin.json +1 -1
- package/harnesses/cursor/hooks/vibest.sh +3 -20
- package/harnesses/cursor/skills/delegate/SKILL.md +6 -11
- package/harnesses/cursor/skills/pipeline/SKILL.md +3 -3
- package/harnesses/pi/extension.mjs +317 -150
- package/harnesses/pi/presentation.mjs +151 -80
- package/harnesses/pi/skills/delegate/SKILL.md +6 -11
- package/harnesses/pi/skills/pipeline/SKILL.md +3 -3
- package/package.json +15 -15
|
@@ -1,25 +1,8 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
|
-
# @vibest/cursor 0.0.2-beta.
|
|
3
|
-
# The vibest vibestd started this agent with (
|
|
4
|
-
# cannot read safely (not a JSON array of plain strings: a backslash in it) falls back to PATH.
|
|
2
|
+
# @vibest/cursor 0.0.2-beta.4: `vibest integration guard` before a tool call, `prompt` and `ready` at the session start, `prompt` when an execution starts or works, `stop` at its response.
|
|
3
|
+
# The vibest vibestd started this agent with (VIBEST_CLI), not the first vibest on PATH, which a login shell may reorder.
|
|
5
4
|
vibest() {
|
|
6
|
-
|
|
7
|
-
*'\'*) ;;
|
|
8
|
-
'["'*'"]')
|
|
9
|
-
words=$(printf '%s' "$VIBEST_COMMAND" | sed -e 's/^\["//' -e 's/"\]$//' -e 's/","/\
|
|
10
|
-
/g')
|
|
11
|
-
ifs=$IFS
|
|
12
|
-
IFS='
|
|
13
|
-
'
|
|
14
|
-
set -f
|
|
15
|
-
set -- $words "$@"
|
|
16
|
-
IFS=$ifs
|
|
17
|
-
set +f
|
|
18
|
-
"$@"
|
|
19
|
-
return
|
|
20
|
-
;;
|
|
21
|
-
esac
|
|
22
|
-
command vibest "$@"
|
|
5
|
+
command "${VIBEST_CLI:-vibest}" "$@"
|
|
23
6
|
}
|
|
24
7
|
case "${1:-}" in
|
|
25
8
|
guard)
|
|
@@ -12,18 +12,13 @@ You direct subagents. You stay with the user. An agent messages you when it fini
|
|
|
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>] [--agent <id>] --title '<Title>' -- '<self-contained task>'
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
Its id is <id>.
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
`--archive-on-idle` is only for work whose message you will not answer. It archives the first time the session is idle after a completed execution with nothing it sent or was sent still waiting. The branch is kept. Do not `vibest send` it after that. Any execution that ends normally archives it, a question included, so do not use it for a session that may need an answer. A failed execution has not archived it: send the correction to the id it printed; the flag still archives the completed execution that follows. A reviewer that gets later executions is the pipeline skill and must stay open, without this flag.
|
|
25
|
-
|
|
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.
|
|
20
|
+
- `--agent <id>`: pick the agent whose description fits the piece of work (your session facts list them; `vibest agent list` is the current list). Without it the session is `general`.
|
|
21
|
+
- Leave `<harness>` out to use the agent's own harness when it has one, else your own harness, provider and model; name one (`pi`, `claude`, `cursor`, or any harness a plugin adds; `vibest harness list`) to switch.
|
|
27
22
|
- 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
23
|
- Each session gets its own new worktree.
|
|
29
24
|
- Several `vibest run` commands in one message start in parallel.
|
|
@@ -57,9 +52,9 @@ Then say what changed, the evidence, and the branch. `<id>` is the id the run pr
|
|
|
57
52
|
|
|
58
53
|
## Finish
|
|
59
54
|
|
|
60
|
-
- Archive a research
|
|
61
|
-
- Keep an agent that changed code until the user asks to
|
|
62
|
-
- A `## Remember` section in a message:
|
|
55
|
+
- Archive a research, review or verification session with `vibest archive <id>` once you have read its message and will not continue it.
|
|
56
|
+
- Keep an agent that changed code until the user asks to archive 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.
|
|
57
|
+
- A `## Remember` section in a message: maintain both the topic file `$VIBEST_PROJECT_DIR/memories/<name>.md` (one lesson per file, starting with frontmatter `name` and `description` or a one-line summary, with the detail kept in the topic file) and its one-line entry (`- memories/<name>.md — <summary>`, under 150 characters) in `$VIBEST_PROJECT_DIR/memories/MEMORY.md`. Only `memories/MEMORY.md` is loaded into the system prompt (capped at 100 lines and 8000 bytes); topic files are read on demand or searched with `vibest project search <query> --kind memories`. When a lesson changes or turns out to be wrong, update or delete its topic file and update or remove its entry in `memories/MEMORY.md` instead of only appending; compact `memories/MEMORY.md` to under 70 lines when it approaches the cap.
|
|
63
58
|
|
|
64
59
|
## The user steps into a pane
|
|
65
60
|
|
|
@@ -13,7 +13,7 @@ Plan → the user agrees → implement → review until the reviewer approves
|
|
|
13
13
|
vibest run [<harness>] --title 'Plan <topic>' -- 'Write an implementation plan for: <goal, paths, constraints>. Read the code. Send me the approach, the files to change, the steps, how to verify, and open questions. Do not modify files.'
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
Its id is <planner id>. Tell the user the plan is being written and end your execution.
|
|
16
|
+
Its id is <planner id>. Tell the user the plan is being written and end your execution.
|
|
17
17
|
|
|
18
18
|
## 2. Agree
|
|
19
19
|
|
|
@@ -27,7 +27,7 @@ Save the agreed plan, verbatim, with your file tool as `$VIBEST_PROJECT_DIR/arti
|
|
|
27
27
|
vibest run [<harness>] --title 'Implement <topic>' --file <absolute plan path> -- 'Implement the attached plan exactly. Run the tests and typecheck, commit on a branch, push, and send me the branch and hash. Do not open a pull request.'
|
|
28
28
|
```
|
|
29
29
|
|
|
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; vibest copies the file for the session and ends its task with a line naming the copy.
|
|
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; vibest copies the file for the session and ends its task with a line naming the copy. When it sends its message, check the diff and the tests yourself before review.
|
|
31
31
|
|
|
32
32
|
## 4. Review
|
|
33
33
|
|
|
@@ -38,7 +38,7 @@ Read-only here is the prompt you pass, plus the shared-worktree git rule the ses
|
|
|
38
38
|
vibest run [<harness>] --title 'Review <topic>' --share <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. Send me a message that starts with "verdict: approve" or "verdict: changes requested", then each comment with file and line.'
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
Its id is <reviewer id>.
|
|
41
|
+
Its id is <reviewer id>.
|
|
42
42
|
|
|
43
43
|
## 5. Until approval
|
|
44
44
|
|