@su-record/vibe 4.1.21 → 4.1.23
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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/README.md +25 -19
- package/card.md +8 -9
- package/dist/cli/common.js +5 -4
- package/dist/cli/common.js.map +1 -1
- package/dist/cli/memory.js +2 -2
- package/dist/cli/memory.js.map +1 -1
- package/dist/cli/setup.js +11 -6
- package/dist/cli/setup.js.map +1 -1
- package/dist/cli/work.js +5 -3
- package/dist/cli/work.js.map +1 -1
- package/dist/cli.js +5 -2
- package/dist/cli.js.map +1 -1
- package/dist/core/capabilities.js +0 -5
- package/dist/core/capabilities.js.map +1 -1
- package/dist/core/check.js +19 -5
- package/dist/core/check.js.map +1 -1
- package/dist/core/checks/mutation.js +1 -1
- package/dist/core/checks/mutation.js.map +1 -1
- package/dist/core/context.js +37 -0
- package/dist/core/context.js.map +1 -1
- package/dist/core/ledger.js +6 -0
- package/dist/core/ledger.js.map +1 -1
- package/dist/core/procedure.js +12 -0
- package/dist/core/procedure.js.map +1 -0
- package/dist/core/view.js +38 -14
- package/dist/core/view.js.map +1 -1
- package/dist/install/hooks.js +4 -1
- package/dist/install/hooks.js.map +1 -1
- package/dist/install/register.js +36 -3
- package/dist/install/register.js.map +1 -1
- package/dist/install/tree.js +1 -0
- package/dist/install/tree.js.map +1 -1
- package/hooks/codex-hooks.json +11 -0
- package/hooks/hooks.json +11 -0
- package/hooks/notify.js +57 -5
- package/hooks/session.js +18 -2
- package/package.json +1 -1
- package/skills/vibe/SKILL.md +3 -1
- package/skills/vibe-build/SKILL.md +6 -6
- package/skills/vibe-handoff/SKILL.md +1 -1
- package/skills/vibe-prove/SKILL.md +1 -1
|
@@ -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.
|
|
9
|
+
"version": "4.1.23"
|
|
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.
|
|
16
|
+
"version": "4.1.23",
|
|
17
17
|
"category": "productivity"
|
|
18
18
|
}
|
|
19
19
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibe",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.23",
|
|
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.
|
|
3
|
+
"version": "4.1.23",
|
|
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,18 +2,20 @@
|
|
|
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 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.7–1.1× on Codex, at equal quality. Where there is something to prevent: on `ask`, a brief that leaves out what only the customer knows, bare Claude Code quoted wrong five times in five; with vibe it asked and got it right five in five, for 0.65× the tokens (bare Codex asks on its own, and vibe adds nothing there). Where there is something to carry: a task split across two sessions cost 0.63× on Claude Code and 0.79× on Codex; a cross-cutting change in a 54-file repository cost 0.57× and 0.63× the tokens in 0.31× and 0.70× the time, because `vibe state` names the files each scenario is about and the model reads those and nothing else. 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, and run the verdict when a turn ends without it.
|
|
6
|
+
|
|
5
7
|
Main surfaces: Claude Code · Codex CLI · ChatGPT desktop app · Hermes Agent · Claude desktop app (interview, approval, verdict, handoff).
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
10
|
npm i -g @su-record/vibe
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
That is the whole install. The package registers itself as a local plugin in every client it finds and keeps the registration current
|
|
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:
|
|
12
14
|
|
|
13
15
|
| client | what the install does |
|
|
14
16
|
|---|---|
|
|
15
17
|
| Claude Code | `claude plugin marketplace add <package dir>` + `claude plugin install vibe@vibe` — skills and hooks come from the plugin, the card from its SessionStart hook |
|
|
16
|
-
| Codex CLI · ChatGPT desktop | assembles the plugin tree under `~/.config/vibe/plugin`, registers the personal marketplace, runs `codex plugin add vibe@vibe-local`; the card goes into `~/.codex/AGENTS.md`; restart ChatGPT desktop afterwards |
|
|
18
|
+
| Codex CLI · ChatGPT desktop | assembles the plugin tree under `~/.config/vibe/plugin`, registers the personal marketplace, runs `codex plugin add vibe@vibe-local`; the card goes into `~/.codex/AGENTS.md`; restart ChatGPT desktop afterwards. On an update the version just replaced stays in Codex's cache, so a session that started under it keeps its hooks until it restarts (a hook that exits 1 on every call is a session older than the install — restart it) |
|
|
17
19
|
| Hermes Agent | six skills into `~/.hermes/skills`, the card block into `~/.hermes/SOUL.md` |
|
|
18
20
|
| Claude desktop app | `vibe plugin mcpb --out vibe.mcpb`, open the file in the app, pick the project folder — an MCP Bundle whose only job is to call the `vibe` CLI; for the interview, approval, verdict and handoff, not for writing code |
|
|
19
21
|
| no client CLI on PATH (or `VIBE_NO_PLUGIN=1`) | the older path: card, skills and hook written into the client home |
|
|
@@ -29,12 +31,12 @@ Then, in chat:
|
|
|
29
31
|
## The flow
|
|
30
32
|
|
|
31
33
|
```
|
|
32
|
-
request (
|
|
34
|
+
request `vibe state` says the stage and the next step (the session hook hands it over on Claude Code)
|
|
33
35
|
→ interview discover: at most three questions, sample profiling, anomalies said first
|
|
34
36
|
→ scenarios scope: each scenario bound to a check · research · skills needed → one approval
|
|
35
|
-
→ build one
|
|
36
|
-
→ prove `vibe check --all` — every scenario plus every regression, ordered by the work graph
|
|
37
|
-
→ report
|
|
37
|
+
→ build everything first, then one `vibe check --all`; on a failure, `vibe context <id>` then `vibe check <id>`
|
|
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
|
|
38
40
|
```
|
|
39
41
|
|
|
40
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.
|
|
@@ -99,13 +101,15 @@ The policy is per project (`.vibe/config.json`); `vibe tokens` alone prints it.
|
|
|
99
101
|
## Commands
|
|
100
102
|
|
|
101
103
|
```
|
|
102
|
-
setup update [--check] · status · tokens · uninstall [--purge-state] · plugin install | status
|
|
103
|
-
work state [--graph] · read <file
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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]
|
|
107
111
|
skills skill suggest · create · add · search · list · used · prune · dismiss
|
|
108
|
-
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]
|
|
109
113
|
```
|
|
110
114
|
|
|
111
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.
|
|
@@ -150,13 +154,13 @@ inbox.jsonl questions, STUCK notices, token hashes
|
|
|
150
154
|
regressions/ fixed failures as reproducing checks
|
|
151
155
|
knowledge/ domain notes the model reads when it needs them; research/ holds search notes
|
|
152
156
|
skills/ registry of project-local skills and dismissed proposals
|
|
153
|
-
cache/ research results
|
|
154
|
-
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
|
|
155
159
|
```
|
|
156
160
|
|
|
157
161
|
## Status
|
|
158
162
|
|
|
159
|
-
`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.
|
|
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.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.
|
|
160
164
|
|
|
161
165
|
## Bench — the ledger is the benchmark
|
|
162
166
|
|
|
@@ -170,12 +174,14 @@ Alone, vibe already makes the model do better; with other harnesses installed it
|
|
|
170
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.
|
|
171
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.
|
|
172
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.
|
|
173
|
-
- **The
|
|
174
|
-
-
|
|
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), 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`.
|
|
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.
|
|
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.
|
|
175
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.
|
|
176
|
-
- **`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; …` — and
|
|
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.
|
|
177
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.
|
|
178
|
-
- **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 pre-registered rule is `on`
|
|
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** (`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.
|
|
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.
|
|
179
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.
|
|
180
186
|
|
|
181
187
|
## Example
|
package/card.md
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
You work inside vibe. Rules:
|
|
2
|
-
1.
|
|
3
|
-
2. Done is only what `vibe check --all` says
|
|
4
|
-
3. Human token: show the number, wait in chat
|
|
5
|
-
4. Same failure twice:
|
|
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, `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: `vibe ask`.
|
|
6
6
|
5. Surface at most three unasked things, each with a reason.
|
|
7
|
-
6. `vibe regress record` only for a failure `vibe check` reported
|
|
8
|
-
7. Talk in the user's language;
|
|
9
|
-
8. Read files
|
|
10
|
-
9. Report what changed
|
|
11
|
-
Start with `/vibe {request}`.
|
|
7
|
+
6. `vibe regress record` only for a failure `vibe check` reported that you fixed.
|
|
8
|
+
7. Talk in the user's language; every record in English.
|
|
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 only the caveat that moves the next step. An error: cause and fix. Answer first; no praise or offer.
|
package/dist/cli/common.js
CHANGED
|
@@ -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)
|
|
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
|
|
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.
|
package/dist/cli/common.js.map
CHANGED
|
@@ -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,IAAc;IACtC,MAAM,WAAW,GAAa,EAAE,CAAC;IACjC,MAAM,KAAK,GAAU,EAAE,CAAC;IACxB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QACxC,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAW,CAAC;QAC9B,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;YAC1B,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACtB,SAAS;QACX,CAAC;QACD,MAAM,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC5B,MAAM,GAAG,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACxD,IAAI,EAAE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,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,KAAY,EAAE,GAAW;IAClD,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;IACzB,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AACvD,CAAC;AAED,MAAM,CAAC,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BnB,CAAC;AACF,MAAM,UAAU,SAAS;IACvB,OAAO,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,KAAyB;IAClD,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAC;IAC7B,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3C,IAAI,CAAC,KAAK;QAAE,MAAM,KAAK,CAAC,yCAAyC,CAAC,CAAC;IACnE,MAAM,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3B,MAAM,IAAI,GAAG,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,CAAoB,CAAC,CAAC;IACrF,OAAO,CAAC,GAAG,IAAI,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,OAAO,QAAQ,CAAsB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,cAAc,CAAC,CAAC,EAAE,OAAO,IAAI,SAAS,CAAC;AACvG,CAAC"}
|
package/dist/cli/memory.js
CHANGED
|
@@ -166,8 +166,8 @@ export function cmdLedger(root, sub, args, flags) {
|
|
|
166
166
|
const metric = (flagString(flags, 'metric') ?? 'checks');
|
|
167
167
|
if (!['client', 'model', 'harness'].includes(by))
|
|
168
168
|
throw usage('--by client|model|harness');
|
|
169
|
-
if (!['checks', 'turns', 'cost', 'ms'].includes(metric))
|
|
170
|
-
throw usage('--metric checks|turns|cost|ms');
|
|
169
|
+
if (!['checks', 'turns', 'cost', 'ms', 'tokens'].includes(metric))
|
|
170
|
+
throw usage('--metric checks|turns|cost|ms|tokens');
|
|
171
171
|
const minRuns = Number(flagString(flags, 'min-runs') ?? 5);
|
|
172
172
|
const paired = flags['paired'] === true;
|
|
173
173
|
const filter = {};
|
package/dist/cli/memory.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/cli/memory.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,EAAqD,MAAM,mBAAmB,CAAC;AACvI,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAe,MAAM,qBAAqB,CAAC;AAErE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC7H,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAA2B,MAAM,aAAa,CAAC;AAEzF,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,IAAY,EAAE,GAAuB,EAAE,KAAY;IACnF,aAAa,CAAC,IAAI,CAAC,CAAC;IACpB,MA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,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'}`);
|
|
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;
|
|
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'}`),
|
|
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
|
|
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) {
|
package/dist/cli/setup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../src/cli/setup.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,
|
|
1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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}` : ''}`),
|
|
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
32
|
` inbox ${view.inbox.open} open${view.inbox.items.map((q) => `\n [${q.id}] ${q.question}`).join('')}`,
|
|
33
|
+
' commands vibe check --all · 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
|
];
|
|
@@ -140,9 +141,10 @@ export async function cmdCheck(root, args, flags) {
|
|
|
140
141
|
...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 ')}` : ''}`),
|
|
141
142
|
report.done ? ' DONE — every gate scenario passed' : ` remaining ${report.remaining.join(', ') || 'none'}`,
|
|
142
143
|
...(report.stuck ? [' STUCK — the same failure twice in a row; see the inbox'] : []),
|
|
144
|
+
` next ${buildStateView(root).next}`,
|
|
143
145
|
];
|
|
144
146
|
const code = report.stuck || report.failed > 0 ? 1 : 0;
|
|
145
|
-
return { json: report, text: lines.join('\n'), code };
|
|
147
|
+
return { json: { ...report, next: buildStateView(root).next }, text: lines.join('\n'), code };
|
|
146
148
|
}
|
|
147
149
|
export function cmdEvidence(root, args) {
|
|
148
150
|
const dir = vibePath(root, 'evidence');
|
package/dist/cli/work.js.map
CHANGED
|
@@ -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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ersion, 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
|
-
|
|
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`);
|