Cub¶
Work ahead of your AI agents
Turn your ideas into structured tasks, then let AI execute autonomously while you focus on what matters.
Get Running in Three Steps¶
1. Initialize¶
Set up your global config and project files.
2. Prep Your Tasks¶
Transform your ideas into structured, agent-ready tasks through guided refinement.
The Two Main Events¶
Prep: Vision to Tasks¶
Go from a rough idea to structured, agent-sized tasks:
- Triage - Clarify requirements and goals
- Architect - Design the technical approach
- Plan - Break work into agent-sized chunks
- Bootstrap - Write tasks to your backend
Run: Tasks to Code¶
Execute tasks with the AI harness of your choice:
- Autonomous loop - Picks and executes tasks
- Multi-harness - Claude, Codex, Gemini, OpenCode
- Smart routing - Right model for each task
- Budget tracking - Stay within token limits
Why Cub?¶
Finding the Balance
AI coding agents in 2026 are powerful. They can operate for hours, produce working code, run tests, and iterate toward production quality. But there's a gap between too hands-on (approving every tool call) and too hands-off (hoping for the best with vague instructions).
Cub finds the middle ground. You invest time before code starts flying, then step back and let execution happen.
Right Model for the Task¶
Route simple tasks to fast models, complex work to capable ones. Manage tokens as a resource.
Multi-Harness Flexibility¶
Claude Code, OpenAI Codex, Google Gemini, OpenCode. Use the right tool without vendor lock-in.
Deterministic Control¶
Task selection, retry logic, and state transitions run as traditional software, not LLM inference.
Budget Management¶
Track tokens across tasks with configurable limits and warnings. No runaway spending.
Git Workflow Integration¶
Branch per epic, commit per task. Clean state enforcement keeps your repo healthy.
Hooks System¶
Custom scripts at lifecycle points. Slack notifications, metrics, alerts - whatever you need.
Documentation Sections¶
Getting Started¶
Installation, quick start guide, and core concepts to get you productive fast.
User Guide¶
In-depth coverage of configuration, task management, the run loop, and advanced features.
CLI Reference¶
Complete reference for all Cub commands with examples and options.
Troubleshooting¶
Common issues, error reference, and frequently asked questions.
Quick Links¶
| Topic | Description |
|---|---|
| Installation | Get Cub installed on your system |
| Quick Start | Start using Cub in 5 minutes |
| Configuration | Customize Cub for your workflow |
| Task Backends | Beads vs JSON task management |
| AI Harnesses | Claude, Codex, Gemini, OpenCode |
| Hooks System | Extend Cub with custom scripts |
| Contributing | Help improve Cub |