Skip to main content
These recipes cover the most common Liza workflows. Each one is self-contained — copy the commands, adapt the task IDs and agent names, and run. For deeper explanations of the underlying mechanics, see the Sprint Lifecycle and Recovery guides.
The TUI is the primary way to spawn and monitor agents. Open it first, then start the system.
From the TUI, press S to spawn agents (prompts for CLI selection) or s to spawn using the configured default CLI. Role names autocomplete from the pipeline config.For a technical-spec entry point (5 agents: orchestrator, code-planner, code-plan-reviewer, coder, code-reviewer):
Monitor progress from additional terminals:
Stop cleanly when done:
TUI keyboard shortcuts: s spawn (default CLI), S spawn (pick CLI), p pause, r resume, a add task, c checkpoint, y toggle auto-resume, Q stop.
Pause all agents to make manual state adjustments. Paused agents stay alive and wait — they do not exit. Stopped agents exit and must be restarted.
If you need to check the system state before resuming:
To resume after a sprint completes (two-step advance):
When a reviewer rejects a task, agents with active coder sessions automatically reclaim rejected tasks and get the rejection feedback in their prompt. For manual handling:
Watch for high review cycle counts — 5 or more cycles on the same task usually signals an unclear acceptance criterion in the spec:
Use recover-task when you know the task ID. Use recover-agent when you know the agent ID and want full cleanup.Recover by task ID (recommended):
Recover by agent ID:
If the agent’s lease has expired, restarting the supervisor works automatically:
Both commands are idempotent — safe to run multiple times.
A sprint checkpoint pauses all agents and generates a sprint summary. Use it at the end of a sprint, before a major direction change, or when you want to review progress before continuing.
At a checkpoint, you can also replan if the task breakdown needs adjustment:
When the circuit breaker trips, all agents halt and the sprint moves to CHECKPOINT. Review the pattern, fix the root cause, then resume.
Common patterns and their fixes:
When a task merge fails due to conflicts or test failures, the task moves to INTEGRATION_FAILED with its worktree preserved.
liza get queries the blackboard state directly. Use it instead of parsing .liza/state.yaml manually.
Use liza get in scripts to avoid parsing YAML:
Use liza supersede-task when a task needs to be replaced with smaller tasks, or when its work was completed externally.Replace with new tasks (split due to complexity):
Supersede with no replacement (work already done externally):
liza supersede-task works from BLOCKED, REJECTED, or any pipeline-declared initial state.
Use liza cancel-task to abandon a task that is no longer needed. The task moves to ABANDONED with an audit trail.
Examples:
cancel-task works on non-approved, non-terminal tasks including active, submitted, and reviewing tasks. It releases Liza state claims and removes the task worktree and branch. It does not kill a live provider process — if an agent is mid-session, it will see its claim released on next heartbeat and exit gracefully.