Portable AI Engineering Assistant
An AI-powered CLI assistant with embedded engineering knowledge, a pluggable skill system, persistent memory, and project-aware context β designed to be your pair-programming partner in the terminal.
# Install
npm install -g bobo-ai-cli
# Initialize
bobo init
bobo config set apiKey sk-your-anthropic-key
# Start interactive REPL
bobo
# Or run a one-shot prompt
bobo "explain this codebase"Bobo CLI v2.1.0 implements advanced AI agent patterns inspired by Claude Code:
- π Verification Agent β 'Try to break it' philosophy with adversarial testing (build/test/lint + boundary probing)
- π Role-Based Sub-Agents β Explore (read-only), Plan (strategy), Worker (execution), Verify (validation)
- ποΈ Three-Tier Compression β Microcompact (tool result clearing) β Auto-compact (87% threshold + circuit breaker) β Full compact (LLM summary)
- π‘οΈ Tool Governance Pipeline β Input validation β Risk classification β Permission checks β Execution hooks β Telemetry
- πΎ Cache Boundary Optimization β STATIC/DYNAMIC prompt separation for provider caching (Anthropic prompt caching compatible)
- π KAIROS Dream Mode β Automated memory consolidation (reads logs β LLM distillation β structured insights)
9 built-in knowledge files that shape the assistant's behavior and engineering methodology:
| File | Type | Description |
|---|---|---|
system.md |
always | Core identity, work mode, and personality |
rules.md |
always | Coding standards, honest reporting, git workflow |
agent-directives.md |
always | 10 mechanical override rules (edit safety, context decay, phased execution) |
engineering.md |
on-demand | Task routing, search strategies, three-file pattern |
error-catalog.md |
on-demand | Top 10 high-frequency error patterns with quick fixes |
verification.md |
on-demand | Adversarial verification protocol |
task-router.md |
on-demand | Task classification and strategy selection |
dream.md |
on-demand | Memory consolidation protocol |
advanced-patterns.md |
on-demand | Memory taxonomy, compact protocol, sub-agent architecture |
On-demand files are loaded automatically when the user's message matches trigger keywords.
47 skills (2 built-in + 45 importable) covering coding, research, verification, context management, self-improvement, and domain-specific tools:
bobo skill list # List all skills
bobo skill enable semrush # Enable a skill
bobo skill disable coding # Disable a skill
bobo skill import ~/skills/ # Batch import from directoryCore skills (enabled by default):
codingβ Code standards, zero-comment principle, review checklistresearchβ Search strategies, information synthesisadversarial-verificationβ Break-it-don't-confirm-it validationcontext-compressorβ Nine-section context compressioncontext-budget-analyzerβ Token usage analysisproactive-self-improvingβ Automatic experience capture and evolutionhigh-agencyβ Sustained motivation and ownership mindsetmemory-managerβ Structured long-term memory managementdeep-researchβ Multi-model deep research with citations
18 tools available to the AI assistant:
| Category | Tools |
|---|---|
| File | read_file, write_file, edit_file, search_files, list_directory |
| Shell | shell |
| Memory | save_memory, search_memory |
| Git | git_status, git_diff, git_log, git_commit, git_push |
| Planner | create_plan, update_plan, show_plan |
| Web | web_search, web_fetch |
Persistent memory across sessions with structured categories:
- user β Preferences and habits
- feedback β Corrections and confirmations
- project β Active tasks and goals
- reference β External knowledge not in code
- experience β Lessons learned
Memory is stored in ~/.bobo/memory.md with a 5KB auto-slim cap and daily logs in ~/.bobo/memory/.
Drop a .bobo/ directory in any project to provide project-specific context:
cd my-project
bobo project init # Creates .bobo/project.jsonBobo automatically detects and loads AGENTS.md, CLAUDE.md, and CONVENTIONS.md from the project root.
bobo CLI v2.1.0 β Claude Code-inspired Agent Architecture
β
βββ System Prompt Assembly (STATIC/DYNAMIC separation)
β STATIC (cacheable):
β β Knowledge (3 always-load + 6 on-demand)
β β‘ Skills (active skill prompts)
β β’ BOBO.md project instructions
β ββββββββ DYNAMIC BOUNDARY ββββββββ
β DYNAMIC (session-specific):
β β£ Memory (persistent user/project/feedback data)
β β€ Project context (.bobo/ + auto-detected files)
β β₯ Environment (CWD + turn count + decay warnings)
β
βββ Agent Loop (with governance)
β βββ Streaming responses with tool calls
β βββ Tool Governance Pipeline:
β β Input validation β Risk classification β PreToolUse Hook β
β β Permission check β Execution β PostToolUse Hook β Telemetry
β βββ Three-tier compression:
β β 60%: Microcompact (clear old tool results)
β β 87%: Auto-compact (with circuit breaker)
β β 95%: Full compact (LLM summary)
β βββ Max 20 iterations per turn
β
βββ Sub-Agent System (role-based)
β βββ explore β Read-only exploration
β βββ plan β Strategy without execution
β βββ worker β Full tools + anti-recursion
β βββ verify β Adversarial validation
β
βββ Verification Agent
β βββ Build/Test/Lint enforcement
β βββ Adversarial probing (boundary tests, API calls)
β βββ Verdict: PASS / FAIL / PARTIAL
β
βββ KAIROS Dream Mode
β βββ Auto-trigger: 50+ entries or 24h since last dream
β βββ LLM distillation: Logs β Insights (confidence-scored)
β βββ Memory consolidation: Dedupe + category organization
β
βββ Structured Knowledge (advanced)
β βββ knowledge/rules/ β 15+ domain rule files
β βββ knowledge/skills/ β 140+ structured skill files
β βββ knowledge/workflows/ β 6 workflow templates
β βββ knowledge/memory/ β Extracted patterns
β
βββ CLI Commands
βββ bobo [prompt] β One-shot or REPL mode
βββ bobo config β Configuration management
βββ bobo init β Initialize ~/.bobo/
βββ bobo knowledge β View knowledge base
βββ bobo skill β Skill management
βββ bobo spawn <task> β Background sub-agent (with role)
βββ bobo agents β Manage sub-agents
βββ bobo kb β Structured knowledge search
βββ bobo rules β Browse engineering rules
βββ bobo skills β Structured skill browser
βββ bobo template β Project scaffolding
βββ bobo project β Project configuration
| Command | Description |
|---|---|
/help |
Show available commands |
/status |
Session status (model, turns, CWD) |
/knowledge |
List loaded knowledge files |
/skills |
List active skills |
/plan |
Show current task plan |
/compact |
Compress context (nine-section summary) |
/dream |
π KAIROS memory consolidation (LLM-powered insight extraction) |
/verify [task] |
π Run verification agent with adversarial testing |
/spawn <task> |
Spawn background sub-agent (with role support) |
/agents |
List all sub-agents and their status |
/clear |
Clear conversation history |
/history |
Show turn count |
/quit |
Exit |
bobo config set apiKey sk-your-key # API key (required)
bobo config set model gpt-4o # Model name
bobo config set baseUrl https://... # API base URL
bobo config set maxTokens 8192 # Max response tokens
bobo config list # Show all configConfiguration is stored in ~/.bobo/config.json. The API key is masked in config list output.
Bobo CLI uses the OpenAI-compatible API format. It works with:
- Anthropic (default) β
baseUrl: https://api.anthropic.com/v1 - OpenAI β
baseUrl: https://api.openai.com/v1 - Azure OpenAI β Set your Azure endpoint as
baseUrl - Any OpenAI-compatible API β Ollama, Together, Groq, etc.
Place .md files in ~/.bobo/knowledge/ β they'll be loaded as custom context:
echo "# My Team Standards\n\nAlways use TypeScript strict mode." > ~/.bobo/knowledge/team.mdIf you use OpenClaw, you can import its skills directly:
bobo skill import ~/.openclaw/workspace/skills/Contributions are welcome! Please:
- Fork the repo
- Create a feature branch (
git checkout -b feat/my-feature) - Run tests (
npm test) - Ensure the build passes (
npm run build) - Submit a PR
git clone https://github.com/Arxchibobo/bobo-cli.git
cd bobo-cli
npm install
npm run dev # Run with tsx (hot reload)
npm run build # Compile TypeScript
npm test # Run testsMIT β see LICENSE for details.
