vibeostheog
v0.19.7
Published
Cost-aware delegation enforcer for OpenCode. Tracks model usage, routes Task subagents to cheaper tiers, surfaces cumulative savings in chat. Includes research audit, reporting framework, project memory, progressive scratchpad decadence, and trinity CLI f
Maintainers
Readme
vibeOS for OpenCode
Alpha Release — This is the first alpha milestone of vibeOS. See CHANGELOG.md for release notes. vibeOS is the cost-aware routing layer for OpenCode Desktop. It keeps high-tier models focused on orchestration, pushes implementation work to cheaper tiers, and makes the savings visible in real time through the live footer and dashboard.
It also adds guardrails: delegation enforcement, flow and TDD controls, pattern learning, stress-aware routing, blackbox decision tracking, reporting, and remote API protection for the core algorithms.
Why Teams Use It
- Routes work to the right model tier without manual babysitting
- Tracks delegation savings and cache savings separately
- Shows live status in chat, the footer, and the web dashboard
- Adds runtime controls for flow, TDD, model locking, and blackbox mode
- Falls back to local algorithms if the remote API is unavailable
Install
OpenCode plugin
- Register the plugin with the bundled setup command:
npx vibeostheog setup --projectUse npx vibeostheog setup for a global OpenCode install under ~/.config/opencode/.
- The setup command writes the package name into your OpenCode config. OpenCode installs npm plugins automatically at startup:
{
"plugin": [
"vibeostheog"
]
}- If you keep a local checkout of the plugin, point OpenCode at the built file instead:
{
"plugin": [
"/absolute/path/to/theSaver-oc/src/index.js"
]
}Restart OpenCode Desktop after changing the config.
The package also exposes vibeostheog/server and vibeostheog/tui for integrations that need the MCP server or sidebar plugin entrypoints directly.
Common Npm Commands
npm install
npm run build
npm run typecheck
npm test
npm run release:patchnpm run build compiles src/index.ts to src/index.js for the local checkout. npm run typecheck validates the TypeScript sources without emitting files.
Core Controls
trinity is an OpenCode plugin command. Run it from inside OpenCode, not from a normal terminal shell. Use trinity help for the full command list. The bundled TUI plugin also registers trinity and the common slot actions in OpenCode's command palette.
The most common controls are:
trinity status- show current tier, enforcement, savings, stress, and lock statetrinity set brain|medium|cheap- switch the active tiertrinity brain|medium|cheap- shorthand tier switchtrinity rebuild- re-detect available models and repopulate slotstrinity enable/trinity disable- toggle the plugin on or offtrinity mode budget|quality|speed|longrun|auto- change the optimization modetrinity thinking full|brief|off- change reasoning depthtrinity enforce on|off- control delegation enforcementtrinity lock on|off- freeze the active model for the sessiontrinity flow on|offandtrinity flow enforce on|off- manage flow checkstrinity tdd on|off,trinity tdd strict on|off,trinity tdd quality on|off- manage test skeleton behaviortrinity project- open project analyticstrinity patterns/trinity patterns clear- inspect or reset learned patternstrinity diagnose- run a health checktrinity repair-state preview|apply- fix state fingerprint collisionstrinity blackbox on|off|status|reset- control the decision enginetrinity guard- refresh AGENTS.md and README.md checkstrinity api-token <token>- update the remote API token
Additional reporting commands:
report-savereport-listreport-readresearch-audit
Savings And Footer
The footer shows:
- the active model split
- cumulative delegation savings
- cache savings
- stress level
- lock and enforcement tags
Savings are persisted in ~/.claude/delegation-state.json.
Configuration
| Variable | Default | Purpose |
|---|---|---|
| VIBEOS_API_URL | https://api.vibetheog.com | Remote API server URL |
| VIBEOS_API_TOKEN | unset | vos_ffa6c7dacb244a03 |
| VIBEOS_API_ENABLED | true | Set to false for local-only mode |
| CLAUDE_CREDIT_PERCENT | 100 | Credit override |
| CLAUDE_CONTEXT7_AVAILABLE | unset | Enables context7 optimization |
| CLAUDE_SCRATCHPAD_MAX_AGE_SEC | 86400 | Scratchpad cache lifetime |
| VIBEOS_MCP_PORT | 3001 | MCP server port |
Without a token, vibeOS keeps running in local-only mode with bundled algorithms.
Troubleshooting
- If the plugin does not appear, confirm the OpenCode config entry, then restart OpenCode Desktop.
- If the model will not switch, run
trinity rebuildand thentrinity set brain|medium|cheap. - If writes or edits are blocked, that is usually delegation enforcement working as intended on the brain tier.
- If the footer is missing, check that the plugin is enabled and that the current OpenCode session is receiving assistant completions.
- If the remote API is down or the token is invalid, use
trinity api-token <token>or rely on local-only mode. - If the dashboard does not load, rebuild the plugin with
npm run buildand restart OpenCode. - If state or config looks inconsistent, run
trinity diagnoseandtrinity guard.
Notes
trinity helpis the canonical command reference.- The README stays intentionally high level so the command details can follow the code without a rewrite.
