Cub mascot - a bear cub tangled in server wires holding a lightbulb

cub

Vision → Tasks → Code

The autonomous loop for AI coding agents. Prep your tasks, hit run, walk away.

v0.26.2
$ curl -LsSf https://lavallee.github.io/cub/install.sh | bash
1
cub init Set up cub in your project directory
2
cub prep Describe your goal — cub breaks it into atomic tasks
3
cub run AI executes tasks one by one. Walk away, come back to commits.

Built on the Ralph Wiggum technique — running AI agents in a while loop, but with guardrails.

🎛️
Task-Level Control Pick harness + model per task. Claude for complex, Haiku for simple.
🧠
Iterative Learning Guardrails capture mistakes. Each run gets smarter.
💰
Budget Management Set token limits. Track costs. Never overspend.
🔄
Walk Away Start the loop, go to sleep. Wake up to commits.
🎯
Vision-to-Tasks Describe what you want. Get executable task chunks.
📊
Live Progress Dashboard shows what's running, what's done, what's blocked.
🔗
Git Native Auto-commits, branch bindings, PR workflow built in.

🎯 The Gap

Too Hands-On

Sitting in IDE, approving every tool call, babysitting the agent

Too Hands-Off

Agents run amok with vague instructions, chaos ensues

Cub finds the balance

🔄 Two Main Events

PREP

Vision → Structured Tasks

Turn your ideas into agent-sized chunks through a guided interview.

  • Triage — What are we building?
  • Architect — How should it work?
  • Plan — Break it into tasks
  • Bootstrap — Write to backend

RUN

Tasks → Working Code

Let AI execute autonomously with dependency ordering and retries.

  • Pick ready tasks
  • Generate prompts
  • Invoke AI harness
  • Commit, log, repeat

Why Cub?

The Ralph Wiggum technique is elegantly simple: run an AI agent in a while loop until the work is done. The trick is making that loop reliable.

while
tasks_remain()
📋
Pick
ready task
📝
Prompt
with context
🤖
Run
AI agent
Commit
& log

cub Pick Ready Task

Find the next task with no blockers. Respects priority, epics, and dependency graph.

cub Generate Prompt

Build structured prompt with context, acceptance criteria, and project guardrails.

agent Run AI Agent

Claude Code, Codex, Gemini, or OpenCode does the work. Cub waits.

cub Verify & Commit

Check git state, commit changes, log to JSONL, mark complete. Loop back.

you Walk away. Cub loops until blocked, budget exhausted, or done.

📦 Recent Updates

v0.26.2 2026-01-17
Changed
Various improvements and bug fixes.
v0.26.1 2026-01-16
Added
release. tasks. investigate.
v0.26.0 2026-01-16
Added
Various improvements and bug fixes.
View full changelog →