@mystilleef/vibe-cli
v0.4.2
Published
Metacognitive AI agent oversight — pure CLI with JSON I/O
Downloads
47
Maintainers
Readme
vibe-cli
Vibe check your agent's ideas, proposals, plans, or solutions for metacognitive flaws with a mentor agent.
Metacognitive oversight infrastructure for AI agents. Equips LLM
coding harnesses with skills to consult mentor models, store persistent
memory, and enforce constitutional rules.
Requirements
Bun>=1.0.0. The binary usesbun:sqliteand requiresBun.- Provider
APIkey matching the selectedsettings.jsonentry.
Quick start
Step 1: Install binary
bun install -g @mystilleef/vibe-cliStep 2: Configure mentor provider
- Install the bundled settings template:
vibe settings install- Edit
~/.vibe-cli/settings.jsonto define the mentor provider, model, and credentials:
provider: active mentor provider entry name.maxAttempts: refinement limit forvibe check.providers[].spec:gemini,openai, oranthropic.providers[].envVar: environment variable for provider key.providers[].defaultModel: model fallback.providers[].thinking:off,low,medium,high, orxhigh.
- Export matching
APIkey (for example,GEMINI_API_KEY,OPENAI_API_KEY,ANTHROPIC_API_KEY).
Step 3: Install harness skills
Install bundled skills into your preferred LLM coding harness:
# Universal Agent Path (Default: ~/.agents/skills)
vibe skills install
# Claude Code
vibe skills install --target ~/.claude/skills
# Antigravity CLI
vibe skills install --target ~/.gemini/config/skills
Step 4: Load agent policy
Install the guide and load it into agent context:
# Install vibe-guide.md into project root
vibe guide installAdd the guide to AGENTS.md, CLAUDE.md, or paste its content into
your agent's system prompt so agents know when and how to trigger vibe
skills. Loading remains opt-in. The install command never alters context
files automatically.
Harness skill workflows
Developers instruct coding agents via natural language.
For example, "Draft a proposal to fix the stutter issues when scrolling on the login page, vibe check it, then show for review."
The agent consults its policy, executes the underlying vibe binary,
processes mentor feedback, and reports back.
NOTE: The agent uses the vibe-learn and vibe-constitution skills
on-demand and by discretion. Users don't need to activate the learn
and constitution skills.
vibe-check
Prompts mentor review before executing high-risk, ambiguous, or multi-step tasks.
- Natural language: "Draft a proposal for schema migration, vibe check it, then show for review."
- Slash command:
/vibe-check - Execution loop:
- Developer requests action.
- Agent matches criteria in
vibe-guide.md. - Agent executes
vibe checkCLIbinary under the hood. - Agent processes mentor feedback (
proceed: true/false, recommendations). - Agent presents approved plan or adjusts strategy.
Storage
- Data root:
~/.vibe-cli. - Settings file:
~/.vibe-cli/settings.json. SQLitedatabase:~/.vibe-cli/vibe.db.Autosessions: maps working directories to 4-hour local session scopes.- Tables store review history, learning entries, constitution rules, migrations, and import markers.
Agent protocol reference (CLI commands)
Coding agents execute these CLI commands behind the scenes. Developers
can also run them manually for administrative tasks.
Check plan
vibe check \
--goal "Update schema" \
--plan "Run migration script, update ORM, run tests" \
--uncertainty "No backup verified"- Returns
JSONwithproceed,confidence,reason,feedback,plan, andattempts. - Exit code
2indicates non-proceeding verdict.
Record lesson
vibe learn \
--type mistake \
--category "Database" \
--observation "Connection timeout during heavy load." \
--solution "Increase retry backoff threshold."Manage constitution rules
vibe constitution set --rule "Run test suite before commits."
vibe constitution get
vibe constitution reset --rule "Keep output concise."Manage skills
skills list and skills install print readable text by default. Pass
--json to emit the prior machine-readable payload for automation.
vibe skills list --target ~/.gemini/config/skills
vibe skills install --target ~/.claude/skills
vibe skills install --force
# Automation consumers
vibe skills list --target ~/.gemini/config/skills --json
vibe skills install --target ~/.claude/skills --jsonManage guide
guide list and guide install print readable text by default. Pass
--json to emit the prior machine-readable payload for automation.
vibe guide list
vibe guide install
# Automation consumers
vibe guide list --json
vibe guide install --jsonQuery and maintenance
vibe list all --json
vibe prune --duplicates --yes
vibe session
vibe verify --provider gemini --model gemini-3.5-flashDevelopment
bun check
bun coverage
bun run build
bun verifybun check:Biomecheck/write plusTypeScript--noEmit.bun coverage:Buntest suite with coverage settings.bun verify: complete verification pipeline.
Project layout
src/cli.ts:Commandercommand registration edge.src/tools/: plan gate, learning, constitution, demo, prune orchestration.src/utils/: settings resolution, provider dispatch,SQLitepersistence, schema projections.skills/: bundled agent skills (vibe-check,vibe-learn,vibe-constitution).docs/vibe-guide.md: operational policy for harness agent context.tests/:Buntest suite.
Credits
Original project: vibe-check-mcp by Pruthvi Bhat.
