User Guide¶
The User Guide provides comprehensive documentation for using Cub effectively. Whether you are setting up your first autonomous coding session or optimizing complex workflows, these guides will help you get the most out of Cub.
Guide Sections¶
-
Configuration
Learn how to configure Cub for your environment and projects. Covers config files, environment variables, and precedence rules.
-
Task Management
Understand how Cub manages tasks using different backends. Learn about task states, dependencies, and filtering.
-
The Run Loop
Dive into Cub's core execution loop. Learn how tasks are selected, executed, and completed.
-
Prep Pipeline
Transform visions into executable tasks. Use triage, architect, plan, and bootstrap to prepare your work.
-
AI Harnesses
Configure and use different AI assistants: Claude Code, OpenAI Codex, Google Gemini, and OpenCode.
-
Git Integration
Manage branches, create pull requests, and use worktrees for parallel development.
-
Hooks System
Extend Cub with custom scripts that run at key points in the task lifecycle.
-
Budget & Guardrails
Control costs with token budgets and prevent runaway loops with iteration limits.
-
Advanced Topics
Explore sandbox mode, parallel execution, captures, and audit logging.
Quick Links¶
| Topic | Description |
|---|---|
| Configuration Reference | Complete reference for all config options |
| Environment Variables | All supported environment variables |
| Beads Backend | Primary task management backend |
| Claude Code Harness | Using Claude Code with Cub |
| Hook Examples | Ready-to-use hook scripts |
Common Workflows¶
Starting a New Project¶
- Initialize Cub globally:
cub init --global - Create a new project:
cub new my-project(orcub initin an existing project) - Prepare tasks:
cub prepto run the vision-to-tasks pipeline - Execute:
cub runto start autonomous execution
Daily Development¶
# Check what's ready to run
cub status --ready
# Run a single task for testing
cub run --once
# Run with live output
cub run --stream
# Monitor progress in another terminal
cub monitor
CI/CD Integration¶
# Deterministic execution for CI
export CUB_BUDGET=2000000
export CUB_MAX_ITERATIONS=50
cub run --harness claude --require-clean
Getting Help¶
- Troubleshooting: See the Troubleshooting Guide for common issues
- CLI Reference: See the CLI Reference for command details
- Contributing: See Contributing to help improve Cub