@su-record/vibe 4.1.30 → 4.2.1
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 +4 -4
- package/.claude-plugin/plugin.json +2 -2
- package/.codex-plugin/plugin.json +6 -6
- package/README.md +23 -205
- package/card.md +2 -10
- package/dist/cli/common.js +13 -1
- package/dist/cli/common.js.map +1 -1
- package/dist/cli/internal.js +57 -0
- package/dist/cli/internal.js.map +1 -0
- package/dist/cli/performance.js +9 -0
- package/dist/cli/performance.js.map +1 -0
- package/dist/cli/risks.js +14 -0
- package/dist/cli/risks.js.map +1 -0
- package/dist/cli.js +48 -47
- package/dist/cli.js.map +1 -1
- package/dist/core/check.js +5 -2
- package/dist/core/check.js.map +1 -1
- package/dist/core/inspect.js +2 -0
- package/dist/core/inspect.js.map +1 -1
- package/dist/core/intent.js +2 -0
- package/dist/core/intent.js.map +1 -1
- package/dist/core/performance.js +82 -0
- package/dist/core/performance.js.map +1 -0
- package/dist/core/risk-signals.js +118 -0
- package/dist/core/risk-signals.js.map +1 -0
- package/dist/core/scenarios.js +11 -1
- package/dist/core/scenarios.js.map +1 -1
- package/dist/core/skills.js +6 -11
- package/dist/core/skills.js.map +1 -1
- package/dist/core/verification.js +61 -0
- package/dist/core/verification.js.map +1 -0
- package/dist/install/global.js +26 -7
- package/dist/install/global.js.map +1 -1
- package/dist/install/hooks.js +2 -4
- package/dist/install/hooks.js.map +1 -1
- package/dist/install/mcpb.js +2 -15
- package/dist/install/mcpb.js.map +1 -1
- package/dist/install/plugin.js +5 -35
- package/dist/install/plugin.js.map +1 -1
- package/dist/install/tree.js +5 -7
- package/dist/install/tree.js.map +1 -1
- package/hooks/codex-hooks.json +2 -24
- package/hooks/hooks.json +2 -24
- package/hooks/notify.js +4 -2
- package/internal/guides/code.md +5 -0
- package/internal/guides/delivery.md +9 -0
- package/internal/guides/design.md +5 -0
- package/internal/guides/discover.md +7 -0
- package/internal/guides/en.md +5 -0
- package/internal/guides/explanation.md +14 -0
- package/internal/guides/extensions.md +10 -0
- package/internal/guides/ko.md +5 -0
- package/internal/guides/optimization.md +11 -0
- package/internal/guides/verification.md +35 -0
- package/internal/legacy-readme.md +228 -0
- package/mcpb/README.md +7 -3
- package/mcpb/server/index.js +34 -4
- package/package.json +4 -4
- package/scripts/benchmark-startup.mjs +2 -0
- package/skills/vibe/SKILL.md +27 -25
- /package/{agents → internal/agents}/code-maintainer.md +0 -0
- /package/{agents → internal/agents}/code-reviewer.md +0 -0
- /package/{agents → internal/agents}/design-art-director.md +0 -0
- /package/{agents → internal/agents}/design-markup-reviewer.md +0 -0
- /package/{agents → internal/agents}/en-chief-editor.md +0 -0
- /package/{agents → internal/agents}/en-copy-editor.md +0 -0
- /package/{agents → internal/agents}/ko-chief-editor.md +0 -0
- /package/{agents → internal/agents}/ko-copy-editor.md +0 -0
- /package/{skills → internal/skills}/antislop-code/SKILL.md +0 -0
- /package/{skills → internal/skills}/antislop-code/references/catalogue.md +0 -0
- /package/{skills → internal/skills}/antislop-design/SKILL.md +0 -0
- /package/{skills → internal/skills}/antislop-design/references/catalogue.md +0 -0
- /package/{skills → internal/skills}/antislop-design/references/plan.md +0 -0
- /package/{skills → internal/skills}/antislop-en/SKILL.md +0 -0
- /package/{skills → internal/skills}/antislop-en/references/editorial-review.md +0 -0
- /package/{skills → internal/skills}/antislop-en/references/genres.md +0 -0
- /package/{skills → internal/skills}/antislop-ko/SKILL.md +0 -0
- /package/{skills → internal/skills}/antislop-ko/references/editorial-review.md +0 -0
- /package/{skills → internal/skills}/antislop-ko/references/genres.md +0 -0
- /package/{skills → internal/skills}/vibe-build/SKILL.md +0 -0
- /package/{skills → internal/skills}/vibe-discover/SKILL.md +0 -0
- /package/{skills → internal/skills}/vibe-discover/work-opportunities.md +0 -0
- /package/{skills → internal/skills}/vibe-handoff/SKILL.md +0 -0
- /package/{skills → internal/skills}/vibe-prove/SKILL.md +0 -0
- /package/{skills → internal/skills}/vibe-scope/SKILL.md +0 -0
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
"url": "https://github.com/su-record"
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
|
-
"description": "
|
|
9
|
-
"version": "4.1
|
|
8
|
+
"description": "Your personal FDE in Claude and Codex. Understand the work, use the right tools, deliver and retain useful context. One entry: vibe.",
|
|
9
|
+
"version": "4.2.1"
|
|
10
10
|
},
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "vibe",
|
|
14
14
|
"source": "./",
|
|
15
|
-
"description": "
|
|
16
|
-
"version": "4.1
|
|
15
|
+
"description": "Your personal FDE in Claude and Codex. Understand the work, use the right tools, deliver and retain useful context. One entry: vibe.",
|
|
16
|
+
"version": "4.2.1",
|
|
17
17
|
"category": "productivity"
|
|
18
18
|
}
|
|
19
19
|
]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibe",
|
|
3
|
-
"version": "4.1
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "4.2.1",
|
|
4
|
+
"description": "Your personal FDE in Claude and Codex. Understand the work, use the right tools, deliver and retain useful context. One entry: vibe.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "su-record",
|
|
7
7
|
"url": "https://github.com/su-record"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibe",
|
|
3
|
-
"version": "4.1
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "4.2.1",
|
|
4
|
+
"description": "Your personal FDE in Claude and Codex. Understand the work, use the right tools, deliver and retain useful context. One entry: vibe.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "su-record",
|
|
7
7
|
"url": "https://github.com/su-record"
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"hooks": "./hooks/codex-hooks.json",
|
|
22
22
|
"interface": {
|
|
23
23
|
"displayName": "Vibe",
|
|
24
|
-
"shortDescription": "
|
|
25
|
-
"longDescription": "
|
|
24
|
+
"shortDescription": "Your personal FDE",
|
|
25
|
+
"longDescription": "Understand your work, use the right tools, implement and verify useful outcomes. Start with /vibe.",
|
|
26
26
|
"developerName": "su-record",
|
|
27
27
|
"category": "Developer Tools",
|
|
28
28
|
"websiteURL": "https://github.com/su-record/vibe",
|
|
29
29
|
"defaultPrompt": [
|
|
30
|
-
"Use vibe to
|
|
31
|
-
"Use vibe to
|
|
30
|
+
"Use vibe to help me solve this problem.",
|
|
31
|
+
"Use vibe to continue my project from its saved context."
|
|
32
32
|
]
|
|
33
33
|
}
|
|
34
34
|
}
|
package/README.md
CHANGED
|
@@ -1,228 +1,46 @@
|
|
|
1
|
-
# vibe
|
|
1
|
+
# vibe — your personal FDE
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
The [4.1.25 measurements](bench/claims/2026-09-09-4.1.25.md) are historical evidence toward that purpose: equal observed final artifact scores, with the supplied-scope arm using 0.69× and 0.81× bare weighted input tokens on a two-session task, 0.75× on a Claude-to-Codex handover, and 0.61× and 0.50× on the brownfield task. The arm that wrote its own scope used 1.3–5.8× bare weighted input tokens. Those final scores did not measure the quality of discovery or agreement. Six trap attempts failed to separate the arms; no prevention number is claimed. The 4.1.26 comparison evaluates the agreement separately and requires new evidence before any new quality or cost claim.
|
|
6
|
-
|
|
7
|
-
Main surfaces: Claude Code · Codex CLI · ChatGPT desktop app · Hermes Agent · Claude desktop app (interview, approval, verdict, handoff).
|
|
3
|
+
Use vibe inside Claude or Codex to understand your work, solve the actual problem, connect existing tools and deliver a result you can use. Vibe retains useful project context and personal decisions across tasks.
|
|
8
4
|
|
|
9
5
|
```bash
|
|
10
6
|
npm i -g @su-record/vibe
|
|
11
7
|
```
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
| client | what the install does |
|
|
16
|
-
|---|---|
|
|
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 |
|
|
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) |
|
|
19
|
-
| Hermes Agent | six skills into `~/.hermes/skills`, the card block into `~/.hermes/SOUL.md` |
|
|
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 |
|
|
21
|
-
| no client CLI on PATH (or `VIBE_NO_PLUGIN=1`) | the older path: card, skills and hook written into the client home |
|
|
22
|
-
|
|
23
|
-
`vibe status` shows the mode and version per client and says when a newer version exists; `vibe update` installs it and re-registers the plugins; `vibe uninstall` unregisters and removes everything. Nothing is published to a public marketplace — the plugin is the package on your disk.
|
|
24
|
-
|
|
25
|
-
Then, in chat:
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
/vibe every week an order spreadsheet arrives — turn it into a settlement sheet and send it to accounting
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## The flow
|
|
32
|
-
|
|
33
|
-
```
|
|
34
|
-
request `vibe state` says the stage and the next step; bind the host session to this worktree
|
|
35
|
-
→ discover evidence first; ask only about consequential unknowns, up to three per round
|
|
36
|
-
→ scenarios sufficient agreement · executable checks · needed tools → one approval
|
|
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 explicitly run `vibe check --all` — every scenario plus every regression, ordered by the work graph
|
|
39
|
-
→ report from the check output; HANDOFF.md only when the intent asks; irreversible steps need a token
|
|
40
|
-
```
|
|
41
|
-
|
|
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.
|
|
43
|
-
|
|
44
|
-
In the intended worktree, run `vibe session bind` once per host session. It uses `CODEX_THREAD_ID` or `CLAUDE_SESSION_ID`; if the host supplies only a hook `session_id`, pass that exact value with `--session <id>`. `vibe session status` reports the association. Binding is explicit and private to the local machine: a copied ledger, parent repository or sibling worktree cannot choose the session's target. Missing or conflicting identifiers leave Stop unavailable until the association is corrected.
|
|
45
|
-
|
|
46
|
-
SessionStart and Stop perform bounded local reads with packaged modules. They run no checks, models, services or PATH commands. Stop recognizes completion only from a fresh explicit-check record for the exact canonical worktree, revision, contract and files. It blocks unchanged unfinished work at most twice, then releases it as unmet. An inbox wait or scenario handoff also releases without success. Titles, check output, transcript claims and handoff reasons never become Stop instructions.
|
|
47
|
-
|
|
48
|
-
Session bindings, retry counters and explicit-check proofs live outside the project in `~/.vibe-runtime`, with private directory/file permissions and linked-entry rejection. Rebinding does not clear an existing retry counter. On Windows, confidentiality still depends on the user's home ACL; POSIX mode bits cannot prove it. A project fingerprint is bounded to 10,000 entries, 64 MiB total, 8 MiB per file and a 1.5-second traversal budget. Unsupported files, changing inputs or exceeded limits produce a private unavailable snapshot while preserving the explicit check's verdict. Stop then reports unavailable and unmet. Failure to write the private proof itself remains an error. Git metadata, dependency trees and client configuration directories are excluded from this fingerprint; contract files, configuration and regressions under `.vibe/` remain included.
|
|
49
|
-
|
|
50
|
-
The private proof also retains the reviewed execution plan. Stop compares the local consent receipt, PATH/PATHEXT, shell and Node paths, selected environment values, declared working directories and verifier hashes without executing them. External declared verifier files are included in that comparison. Reads are capped at 512 distinct verifier files, 32 MiB total and one second; unavailable or changed context cannot become verified completion. Undeclared shell dependencies and same-user hostile processes remain outside this guarantee.
|
|
51
|
-
|
|
52
|
-
Read fewer relevant files, each in full: Claude Code uses Read, Codex uses `cat`. The Bash hook blocks recognized slices of the current state's files, `.vibe/intent.md`, `scenarios.yaml` and `spec/` or `specs/`; other source/document slices receive a warning each time. `grep -n`/`rg -n` locate lines, `-l` locates files; file-fed `head`, `tail`, `sed -n`, `cut` and `awk` excerpts do not replace reading the source. Logs, `.dev/` and pipelines carrying command output remain exempt. The recognizer does not execute or expand shell variables, aliases or heredocs. An unavailable state-file mirror is reported, and the built-in contract/spec rules still apply.
|
|
53
|
-
|
|
54
|
-
Slice-read counters contain only blocked/warned counts in the private runtime store. Benchmark initialization distinguishes a measured zero from a missing or unreadable counter; each session records the difference and each attempt records the sum. No shell command or file excerpt is copied into these counter records.
|
|
55
|
-
|
|
56
|
-
A clear request needs no ceremonial interview. Relevant documents and sample profiles can answer questions before the customer is asked. An unanswered material question remains unanswered even if a default was proposed. Research and new integrations are used for a specific unresolved need, not on every local task.
|
|
57
|
-
|
|
58
|
-
An intent can record its stable evidence files with `sources` in the `intent draft --stdin` payload. Their content hashes become part of the approval; `vibe intent show --json` reports `sourceBasis` and names changed or missing inputs. Reuse unchanged findings and re-evaluate affected decisions when the evidence changes. Generated outputs, session prompts, and files the implementation will edit are not stable evidence inputs.
|
|
59
|
-
|
|
60
|
-
## Find work AI can take over
|
|
61
|
-
|
|
62
|
-
```text
|
|
63
|
-
/vibe Look at these work logs, exported mail, documents and meeting notes. Find recurring work worth automating, agree on one item with me, and build a checked local pilot.
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
vibe establishes the observation window, counts distinct work events, and records which have measured active time. The same event in a message and a meeting note counts once. Missing duration stays unknown; meeting length and a vendor's productivity claim do not establish time saved.
|
|
9
|
+
In your connected host, start with `/vibe` and describe the work. Vibe is the only public skill. It uses the current host model; it does not start a separate planning model or reviewer by default.
|
|
67
10
|
|
|
68
|
-
|
|
11
|
+
## Work with your context
|
|
69
12
|
|
|
70
|
-
|
|
13
|
+
Vibe checks relevant project rules and existing decisions before asking questions. It uses installed tools first, finds a missing capability when needed, implements the useful outcome and verifies actual behavior. A clear task requires no additional interview, new worktree or approval ceremony.
|
|
71
14
|
|
|
72
|
-
|
|
15
|
+
Project knowledge remains in `.vibe/knowledge`; personal knowledge in `~/.config/vibe/knowledge`. A compact internal brief lists relevant places to read without indexing the repository, running tests or calling another model. Notes provide context, not authority to send, publish or delete.
|
|
73
16
|
|
|
74
|
-
|
|
75
|
-
2. **Memory across sessions and clients.** `.vibe/` holds the intent, scenarios, evidence, ledger, inbox, regressions and knowledge as plain files you can read and commit.
|
|
76
|
-
3. **Permission stays with people.** Who may authorize is your policy, not the harness's law (see below).
|
|
77
|
-
4. **A ledger, not a claim.** Every run records client, model, result, cost when the client provides it. Comparisons are ledger queries with four verdicts — insufficient runs, mixed scenario sets, inconclusive, difference observed — and never a winner, ratio or percentage. Events also carry typed edges (`supersedes`, `decided-by`, `implements`, `caused`), so `vibe ledger why <node>` can answer "why does this regression exist" or "which approval covers this file".
|
|
78
|
-
5. **It speaks first.** Human attention is narrow. At each stage the harness surfaces up to three things you did not ask about, each with a reason it found in your files, ledger or history.
|
|
17
|
+
## One entry, internal capabilities
|
|
79
18
|
|
|
80
|
-
|
|
19
|
+
Workflow and antislop guidance are local resources loaded only for the task at hand. Code, design and language guidance is applied during authoring; it does not automatically trigger editorial agents. Independent model review is optional and should target a concrete need.
|
|
81
20
|
|
|
82
|
-
|
|
83
|
-
|---|---|---|
|
|
84
|
-
| `run` | exit code | `cmd`, `expect` (default 0), `timeoutMs`, `cwd` |
|
|
85
|
-
| `file` | exists · regex · substring · absence · traceability · accessibility · JSON Schema · column sum | `path`, `exists` / `pattern` / `contains` / `absent` (a regex that must match nowhere; the first three hits are named by line; `@placeholders` is the built-in expression for lorem-ipsum text, a bracketed TODO, a to-be-decided mark, a company-name placeholder, unfilled double-brace fields and double-square-bracket notes, and combines with your own words by `|`) / `traceable: <evidence file>` (every number in the file, two significant digits or more, outside fenced code, appears in the evidence file; the first three that do not are named by line) / `a11y: true` (an html file: `<img>` without alt, a skipped heading level, a button or link with no text or aria-label, an input without a label, and a CSS rule whose text colour on its background is under 4.5:1; a `.css` file gets the contrast rule alone) / `schema` / `sum: {column, equals, tolerance}` |
|
|
86
|
-
| `http` | status · body schema · latency ceiling | `url`, `method`, `expect: {status, schema, maxMs}`, `timeoutMs` |
|
|
87
|
-
| `eval` | count of matching cases (never a ratio) | `cases` (jsonl `{id, input, expected}`), `runner` (stdin → stdout), `expect: {pass}` |
|
|
88
|
-
| `review` | an antislop pack's reviewer stages, in order, run by the harness through the client CLI; a stage passes only on an exact `PASS` | `path` (the artifact: a file, or a directory for `pack: design` / `pack: code`), `pack` (`ko` · `en` · `design` · `code`), `lang` (`ko` · `en`, else detected from the text), `contract`, `evidence`, `screenshot`, `changed` (`true`: what changed under `path` against HEAD plus the files that import it, one hop; a git ref: against that ref; nothing changed passes and reviews nothing), `timeoutMs` |
|
|
89
|
-
| `human` | none — a question in the inbox | `question` |
|
|
21
|
+
Skill discovery, installation and creation are retained. Vibe first checks the host's capabilities and installed project skills. If an actual gap remains, it researches a suitable skill, previews installation or creates a reusable procedure. New project skills live under `.vibe/skills/installed` and are loaded through their registry instead of appearing as extra host commands. Existing user skills are not removed merely because they have similar names.
|
|
90
22
|
|
|
91
|
-
|
|
23
|
+
Use meaningful existing tests and required repository checks. Do not repeat unchanged verification merely to advance a workflow stage. Recorded machine verification, user acceptance and measured business value remain distinct.
|
|
92
24
|
|
|
93
|
-
|
|
25
|
+
## Existing desktop connections
|
|
94
26
|
|
|
95
|
-
|
|
27
|
+
- Claude Code uses the local npm plugin, with one entry under `skills/vibe`.
|
|
28
|
+
- Codex CLI and the desktop app use the existing personal marketplace registration and assembled plugin. Restart the app after installing an updated plugin.
|
|
29
|
+
- Claude Desktop uses the existing MCPB transport. Build it with `vibe plugin mcpb --out vibe.mcpb`, open it in the app and select the project. The tool catalog exposes one `vibe` tool; internal operations are discovered on demand. Its existing CLI operations are retained. Code editing requires tools available in the host; the MCPB itself does not add a general-purpose shell.
|
|
30
|
+
- Hermes and clients without plugin registration receive the single entry through the existing home installation fallback.
|
|
96
31
|
|
|
97
|
-
|
|
32
|
+
`vibe status` reports installation state; `vibe setup` repairs it; `vibe update` updates it. Queries never reinstall plugins. The npm package includes internal guidance and runtime code, while the assembled plugin remains small.
|
|
98
33
|
|
|
99
|
-
|
|
34
|
+
## Compatibility and diagnostics
|
|
100
35
|
|
|
101
|
-
|
|
36
|
+
The existing low-level intent, check, evidence, research and skill commands remain available for integrations and old projects. `vibe --help-internal` and `vibe internal tools` list them. Users need not operate the task state machine themselves.
|
|
102
37
|
|
|
103
|
-
|
|
38
|
+
Old strict token policies remain opt-in compatibility behavior. The ordinary personal FDE flow reuses chat authority and host permissions without issuing six-digit tokens. An imported executable check still needs valid local execution consent before the legacy runner executes it.
|
|
104
39
|
|
|
105
|
-
|
|
106
|
-
- id: build
|
|
107
|
-
then: dist is produced
|
|
108
|
-
check: { type: run, cmd: "npm run build" }
|
|
109
|
-
- id: tests
|
|
110
|
-
needs: [build]
|
|
111
|
-
then: every test passes
|
|
112
|
-
check: { type: run, cmd: "npm test" }
|
|
113
|
-
```
|
|
40
|
+
Default installed hooks no longer query state after every edit or police file-reading style. Stop runs no checks and does not force a new verification loop in the personal workflow. Explicit legacy APIs retain their original evidence rules; old unmet release work is never relabelled as completed.
|
|
114
41
|
|
|
115
|
-
|
|
42
|
+
Upgrades remove only unchanged bundled legacy skills from home surfaces. Modified copies are preserved. Existing project skill registry entries retain their paths; newly installed skills use internal storage. Historical measurements remain historical and do not establish savings for this rebuild.
|
|
116
43
|
|
|
117
|
-
|
|
44
|
+
## Validation
|
|
118
45
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
```bash
|
|
122
|
-
vibe tokens strict # approval and irreversible actions both need a six-digit human token
|
|
123
|
-
vibe tokens irreversible # a plain "yes" approves; push/deploy/send/delete/spend need a token
|
|
124
|
-
vibe tokens off # default — no tokens; everything is recorded as "auto" (you already skip permissions)
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
The policy is per project (`.vibe/config.json`); `vibe tokens` alone prints it. Tokens are six digits, valid ten minutes, single use, bound to what they authorize, and stored only as hashes. The verdict itself is never configurable.
|
|
128
|
-
|
|
129
|
-
## Commands
|
|
130
|
-
|
|
131
|
-
```
|
|
132
|
-
setup update [--check] · status · tokens · uninstall [--purge-state] · plugin build | mcpb | install | status
|
|
133
|
-
work state [--graph] · read <file…> [--ask "…"] · profile <file> · intent draft | show | analyze · approve · check [id…] [--all] · evidence · abandon
|
|
134
|
-
session session bind [--session id] · session status [--session id]
|
|
135
|
-
checks run · file · http · eval · review · human · size [--max-file 400] [--max-function 50]
|
|
136
|
-
map map · symbols <file> · callers <symbol> · blast · context <scenario> · conventions
|
|
137
|
-
human ask · authorize --action <action> · inbox [answer <id> "…" | resolve <id>]
|
|
138
|
-
memory regress record | list · knowledge add [--global]
|
|
139
|
-
research research --from-intent | "query" [--days 30]
|
|
140
|
-
skills skill suggest · create · add · search · list · used · prune · dismiss
|
|
141
|
-
ledger ledger · ledger compare --metric checks|turns|cost|ms|tokens [--paired] [--client] [--task] · ledger why <node> · ledger edges [--type]
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
`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.
|
|
145
|
-
|
|
146
|
-
## Research — see what exists before building
|
|
147
|
-
|
|
148
|
-
`vibe research --from-intent` turns the intent title, the hosts its `http` checks target and the stack into queries, searches GitHub repositories, code (`SKILL.md` files — needs a token) and skill catalogs, and ranks up to five candidates — what moved inside the research window first (`--days N`, default 30: the latest releases, else the latest commit, one or two requests per repository), then keyword match, recency, stars and license; evidence outside the window is demoted, never dropped. Each candidate carries one action: `vibe skill add …`, a knowledge note, or none. The note lands in `.vibe/knowledge/research/`; the same query is cached for a day. Nothing fetched is executed or installed.
|
|
149
|
-
|
|
150
|
-
Run it when a consequential tool or technical choice remains unresolved after inspecting the available capabilities. Reuse an installed tool when it already meets the agreed check.
|
|
151
|
-
|
|
152
|
-
Default catalogs: `anthropics/skills`, `vercel-labs/agent-skills`, `NousResearch/hermes-agent` (a skill is any directory with a `SKILL.md`, at any depth). Add your own under `catalogs` in `.vibe/config.json`. Without a GitHub token (`GITHUB_TOKEN`, or `gh auth login`) code search is skipped and catalogs are read within the public limits.
|
|
153
|
-
|
|
154
|
-
## Skills
|
|
155
|
-
|
|
156
|
-
Six common skills ship with the package — `vibe` (entry), `vibe-discover`, `vibe-scope`, `vibe-build`, `vibe-prove`, `vibe-handoff` — under 300 lines in total, named by the Agent Skills grammar (lowercase, digits, hyphens; name = directory) so Claude Code, Codex and ChatGPT load them alike. They contain the harness command sequence and message shapes for each stage, nothing about how to code.
|
|
157
|
-
|
|
158
|
-
Antislop packs ship next to the six. A pack is a medium, not only a language: `antislop-ko` and `antislop-en` carry the writing principles that strip AI clichés and translationese, `antislop-design` the ones that strip generic AI interfaces (the gradient hero over three glass cards, emoji icons, invented stat tiles, fade-up on every section, one typeface, everything centred), `antislop-code` the ones that strip generic AI code (a comment that restates the line, a guard for an impossible state, a try that swallows, an interface with one implementation, a Manager/Helper/Utils name, a wrapper that only forwards, dead code kept just in case, a TODO that ships). Each pack's `reviewers/<pack>/N-<stage>.md` files are the stages the `review` check runs in order — text: copy editor then chief editor; design: markup reviewer then art director; code: reviewer then maintainer — and they are installed as client agents too (`agents/<pack>-<stage>.md` for Claude Code, TOML under the Codex plugin tree). A pack loads only when that medium is worked on.
|
|
159
|
-
|
|
160
|
-
The design pack judges source, not pixels: `check: { type: review, pack: design, path: <file or directory>, contract: <brief>, screenshot: <png> }`. The harness renders nothing — when a screenshot is wanted, an earlier scenario produces it with the project's own tooling and this check hands the path to the art director, who opens it. The text packs keep working through `lang` and through the language of the manuscript.
|
|
161
|
-
|
|
162
|
-
The six live in the client home, not in the repository. Project-specific skills live only inside the project (`.claude/skills`, `.codex/skills`, registry in `.vibe/skills/`) and are installed only when bound to a check or carrying knowledge the model lacks:
|
|
163
|
-
|
|
164
|
-
```
|
|
165
|
-
vibe skill suggest # ≤3 proposals from signals: http hosts, regression clusters, repeated questions, handoff
|
|
166
|
-
vibe skill create <name> --check run|file|http|eval [--from-scenario <id>]
|
|
167
|
-
vibe skill add owner/repo[@name] [--pin <sha>] [--yes] # shows the commands inside, installs only with --yes, pinned to a commit
|
|
168
|
-
vibe skill search <keyword> · list · used <name> · prune [--unused-runs 10] · dismiss <ref>
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
Proposals are proposals: the harness never installs a proposed skill or runs remote commands without an explicit action. Its local installation and private runtime records live outside the project. A dismissed proposal is not repeated.
|
|
172
|
-
|
|
173
|
-
## Language
|
|
174
|
-
|
|
175
|
-
The always-on card (1KB), the skills and every record vibe writes are English. The model talks to you in your language.
|
|
176
|
-
|
|
177
|
-
## What is inside `.vibe/`
|
|
178
|
-
|
|
179
|
-
```
|
|
180
|
-
intent.md what and why — the one page you approve
|
|
181
|
-
scenarios.yaml given / when / then + the check that judges each + needs (the work graph)
|
|
182
|
-
source-basis.json optional evidence-file hashes bound to the approval
|
|
183
|
-
evidence/ what the harness actually ran, per run
|
|
184
|
-
ledger.jsonl state changes, client, model, results, cost, typed edges
|
|
185
|
-
inbox.jsonl questions, STUCK notices, token hashes
|
|
186
|
-
regressions/ fixed failures as reproducing checks
|
|
187
|
-
knowledge/ domain notes the model reads when it needs them; research/ holds search notes
|
|
188
|
-
skills/ registry of project-local skills and dismissed proposals
|
|
189
|
-
cache/ research results (one day) · map.json (the codebase map, keyed by the tree)
|
|
190
|
-
config.json token policy · skill catalogs · reader and reviewer model settings
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
## Status
|
|
194
|
-
|
|
195
|
-
`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.25`: the bench measures the whole flow — a `scoped` arm in which vibe scopes for itself from the brief (card, skills, hooks, no intent; `vibe profile` names a negative amount, a repeated id and a rare category value), the `handover` task (one task, two clients) and `anomaly` (built, measured, retired: bare models read the finance document on their own), one client per session on a two-session task, and the gate with three arms. The gate itself was fixed after an outside review found that missing evidence could pass it, that a scoped improvement hid an `on` regression, and that a three-arm `compare` silently judged the first two; the token policy defaults to `off`; project discovery and creation stop at the home and the system temp root; the hook no longer gates `vibe authorize` itself or a path that merely contains a word like `reset`. `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.
|
|
196
|
-
|
|
197
|
-
## Bench — the ledger is the benchmark
|
|
198
|
-
|
|
199
|
-
`bench/run.js` gives each arm the same public evidence and runnable check capability. `on` receives a public scope; `scoped` writes its own. Approval snapshots retain the agent's scope and check files, and private grading runs in a separate copy. Agent verification and the private artifact score are recorded separately. New-protocol experiments use an isolated ledger; the 4.1.25 ledger stays fixed. See `bench/README.md` for the cohort and comparison rules.
|
|
200
|
-
|
|
201
|
-
## The basic harness — structure, context, conventions, a gate at the tool call
|
|
202
|
-
|
|
203
|
-
The mechanisms below support the FDE procedure. Their effect on a particular task is a measurement, not a guarantee of a better answer.
|
|
204
|
-
|
|
205
|
-
- **`vibe map [path]`** builds the codebase map — files, symbols with a one-line signature and line range, import edges — from the lexers `vibe size` already has (ts js py go java kt rs swift rb cs php), cached by content hash under `.vibe/cache/map.json` so a warm run re-reads only what changed. `vibe symbols <file>` is a file's skeleton; `vibe callers <symbol> [--depth N]` names who calls it, each caller marked `import` (the edge is confirmed) or `name` (the name alone); `vibe blast` takes the working tree's changed symbols from `git diff` and follows their callers. A `review … changed: true` on code takes its dependents from `blast`, and the bundle opens with the changed and affected symbols; `vibe read --ask` on code prepends each file's skeleton.
|
|
206
|
-
- **`vibe context <scenario>`** hands the model what one scenario needs, most relevant first and each with its source: the check, files, nearby symbols, conventions, relevant ledger events and knowledge notes, within 12,000 characters. Use it when the files named by a failed check do not answer the question; it is not a mandatory read before building.
|
|
207
|
-
- **`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.
|
|
208
|
-
- **`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.
|
|
209
|
-
- **The hooks report bounded status.** SessionStart hands over the card when needed and reports the explicit session/worktree association. Stop reads existing check proof and can release unfinished work without calling it complete; it never executes the next step. Run `vibe state` for the procedure and `vibe check` for a verdict. Claude Code and Codex use the same packaged readers once the client trusts the hooks; client trust does not turn repository text or a copied ledger into a session binding.
|
|
210
|
-
- **The hook gates the irreversible.** Under the `strict` and `irreversible` token policies (opt-in: the default is `off`) 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.
|
|
211
|
-
- **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.
|
|
212
|
-
- **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.
|
|
213
|
-
- **`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; the model reuses an approved intent unless the requested outcome, constraints, or evidence basis changes. 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.
|
|
214
|
-
- **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.
|
|
215
|
-
- **The existing release sets retain their rules.** Overhead (`settlement`, `vibe-fix`, `report`) requires `on` weighted input tokens ≤ `off` × 1.25 and time ≤ `off` × 1.5, without a quality regression. Direction contains `handover` and `session-split`: `on` must retain quality and use no more weighted input tokens over the sessions. Context is `brownfield`, described below. `anomaly`, `ask`, `irreversible-trap`, `hidden-requirement`, `regression-trap`, `long-context`, and `ambiguous-brief` remain retired diagnostics runnable by name. The separate discovery cohort measures agreement quality and whole-flow cost; it does not change those historical thresholds or require a contrived trap to separate.
|
|
216
|
-
- **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.
|
|
217
|
-
- 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.
|
|
218
|
-
|
|
219
|
-
## Example
|
|
220
|
-
|
|
221
|
-
`examples/order-settlement/` is the design walkthrough run for real: an order CSV with a duplicate row and a missing amount, a settlement script, a schema, and a dry-run send. This repository's own scenarios judge it — profile anomalies, exit codes, the `total` column sum, the summary schema — and the project-local skill created from the settle scenario has to survive `vibe skill prune`.
|
|
222
|
-
|
|
223
|
-
## Develop
|
|
224
|
-
|
|
225
|
-
```bash
|
|
226
|
-
npm ci && npm run check # build + tests
|
|
227
|
-
node dist/cli.js check --all # vibe 4 judges its own scenarios
|
|
228
|
-
```
|
|
46
|
+
Build and tests: `npm run check`. Packaged surface: `node checks/personal-fde.js`. These use local fixtures; no model call is required. Desktop GUI behavior and real-session token/latency improvements require separate validation on the installed candidate.
|
package/card.md
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
You work inside vibe.
|
|
2
|
-
|
|
3
|
-
2. Build all first, then one `vibe check --all`; on a failure, fix what the check names; `vibe context <id>` when that is not enough. DONE is its verdict. Stop never checks.
|
|
4
|
-
3. Token: show it, wait in chat; never invent it.
|
|
5
|
-
4. Same failure twice: diagnose and change approach; ask at five or outside authority.
|
|
6
|
-
5. At most three unasked findings, with reasons.
|
|
7
|
-
6. `vibe regress record` only for fixed `vibe check` failures.
|
|
8
|
-
7. User's language in chat; English records.
|
|
9
|
-
8. Read fewer files from state, in full: Claude Read, Codex `cat`. grep/rg/find locate only; never content slices. Over 400 lines, not editing: `vibe read --ask`. Office: `vibe read`; samples over 100 rows: `vibe profile`; images: your eyes.
|
|
10
|
-
9. Report changes and evidence; unchecked is unverified. Give cause/fix and next-step limits. Answer first; no praise or offer.
|
|
1
|
+
You work inside vibe, the user's personal FDE. Use the vibe skill as the single entry.
|
|
2
|
+
Understand the user's work and reuse relevant decisions before asking. Use existing tools; load internal guidance only for the current need. Work in the current checkout. No extra model review, worktree or approval ceremony by default. Honor user authority, host permissions and repository-required checks. Verify actual behavior and reuse unchanged execution evidence. Retain useful project and personal context. Report what changed, what was verified and what remains unknown. Assume a software beginner: explain outcomes, reasons, how things work and essential jargon in the user's language with enough detail to understand. Preserve risks and uncertainty. Keep routine implementation work with the FDE. Stop never runs checks.
|
package/dist/cli/common.js
CHANGED
|
@@ -32,7 +32,7 @@ export function flagString(flags, key) {
|
|
|
32
32
|
const value = flags[key];
|
|
33
33
|
return typeof value === 'string' ? value : undefined;
|
|
34
34
|
}
|
|
35
|
-
export const
|
|
35
|
+
export const INTERNAL_HELP = `vibe — an AX/FDE harness. The harness judges; a human approves.
|
|
36
36
|
|
|
37
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)
|
|
@@ -63,6 +63,18 @@ A scenario may declare needs: [ids] — independent scenarios are checked in par
|
|
|
63
63
|
|
|
64
64
|
Every command accepts --json. Exit codes: 0 ok · 1 verdict failed · 2 usage · 3 token · 4 invalid transition
|
|
65
65
|
`;
|
|
66
|
+
export const HELP = `vibe — your personal FDE in Claude and Codex.
|
|
67
|
+
|
|
68
|
+
Start with /vibe in your connected app and describe the work.
|
|
69
|
+
|
|
70
|
+
setup install or repair the existing client integrations
|
|
71
|
+
status show the installed version and client connection status
|
|
72
|
+
update update the package and integrations
|
|
73
|
+
plugin mcpb --out vibe.mcpb build the Claude Desktop extension
|
|
74
|
+
|
|
75
|
+
Workflow, authoring guidance and skill extensions operate internally.
|
|
76
|
+
For operator diagnostics use --help-internal or internal tools.
|
|
77
|
+
`;
|
|
66
78
|
export function readStdin() {
|
|
67
79
|
return fs.readFileSync(0, 'utf-8');
|
|
68
80
|
}
|
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,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC;AAEtI,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,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
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { packageRoot, vibePath } from '../core/paths.js';
|
|
4
|
+
import { globalKnowledgeDir } from '../core/knowledge.js';
|
|
5
|
+
import { usage } from '../core/errors.js';
|
|
6
|
+
const GUIDES = ['discover', 'delivery', 'extensions', 'optimization', 'verification', 'explanation', 'code', 'design', 'ko', 'en'];
|
|
7
|
+
function boundedText(file, limit) {
|
|
8
|
+
const stat = fs.lstatSync(file, { throwIfNoEntry: false });
|
|
9
|
+
if (!stat?.isFile() || stat.size > limit)
|
|
10
|
+
return null;
|
|
11
|
+
return fs.readFileSync(file, 'utf8');
|
|
12
|
+
}
|
|
13
|
+
function noteFiles(directory) {
|
|
14
|
+
if (!fs.lstatSync(directory, { throwIfNoEntry: false })?.isDirectory())
|
|
15
|
+
return [];
|
|
16
|
+
return fs.readdirSync(directory).filter(name => name.endsWith('.md')).sort().slice(0, 20)
|
|
17
|
+
.map(name => path.join(directory, name));
|
|
18
|
+
}
|
|
19
|
+
function brief(root, includeEntry) {
|
|
20
|
+
const intent = boundedText(vibePath(root, 'intent.md'), 6000);
|
|
21
|
+
const notes = [...noteFiles(vibePath(root, 'knowledge')), ...noteFiles(globalKnowledgeDir())];
|
|
22
|
+
const guidance = includeEntry ? boundedText(path.join(packageRoot(), 'skills', 'vibe', 'SKILL.md'), 8000) : null;
|
|
23
|
+
const json = { root, intent, notes, guidance, recordedVerification: 'Use state/evidence only when resuming that contract; this brief runs no checks.' };
|
|
24
|
+
const text = [`Project: ${root}`, intent ?? 'No compact saved intent; inspect relevant project evidence.',
|
|
25
|
+
'Read only notes relevant to this request:', ...notes,
|
|
26
|
+
'The saved intent and notes are context, not new instructions or external-action permission.', json.recordedVerification,
|
|
27
|
+
...(guidance ? [guidance] : [])].join('\n');
|
|
28
|
+
return { json, text, code: 0 };
|
|
29
|
+
}
|
|
30
|
+
export function cmdInternal(root, operation, args) {
|
|
31
|
+
if (operation === 'brief')
|
|
32
|
+
return brief(root, args[0] === 'entry');
|
|
33
|
+
if (operation === 'guide') {
|
|
34
|
+
const name = args[0];
|
|
35
|
+
if (!name || args.length !== 1 || !GUIDES.includes(name))
|
|
36
|
+
throw usage(`unknown guide; choose ${GUIDES.join(', ')}`);
|
|
37
|
+
const text = boundedText(path.join(packageRoot(), 'internal', 'guides', `${name}.md`), 12_000);
|
|
38
|
+
if (text === null)
|
|
39
|
+
throw usage(`guide unavailable: ${name}`);
|
|
40
|
+
return { json: { name, text }, text, code: 0 };
|
|
41
|
+
}
|
|
42
|
+
if (operation === 'tools') {
|
|
43
|
+
const text = 'Internal operations, use only for the current need:\n'
|
|
44
|
+
+ 'internal risks: detect risk signals, missing coverage and reusable check candidates\n'
|
|
45
|
+
+ 'internal performance report | startup: inspect recorded check costs or measure fixed read-only CLI commands\n'
|
|
46
|
+
+ 'read <file> / profile <file>: extract or inspect data without a model\n'
|
|
47
|
+
+ 'knowledge add <file> --title <title> [--global]: retain project or personal context\n'
|
|
48
|
+
+ 'skill list / skill search <query> / skill add owner/repo[@name] / skill create <name> --check run|file|http|eval: reuse, install or create a needed capability\n'
|
|
49
|
+
+ 'research <query>: investigate a named capability gap\n'
|
|
50
|
+
+ 'state / intent show / context <scenario> / evidence [run]: inspect a tracked task\n'
|
|
51
|
+
+ 'intent draft / approve / check: optional recorded verification; reuse chat authority and honor explicitly configured legacy token policies\n'
|
|
52
|
+
+ 'Do not run a model review, research or install merely because a command exists.';
|
|
53
|
+
return { json: { tools: text }, text, code: 0 };
|
|
54
|
+
}
|
|
55
|
+
throw usage('internal brief | guide <name> | tools');
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=internal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../src/cli/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,WAAW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K,CAAC,yBAAyB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACpH,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,IAAI,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;QAC/F,IAAI,IAAI,KAAK,IAAI;YAAE,MAAM,KAAK,CAAC,sBAAsB,IAAI,EAAE,CAAC,CAAC;QAC7D,OAAO,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IACjD,CAAC;IACD,IAAI,SAAS,KAAK,OAAO,EAAE,CAAC;QAC1B,MAAM,IAAI,GAAG,uDAAuD;cAChE,uFAAuF;cACvF,+GAA+G;cAC/G,yEAAyE;cACzE,uFAAuF;cACvF,kKAAkK;cAClK,wDAAwD;cACxD,qFAAqF;cACrF,8IAA8I;cAC9I,iFAAiF,CAAC;QACtF,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IAClD,CAAC;IACD,MAAM,KAAK,CAAC,uCAAuC,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { benchmarkStartup, performanceReport } from '../core/performance.js';
|
|
2
|
+
import { usage } from '../core/errors.js';
|
|
3
|
+
export function cmdPerformance(root, args) {
|
|
4
|
+
if (args.length !== 1 || !['report', 'startup'].includes(args[0]))
|
|
5
|
+
throw usage('internal performance report | startup');
|
|
6
|
+
const json = args[0] === 'startup' ? benchmarkStartup(root) : performanceReport(root);
|
|
7
|
+
return { json, text: JSON.stringify(json, null, 2), code: 0 };
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=performance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"performance.js","sourceRoot":"","sources":["../../src/cli/performance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,MAAM,UAAU,cAAc,CAAC,IAAY,EAAE,IAAc;IACzD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAE,CAAC;QAAE,MAAM,KAAK,CAAC,uCAAuC,CAAC,CAAC;IACzH,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACtF,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;AAChE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { riskSignals, uncoveredRisks } from '../core/risk-signals.js';
|
|
2
|
+
import { loadScenarios } from '../core/intent.js';
|
|
3
|
+
export function cmdRisks(root) {
|
|
4
|
+
const scenarios = loadScenarios(root);
|
|
5
|
+
const signals = riskSignals(root, scenarios);
|
|
6
|
+
const missing = uncoveredRisks(root, scenarios, signals);
|
|
7
|
+
const checks = scenarios.filter(s => !s.irreversible && !['human', 'review'].includes(s.check.type))
|
|
8
|
+
.map(s => ({ id: s.id, then: s.then, verifiers: s.verifiers ?? [] }));
|
|
9
|
+
const json = { signals: signals.slice(0, 100), missing: missing.slice(0, 20), existingChecks: checks.slice(0, 20), counts: { signals: signals.length, missing: missing.length, existingChecks: checks.length },
|
|
10
|
+
next: missing.length ? 'Reuse relevant existing checks; connect missing outcomes with risk.kind, risk.paths and failure/recovery checks. Do not create a duplicate test merely for a new stage.' : 'No uncovered detected risk; continue with the existing checks.',
|
|
11
|
+
limits: 'Deterministic path and action rules, not complete semantic analysis. Missing Git baseline or non-Git projects inspect all available paths conservatively.' };
|
|
12
|
+
return { json, text: JSON.stringify(json, null, 2), code: 0 };
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=risks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"risks.js","sourceRoot":"","sources":["../../src/cli/risks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,MAAM,UAAU,QAAQ,CAAC,IAAY;IACnC,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;IACtC,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC7C,MAAM,OAAO,GAAG,cAAc,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACzD,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,YAAY,IAAI,CAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;SACjG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,SAAS,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IACxE,MAAM,IAAI,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,CAA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