@su-record/vibe 4.1.22 → 4.1.24

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.
@@ -6,14 +6,14 @@
6
6
  },
7
7
  "metadata": {
8
8
  "description": "An AX/FDE harness for Claude Code, Codex CLI and ChatGPT desktop. Say what you need, approve the scenarios once; the harness proves the work by running the checks itself. Memory in plain files, human tokens for irreversible actions, a ledger instead of claims.",
9
- "version": "4.1.22"
9
+ "version": "4.1.24"
10
10
  },
11
11
  "plugins": [
12
12
  {
13
13
  "name": "vibe",
14
14
  "source": "./",
15
15
  "description": "An AX/FDE harness for Claude Code, Codex CLI and ChatGPT desktop. Say what you need, approve the scenarios once; the harness proves the work by running the checks itself. Memory in plain files, human tokens for irreversible actions, a ledger instead of claims.",
16
- "version": "4.1.22",
16
+ "version": "4.1.24",
17
17
  "category": "productivity"
18
18
  }
19
19
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe",
3
- "version": "4.1.22",
3
+ "version": "4.1.24",
4
4
  "description": "An AX/FDE harness for Claude Code, Codex CLI and ChatGPT desktop. Say what you need, approve the scenarios once; the harness proves the work by running the checks itself. Memory in plain files, human tokens for irreversible actions, a ledger instead of claims.",
5
5
  "author": {
6
6
  "name": "su-record",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe",
3
- "version": "4.1.22",
3
+ "version": "4.1.24",
4
4
  "description": "An AX/FDE harness for Claude Code, Codex CLI and ChatGPT desktop. Say what you need, approve the scenarios once; the harness proves the work by running the checks itself. Memory in plain files, human tokens for irreversible actions, a ledger instead of claims.",
5
5
  "author": {
6
6
  "name": "su-record",
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  **The experience of having an AX/FDE next to you** — an agent-experience engineer, the forward-deployed kind who sits with the customer and makes the model do the actual job. Say what you need in plain words. vibe turns it into checkable scenarios, builds it, proves it by running the checks itself, and hands it over to whoever will run it. Vibe-coding quality is the by-product of that discipline.
4
4
 
5
- What vibe promises, and what its own bench supports — every number is in `bench/claims/`, written before the run. What it prevents: delivering on a guess when the brief left out something only the customer knows. On the `ask` task the bare model quoted in the wrong currency four runs in five on Claude Code and three in five on Codex; with vibe, right five of five on both, because the scenarios name what is unknown and `vibe ask` is a channel to the human. What it carries: a task split across two sessions cost 18% fewer tokens on Claude Code with vibe than without, and a quarter more on Codex. What it costs on a task the model finishes in one pass: on Claude Code 2–36% more tokens (within a quarter on two tasks of three); on Codex parity on two of three and 44% more on the third. On a 54-file repository: 16% fewer tokens on Claude Code, nearly twice as many on Codex. It does not claim to save tokens on a one-pass task, and where Codex costs more the number says so.
5
+ What vibe promises, and what its own bench supports — every number is in `bench/claims/`, written before each run, on a fair bench the harness cannot read the answer from. On a task the model finishes in one pass, vibe costs 0.7–1.2× the bare model's tokens on Claude Code and 0.8–1.0× on Codex, at equal quality. Where there is something to carry: a task split across two sessions cost 0.69× on Claude Code and 0.81× on Codex; a cross-cutting change in a 54-file repository cost 0.61× and 0.50× the tokens in 0.37× and 0.64× the time, because `vibe state` names the files each scenario is about and the model reads those and nothing else. Where there was something to prevent, the bench found nothing yet: on `ask`, a brief that leaves out what only the customer knows, both bare models asked the customer once they could be answered — an earlier claim that bare Claude Code quoted wrong five times in five was an artifact of a fake user that answered only questions with a question mark — so `ask` is retired, and vibe's part on it is that it asks and then stops (0.71× the tokens on Claude Code, 1.14× on Codex). The mechanism is the same on both clients: hooks that hand over the state when a session starts, gate the irreversible at the tool call, run the verdict when a turn ends without it, and name a completion claim the verdict does not support.
6
6
 
7
7
  Main surfaces: Claude Code · Codex CLI · ChatGPT desktop app · Hermes Agent · Claude desktop app (interview, approval, verdict, handoff).
8
8
 
@@ -10,7 +10,7 @@ Main surfaces: Claude Code · Codex CLI · ChatGPT desktop app · Hermes Agent
10
10
  npm i -g @su-record/vibe
11
11
  ```
12
12
 
13
- That is the whole install. The package registers itself as a local plugin in every client it finds and keeps the registration current on every later command:
13
+ That is the whole install. The package registers itself as a local plugin in every client it finds and `vibe setup` or `vibe update` keeps the registration current — a query such as `vibe state` never touches the install, and `vibe status` says when it is stale:
14
14
 
15
15
  | client | what the install does |
16
16
  |---|---|
@@ -31,12 +31,12 @@ Then, in chat:
31
31
  ## The flow
32
32
 
33
33
  ```
34
- request (/vibe …)
34
+ request `vibe state` says the stage and the next step (the session hook hands it over on Claude Code)
35
35
  → interview discover: at most three questions, sample profiling, anomalies said first
36
36
  → scenarios scope: each scenario bound to a check · research · skills needed → one approval
37
- → build one scenario at a time, `vibe check` after each
38
- → prove `vibe check --all` — every scenario plus every regression, ordered by the work graph
39
- → report + handoff a document the operator can run alone; irreversible steps need a token
37
+ → build everything first, then one `vibe check --all`; on a failure, fix what the check names; `vibe context <id>` when that is not enough
38
+ → prove `vibe check --all` — every scenario plus every regression, ordered by the work graph; the Stop hook runs it if a turn ends without it
39
+ → report from the check output; HANDOFF.md only when the intent asks; irreversible steps need a token
40
40
  ```
41
41
 
42
42
  Any client can pick the work up: `vibe state` says where you are, because the state lives in plain files inside the repository. There is no handoff document — the state is the handoff.
@@ -101,13 +101,15 @@ The policy is per project (`.vibe/config.json`); `vibe tokens` alone prints it.
101
101
  ## Commands
102
102
 
103
103
  ```
104
- setup update [--check] · status · tokens · uninstall [--purge-state] · plugin install | status
105
- work state [--graph] · read <file> · profile <file> · intent draft | show · approve · check · evidence · abandon
106
- human ask · authorize · inbox
107
- memory regress record | list · knowledge add
108
- research research --from-intent | "query"
104
+ setup update [--check] · status · tokens · uninstall [--purge-state] · plugin build | mcpb | install | status
105
+ work state [--graph] · read <file…> [--ask "…"] · profile <file> · intent draft | show | analyze · approve · check [id…] [--all] · evidence · abandon
106
+ checks run · file · http · eval · review · human · size [--max-file 400] [--max-function 50]
107
+ map map · symbols <file> · callers <symbol> · blast · context <scenario> · conventions
108
+ human ask · authorize --action <action> · inbox [answer <id> "…" | resolve <id>]
109
+ memory regress record | list · knowledge add [--global]
110
+ research research --from-intent | "query" [--days 30]
109
111
  skills skill suggest · create · add · search · list · used · prune · dismiss
110
- ledger ledger · ledger compare · ledger why <node> · ledger edges [--type]
112
+ ledger ledger · ledger compare --metric checks|turns|cost|ms|tokens [--paired] [--client] [--task] · ledger why <node> · ledger edges [--type]
111
113
  ```
112
114
 
113
115
  `vibe --help` has the details. Every command accepts `--json`. The exit code is the verdict: 0 ok · 1 verdict failed · 2 usage · 3 token · 4 invalid transition.
@@ -152,13 +154,13 @@ inbox.jsonl questions, STUCK notices, token hashes
152
154
  regressions/ fixed failures as reproducing checks
153
155
  knowledge/ domain notes the model reads when it needs them; research/ holds search notes
154
156
  skills/ registry of project-local skills and dismissed proposals
155
- cache/ research results, one day
156
- config.json token policy · skill catalogs
157
+ cache/ research results (one day) · map.json (the codebase map, keyed by the tree)
158
+ config.json token policy · skill catalogs · reader and reviewer model settings
157
159
  ```
158
160
 
159
161
  ## Status
160
162
 
161
- `4.0.0` — phase 1: CLI core + Claude Code. Phase 2: Codex CLI and ChatGPT desktop adapters, the work graph and typed ledger edges. Phase 3a: `http` / `eval` checks, column sums, sample profiling. Phase 3b: GitHub research, project-local skills and proposals. Phase 3c: the end-to-end order-settlement example. Phase 4: the bench and `ledger compare --by harness`. `4.0.2`: no `init` — the card, skills and hook live in the client home and any `vibe` command repairs them. `4.0.3`: `vibe uninstall` also clears what an older `init` left in the project. `4.1.0`: the package is the plugin — `npm i -g` registers a local plugin in Claude Code and Codex/ChatGPT, Hermes Agent joins as a client, `vibe plugin build --check` gates manifest drift. `4.1.1`: `vibe update`. `4.1.2`: the Claude desktop app through an MCP Bundle (`vibe plugin mcpb`). `4.1.3`: the bundle finds the CLI without the shell's PATH (Homebrew, nvm, fnm, volta) or from a path set at install. `4.1.4`: `vibe read` for xlsx · docx · pptx · pdf, `vibe profile` reads xlsx, card rule 8 (read files whole). `4.1.5`: `vibe read` for Hangul hwp · hwpx and html. `4.1.6`: `vibe size`, a built-in file/function size check for any project; the CLI split into modules; the repository's own limit is now per file (400), not a total. `4.1.7`: hook entries left by vibe 3 that point at a missing script are swept at every command, so Claude Code stops reporting them. `4.1.8`: the five stage skills are `vibe-discover` … `vibe-handoff` (a dot is outside the Agent Skills name grammar) and the dotted directories an older install left in a client home are swept; `.vibe/` means one thing — the plugin tree moves to `~/.config/vibe/plugin`, a `.vibe/` counts as a project only when it holds a record, the search stops at `.git` and never lands on the home, `vibe state` shows `root`, a `run` check that exits 127 names its cwd; the `review` check and the `antislop-ko` · `antislop-en` language packs — the harness runs a copy editor and a chief editor on human-read text and passes only on `PASS`. vibe 3 stays on its 3.x tags and is no longer developed. `4.1.9`: Codex follows `vibe update` — the version Codex actually holds is read from its cache, compared with the package and re-registered (remove + add) when behind; a marketplace entry still pointing at the ≤ 4.1.7 store is drift; `vibe status` reports the Codex plugin version it read, not the package version. `4.1.10`: `vibe read --ask` — the harness reads for the model: files (numbered) go to a low-reasoning reader on the client CLI and only the answer returns; the reader runs slim (own system prompt, no tools, no settings, neutral directory) and one session per file set is resumed for follow-up questions so the corpus is read from cache, with the hit reported; the hook advises `--ask` on reads over 400 lines; card rule 8 says when to delegate; the `review` check's Codex command gets `--skip-git-repo-check`. Also: `regress record` made ids longer than the 40-character rule, so every recorded regression was silently left out of `check --all` — the id now fits, a file that parses to nothing is named in `vibe state`, and the repository's four regressions run again. `4.1.11`: antislop reaches design — `antislop-design` and its two reviewers (markup reviewer, art director) join the text packs, reviewer stages are data (`reviewers/<pack>/N-<stage>.md`), the `review` check takes `pack`, a directory of source and a `screenshot`; the text packs gain strength tiers, five questions before a cut, the portability test, notes-to-the-writer, sample-outranks-rules and a what-is-not-a-tell list, and the reviewers may name what to keep. `4.1.12`: the agent's own report is not slop — card rule 9 (what changed apart from what `vibe check` verified; keep the caveat that changes the next step; an error is its cause and fix; answer first, no praise, apology or closing offer) and a Report voice section in `vibe-handoff` (each Built line names its check and run or says "not checked"; estimates in turns and tool calls, never calendar time; the handoff document follows `antislop-en`). `4.1.13`: the deterministic pre-gate — `file … absent` (a regex that must match nowhere: placeholders, a writer's note in double square brackets that was reprinted into the artifact), proposed by the scope skill next to every `review`; this repository gates its own documents the same way. No word lists, no dash counts: the judgment stays with the reviewers. `4.1.14`: one spec — the reviewers run slim (own system prompt, only their file tools, no project context) at the client's default model and report per-stage usage; `antislop-code` with a reviewer and a maintainer; `file … traceable` (every number is in the evidence) and `file … a11y` (alt, heading order, unnamed controls, unlabelled inputs, contrast); `usage` ledger events from the reader and the reviewers that `ledger compare --metric cost` counts; `vibe skill add` takes the whole skill tree; highest version wins when a development checkout and a global install share a home; research asks about what the intent's success section names, never the title's first words. `4.1.15`: `vibe size` reads regex literals — a quote or a backtick inside one no longer opens a string that swallows the rest of the file. `4.1.16`: a code or design review reads what changed and what depends on it — `changed: true` on a directory review sends the files git says changed plus their one-hop importers, with roles, instead of the whole tree (on this repository: 4 files instead of 85 for a typical change); nothing changed reviews nothing. `4.1.17`: the reader's and the reviewers' model and effort are project settings (`reader: { model, effort }`, `reviewer: { model, effort }` in config.json, four env overrides); vibe keeps no model catalogue. `4.1.18`: research has a time window — `--days N` (default 30); a repository that released or committed inside it ranks above one that did not, whatever its score, and the `why` says what moved. `4.1.19`: vibe runs on Windows — the entry guard reads its own path with `fileURLToPath` (the `URL.pathname` form never matched there, so every command exited silently), and arguments to a client CLI spawned through the Windows shell are quoted, so an empty `--tools` stays empty. `4.1.20`: the basic harness — `vibe map` · `symbols` · `callers` · `blast` (a dependency-free codebase map that `changed` reviews and `read --ask` use), `vibe context <scenario>`, `vibe conventions` and `knowledge add --global`, `vibe intent analyze` before approval, a hook that blocks the irreversible under `strict`/`irreversible`, `vibe status` naming the tools it would use, three bench tasks with a bench gate (`checks/bench-gate.js`, `compare --metric ms --paired`), Windows CI, and the build/discover/scope skills carrying the no-nested-subagent, batch, file-handoff, context-reset, question-ordering and skill-litmus rules. `4.1.21`: the harness costs less than it saves — `vibe state` carries a `next` line and a `size`, the router follows it and never re-enters scope, the fast path for a small task (one `check --all`), a regression only for a failure a check reported; a check observes — a `run` command that mutates is `irreversible`, never run by `check --all` without `vibe authorize`, never a regression; the bench is isolated from the operator's home and split into an overhead set and a direction set with pre-registered rules, `compare --client --task`, and a gate per set. The first clean bench (4.1.20) is recorded in `bench/claims/`: quality identical, `on` 2–5× the turns — the number this release exists to cut. `4.1.22`: the brownfield bench — this repository as the task, a cross-cutting change judged by tests, `compare --metric tokens`, a `context` set in the gate with the 0.7 rule; its result (the map saved nothing on a cached 54-file repository) is in `bench/claims/`, and three benches set this release's second half: the full path is the small path plus failure handling (`check --all` once; `vibe context` and `check <id>` only for a scenario that failed), the overhead allowance is +2 turns, `vibe state` is the brief (each scenario line names its check) and `vibe check` ends with the `next` line so the model opens no record and calls no second command, the card starts at `vibe state` and loads only the skill `next` names, the three stage skills gate themselves (build for a full task only, prove only on STUCK, handoff only when the intent asks for a document) and DONE means answering from the check output with no skill and no further reads, the hook gates the same actions the check gate names (`reset`, `restore`, `seed`, `drop` … not only `push` and `rm -rf`), the direction set is two traps with something to prevent (`irreversible-trap`, `session-split`), the bench reads Claude's usage from the event stream so a run that dies late still counts, the README's first paragraph says only what the numbers support, and a Codex update keeps the replaced version in Codex's cache so a session that started under it keeps its hooks until it restarts. Bench runs through the day (`bench/claims/2026-09-09-4.1.22*.md`) took Claude Code's overhead from 2× to about +3 turns, session-split from +8 to 0, and brownfield from +4–25% to −45% tokens; the irreversible-trap did not separate and is recorded as such. The fifth run measured the rest of the release — the session hook hands over `vibe state`, the Stop hook runs the verdict, `size: full` means the build skill applies, card rule 8 delegates only files over 400 lines and samples over 100 rows, the `ask` task with a fake user, an eight-subcommand session-split cut at a third, the gate on tokens and time — and the opening paragraph is written from it: `ask` is the first direction task that separates the arms on both clients; Claude Code's one-pass overhead is 2–36% tokens; Codex costs more where it reads more.
163
+ `4.0.0` — phase 1: CLI core + Claude Code. Phase 2: Codex CLI and ChatGPT desktop adapters, the work graph and typed ledger edges. Phase 3a: `http` / `eval` checks, column sums, sample profiling. Phase 3b: GitHub research, project-local skills and proposals. Phase 3c: the end-to-end order-settlement example. Phase 4: the bench and `ledger compare --by harness`. `4.0.2`: no `init` — the card, skills and hook live in the client home and any `vibe` command repairs them. `4.0.3`: `vibe uninstall` also clears what an older `init` left in the project. `4.1.0`: the package is the plugin — `npm i -g` registers a local plugin in Claude Code and Codex/ChatGPT, Hermes Agent joins as a client, `vibe plugin build --check` gates manifest drift. `4.1.1`: `vibe update`. `4.1.2`: the Claude desktop app through an MCP Bundle (`vibe plugin mcpb`). `4.1.3`: the bundle finds the CLI without the shell's PATH (Homebrew, nvm, fnm, volta) or from a path set at install. `4.1.4`: `vibe read` for xlsx · docx · pptx · pdf, `vibe profile` reads xlsx, card rule 8 (read files whole). `4.1.5`: `vibe read` for Hangul hwp · hwpx and html. `4.1.6`: `vibe size`, a built-in file/function size check for any project; the CLI split into modules; the repository's own limit is now per file (400), not a total. `4.1.7`: hook entries left by vibe 3 that point at a missing script are swept at every command, so Claude Code stops reporting them. `4.1.8`: the five stage skills are `vibe-discover` … `vibe-handoff` (a dot is outside the Agent Skills name grammar) and the dotted directories an older install left in a client home are swept; `.vibe/` means one thing — the plugin tree moves to `~/.config/vibe/plugin`, a `.vibe/` counts as a project only when it holds a record, the search stops at `.git` and never lands on the home, `vibe state` shows `root`, a `run` check that exits 127 names its cwd; the `review` check and the `antislop-ko` · `antislop-en` language packs — the harness runs a copy editor and a chief editor on human-read text and passes only on `PASS`. vibe 3 stays on its 3.x tags and is no longer developed. `4.1.9`: Codex follows `vibe update` — the version Codex actually holds is read from its cache, compared with the package and re-registered (remove + add) when behind; a marketplace entry still pointing at the ≤ 4.1.7 store is drift; `vibe status` reports the Codex plugin version it read, not the package version. `4.1.10`: `vibe read --ask` — the harness reads for the model: files (numbered) go to a low-reasoning reader on the client CLI and only the answer returns; the reader runs slim (own system prompt, no tools, no settings, neutral directory) and one session per file set is resumed for follow-up questions so the corpus is read from cache, with the hit reported; the hook advises `--ask` on reads over 400 lines; card rule 8 says when to delegate; the `review` check's Codex command gets `--skip-git-repo-check`. Also: `regress record` made ids longer than the 40-character rule, so every recorded regression was silently left out of `check --all` — the id now fits, a file that parses to nothing is named in `vibe state`, and the repository's four regressions run again. `4.1.11`: antislop reaches design — `antislop-design` and its two reviewers (markup reviewer, art director) join the text packs, reviewer stages are data (`reviewers/<pack>/N-<stage>.md`), the `review` check takes `pack`, a directory of source and a `screenshot`; the text packs gain strength tiers, five questions before a cut, the portability test, notes-to-the-writer, sample-outranks-rules and a what-is-not-a-tell list, and the reviewers may name what to keep. `4.1.12`: the agent's own report is not slop — card rule 9 (what changed apart from what `vibe check` verified; keep the caveat that changes the next step; an error is its cause and fix; answer first, no praise, apology or closing offer) and a Report voice section in `vibe-handoff` (each Built line names its check and run or says "not checked"; estimates in turns and tool calls, never calendar time; the handoff document follows `antislop-en`). `4.1.13`: the deterministic pre-gate — `file … absent` (a regex that must match nowhere: placeholders, a writer's note in double square brackets that was reprinted into the artifact), proposed by the scope skill next to every `review`; this repository gates its own documents the same way. No word lists, no dash counts: the judgment stays with the reviewers. `4.1.14`: one spec — the reviewers run slim (own system prompt, only their file tools, no project context) at the client's default model and report per-stage usage; `antislop-code` with a reviewer and a maintainer; `file … traceable` (every number is in the evidence) and `file … a11y` (alt, heading order, unnamed controls, unlabelled inputs, contrast); `usage` ledger events from the reader and the reviewers that `ledger compare --metric cost` counts; `vibe skill add` takes the whole skill tree; highest version wins when a development checkout and a global install share a home; research asks about what the intent's success section names, never the title's first words. `4.1.15`: `vibe size` reads regex literals — a quote or a backtick inside one no longer opens a string that swallows the rest of the file. `4.1.16`: a code or design review reads what changed and what depends on it — `changed: true` on a directory review sends the files git says changed plus their one-hop importers, with roles, instead of the whole tree (on this repository: 4 files instead of 85 for a typical change); nothing changed reviews nothing. `4.1.17`: the reader's and the reviewers' model and effort are project settings (`reader: { model, effort }`, `reviewer: { model, effort }` in config.json, four env overrides); vibe keeps no model catalogue. `4.1.18`: research has a time window — `--days N` (default 30); a repository that released or committed inside it ranks above one that did not, whatever its score, and the `why` says what moved. `4.1.19`: vibe runs on Windows — the entry guard reads its own path with `fileURLToPath` (the `URL.pathname` form never matched there, so every command exited silently), and arguments to a client CLI spawned through the Windows shell are quoted, so an empty `--tools` stays empty. `4.1.20`: the basic harness — `vibe map` · `symbols` · `callers` · `blast` (a dependency-free codebase map that `changed` reviews and `read --ask` use), `vibe context <scenario>`, `vibe conventions` and `knowledge add --global`, `vibe intent analyze` before approval, a hook that blocks the irreversible under `strict`/`irreversible`, three bench tasks with a bench gate (`checks/bench-gate.js`, `compare --metric ms --paired`), Windows CI, and the build/discover/scope skills carrying the no-nested-subagent, batch, file-handoff, context-reset, question-ordering and skill-litmus rules. `4.1.21`: the harness costs less than it saves — `vibe state` carries a `next` line and a `size`, the router follows it and never re-enters scope, the fast path for a small task (one `check --all`), a regression only for a failure a check reported; a check observes — a `run` command that mutates is `irreversible`, never run by `check --all` without `vibe authorize`, never a regression; the bench is isolated from the operator's home and split into an overhead set and a direction set with pre-registered rules, `compare --client --task`, and a gate per set. The first clean bench (4.1.20) is recorded in `bench/claims/`: quality identical, `on` 2–5× the turns — the number this release exists to cut. `4.1.22`: the brownfield bench — this repository as the task, a cross-cutting change judged by tests, `compare --metric tokens`, a `context` set in the gate with the 0.7 rule; its result (the map saved nothing on a cached 54-file repository) is in `bench/claims/`, and three benches set this release's second half: the full path is the small path plus failure handling (`check --all` once; `vibe context` and `check <id>` only for a scenario that failed), the overhead allowance is +2 turns, `vibe state` is the brief (each scenario line names its check) and `vibe check` ends with the `next` line so the model opens no record and calls no second command, the card starts at `vibe state` and loads only the skill `next` names, the three stage skills gate themselves (build for a full task only, prove only on STUCK, handoff only when the intent asks for a document) and DONE means answering from the check output with no skill and no further reads, the hook gates the same actions the check gate names (`reset`, `restore`, `seed`, `drop` … not only `push` and `rm -rf`), the direction set is two traps with something to prevent (`irreversible-trap`, `session-split`), the bench reads Claude's usage from the event stream so a run that dies late still counts, the README's first paragraph says only what the numbers support, and a Codex update keeps the replaced version in Codex's cache so a session that started under it keeps its hooks until it restarts. `4.1.24`: asking is a stop (`vibe ask` says stop and wait; `next` says wait while a question is unanswered and carries the answer once it is), a failed check names its files and the procedure says fix what the check names, the Stop hook names a completion claim the verdict does not support, `vibe status` says whether Codex trusts vibe's hooks, the scope skill probes an assumption before scenarios and writes a check first; the gate gains a rule — on a trap, `on` turns at most twice `off` — after Codex spent 49.8 turns against 16.2 on `ask` in 4.1.23 (29.0 after); `ask` retired once a fair fake user showed both bare models ask on their own; build output is never a scenario's file (every Codex brownfield run had read `dist/cli.js`), which took Codex's brownfield from 0.75× to 0.50×. `4.1.23`: DONE you can trust — a pass is bound to the tree it was taken on, the approval hash is re-verified at check, a parent is judged by this run, the hook judges every command segment; a bench that cannot be read for the answer (`checks/` to both arms, `key/` never, `judge/` without a key) after the transcripts showed the `on` arm reading `right.cjs` and `expected.json`, with every earlier `on`-arm number withdrawn; queries never repair the install (`vibe setup` does); one procedure source; `vibe state` names each scenario's files and rule 8 reads those alone; the state is handed over at session start in settings mode too; Codex runs the same five hooks once trusted (the bench never had them before); Codex's cached input tokens counted once; side-model tokens counted; the gate is the release condition and passes on both clients. Bench runs through the day (`bench/claims/2026-09-09-4.1.22*.md`) took Claude Code's overhead from 2× to about +3 turns, session-split from +8 to 0, and brownfield from +4–25% to −45% tokens; the irreversible-trap did not separate and is recorded as such. The fifth run measured the rest of the release — the session hook hands over `vibe state`, the Stop hook runs the verdict, `size: full` means the build skill applies, card rule 8 delegates only files over 400 lines and samples over 100 rows, the `ask` task with a fake user, an eight-subcommand session-split cut at a third, the gate on tokens and time — and the opening paragraph is written from it: `ask` is the first direction task that separates the arms on both clients; Claude Code's one-pass overhead is 2–36% tokens; Codex costs more where it reads more.
162
164
 
163
165
  ## Bench — the ledger is the benchmark
164
166
 
@@ -172,13 +174,13 @@ Alone, vibe already makes the model do better; with other harnesses installed it
172
174
  - **`vibe context <scenario>`** hands the model what one scenario needs, most relevant first and each with its source: the check, the files and symbols it touches with their neighbours, the conventions, the ledger events that touched those files (decisions, regressions, REJECTs with their KEEP lines), the knowledge notes that match, and the global notes — within 12,000 characters. The build skill reads it before building a scenario; the prove skill on STUCK.
173
175
  - **`vibe conventions`** writes `.vibe/knowledge/conventions.md`: what the repository declares (lint and formatter configs, `tsconfig` strictness, the test and lint scripts, an `AGENTS.md` heading) and what the harness learned — a REJECT reason or a KEEP line that recurs, every regression title, every decision recorded at approval — one line each with its source, append-only. `vibe knowledge add --global` keeps a note under `~/.config/vibe/knowledge/` for every project.
174
176
  - **`vibe intent analyze`** is the read-only check before approval: each bullet of "What counts as success" against the scenarios — `uncovered` bullets, `unrequested` scenarios, a `human` check where a file or a command is named is `weak`. The scope skill resolves `uncovered` before it asks for the approval.
175
- - **The hooks carry the procedure.** On Claude Code the `SessionStart` hook hands over the card and, inside a project, the `vibe state` output — the first command already run; the `Stop` hook runs `vibe check --all` when a turn ends with an approved intent still building and returns the verdict as the reason the turn is not over (once; a turn already continued this way is let go), so "done" is a structure, not a rule. Codex has neither event: the card lives in `~/.codex/AGENTS.md`.
177
+ - **The hooks carry the procedure.** On Claude Code the `SessionStart` hook hands over the card (plugin mode) and, inside a project, the `vibe state` output — the first command already run, in plugin and settings mode alike; the `Stop` hook runs `vibe check --all` when a turn ends with an approved intent still building and returns the verdict as the reason the turn is not over (once; a turn already continued this way is let go), and when the model's last message claims completion — done, finished, passed — that the verdict does not support, the reason opens with `unverified: "<claim>"`; so "done" is a structure, not a rule. Codex runs the same hooks — SessionStart, PreToolUse, PostToolUse, Stop — once their trust is granted (Codex records a `trusted_hash` per hook in `~/.codex/config.toml`; it asks on first use, and the bench passes `--dangerously-bypass-hook-trust` for the workspace's own hooks); the card lives in `~/.codex/AGENTS.md`.
176
178
  - **The hook gates the irreversible.** Under the `strict` and `irreversible` token policies the `PreToolUse` hook blocks (exit 2) a command with no authorize record in the last ten minutes that does what the check gate calls irreversible — `restore`, `reset`, `drop`, `truncate`, `seed`, `migrate … down`, `rm -rf`, `git push`, `deploy`, `publish`, `terraform apply`, plus a send — the same action words `vibe authorize --action` takes, so a blocked tool call and a blocked check ask for the same record; a command that only reads (`grep`, `cat`, `git log` …) is never gated; under `off` it warns, and `vibe tokens off` says once that `off` belongs inside a container or a VM.
177
- - **`vibe status` lists the tools vibe would use if present** — `graft` and `trace` (map, callers, blast), `claude` and `codex` (reader, reviewer), `pdftotext`, `agent-browser` and `playwright` (a screenshot for the art director), `last30days` (research) — with what each serves and what vibe does alone; the scope skill puts a one-line install in the approval message when a project would use one. Nothing is installed by vibe.
179
+ - **Other tools are used when present, never listed.** `graft` and `trace` (map, callers, blast), `claude` and `codex` (reader, reviewer), `pdftotext` (pdf), `agent-browser` and `playwright` (a screenshot for the art director) are detected and used through one convention; absent, vibe does the work itself. The scope skill puts a one-line install in the approval message when a project would use one. Nothing is installed by vibe, and `vibe status` shows the install, not a tool table.
178
180
  - **The bench is a gate.** `bench/tasks/` holds three deterministic tasks (`settlement`, `vibe-fix`, `report`); `bench/run.js --task all --parallel 4` runs the arms side by side and records turns, reported cost, cost recomputed from tokens with the published cache multipliers, tokens by kind, wall-clock and pass; `vibe ledger compare --metric ms --paired` compares only runs both arms passed; `checks/bench-gate.js` passes when every task has five runs per arm and the `on` arm is not worse on checks. A release that claims a saving writes the claim in its intent before the bench runs and quotes the verdict; a claim that lands `inconclusive` is not made.
179
- - **`vibe state` says what to do next.** Its `next` line is the procedure — `build a, b, c — then one vibe check --all` · `approve — …` · `report — DONE r-3; …` — each scenario line names its check (`— check: node --test tests/add.test.cjs`), so the state is the brief and no record needs opening; `vibe check` ends with the same `next` line; the card starts at `vibe state` and loads only the skill `next` names; with an approved intent the model never re-enters scope. Every size takes the **fast path**: build everything, then one `check --all`, no `vibe context` before building, no HANDOFF.md unless the intent asks, and no check after DONE; `size: full` (an irreversible scenario, a review/http/eval check, a needs chain two deep, or more than eight scenarios — a count of five is not a reason) adds only the failure handling — `vibe context <id>` and `vibe check <id>` for a scenario that failed. `vibe map` and `vibe context` are tools for a question, not steps. A regression is recorded only for a failure `vibe check` reported, never for the task's own bug. This is what the first clean bench said the harness was paying for: procedure, on tasks that did not need it.
181
+ - **`vibe state` says what to do next.** Its `next` line is the procedure — `build a, b, c — then one vibe check --all` · `approve — …` · `report — DONE r-3; …` — each scenario line names its check (`— check: node --test tests/add.test.cjs`) and, for a scenario still to pass, the files it is about (`— files: …` — the check's files plus one hop of imports from the codebase map, built on the way), so the state is the brief, no record needs opening, and card rule 8 says: read whole what the state names, open nothing else until a check fails; `vibe check` ends with the same `next` line; the card starts at `vibe state` and loads only the skill `next` names; with an approved intent the model never re-enters scope. Every size takes the **fast path**: build everything, then one `check --all`, no `vibe context` before building, no HANDOFF.md unless the intent asks, and no check after DONE; `size: full` (an irreversible scenario, a review/http/eval check, a needs chain two deep, or more than eight scenarios — a count of five is not a reason) adds only the failure handling — `vibe context <id>` and `vibe check <id>` for a scenario that failed. `vibe map` and `vibe context` are tools for a question, not steps. A regression is recorded only for a failure `vibe check` reported, never for the task's own bug. This is what the first clean bench said the harness was paying for: procedure, on tasks that did not need it.
180
182
  - **A check observes.** A `run` command that would change the world — `restore`, `reset`, `drop`, `truncate`, `seed`, `migrate … down/fresh/rollback`, `rm -rf`, `git push`, `deploy`, `publish`, `terraform apply` — is detected at parse time and marked `irreversible` with its action (a scenario may declare its own). `vibe check --all` and `vibe check <id>` never execute an irreversible scenario without an `authorize` record for that action in the last ten minutes: the outcome is `blocked` with the reason, DONE stays out of reach, the run is not STUCK for it. `vibe regress record` refuses to copy such a check. This is the fix for an incident where a regression that carried a database restore was re-run by `check --all` after seeding and overwrote the seed.
181
- - **The bench has two sets.** The **overhead set** (`settlement`, `vibe-fix`, `report`) is saturated on purpose — every arm passes — and measures what the harness costs: the measure is the user's — tokens and time — and the pre-registered rule is `on` weighted input tokens ≤ `off` × 1.25 and `on` time ≤ `off` × 1.5; turns are reported, not gated, since two of them are the harness's own commands. The **direction set** (`ask`, `session-split`) is where the bare model goes wrong, and measures what the harness prevents: on `ask` (a quote whose currency and discount are not in the files; a fake user answers only what an arm asked between two sessions, in the inbox for `on` and in TASK.md for both) `on` must score higher on checks per client; on `session-split` (one task, two sessions with no memory between, the sum measured) `on` must not be worse on checks and must spend no more tokens over its two sessions; a task that does neither is retired as one the bare model already gets right. `irreversible-trap` (a data reset in the brief's natural path, judged by whether the seeded row survived — the bare model never ran it) and the four 4.1.21 direction tasks (`hidden-requirement`, `regression-trap`, `long-context`, `ambiguous-brief`) were retired that way and stay on disk. `bench/run.js --set overhead|direction|all`; `vibe ledger compare --client <c> --task <t>` reads one ledger; `checks/bench-gate.js` judges both rules per set. The `on` arm carries the six common skills only.
183
+ - **The bench has two sets.** The **overhead set** (`settlement`, `vibe-fix`, `report`) is saturated on purpose — every arm passes — and measures what the harness costs: the measure is the user's — tokens and time — and the pre-registered rule is `on` weighted input tokens ≤ `off` × 1.25 and `on` time ≤ `off` × 1.5; turns are reported, not gated, since two of them are the harness's own commands. The **direction set** (`session-split`) is where the bare model goes wrong, and measures what the harness prevents: on `session-split` (one task, two sessions with no memory between, the sum measured) `on` must not be worse on checks and must spend no more tokens over its two sessions; a task that does neither is retired as one the bare model already gets right. `ask` (a quote whose terms only the customer knows — both bare models asked once the fake user answered any question about the quote), `irreversible-trap` (a data reset in the brief's natural path, judged by whether the seeded row survived — the bare model never ran it) and the four 4.1.21 direction tasks (`hidden-requirement`, `regression-trap`, `long-context`, `ambiguous-brief`) were retired that way and stay on disk. `bench/run.js --set overhead|direction|all`; `vibe ledger compare --client <c> --task <t>` reads one ledger; `checks/bench-gate.js` judges both rules per set. The `on` arm carries the six common skills only.
182
184
  - **The context set.** `brownfield` is this repository at the release commit, built, with one cross-cutting change to make (a `lines` rule for the `file` check, wired through validation, the check, the README table and the scope skill), judged by tests; five scenarios, so the `on` arm runs `full` with the map and `vibe context` on. `vibe ledger compare --metric tokens` compares weighted input (`input + 0.1 × cacheRead + 1.25 × cacheWrite`); the pre-registered rule is `on` ≤ `off` × 0.7 at equal quality — the saving Graft measures on rediscovery, measured here on vibe's own map.
183
185
  - CI runs the platform-independent tests on Windows as well as Linux and drives the CLI through npm's `.cmd` shim (`vibe --version`, `vibe state`, `vibe read --ask` against a fake reader); the fixtures that fake a client CLI with a POSIX shim stay Linux-only until they are ported.
184
186
 
package/card.md CHANGED
@@ -1,10 +1,10 @@
1
1
  You work inside vibe. Rules:
2
- 1. Start from `vibe state`: `next` is the procedure, each scenario line names its check; load only the skill `next` names.
3
- 2. Done is only what `vibe check --all` says: build all, one `check --all`; on a failure, `vibe context <id>` then `check <id>`. Never claim it.
4
- 3. Human token: show the number, wait in chat, never invent one.
5
- 4. Same failure twice: stop and `vibe ask`.
6
- 5. Surface at most three unasked things, each with its reason.
7
- 6. `vibe regress record` only for a failure `vibe check` reported and you fixed.
2
+ 1. Start from `vibe state`: `next` is the procedure; each scenario line names its check and files; load only the skill `next` names.
3
+ 2. Done is only what `vibe check --all` says: build all first, one `check --all`; on a failure, fix what the check names; `vibe context <id>` when that is not enough.
4
+ 3. Human token: show the number, wait in chat; never invent it.
5
+ 4. Same failure twice: `vibe ask`.
6
+ 5. Surface up to three unasked things, each with a reason.
7
+ 6. `vibe regress record` only for a failure `vibe check` reported and fixed.
8
8
  7. Talk in the user's language; every record in English.
9
- 8. Read files whole; search only to locate. Over 400 lines and not for editing: `vibe read <files> --ask "…"`; office files `vibe read`; samples over 100 rows `vibe profile`; images your eyes.
10
- 9. Report what changed beyond what `vibe check` verified; an unchecked claim is unverified. Keep the caveat that changes the next step; cut the rest. An error: cause and fix. Answer first; no praise, apology or offer.
9
+ 8. Read whole the files the state names; others after a failed check. Over 400 lines, not for editing: `vibe read <files> --ask "…"`; office files `vibe read`; samples over 100 rows `vibe profile`; images your eyes.
10
+ 9. Report what changed beyond what `vibe check` verified; unchecked is unverified. Keep the caveat that moves the next step. An error: cause and fix. Answer first; no praise or offer.
@@ -34,26 +34,27 @@ export function flagString(flags, key) {
34
34
  }
35
35
  export const HELP = `vibe — an AX/FDE harness. The harness judges; a human approves.
36
36
 
37
- setup update [--check] · status · tokens [strict|irreversible|off] · uninstall [--purge-state] (card, skills and hook live in ~/.claude and ~/.codex;
37
+ setup setup (card, skills, hook or the plugin registration — the only repair besides update) · update [--check] · status · tokens [strict|irreversible|off] · uninstall [--purge-state] (card, skills and hook live in ~/.claude and ~/.codex;
38
38
  npm i -g puts them there and any vibe command repairs them; uninstall also clears what an older init left in the project)
39
39
  plugin build [--check] (manifests from package.json) · plugin mcpb [--out vibe.mcpb] (Claude desktop app bundle) · plugin install | status [--home <dir>]
40
40
  work state [--graph] · read <file…> [--sheet] [--pages] (xlsx·docx·pptx·pdf·hwp·hwpx·html·tables·code) · read <file…> --ask "question" (a low-reasoning model reads, only the answer returns)
41
41
  profile <file> [--sheet] (csv·tsv·jsonl·json·xlsx) · intent draft <intent.md> <scenarios.yaml> | --stdin · intent show
42
42
  approve [token] · check [id…] [--all] · evidence [run] · abandon --reason "…"
43
- checks run (exit code) · file (exists·pattern·contains·schema·sum) · http (status·schema·maxMs) · eval (matching cases ≥ expect.pass) · human (inbox, no verdict)
43
+ checks run (exit code; a mutating command is irreversible and needs vibe authorize) · file (exists·pattern·contains·absent·schema·sum·traceable·a11y) · http (status·schema·maxMs) · eval (matching cases ≥ expect.pass)
44
+ review (pack ko|en|design|code, path, changed, screenshot — two reviewer stages, PASS only) · human (inbox, no verdict)
44
45
  size [paths…] [--max-file 400] [--max-function 50] — a built-in check for a scenario: exit 1 when a file or function is over
45
46
  map map [path] · symbols <file> · callers <symbol> [--depth N] · blast [--depth 2] (the codebase map: symbols, imports, callers — graft when present)
46
47
  context context <scenario> (what one scenario needs: check, files, symbols, conventions, decisions, notes) · conventions (read + learned → .vibe/knowledge/conventions.md)
47
48
  intent analyze (success bullets vs scenarios: uncovered · unrequested · weak) · knowledge add <file|--stdin> --title "…" [--global]
48
49
  human ask "question" [--options "a|b"] [--default a] [--needs approve|authorize:<action>] [--target "…"]
49
- authorize <token> --action push|deploy|send|delete|spend [--target "…"] · inbox [list|answer <id> "text"|resolve <id>]
50
+ authorize [token] --action <action> [--target "…"] (push · deploy · publish · send · delete · restore · reset · seed · migrate · drop · truncate · apply · spend — the same words the hook and the check gate use) · inbox [list|answer <id> "text"|resolve <id>]
50
51
  memory regress record --scenario <id> --title "…" [--check-from-evidence <run>] · regress list
51
52
  knowledge add <file|--stdin> --title "…"
52
53
  research research --from-intent | "query" [--sources repos,code,skills] [--max 5] [--days 30] (GitHub · skill catalogs · what moved inside the window first · 24h cache)
53
54
  skills skill suggest [--all] · skill create <name> --check run|file|http|eval [--from-scenario <id>]
54
55
  skill add owner/repo[@name] [--pin <sha>] [--yes] · skill search <keyword> · skill list
55
56
  skill used <name> · skill prune [--unused-runs 10] [--dry-run] · skill dismiss <ref>
56
- ledger ledger [--since 7d] · ledger compare --by client|model|harness --metric checks|turns|cost [--min-runs 5] [--ledger <file>]
57
+ ledger ledger [--since 7d] · ledger compare --by client|model|harness --metric checks|turns|cost|ms|tokens [--paired] [--client <c>] [--task <t>] [--min-runs 5] [--ledger <file>]
57
58
  ledger why <node> [--depth 3] · ledger edges [--type supersedes|decided-by|implements|caused]
58
59
 
59
60
  A scenario may declare needs: [ids] — independent scenarios are checked in parallel, dependents after their parents pass.
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/cli/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAa5C,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;AAE5G,MAAM,UAAU,SAAS,CAAC,IAA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OAAO,IAAI,SAAS,CAAC;AACvG,CAAC"}
package/dist/cli/human.js CHANGED
@@ -45,8 +45,9 @@ export function cmdAsk(root, args, flags) {
45
45
  `question recorded [${result.id}]`,
46
46
  ...(result.token ? [`token: ${result.token} (valid until ${result.expiresAt}) — the user must paste it back in chat before anything proceeds`] : []),
47
47
  ...(needsRaw && !result.token ? [`tokens: ${policy} — no token needed; proceed when the user says yes`] : []),
48
+ `stop here and wait — the user answers in chat (or \`vibe inbox answer ${result.id} "…"\` as the user); do not answer it yourself`,
48
49
  ].join('\n');
49
- return { json: { ...result, policy }, text, code: 0 };
50
+ return { json: { ...result, policy, wait: true }, text, code: 0 };
50
51
  }
51
52
  export function cmdAuthorize(root, args, flags) {
52
53
  ensureProject(root);
@@ -1 +1 @@
1
- {"version":3,"file":"human.js","sourceRoot":"","sources":["../../src/cli/human.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,aAAa,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC1F,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,UAAU,EAA2B,MAAM,aAAa,CAAC;AAElE,MAAM,UAAU,MAAM,CAAC,IAAY,EAAE,IAAc,EAAE,KAAY;IAC/D,aAAa,CAAC,IAAI,CAAC,CAAC;IACpB,MAAM,QAAQ,GAAG,IAAI,CAAC,IA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E,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,gBAAgB,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;AAC9N,CAAC"}
package/dist/cli/setup.js CHANGED
@@ -1,9 +1,8 @@
1
1
  import path from 'node:path';
2
- import { capabilityLines, detectCapabilities } from '../core/capabilities.js';
3
2
  import { spawnSync } from 'node:child_process';
4
3
  import { parseTokenPolicy, readConfig, writeConfig } from '../core/config.js';
5
4
  import { usage } from '../core/errors.js';
6
- import { globalStatus, uninstallGlobal, uninstallProjectSurfaces } from '../install/global.js';
5
+ import { ensureGlobal, globalStatus, uninstallGlobal, uninstallProjectSurfaces } from '../install/global.js';
7
6
  import { buildMcpb } from '../install/mcpb.js';
8
7
  import { installPlugin, pluginStatus } from '../install/plugin.js';
9
8
  import { ensureProject, projectStatus, purgeProject } from '../install/project.js';
@@ -19,23 +18,29 @@ export function cmdTokens(root, policyRaw) {
19
18
  const note = policy === 'off' && policyRaw ? '\n off means no token and no gate: the hook only warns before an irreversible command. Use it inside a container or a VM.' : '';
20
19
  return { json: { tokens: policy }, text: `tokens: ${policy}${note}`, code: 0 };
21
20
  }
21
+ /** The one command whose job is the install: card, skills and hook per client, or the plugin registration. */
22
+ export function cmdSetup(flags) {
23
+ const home = flagString(flags, 'home');
24
+ const repaired = ensureGlobal(home);
25
+ const g = globalStatus(home);
26
+ const lines = Object.entries(g.clients).map(([client, c]) => ` ${client.padEnd(9)} ${c.mode === 'plugin' ? `plugin ${c.pluginVersion ?? 'not installed'}` : `home · card ${c.card ? 'ok' : '-'} · skills ${c.skills} · hook ${c.hook ? 'ok' : '-'}`}${repaired.includes(client) ? ' — set up now' : c.current ? ' — current' : ' — still stale'}${c.hooksTrusted === false || c.hooksTrusted === null ? ' — hooks not trusted by Codex: open Codex once in a vibe project and accept them, or pass --dangerously-bypass-hook-trust in automation' : c.hooksTrusted ? ' · hooks trusted' : ''}`);
27
+ return { json: { repaired, ...g }, text: [`vibe ${packageVersion()} — ${g.home}`, ...lines].join('\n'), code: 0 };
28
+ }
22
29
  export function cmdStatus(root, flags) {
23
30
  const g = globalStatus(flagString(flags, 'home'));
24
31
  const p = projectStatus(root);
25
32
  const update = process.env['VIBE_OFFLINE'] ? { installed: packageVersion(), latest: null, available: false } : checkUpdate();
26
33
  const lines = [
27
34
  `vibe ${packageVersion()} — ${g.home}`,
28
- ...Object.entries(g.clients).map(([client, c]) => ` ${client.padEnd(9)} ${c.mode === 'plugin' ? `plugin ${c.pluginVersion ?? 'not installed'}` : `home · card ${c.card ? 'ok' : '-'} · skills ${c.skills} · hook ${c.hook ? 'ok' : '-'}`}${c.current ? '' : ' — stale; any vibe command repairs it'}`),
35
+ ...Object.entries(g.clients).map(([client, c]) => ` ${client.padEnd(9)} ${c.mode === 'plugin' ? `plugin ${c.pluginVersion ?? 'not installed'}` : `home · card ${c.card ? 'ok' : '-'} · skills ${c.skills} · hook ${c.hook ? 'ok' : '-'}`}${c.current ? '' : ' — stale; `vibe setup` repairs it'}${c.hooksTrusted === false || c.hooksTrusted === null ? ' — hooks not trusted by Codex: open Codex once in a vibe project and accept them, or pass --dangerously-bypass-hook-trust in automation' : c.hooksTrusted ? ' · hooks trusted' : ''}`),
29
36
  ` card ${g.cardBytes} bytes${g.cardOver ? ' — over 1KB!' : ''}`,
30
37
  ...(update.available ? [` update ${update.latest} available — \`vibe update\``] : []),
31
38
  `project ${p.root}`,
32
39
  ` .vibe ${p.vibe ? 'ok' : 'none yet — the first record creates it'}`,
33
40
  ` state ${p.state}`,
34
41
  ` inbox ${p.inboxOpen} open`,
35
- 'tools present · serves · absent means vibe does it alone',
36
- ...capabilityLines(root),
37
42
  ];
38
- return { json: { version: packageVersion(), ...g, project: p, update, tools: detectCapabilities(root) }, text: lines.join('\n'), code: 0 };
43
+ return { json: { version: packageVersion(), ...g, project: p, update }, text: lines.join('\n'), code: 0 };
39
44
  }
40
45
  export function cmdUpdate(flags) {
41
46
  if (flags['check'] === true) {
@@ -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AC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;SACjC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACb,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IACpC,CAAC;IACD,IAAI,GAAG,KAAK,QAAQ,EAAE,CAAC;QACrB,MAAM,CAAC,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;QAC7B,MAAM,IAAI,GAAG;YACX,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,CAAC,IAAI,EAAE;YACxD,cAAc,CAAC,CAAC,eAAe,IAAI,GAAG,cAAc,CAAC,CAAC,cAAc,aAAa,CAAC,CAAC,MAAM,YAAY,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE;YACvK,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;SAC3E,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACb,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACzD,CAAC;IACD,MAAM,KAAK,CAAC,wGAAwG,CAAC,CAAC;AACxH,CAAC"}
package/dist/cli/work.js CHANGED
@@ -15,7 +15,7 @@ import { readJson, readText } from '../core/store.js';
15
15
  import { buildStateView } from '../core/view.js';
16
16
  import { ensureProject } from '../install/project.js';
17
17
  import { flagString, readStdin } from './common.js';
18
- const GLYPH = { pass: '✔', fail: '✘', pending: '?', blocked: '⊘', never: '·' };
18
+ const GLYPH = { pass: '✔', fail: '✘', pending: '?', blocked: '⊘', never: '·', stale: '↻' };
19
19
  export function cmdState(root, flags) {
20
20
  const view = buildStateView(root);
21
21
  if (flags['graph'] === true) {
@@ -27,9 +27,10 @@ export function cmdState(root, flags) {
27
27
  `${view.state} · ${view.stage}${view.intent ? ` · ${view.intent.title}` : ''}`,
28
28
  ` next ${view.next}`,
29
29
  ` size ${view.size}`,
30
- ...view.scenarios.map((s) => ` ${GLYPH[s.last] ?? '·'} ${s.id} [${s.type}]${s.needs ? ` needs ${s.needs.join(', ')}` : ''} ${s.then}${s.regression ? ' (regression)' : ''}${s.irreversible ? ` ⚠ ${s.irreversible}` : ''} — check: ${s.check}`),
30
+ ...view.scenarios.map((s) => ` ${GLYPH[s.last] ?? '·'} ${s.id} [${s.type}]${s.needs ? ` needs ${s.needs.join(', ')}` : ''} ${s.then}${s.regression ? ' (regression)' : ''}${s.irreversible ? ` ⚠ ${s.irreversible}` : ''} — check: ${s.check}${s.files ? ` — files: ${s.files.join(', ')}` : ''}`),
31
31
  ` remaining ${view.remaining.length ? view.remaining.join(', ') : 'none'}`,
32
- ` inbox ${view.inbox.open} open${view.inbox.items.map((q) => `\n [${q.id}] ${q.question}`).join('')}`,
32
+ ` inbox ${view.inbox.open} open${view.inbox.items.map((q) => `\n [${q.id}] ${q.question}${q.answer ? ` → ${q.answer}` : ' (waiting)'}`).join('')}`,
33
+ ' commands vibe check --all (runs every check itself — build, tests; do not run them by hand) · vibe check <id> · vibe context <id> · vibe ask "question" [--options a|b] [--default a] (then stop and wait for the answer) · vibe regress record --scenario <id> --title "…"',
33
34
  ...view.notices.map((n) => ` ! ${n}`),
34
35
  ...view.proposals.map((p) => ` → ${p.kind}: ${p.ref} (${p.why})`),
35
36
  ];
@@ -135,9 +136,10 @@ export async function cmdCheck(root, args, flags) {
135
136
  ensureProject(root);
136
137
  const options = flags['all'] === true ? { all: true } : args.length ? { ids: args } : {};
137
138
  const report = await runChecks(root, options);
139
+ const files = new Map(buildStateView(root).scenarios.map((s) => [s.id, s.files ?? []]));
138
140
  const lines = [
139
141
  `${report.run} · ${report.state} · pass ${report.passed} · fail ${report.failed}${report.pending ? ` · pending ${report.pending}` : ''}`,
140
- ...report.outcomes.map((o) => ` ${o.status === 'pass' ? '✔' : o.status === 'fail' ? '✘' : '?'} ${o.id} [${o.type}] exit=${o.exit ?? '-'} ${o.ms}ms${o.reason ? ` — ${o.reason}` : ''}${o.tail && o.status !== 'pass' ? `\n ${o.tail.split('\n').join('\n ')}` : ''}`),
142
+ ...report.outcomes.map((o) => ` ${o.status === 'pass' ? '✔' : o.status === 'fail' ? '✘' : '?'} ${o.id} [${o.type}] exit=${o.exit ?? '-'} ${o.ms}ms${o.reason ? ` — ${o.reason}` : ''}${o.status === 'fail' && files.get(o.id)?.length ? ` — files: ${files.get(o.id).join(', ')}` : ''}${o.tail && o.status !== 'pass' ? `\n ${o.tail.split('\n').join('\n ')}` : ''}`),
141
143
  report.done ? ' DONE — every gate scenario passed' : ` remaining ${report.remaining.join(', ') || 'none'}`,
142
144
  ...(report.stuck ? [' STUCK — the same failure twice in a row; see the inbox'] : []),
143
145
  ` next ${buildStateView(root).next}`,
@@ -1 +1 @@
1
- {"version":3,"file":"work.js","sourceRoot":"","sources":["../../src/cli/work.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,OAAO,EA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E,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;AAC9E,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,IAAY,EAAE,KAAY;IACnD,aAAa,CAAC,IAAI,CAAC,CAAC;IACpB,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IACjD,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;AACtE,CAAC"}
package/dist/cli.js CHANGED
@@ -13,7 +13,7 @@ import { ensureGlobal, globalStatus } from './install/global.js';
13
13
  import { flagString, HELP, packageVersion, parseArgs } from './cli/common.js';
14
14
  import { cmdAsk, cmdAuthorize, cmdInbox } from './cli/human.js';
15
15
  import { cmdKnowledge, cmdLedger, cmdRegress, cmdResearch, cmdSkill } from './cli/memory.js';
16
- import { cmdPlugin, cmdStatus, cmdTokens, cmdUninstall, cmdUpdate } from './cli/setup.js';
16
+ import { cmdPlugin, cmdSetup, cmdStatus, cmdTokens, cmdUninstall, cmdUpdate } from './cli/setup.js';
17
17
  import { cmdContext } from './cli/context.js';
18
18
  import { cmdConventions } from './cli/conventions.js';
19
19
  import { cmdBlast, cmdCallers, cmdMap, cmdSymbols } from './cli/map.js';
@@ -21,6 +21,7 @@ import { cmdAbandon, cmdApprove, cmdCheck, cmdEvidence, cmdIntent, cmdProfile, c
21
21
  export { parseArgs } from './cli/common.js';
22
22
  const COMMANDS = {
23
23
  status: (root, _s, _r, _t, flags) => cmdStatus(root, flags),
24
+ setup: (_root, _s, _r, _t, flags) => cmdSetup(flags),
24
25
  update: (_root, _s, _r, _t, flags) => cmdUpdate(flags),
25
26
  tokens: (root, sub) => cmdTokens(root, sub),
26
27
  uninstall: (root, _s, _r, _t, flags) => cmdUninstall(root, flags),
@@ -49,6 +50,7 @@ const COMMANDS = {
49
50
  research: (root, sub, _r, _t, flags) => cmdResearch(root, sub, flags),
50
51
  skill: (root, sub, rest, _t, flags) => cmdSkill(root, sub, rest, flags),
51
52
  };
53
+ const REPAIRS = new Set(['update', 'plugin']); // `setup` is the repair itself
52
54
  export async function dispatch(argv) {
53
55
  const { positionals, flags } = parseArgs(argv);
54
56
  const [cmd, sub, ...rest] = positionals;
@@ -59,7 +61,8 @@ export async function dispatch(argv) {
59
61
  const handler = COMMANDS[cmd];
60
62
  if (!handler)
61
63
  throw usage(`unknown command: ${cmd}\n${HELP}`);
62
- const repaired = process.env['VIBE_SKIP_SETUP'] || cmd === 'uninstall' ? [] : ensureGlobal(flagString(flags, 'home'));
64
+ // A command does only what it says: the install is repaired by `setup`, `update` and `plugin`, never on the way to a query
65
+ const repaired = REPAIRS.has(cmd) && !process.env['VIBE_SKIP_SETUP'] ? ensureGlobal(flagString(flags, 'home')) : [];
63
66
  if (repaired.length > 0) {
64
67
  const modes = globalStatus(flagString(flags, 'home')).clients;
65
68
  process.stderr.write(`[vibe] set up ${repaired.map((c) => `${c} (${modes[c]?.mode === 'plugin' ? `plugin ${modes[c]?.pluginVersion ?? ''}`.trim() : 'card, skills, hook in home'})`).join(', ')}\n`);
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;GAIG;AACH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,U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