Licence
MIT
Version
0.1.2
Deps
3
Size
842 kB
Vulns
0
Weekly
0
vibe-cli
Metacognitive oversight CLI for AI agents. Reviews plans, records lessons, stores constitution rules, lists local memory, prunes stale data, and verifies provider connectivity through JSON-first commands.
Requirements
- Bun >=1.0.0. The CLI uses
bun:sqliteand cannot run under Node.js. - Provider API key matching the selected
settings.jsonentry.
Install
bun install --frozen-lockfile
bun run build
- Local checkout:
bun run src/cli.ts --help
- Built bundle:
./dist/vibe.js --help
- Global install:
bun install -g @mystilleef/vibe-cli
vibe --help
Configuration
Copy the example settings file into the data root:
mkdir -p ~/.vibe-cli
cp settings.example.json ~/.vibe-cli/settings.json
Then edit ~/.vibe-cli/settings.json:
provider: active provider entry name.maxAttempts: refinement limit forvibe check.providers[].spec:gemini,openai, oranthropic.providers[].envVar: environment variable for the provider key.providers[].defaultModel: model fallback when--modelstays omitted.providers[].thinking:off,low,medium,high, orxhigh.
Provider environment examples from settings.example.json:
GEMINI_API_KEYOPENAI_API_KEYANTHROPIC_API_KEYorANTHROPIC_AUTH_TOKENOPENROUTER_API_KEYDEEPSEEK_API_KEYMIMO_API_KEYHF_TOKENOPENCODE_API_KEYDASHSCOPE_API_KEY
Usage
Examples use the package bin name vibe. Substitute
bun run src/cli.ts in a checkout.
Inspect command surface
vibe schema
vibe --help
Check a plan
vibe check \
--goal "Update README" \
--plan "Inspect evidence, update docs, run verification" \
--uncertainty "No release focus supplied"
- Returns JSON with
proceed,confidence,reason,feedback,plan, andattempts. - Non-proceeding result exits with code
2. --providerand--modeloverride settings for one call.
Record a lesson
vibe learn \
--type success \
--category "Documentation" \
--observation "Project evidence guided the README." \
--solution "Inspect source and configuration before drafting."
mistakeandsuccessentries require--solution.preferenceentries can omit--solution.- Storage suppresses similar observations.
Manage rules
vibe constitution set --rule "Ask before destructive changes."
vibe constitution get
vibe constitution reset --rule "Keep responses concise."
- Rules attach to the current
autosession. - Storage keeps up to 50 rules per
autosession.
Query local data
vibe list
vibe list providers
vibe list learnings --type mistake --limit 5 --json
vibe list all --json
Subcommands:
learningsconstitutionsessionsproviderscheckscategoriesstatsall
Prune local data
vibe prune --learnings --dry-run
vibe prune --duplicates --yes
- Without
--yes, prune reports candidates only. - Destructive prune writes a backup path in the result.
- Filters:
--age,--category,--overlap.
Other commands
vibe session
vibe migrate
vibe verify --provider gemini --model gemini-3.5-flash
vibe demo
session: activeautosessionID for the working directory.migrate: database migration state.verify: live provider connectivity probe.demo: livewalkthrough.
Storage
- Data root:
~/.vibe-cli. - Settings file:
~/.vibe-cli/settings.json. - SQLite file:
~/.vibe-cli/vibe.db. Autosessionsmap working directories to 4-hour local sessions.- Tables store interactions, learning entries, constitution rules, migrations, and legacy import markers.
Development
CI runs on Node.js 22 alongside Bun; this is a CI-only detail and not a runtime requirement for the CLI.
bun check
bun coverage
bun run build
bun verify
bun check: Biome check/write plus TypeScript--noEmit.bun coverage: Bun test suite with coverage settings frombunfig.toml.bun verify: Biome migration, check, build, coverage chain.
Make targets:
make check
make coverage
make verify
Project layout
src/cli.ts: Commander command registration.src/tools/: plan gate, learning, constitution, demo, prune orchestration.src/utils/: settings, provider dispatch, storage, schema, list readers,formatters.skills/: agent skills forvibe-check,vibe-learn,vibe-constitution. Published to npm under the package'sskills/path; copy the skill directories into your harness's skill path (e.g.~/.claude/skills/) to use them. Avibe skills installcommand is planned to automate this.tests/: Bun test suite.