vibeostheog 0.25.49 → 0.25.51
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/CHANGELOG.md +14 -1
- package/README.md +242 -106
- package/dist/assets/dashboard/index.html +480 -18
- package/dist/assets/dashboard/vibeos-dashboard-config.js +1 -1
- package/dist/vibeOS.js +2479 -1684
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
## 0.25.
|
|
1
|
+
## 0.25.51
|
|
2
|
+
- fix: preserve tool titles in footer hook (#275)
|
|
3
|
+
- fix: restore reward footer persistence (#274)
|
|
2
4
|
- fix: keep scratchpad cache session-only (#271)
|
|
3
5
|
- test: cover empty reward input (#269)
|
|
6
|
+
Fix dashboard sync path for web search
|
|
7
|
+
Merge origin/master into codex/strat
|
|
8
|
+
Add web search frontend
|
|
9
|
+
Update README.md
|
|
10
|
+
Fix footer claim alert visibility (#277)
|
|
11
|
+
Merge remote-tracking branch 'origin/master' into codex/strat
|
|
12
|
+
Fix footer claim alert visibility
|
|
13
|
+
Improve cache reuse and routing (#276)
|
|
14
|
+
Improve cache reuse and routing
|
|
15
|
+
fix pivot counter-pivot handoff + compressed project memory savings (#273)
|
|
16
|
+
fix pivot counter-pivot handoff (#272)
|
|
4
17
|
Merge remote-tracking branch 'origin/release/v0.25.48'
|
|
5
18
|
Stabilize claim status footer (#270)
|
|
6
19
|
|
package/README.md
CHANGED
|
@@ -1,61 +1,129 @@
|
|
|
1
|
-
# vibeOS for OpenCode
|
|
1
|
+
# vibeOS for OpenCode -- Innocence v0.25.48
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A quality-first control plane for AI-assisted coding.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
When AI coding is cheap, you use more of it. That is the upside of the current moment -- the marginal cost of a code suggestion has collapsed. But volume does not equal quality. The more you delegate to AI, the more often a mediocre suggestion slips through: a half-implemented fix, a fabricated API call, a test that passes only because the assertions are stubs. The quality problem gets worse as the cost problem gets better. vibeOS exists to solve the quality problem. The savings are a side effect.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
OpenCode Desktop gives you access to the most capable language models ever created -- Opus, Sonnet, DeepSeek v4 Pro -- but running them on every single turn adds up fast. More importantly, routing every turn through the most expensive model does not guarantee the best output. A cheap model proposing, a mid-tier model reviewing, and a top-tier model polishing often produces better results than a single expensive model guessing alone. vibeOS makes that routing decision automatically, on every turn, based on what you are actually doing.
|
|
8
8
|
|
|
9
9
|
## How It Feels
|
|
10
10
|
|
|
11
|
-
The first thing you notice is the footer. A single line at the bottom of every assistant response, barely visible, shows you what model handled the turn and
|
|
11
|
+
The first thing you notice is the footer. A single line at the bottom of every assistant response, barely visible, shows you what model handled the turn and the regime classification for what just happened. It is not a warning. It is not a nag. It is a quality receipt.
|
|
12
12
|
|
|
13
13
|
```
|
|
14
|
-
|
|
14
|
+
— brain | DeepSeek | v4-flash -> RFNE | $198.93 saved | VibeUltraX . Quality >>> | guarded | _
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
When you write code, the system routes implementation work to cheaper tiers automatically if the brain is reserved for strategy. You never see a block screen. You never get a cost warning interrupting your flow. The enforcement happens transparently
|
|
17
|
+
When you write code, the system routes implementation work to cheaper tiers automatically if the brain is reserved for strategy. You never see a block screen. You never get a cost warning interrupting your flow. The enforcement happens transparently -- the work gets done, just on the right tier.
|
|
18
18
|
|
|
19
19
|
The VibeBoX decision engine watches how you work. Are you exploring a new codebase? It keeps the cheap model active and stays out of your way. Are you converging on a solution? It quietly upgrades to full quality mode with strict enforcement. Are you stuck in a loop fixing the same test? It detects the frustration pattern and escalates before you ask. You never configure any of this. It just adapts.
|
|
20
20
|
|
|
21
|
-
The stress detector reads your messages for signs of frustration
|
|
21
|
+
The stress detector reads your messages for signs of frustration -- repeated failures, urgency, abrupt tone. When it senses stress above a threshold, it upgrades your model tier automatically. You get the best possible assistance while you are in the weeds, and you never had to ask.
|
|
22
22
|
|
|
23
|
-
You forget vibeOS is even running. That is the point.
|
|
23
|
+
The lie detector flags when the assistant claims success without evidence. The laziness detector catches short outputs, TODO placeholders, and skipped delegation on brain tier. The reward engine gamifies quality with XP credits for good outcomes and penalties for bad ones. You forget vibeOS is even running. That is the point.
|
|
24
24
|
|
|
25
|
-
## The
|
|
25
|
+
## The Cascade Engine
|
|
26
26
|
|
|
27
|
-
vibeOS
|
|
27
|
+
vibeOS uses a three-tier cascade to route every turn through the cheapest model that can produce a quality result.
|
|
28
28
|
|
|
29
|
-
###
|
|
29
|
+
### How It Works
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
1. **Cheap proposal** -- Your configured cheap slot generates an initial response (e.g., a local Ollama model via `vibe set cheap magiccoder:7b`, or any API model).
|
|
32
|
+
2. **Flash review** -- A mid-tier model (DeepSeek v4 Flash) critiques and refines the proposal.
|
|
33
|
+
3. **Pro polish** -- The brain-tier model (DeepSeek v4 Pro) applies a final quality pass on complex sections.
|
|
32
34
|
|
|
33
|
-
|
|
34
|
-
2. **Flash review** — DeepSeek v4 Flash critiques and refines the proposal.
|
|
35
|
-
3. **Pro polish** — DeepSeek v4 Pro applies final quality pass on complex sections.
|
|
35
|
+
Not every turn goes through all three stages. The cascade router estimates input difficulty and routes simple queries directly to the cheap tier. Complex reasoning, multi-file edits, and ambiguous instructions escalate to medium or brain. The router learns from session outcomes and calibrates its thresholds over time.
|
|
36
36
|
|
|
37
|
-
Benchmarked at **107% of raw brain quality at 58% of cost**. Local inference is free; only the Flash and Pro stages incur API costs. This is the first routing strategy that Pareto-dominates the raw brain baseline
|
|
37
|
+
Benchmarked at **107% of raw brain quality at 58% of cost**. Local inference is free; only the Flash and Pro stages incur API costs. This is the first routing strategy that Pareto-dominates the raw brain baseline -- better quality, lower cost.
|
|
38
|
+
|
|
39
|
+
### Research Foundation
|
|
40
|
+
|
|
41
|
+
The cascade design is informed by recent work in LLM routing and cascade inference:
|
|
42
|
+
|
|
43
|
+
**Dekoninck et al. (2024)** -- "A Unified Approach to Routing and Cascading for LLMs" (arXiv:2410.10347, 52 citations). Foundational framework showing cascade routing is theoretically optimal when calibrated routers can estimate input difficulty. Proves cascades Pareto-dominate single-model inference on the quality-cost curve. This is the theoretical basis for vibeOS's claim that a three-stage cascade can outperform a single expensive model on both quality and cost simultaneously.
|
|
44
|
+
|
|
45
|
+
**Moslem & Kelleher (2026)** -- "Dynamic Model Routing and Cascading for Efficient LLM Inference: A Survey" (arXiv:2603.04445, 10 citations). Comprehensive survey covering all routing paradigms: classifier-based, embedding-based, RL-based, hybrid. Establishes cascade routing as a well-studied class with practical deployment strategies. Validates that the cheap-propose / mid-review / pro-polish pattern is a known and effective architecture, not an ad hoc design.
|
|
46
|
+
|
|
47
|
+
**Jiang et al. (2025)** -- "Cascadia: An Efficient Cascade Serving System for Large Language Models" (arXiv:2506.04203, 3 citations). Co-optimizes deployment and routing -- reduces compute cost 42% and latency 50% vs. naive cascade serving. Demonstrates that cascades work in practice, not just in theory. The cost reduction numbers align closely with vibeOS's measured 58% cost reduction under VibeUltraX.
|
|
48
|
+
|
|
49
|
+
**Bouchard (2026)** -- "Is Escalation Worth It? A Decision-Theoretic Characterization of Cascade Routing at Inference Time" (arXiv:2604.04408, 1 citation). Models escalation as a binary decision problem. Shows cascades pay off when router accuracy exceeds 84% and cheaper model failure rate is above 5%. Below that, flat routing dominates. This work informs vibeOS's escalation thresholds: the cascade only escalates when the router confidence exceeds the point where flat routing would be better.
|
|
38
50
|
|
|
39
51
|
### VibeBoX Decision Engine
|
|
40
52
|
|
|
41
53
|
At the core of vibeOS is a real-time decision engine that classifies every user turn into one of seven sub-regimes:
|
|
42
54
|
|
|
43
|
-
- **INIT / DIVERGENT / EXPLORING**
|
|
44
|
-
- **REFINING**
|
|
45
|
-
- **CONVERGING / CLOSED**
|
|
46
|
-
- **LOOPING**
|
|
55
|
+
- **INIT / DIVERGENT / EXPLORING** -- You are learning the codebase, asking questions, browsing. cheap model, relaxed enforcement. Stay out of your way.
|
|
56
|
+
- **REFINING** -- You are iterating on a solution. Default mode: VibeMaX, auto-escalate on complexity.
|
|
57
|
+
- **CONVERGING / CLOSED** -- You are finalizing. Full quality mode, brain tier, strict enforcement and flow checks.
|
|
58
|
+
- **LOOPING** -- You are stuck. Speed mode, medium tier, cycle-breaking interventions.
|
|
47
59
|
|
|
48
60
|
Classification uses 11 derived features per turn: message length, code block density, question ratio, urgency signals, sentiment, complexity estimate, repetition, instruction density, and more. Four escalating intervention levels prevent infinite loops. PIVOT/SWITCH detection recognizes context changes and injects scope-confirmation directives.
|
|
49
61
|
|
|
50
|
-
When the VibeBoX is disabled, a lightweight
|
|
62
|
+
When the VibeBoX is disabled, a lightweight classifyTurnSimple fallback distinguishes Q&A from implementation intent using regex patterns.
|
|
51
63
|
|
|
52
64
|
### Stress-Aware Routing
|
|
53
65
|
|
|
54
|
-
A real-time stress scoring pipeline analyzes user messages for frustration signals. When stress exceeds 1.5 (on a 0
|
|
66
|
+
A real-time stress scoring pipeline analyzes user messages for frustration signals. When stress exceeds 1.5 (on a 0-3 scale), any regime is escalated to quality mode. The stress gauge renders in the footer as a subtle indicator. Inoculation directives are injected into system prompts to adjust the assistant's tone -- slower, more structured, more thorough.
|
|
55
67
|
|
|
56
68
|
### Pattern Learner
|
|
57
69
|
|
|
58
|
-
Per-project friction and routine tracking. The pattern learner observes which tools you use, what errors recur, and where you spend most of your time. Over time, it surfaces optimization suggestions and learns struggle/tech co-occurrence mappings. Cross-project patterns are stored in
|
|
70
|
+
Per-project friction and routine tracking. The pattern learner observes which tools you use, what errors recur, and where you spend most of your time. Over time, it surfaces optimization suggestions and learns struggle/tech co-occurrence mappings. Cross-project patterns are stored in global-learning.json and inform pricing hints and routing hints.
|
|
71
|
+
|
|
72
|
+
### Token Compression
|
|
73
|
+
|
|
74
|
+
Three-layer compression pipeline reduces token waste without losing semantic content:
|
|
75
|
+
|
|
76
|
+
1. **Web fetch stripping** (`compressText`) -- Applied immediately after webfetch tool execution. Strips verbose status lines, file-operation prefixes, and bullet markers. Collapses blank lines. If the result still exceeds 2000 characters, extracts bullet-priority lines and truncates to 30% of original size. Threshold: 2000 characters minimum.
|
|
77
|
+
|
|
78
|
+
2. **Cold-storage context compression** (`compressToolOutputs`) -- Runs on every LLM turn via the messages transform hook. Tool outputs older than the last 10 messages (the "hot window") are written to content-addressed cold storage (`~/.claude/scratchpad/by-hash/{hash}.txt`) and replaced with a ~200-character summary reference. Hot messages stay fully expanded so the LLM can reference recent context. Savings are estimated per-model using `cacheSavePer1MInputTokens()` and recorded to the delegation state.
|
|
79
|
+
|
|
80
|
+
3. **Project memory directives** (`projectMemoryDirective`) -- Compresses per-project state (sessions, reports, tech stack, topics) into a single-line directive injected into the system prompt. Full JSON stored for audit; prompt gets only the compact form.
|
|
81
|
+
|
|
82
|
+
The remote API also exposes a `POST /api/v1/compress/context` endpoint for server-side bullet-point extraction, available as a fallback for arbitrary text compression.
|
|
83
|
+
|
|
84
|
+
### Rotation Memory (Scratchpad Decadence)
|
|
85
|
+
|
|
86
|
+
The scratchpad rotation system manages the lifecycle of cached tool outputs through four age-based tiers:
|
|
87
|
+
|
|
88
|
+
| Age | Action | Content Preserved |
|
|
89
|
+
|-----|--------|-------------------|
|
|
90
|
+
| < 5 minutes | Kept as-is | Full content |
|
|
91
|
+
| 5 min - 24 hours | Warm storage | 500-char summary + pointer |
|
|
92
|
+
| 24 - 48 hours | Cold storage | 200-char summary + pointer |
|
|
93
|
+
| > 48 hours | Deleted | Nothing |
|
|
94
|
+
|
|
95
|
+
Rotation runs opportunistically on every tool execution and message transform, throttled to once per minute via `_lastDecadenceRun`. The effect is graceful degradation: fresh cache hits return full content, warm hits return summaries, cold hits return minimal previews, and expired entries are gone.
|
|
96
|
+
|
|
97
|
+
Global caps prevent unbounded growth: 1000 files / 10 MB total, 200 files / 2 MB per session. Stale session directories are cleaned up after 48 hours.
|
|
98
|
+
|
|
99
|
+
### Smart Cache Prediction
|
|
100
|
+
|
|
101
|
+
The smart cache predicts whether a tool query will hit scratchpad cache before execution, using three similarity functions blended into a composite score:
|
|
102
|
+
|
|
103
|
+
- **Jaccard similarity** (weight 0.3) -- Word-level overlap between current and cached prompts
|
|
104
|
+
- **Cosine bigram similarity** (weight 0.3) -- Word-pair co-occurrence angle
|
|
105
|
+
- **Keyword overlap** (weight 0.4) -- Domain-weighted overlap (code/file/fix/test keywords weighted 3x)
|
|
106
|
+
|
|
107
|
+
The prediction engine (`predictCacheHit`) computes a confidence score and returns whether caching is worthwhile, estimated savings, and the most similar cached entries. Per-tool hit rates are tracked with exponential decay (DECAY = 0.9) so recent performance matters more than historical averages.
|
|
108
|
+
|
|
109
|
+
Cache state persists across sessions in `~/.claude/global-learning.json` with a 7-day TTL eviction. The prediction results feed into the delegation enforcer's cost calculations and appear in the live footer savings display.
|
|
110
|
+
|
|
111
|
+
### Pivot and Counter-Pivot
|
|
112
|
+
|
|
113
|
+
Two complementary mechanisms manage context transitions:
|
|
114
|
+
|
|
115
|
+
**Forward pivot** -- Detects when you abruptly change topic mid-session. Uses a composite score of word-overlap distance, instruction-density delta, message-length ratio, and action-type change. Fires when `pivotScore > 0.45`. When detected:
|
|
116
|
+
1. Snapshots the current workflow (intent, files, decisions, blockers, code) to `~/.claude/.vibeos-pivot-cache.json`
|
|
117
|
+
2. Downgrades mode to budget (cheap tier, thinking off, relaxed enforcement)
|
|
118
|
+
3. Injects a context-shift directive into the system prompt
|
|
119
|
+
|
|
120
|
+
**Counter-pivot** -- Detects when you return to a previously abandoned workflow. Compares current query tokens against all cached workflow snapshots using Jaccard similarity with exact-match and recency bonuses. Fires when confidence >= 0.5. When detected:
|
|
121
|
+
1. Restores files, decisions, blockers, and code snippets from the cached workflow
|
|
122
|
+
2. Injects a `[PIVOT BACK]` context-restoration string into the system prompt
|
|
123
|
+
3. Warms the smart cache with tool outputs from the cached workflow
|
|
124
|
+
4. Increments `access_count` on the cached entry (learning which workflows get revisited)
|
|
125
|
+
|
|
126
|
+
The pivot system integrates with the loop intervention escalation: assertive loop-breaking uses "PIVOT: list 3 alternative approaches", and escalated intervention uses "STOP entirely. Reset strategy, SWITCH topics."
|
|
59
127
|
|
|
60
128
|
## The Numbers
|
|
61
129
|
|
|
@@ -69,7 +137,7 @@ The savings are real and measurable. Every write/edit on the brain tier is inter
|
|
|
69
137
|
| Opus -> Sonnet | $0.0264 | $0.26 | $2.64 | $26.40 |
|
|
70
138
|
| Sonnet -> Haiku | $0.0044 | $0.04 | $0.44 | $4.40 |
|
|
71
139
|
|
|
72
|
-
The running total is persisted in
|
|
140
|
+
The running total is persisted in ~/.claude/delegation-state.json and displayed in the live footer. Cache savings are tracked separately under cache_savings_usd.
|
|
73
141
|
|
|
74
142
|
### Model Tiers
|
|
75
143
|
|
|
@@ -77,10 +145,10 @@ Benchmarked on the DeepSeek v4 family. Prices based on 700 input + 300 output to
|
|
|
77
145
|
|
|
78
146
|
| Slot | Model | API ID | Per Turn | Per 1K Turns | Tier |
|
|
79
147
|
|------|-------|--------|----------|--------------|------|
|
|
80
|
-
| brain | v4 Pro |
|
|
81
|
-
| medium | v4 Flash |
|
|
82
|
-
| cheap | DeepSeek Chat |
|
|
83
|
-
| cheap (local) | MagicCoder:7b |
|
|
148
|
+
| brain | v4 Pro | deepseek/deepseek-v4-pro | $0.00057 | $0.58 | high |
|
|
149
|
+
| medium | v4 Flash | deepseek/deepseek-v4-flash | $0.000182 | $0.18 | mid |
|
|
150
|
+
| cheap | DeepSeek Chat | deepseek/deepseek-chat | $0.00 | $0.00 | budget |
|
|
151
|
+
| cheap (local) | MagicCoder:7b | magiccoder:7b (Ollama) | $0.00 | $0.00 | budget |
|
|
84
152
|
|
|
85
153
|
DeepSeek Chat costs $0/turn when routed through the Direct DeepSeek provider (no OpenRouter markup).
|
|
86
154
|
|
|
@@ -94,13 +162,13 @@ DeepSeek Chat costs $0/turn when routed through the Direct DeepSeek provider (no
|
|
|
94
162
|
| VibeMaX | ~75% | 0.18x | 82% | trained cascade (conservative escalate) |
|
|
95
163
|
| Budget | ~40% | 0.00x | 100% | direct routing |
|
|
96
164
|
|
|
97
|
-
**VibeUltraX**
|
|
165
|
+
**VibeUltraX** -- Cheap slot proposes, medium reviews, brain refines. 107% quality at 58% cost.
|
|
98
166
|
|
|
99
|
-
**VibeQMaX**
|
|
167
|
+
**VibeQMaX** -- Routes strategic turns through v4 Pro with full thinking, strict enforcement, strict flow checks, and quality TDD. Write/edit delegated per enforcement rules. Blended cost ~$0.00029/turn (50% of brain baseline).
|
|
100
168
|
|
|
101
|
-
**VibeMaX**
|
|
169
|
+
**VibeMaX** -- ML-optimized default. Routes through v4 Flash with a random forest classifier (29 trees, gini-split, trained on telemetry) that decides each turn. ~75% quality at 18% cost.
|
|
102
170
|
|
|
103
|
-
**Budget**
|
|
171
|
+
**Budget** -- DeepSeek Chat. Direct routing. ~40% quality at zero cost.
|
|
104
172
|
|
|
105
173
|
### Mode Configuration
|
|
106
174
|
|
|
@@ -115,7 +183,7 @@ DeepSeek Chat costs $0/turn when routed through the Direct DeepSeek provider (no
|
|
|
115
183
|
|
|
116
184
|
### Auto-Mode Behavior
|
|
117
185
|
|
|
118
|
-
When auto-mode is active, the VibeBoX control vector is the authority.
|
|
186
|
+
When auto-mode is active, the VibeBoX control vector is the authority. syncControlSettings() writes enforcement, flow, TDD, and thinking mode to model-tiers.json every turn:
|
|
119
187
|
|
|
120
188
|
| Regime | Mode | Enforce | Flow | TDD | Tier | Think |
|
|
121
189
|
|--------|------|---------|------|-----|------|-------|
|
|
@@ -130,7 +198,7 @@ Stress > 1.5 escalates any regime to quality mode regardless of the above mappin
|
|
|
130
198
|
| Feature | What it does |
|
|
131
199
|
|---------|-------------|
|
|
132
200
|
| Delegation enforcement | Blocks write/edit on brain tier, routes to cheaper tiers transparently |
|
|
133
|
-
| Live savings footer | Tier, provider, model name, total savings, mode
|
|
201
|
+
| Live savings footer | Tier, provider, model name, total savings, mode -- one line of reassurance |
|
|
134
202
|
| Web dashboard | SolidJS SPA with SSE real-time push for model split, savings, session history, controls |
|
|
135
203
|
| Trinity runtime | Switch tiers mid-session, change optimization mode, toggle subsystems live |
|
|
136
204
|
| Flow enforcer | Pattern-rule checks on write/edit. Extracts TODO/FIXME into append-only queue. |
|
|
@@ -142,11 +210,21 @@ Stress > 1.5 escalates any regime to quality mode regardless of the above mappin
|
|
|
142
210
|
| Report tools | report-save, report-list, report-read, research-audit |
|
|
143
211
|
| MCP server | Extended tool capabilities + dashboard serving + SSE push endpoint |
|
|
144
212
|
| Remote API | Fastify server at api.vibetheog.com with token auth and seat management |
|
|
145
|
-
| Session lock | vibe lock on|off
|
|
213
|
+
| Session lock | vibe lock on|off -- freezes model at session start |
|
|
146
214
|
| Model locking | Per-session lock that skips auto-reconcile with OpenCode config changes |
|
|
147
215
|
| Blackbox decision engine | Dialogue trajectory tracking, loop prevention, outcome calibration |
|
|
148
216
|
| TensorTAG routing | WBP protocol synthesizes delegated task output in assistant chat |
|
|
149
217
|
| Pattern learner runtime | trinity patterns and trinity patterns clear |
|
|
218
|
+
| Reward engine | Quality credits, saving bonus, lie/laziness penalties -- gamified quality assurance |
|
|
219
|
+
| Lie detector | Detects fabricated claims, invented function names, hallucinated APIs |
|
|
220
|
+
| Laziness detector | Flags short outputs, TODO placeholders, skipped delegation on brain tier |
|
|
221
|
+
| Claim verification | Scans assistant output for made-up references, validates against codebase |
|
|
222
|
+
| Token compression | Web fetch output stripped to 30% of original size -- verbose lines, bullet prefixes, and blank lines collapsed. Tool output history compressed to cold-storage references after the hot window (last 10 messages). Project memory condensed to single-line directives for system prompts. |
|
|
223
|
+
| Rotation memory | Scratchpad files age through a four-stage lifecycle: fresh (< 5 min, full content), warm (5 min - 24 hr, 500-char summary), cold (24 - 48 hr, 200-char summary), expired (> 48 hr, deleted). Rotation runs opportunistically on every tool execution, throttled to once per minute. Cache hits degrade gracefully over time instead of failing abruptly. |
|
|
224
|
+
| Smart cache | Predicts whether a tool query will hit scratchpad cache using composite similarity scoring (Jaccard + cosine bigram + weighted keyword overlap). Per-tool hit rates tracked with exponential decay. Estimated savings calculated and displayed in the live footer. Cache entries persisted across sessions via global-learning.json with 7-day TTL eviction. |
|
|
225
|
+
| Pivot / counter-pivot | Detects when you switch topics mid-session (forward pivot) and when you return to a previously abandoned workflow (counter-pivot). Forward pivots snapshot the old workflow context and downgrade to budget mode. Counter-pivots restore files, decisions, blockers, and code snippets from cached workflow snapshots into the system prompt. |
|
|
226
|
+
| Deferred reports | saveReport deferred to setTimeout to avoid blocking tool output |
|
|
227
|
+
| Stress gauge footer | Live indicator in footer -- ▁▂▃▅▆█ (none/minimal/calm/elevated/high/critical) |
|
|
150
228
|
|
|
151
229
|
## Install
|
|
152
230
|
|
|
@@ -168,29 +246,33 @@ Local dev checkout:
|
|
|
168
246
|
|
|
169
247
|
## Commands
|
|
170
248
|
|
|
171
|
-
`vibe help` (or `
|
|
249
|
+
`vibe help` (or `trinity help`) for full reference. Commands register in the TUI sidebar.
|
|
172
250
|
|
|
173
251
|
| Command | Effect |
|
|
174
252
|
|---------|--------|
|
|
175
|
-
| `vibe status` (or `
|
|
176
|
-
| `vibe set brain
|
|
177
|
-
| `vibe brain
|
|
178
|
-
| `vibe enable
|
|
179
|
-
| `vibe mode budget
|
|
180
|
-
| `vibe thinking full
|
|
181
|
-
| `vibe enforce on
|
|
182
|
-
| `vibe lock on
|
|
183
|
-
| `vibe flow on
|
|
184
|
-
| `vibe flow enforce on
|
|
185
|
-
| `vibe tdd on
|
|
186
|
-
| `vibe
|
|
253
|
+
| `vibe status` (or `trinity status`) | Tier, enforcement, savings, stress, lock state |
|
|
254
|
+
| `vibe set brain|medium|cheap [model=<model_id>]` | Switch active model tier or override slot |
|
|
255
|
+
| `vibe brain|medium|cheap` | Shorthand tier switch |
|
|
256
|
+
| `vibe enable|disable` | Toggle plugin on/off |
|
|
257
|
+
| `vibe mode budget|quality|speed|longrun|auto|balanced|audit|forensic` | Set optimization mode |
|
|
258
|
+
| `vibe thinking full|brief|off` | Reasoning depth |
|
|
259
|
+
| `vibe enforce on|off` | Toggle delegation enforcement |
|
|
260
|
+
| `vibe lock on|off` | Freeze model for session |
|
|
261
|
+
| `vibe flow on|off` | Toggle flow enforcer |
|
|
262
|
+
| `vibe flow enforce on|off` | Toggle auto-extract TODOs |
|
|
263
|
+
| `vibe tdd on|off` | Toggle TDD skeleton generation |
|
|
264
|
+
| `vibe tdd strict on|off` | Toggle strict failing TODO test templates |
|
|
265
|
+
| `vibe tdd quality on|off` | Toggle quality assertion stubs |
|
|
266
|
+
| `vibe rebuild` (or `trinity rebuild`) | Re-detect models from all providers |
|
|
187
267
|
| `vibe project` | Per-project analytics |
|
|
188
268
|
| `vibe patterns` / `vibe patterns clear` | Pattern inspection |
|
|
189
269
|
| `vibe diagnose` | Health check |
|
|
190
|
-
| `vibe blackbox on
|
|
191
|
-
| `trinity repair-state preview
|
|
270
|
+
| `vibe blackbox on|off|status|reset` | Decision engine control |
|
|
271
|
+
| `trinity repair-state preview|apply` | Fix state collisions |
|
|
192
272
|
| `vibe guard` | Refresh AGENTS.md / README.md |
|
|
193
|
-
| `
|
|
273
|
+
| `vibe reality-check` | Read verified live state, report evidence-backed facts only |
|
|
274
|
+
| `vibe setup` | Create a compatibility profile for first-time users |
|
|
275
|
+
| `trinity api-token <token|invalidate>` | Manage remote API token |
|
|
194
276
|
| `trinity api-bootstrap-token <token>` | Bootstrap token exchange |
|
|
195
277
|
|
|
196
278
|
**Report commands**: report-save, report-list, report-read, research-audit
|
|
@@ -203,26 +285,26 @@ vibeOS hooks into OpenCode Desktop through 8 extension points:
|
|
|
203
285
|
|
|
204
286
|
| Hook | Purpose |
|
|
205
287
|
|------|---------|
|
|
206
|
-
|
|
|
207
|
-
|
|
|
208
|
-
|
|
|
209
|
-
|
|
|
210
|
-
|
|
|
211
|
-
|
|
|
212
|
-
|
|
|
213
|
-
|
|
|
288
|
+
| experimental.text.complete | Appends footer to assistant responses |
|
|
289
|
+
| experimental.chat.messages.transform | Injects delegation protocol content |
|
|
290
|
+
| experimental.chat.system.transform | Injects cost optimization, stress inoculation, enforcement directives |
|
|
291
|
+
| tool.execute.before | Blocks write/edit on brain tier |
|
|
292
|
+
| tool.execute.after | Injects delegation UI notes |
|
|
293
|
+
| message.updated | Fallback footer for versions without text.complete |
|
|
294
|
+
| experimental.session.compacting | Preserves savings state |
|
|
295
|
+
| shell.env | Injects OPENCODE_MODEL_TIER and OPENCODE_MODEL |
|
|
214
296
|
|
|
215
297
|
### State Files (~/.claude/)
|
|
216
298
|
|
|
217
|
-
The plugin persists state to
|
|
299
|
+
The plugin persists state to ~/.claude/ for cross-session continuity:
|
|
218
300
|
|
|
219
|
-
- **delegation-state.json**
|
|
220
|
-
- **model-tiers.json**
|
|
221
|
-
- **project-states.json**
|
|
222
|
-
- **blackbox-state.json**
|
|
223
|
-
- **savings-ledger.jsonl**
|
|
224
|
-
- **global-learning.json**
|
|
225
|
-
- **active-jobs.json**
|
|
301
|
+
- **delegation-state.json** -- Sessions, warns, cache hits, lifetime totals
|
|
302
|
+
- **model-tiers.json** -- Brain/medium/cheap model IDs
|
|
303
|
+
- **project-states.json** -- Per-project memory, analytics, report references
|
|
304
|
+
- **blackbox-state.json** -- Per-project resolution tracker, session outcomes
|
|
305
|
+
- **savings-ledger.jsonl** -- Append-only savings event log
|
|
306
|
+
- **global-learning.json** -- Cross-project pattern learning
|
|
307
|
+
- **active-jobs.json** -- In-flight delegation records
|
|
226
308
|
|
|
227
309
|
### Local vs Remote
|
|
228
310
|
|
|
@@ -235,45 +317,99 @@ Remote API (api.vibetheog.com) enables: bootstrap token exchange, advanced VibeB
|
|
|
235
317
|
The footer is the primary status line, appended to every assistant response. It surfaces model assignment, savings, mode, alerts, and session metrics in a single line.
|
|
236
318
|
|
|
237
319
|
```
|
|
238
|
-
|
|
320
|
+
— brain | DeepSeek | v4-flash -> RFNE | $198.93 saved | VibeUltraX . Quality >>> | guarded | _
|
|
239
321
|
```
|
|
240
322
|
|
|
323
|
+
#### Tier Icons
|
|
324
|
+
|
|
325
|
+
| Icon | Slot | Meaning |
|
|
326
|
+
|------|------|---------|
|
|
327
|
+
| 🧠 | brain | Highest-tier model, reserved for complex reasoning |
|
|
328
|
+
| ◉ | medium | Mid-tier model, balance of quality and cost |
|
|
329
|
+
| ⚡ | cheap | Budget tier, fast and free or near-free |
|
|
330
|
+
| 🎁 | free | Free-tier model (e.g. HuggingFace free inference) |
|
|
331
|
+
|
|
332
|
+
#### Regime Icons
|
|
333
|
+
|
|
334
|
+
| Icon | Regime | Behavior |
|
|
335
|
+
|------|--------|----------|
|
|
336
|
+
| ◌ | INIT | Session starting, gathering context |
|
|
337
|
+
| ⇄ | DIVERGENT | Exploring multiple directions |
|
|
338
|
+
| ⌕ | EXPLORING | Investigating codebase, asking questions |
|
|
339
|
+
| ✎ | REFINING | Iterating on a solution |
|
|
340
|
+
| ⚙ | IMPLEMENTING | Active code generation |
|
|
341
|
+
| ⌁ | RESEARCH | Deep investigation, reading docs |
|
|
342
|
+
| ✓ | REVIEWING | Code review, verification |
|
|
343
|
+
| ◫ | DESIGNING | Architecture, planning |
|
|
344
|
+
| ⟲ | CONVERGING | Narrowing to final solution |
|
|
345
|
+
| ◆ | CLOSED | Task complete |
|
|
346
|
+
| ↻ | LOOPING | Detected stuck pattern, intervention active |
|
|
347
|
+
| ☑ | AUDIT | Audit mode active |
|
|
348
|
+
| ⟁ | FORENSIC | Forensic analysis mode active |
|
|
349
|
+
|
|
350
|
+
#### Stress Gauge
|
|
351
|
+
|
|
352
|
+
| Gauge | Threshold | Meaning |
|
|
353
|
+
|-------|-----------|---------|
|
|
354
|
+
| ▁ | 0 - 0.10 | None -- calm session |
|
|
355
|
+
| ▂ | 0.10 - 0.30 | Minimal -- slight friction detected |
|
|
356
|
+
| ▃ | 0.30 - 0.50 | Calm -- normal working state |
|
|
357
|
+
| ▅ | 0.50 - 0.70 | Elevated -- user showing signs of frustration |
|
|
358
|
+
| ▆ | 0.70 - 0.85 | High -- repeated failures, urgency signals |
|
|
359
|
+
| █ | 0.85+ | Critical -- system intervening with quality escalation |
|
|
360
|
+
|
|
361
|
+
#### Cascade Depth Icons
|
|
362
|
+
|
|
363
|
+
| Icon | Depth | Pipeline |
|
|
364
|
+
|------|-------|----------|
|
|
365
|
+
| (no icon) | 1 | Direct response, no cascade routing |
|
|
366
|
+
| ▸▸ | 2 | Two-stage: medium -> brain refinement |
|
|
367
|
+
| ▸▸▸ | 3 | Full cascade: cheap -> medium -> brain |
|
|
368
|
+
|
|
369
|
+
#### Enforcement and Status Tags
|
|
370
|
+
|
|
371
|
+
| Tag | Meaning |
|
|
372
|
+
|-----|---------|
|
|
373
|
+
| guarded | Delegation enforcement active -- write/edit on brain tier blocked |
|
|
374
|
+
| flow steady | Flow enforcer active, pattern rules being checked |
|
|
375
|
+
| flow strict | Flow enforcer in strict mode -- LGTM banned, debug artifacts flagged |
|
|
376
|
+
| tests live | TDD enforcer active -- test skeletons auto-generated |
|
|
377
|
+
| quiet | Quiet mode -- reduced footer verbosity |
|
|
378
|
+
| locked | Model lock active -- tier frozen for session |
|
|
379
|
+
|
|
380
|
+
#### Savings Display
|
|
381
|
+
|
|
382
|
+
| Format | Meaning |
|
|
383
|
+
|--------|---------|
|
|
384
|
+
| $X saved | Cumulative delegation + cache savings this session |
|
|
385
|
+
| $X saved ↗ | Savings trending upward (savings rate increasing) |
|
|
386
|
+
| $X saved ↘ | Savings trending downward (less delegation happening) |
|
|
387
|
+
| $0 saved | No savings yet this session |
|
|
388
|
+
|
|
389
|
+
#### Vector Pulse
|
|
390
|
+
|
|
391
|
+
| Tag | Meaning |
|
|
392
|
+
|-----|---------|
|
|
393
|
+
| ⟡ cheap | Active slot changed to cheap this turn |
|
|
394
|
+
| ⟡ medium | Active slot changed to medium this turn |
|
|
395
|
+
| ⟡ brain | Active slot changed to brain this turn |
|
|
396
|
+
|
|
241
397
|
**Segments (left to right):**
|
|
242
398
|
|
|
243
399
|
| Segment | Format | Example | Meaning |
|
|
244
400
|
|---------|--------|---------|---------|
|
|
245
|
-
| Tier icon + slot | icon tier |
|
|
246
|
-
| Provider + model | provider modelName |
|
|
247
|
-
| Regime | regimeIcon regimeTag |
|
|
248
|
-
| Savings |
|
|
249
|
-
| Flash icon | flashIcon |
|
|
250
|
-
| Brand + mode label | VibeBrand . modeLabel |
|
|
251
|
-
| Cascade icon | >>> or >> |
|
|
252
|
-
| Enforcement tags | guarded, flow steady, tests live |
|
|
253
|
-
| Stress gauge | gaugeChar |
|
|
254
|
-
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
**Stress gauge levels:**
|
|
258
|
-
|
|
259
|
-
| Gauge | Range | Meaning |
|
|
260
|
-
|-------|-------|---------|
|
|
261
|
-
| `_` | 0 - 0.1 | None |
|
|
262
|
-
| `_` | 0.1 - 0.3 | Minimal |
|
|
263
|
-
| `_` | 0.3 - 0.5 | Calm |
|
|
264
|
-
| `_` | 0.5 - 0.7 | Elevated |
|
|
265
|
-
| `_` | 0.7 - 0.85 | High |
|
|
266
|
-
| `_` | 0.85+ | Critical |
|
|
267
|
-
|
|
268
|
-
**Cascade icon (VibeUltraX mode only):**
|
|
269
|
-
|
|
270
|
-
| Icon | cascade_depth | Meaning |
|
|
271
|
-
|------|---------------|---------|
|
|
272
|
-
| (none) | 1 | Direct response, no cascade |
|
|
273
|
-
| `>>` | 2 | Standard cascade (medium -> brain) |
|
|
274
|
-
| `>>>` | 3+ | Deep cascade (cheap -> medium -> brain) |
|
|
275
|
-
|
|
276
|
-
Controls: `vibe status` (or `vibe status`) for full state, `vibe enable/disable` to toggle. Persisted in `~/.claude/delegation-state.json`.
|
|
401
|
+
| Tier icon + slot | icon tier | 🧠 brain | Active model slot |
|
|
402
|
+
| Provider + model | provider modelName | DeepSeek / v4-flash | Current model |
|
|
403
|
+
| Regime | regimeIcon regimeTag | -> RFNE | Current sub-regime classification |
|
|
404
|
+
| Savings | $X saved | $198.93 saved | Lifetime savings |
|
|
405
|
+
| Flash icon | flashIcon | ⚡ | API connected indicator |
|
|
406
|
+
| Brand + mode label | VibeBrand . modeLabel | VibeUltraX . Quality | Requested mode + regime-derived label |
|
|
407
|
+
| Cascade icon | >>> or >> | >>> | VibeUltraX cascade depth >= 3 |
|
|
408
|
+
| Enforcement tags | guarded, flow steady, tests live | guarded | Guard state summary |
|
|
409
|
+
| Stress gauge | gaugeChar | _ | Current stress level |
|
|
410
|
+
| Vector pulse | slot | cheap | Active slot changed this turn |
|
|
411
|
+
|
|
412
|
+
Controls: `vibe status` (or `trinity status`) for full state, `vibe enable/disable` to toggle. Persisted in ~/.claude/delegation-state.json.
|
|
277
413
|
|
|
278
414
|
### Environment Variables
|
|
279
415
|
|
|
@@ -292,12 +428,12 @@ Controls: `vibe status` (or `vibe status`) for full state, `vibe enable/disable`
|
|
|
292
428
|
| Symptom | Fix |
|
|
293
429
|
|---------|-----|
|
|
294
430
|
| Plugin not loading | Check opencode.json entry. Restart Desktop. |
|
|
295
|
-
| Model won't switch |
|
|
296
|
-
| Writes/edits blocked | Enforcement active
|
|
431
|
+
| Model won't switch | vibe rebuild (or trinity rebuild) then vibe set brain/medium/cheap |
|
|
432
|
+
| Writes/edits blocked | Enforcement active -- delegate to cheap tier |
|
|
297
433
|
| No footer visible | Verify plugin enabled, completions running |
|
|
298
|
-
| Dashboard blank |
|
|
299
|
-
| State looks wrong |
|
|
434
|
+
| Dashboard blank | npm run build then restart |
|
|
435
|
+
| State looks wrong | vibe diagnose then trinity repair-state preview |
|
|
300
436
|
|
|
301
437
|
---
|
|
302
438
|
|
|
303
|
-
|
|
439
|
+
*vibe help (or trinity help) is the canonical command reference. This README stays high-level so command details follow the code without a rewrite.*
|