@vibest/cli 0.0.2-beta.3 → 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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "vibest",
3
- "version": "0.0.2-beta.3",
3
+ "version": "0.0.2-beta.4",
4
4
  "description": "vibest's Cursor CLI plugin: a session's execution-end result and the tool guard, loaded with `cursor-agent --plugin-dir`."
5
5
  }
@@ -1,25 +1,8 @@
1
1
  #!/bin/sh
2
- # @vibest/cursor 0.0.2-beta.3: `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_COMMAND, a JSON argv), not the first vibest on PATH. A value this
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
- case "${VIBEST_COMMAND:-}" in
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
- vibest run [<harness>] --title '<Title>' --archive-on-idle -- '<task>'
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 agent with `vibest archive <id>` once its findings are saved, or start that session with `--archive-on-idle` when you will not answer its message. Same for a review or verification you will not continue.
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 in a message: 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.
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. Do not pass `--archive-on-idle`: the user has not agreed yet, and a completed execution would archive the session before they can answer.
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. Do not pass `--archive-on-idle`: this session stays for review and the pull request. When it sends its message, 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; 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>. Do not pass `--archive-on-idle`: later reviews go to this reviewer with `vibest send`.
41
+ Its id is <reviewer id>.
42
42
 
43
43
  ## 5. Until approval
44
44