Skip to content

Planning & Execution

For complex tasks, Gee-Code breaks work into structured plans — either simple todo lists for linear tasks, or beads (dependency graphs) for parallel, multi-agent execution.

For straightforward multi-step work, the AI uses a visible todo list:

> Refactor the login system to use OAuth
Creating todo list:
- [ ] Research OAuth providers
- [x] Update user model for OAuth tokens
- [ ] Implement OAuth callback endpoint
- [ ] Update login UI
- [ ] Write tests

The AI tracks progress in real time. You can see what’s in progress and what’s done.

For complex tasks that benefit from parallelism and multi-agent execution, Gee-Code creates a bead plan — a directed acyclic graph (DAG) of tasks:

/plan Add user authentication

This generates a plan like:

gc-a1b2: Design auth schema [architect]
gc-a1b3: Implement login API [code] depends: gc-a1b2
gc-a1b4: Write auth tests [test] depends: gc-a1b3
gc-a1b5: Update documentation [docs] depends: gc-a1b4
PROPOSED --> APPROVED --> IN_PROGRESS --> DONE
| |
+-- BLOCKED +-- FAILED
StatusDescription
PROPOSEDAI proposed, awaiting your approval
APPROVEDYou approved, ready for execution
IN_PROGRESSCurrently being executed by an agent
BLOCKEDWaiting on dependencies to complete
DONECompleted successfully
FAILEDExecution failed
/beads # View the task graph
/beads approve # Approve proposed beads
/run # Execute (parallel by default)
/run --fg # Execute in foreground (blocking)

Beads without dependency conflicts run in parallel. The executor:

  1. Finds all ready beads (approved + dependencies met)
  2. Groups them into parallel waves
  3. Executes each wave concurrently
  4. Moves to the next wave when the current completes
Wave 1: gc-a1b2 (Design) ──────┐
├──> Wave 2: gc-a1b4 (Tests) ──> Wave 3: gc-a1b5 (Docs)
Wave 1: gc-a1b3 (Implement) ───┘

Design and Implement run in parallel (Wave 1). Tests wait for both. Docs waits for Tests.

Each bead can be assigned to a specific agent archetype:

  • architect — design and planning
  • code — implementation
  • test — testing
  • review — code review
  • explore — research and investigation

If no agent is specified, the current session agent handles it.

Complex beads can be broken into subtasks:

gc-a1b2: "Build auth system" (parent)
├── gc-a1b2.1: "Design database schema"
├── gc-a1b2.2: "Implement API endpoints"
└── gc-a1b2.3: "Add middleware"

Child beads inherit context from their parent and results roll up.

FeatureTodosBeads
Scope3-7 steps for current taskFull project decomposition
DependenciesLinear (sequential)DAG (parallel + dependencies)
AgentsCurrent agent onlyMultiple agent types
ApprovalNone requiredUser must approve
ExecutionManual progress trackingAutomated parallel execution

For simple tasks, todos are sufficient. For complex multi-step work that benefits from parallelism and agent specialization, use beads.

Plans are saved in two locations:

  1. Continuity ledger — in-session reference that survives compaction
  2. .gee/plans/ — durable snapshots that survive session restarts

You can resume an in-progress plan even after closing and reopening Gee-Code.

CommandDescription
/plan <task>Generate a plan (todos or beads)
/beadsView current task graph
/beads approveApprove proposed beads
/runExecute approved beads (parallel)
/run --fgExecute in foreground
/parallelExecute multiple beads in parallel
/cancelCancel running execution
/todoView the todo list