Status: Active Owner: Maintainers Source of truth: this document for its stated scope Parent: CueLoop Documentation
This page documents CueLoop's current command surface. The executable is cueloop. Default cueloop --help shows the core workflow only; use cueloop help-all or cueloop <command> --help to reveal advanced and experimental surfaces.
These are available on most commands:
--force-v, --verbose--debug(supported on run flows; writes raw logs to.cueloop/logs/debug.log)--color <auto|always|never>--no-color--auto-fix--no-sanity-checks
cueloop queue- Inspect and manage queue/done filescueloop config- Show resolved config, schema, paths, profiles, repo trust (config trust init)cueloop run- Execute tasks (one,loop,resume,parallel)cueloop task- Build/create and manage task lifecyclecueloop scan- Create tasks by scanning repository statecueloop init- Bootstrap.cueloop/files for a repocueloop app- macOS app integrationcueloop version- Build/version info
cueloop machine- Versioned machine-facing JSON API for the macOS app and automationcueloop prompt- Render/export/sync/diff promptscueloop doctor- Environment diagnosticscueloop context- Manage AGENTS.md context docscueloop daemon- Background daemon controlscueloop prd- Convert PRD markdown into taskscueloop completions- Generate shell completionscueloop migrate- Check/apply config migrations and explicitruntime-dirmigration (.ralph→.cueloop)cueloop cleanup- Remove temporary runtime artifactscueloop version- Build/version infocueloop watch- File watch to detect task commentscueloop webhook- Test/status/replay webhook deliveriescueloop productivity- Analytics summaries and trendscueloop plugin- Plugin discovery and lifecyclecueloop runner- Runner list and capabilitiescueloop tutorial- Interactive onboarding walkthroughcueloop undo- Restore most recent queue snapshot
cueloop run parallel- Experimental direct-push parallel worker operations
cueloop init
cueloop init --non-interactivecueloop init creates or updates local repository trust (.cueloop/trust.jsonc), refreshes the generated runtime README, and adds the trust file to .gitignore. Use cueloop config trust init only for trust-only repair in an already-initialized repo.
Interactive init can optionally enable the CI gate and record argv for your check command (defaults stay off in non-interactive init). It can also select extra ignored files for parallel workers; manual additions belong in trusted parallel.ignored_file_allowlist and follow the small-file allowlist contract in Ignored local file sync.
cueloop task "Stabilize flaky CI test"
cueloop run one --profile safe
cueloop run one --resume
cueloop run one --debug
cueloop run loop --max-tasks 1
cueloop run loop --max-tasks 5
cueloop run resumeSafe default: use cueloop run one or cueloop run loop --max-tasks <N> with a positive cap.
Advanced unlimited mode:
cueloop run loop --max-tasks 0cueloop run loop --max-tasks 0 means unlimited execution. Choose it intentionally when you want the loop to keep running until work runs out, the queue blocks, or you stop it.
CueLoop now explicitly narrates whether it is:
- resuming the same session
- falling back to a fresh invocation
- refusing to resume because confirmation is required
Useful commands:
# Inspect interrupted work and choose interactively when needed
cueloop run one
# Auto-resume when CueLoop can do so safely
cueloop run one --resume
cueloop run loop --resume --max-tasks 5
cueloop run resume
# Headless use: explicit policy only
cueloop run one --resume --non-interactive
cueloop run loop --non-interactiveWhen CueLoop cannot make progress, it now classifies the current state instead of only printing generic wait prose. Operator-facing run surfaces distinguish:
- true idle waiting (no todo work)
- dependency blocking
- schedule blocking
- queue lock contention
- CI-gate stalls
- runner/session recovery stalls
For automation, the same model is exposed through:
cueloop machine run ...NDJSONblocked_state_changed/blocked_state_clearedeventscueloop machine run ...terminal summaries viablockingcueloop machine queue readviarunnability.summary.blocking
# Single-pass
cueloop run one --quick
# 2-phase
cueloop run one --phases 2
# 3-phase (default)
cueloop run one --phases 3cueloop run one --runner codex --model gpt-5.4 --effort high
cueloop run one --runner-phase1 codex --model-phase1 gpt-5.4 --effort-phase1 high
cueloop run one --runner-phase2 codex --model-phase2 gpt-5.4 --effort-phase2 medium
cueloop runner list
cueloop runner capabilities codexUse cueloop runner list to discover runner IDs and cueloop runner capabilities <runner> to inspect model and feature support before picking overrides.
cueloop queue list
cueloop queue next --with-title
cueloop queue validate
cueloop queue graph --format dot
cueloop queue tree
cueloop queue archivecueloop task build "Refactor queue parsing"
cueloop task insert --input /tmp/task-insert.json
cueloop task decompose "Build OAuth login with GitHub and Google"
cueloop task decompose --from-file docs/plans/oauth.md
cueloop task decompose --from-file docs/plans/oauth.md --attach-to RQ-0042 --child-policy append --write
cueloop task decompose RQ-0001 --child-policy append --with-dependencies --write
cueloop task decompose --write --parent-status draft --leaf-status todo "Plan webhook reliability work"
cueloop task ready RQ-0003
cueloop task decompose --attach-to RQ-0042 --format json "Plan webhook reliability work"
cueloop task start RQ-0001
cueloop task status doing RQ-0001
cueloop task done RQ-0001 --note "Verified with make agent-ci"On macOS, the app exposes the same workflow through Decompose Task... in the Task menu, command palette, queue toolbar, and task context menus, including a plan-file picker that passes --from-file to the machine API.
cueloop task decompose --from-file <path> is the planner-backed path for arbitrary plan documents. cueloop prd create <path> remains the PRD-parser-specific import path.
For file-backed plans, validate full-plan coverage and ordering with a preview/write/navigation pass:
cueloop task decompose --from-file docs/plans/full-plan-ordering.md --with-dependencies --format json
cueloop task decompose --from-file docs/plans/full-plan-ordering.md --with-dependencies --write
cueloop queue validate
cueloop queue tree
cueloop task children <ROOT_TASK_ID>Expected result: every meaningful plan section appears as a task or a documented warning, ordered phases stay in logical execution order, and --with-dependencies creates sibling prerequisite edges for ordered phase work. Written decomposition trees persist umbrella/root/phase nodes as kind: group, leave runnable leaf work as the default kind: work_item, and report both the root/group task and the first actionable leaf task in text and JSON output.
Preview-only decomposition saves an exact replay checkpoint under .cueloop/cache/decompose-previews/ and prints a copy/pasteable continuation command with the checkpoint ID.
Decomposition status controls are explicit and opt-in. --status <STATUS> applies to every generated node by default; --parent-status <STATUS> overrides generated group/non-leaf nodes; --leaf-status <STATUS> overrides generated leaf work items. Plain --write remains review-first and writes generated tasks as draft. To make leaf work immediately runnable while keeping parent/group nodes as drafts, use --parent-status draft --leaf-status todo. If a write leaves every generated task in draft, the continuation output prints an exact activation command such as cueloop task ready RQ-0003 for the first actionable leaf. cueloop queue validate and cueloop queue explain use the same calm activation guidance instead of reporting an all-draft decomposition as dependency failure.
cueloop doctor
cueloop doctor --format json
cueloop runner list
cueloop runner capabilities claude
cueloop config show --format jsonWhen CueLoop is not making progress, cueloop doctor now uses the same canonical BlockingState vocabulary as the live run surfaces: waiting, blocked, or stalled.
cueloop queue validate
cueloop queue repair --dry-run
cueloop queue repair
cueloop task insert --dry-run --format json --input task-insert.json
cueloop task insert --format json --input task-insert.json
cueloop task mutate --dry-run --input request.json
cueloop task mutate --format json --input request.json
cueloop task decompose --format json "Improve webhook reliability"
cueloop task decompose --from-file docs/plans/oauth.md --format json
cueloop task decompose --write "Improve webhook reliability"
cueloop task decompose --write --from-preview <CHECKPOINT_ID>
cueloop task followups apply --task RQ-0135
cueloop task followups apply --task RQ-0135 --dry-run --format json
cueloop undo --list
cueloop undo --dry-runThese commands are now first-class continuation tools. They explain whether CueLoop is ready, waiting, blocked, or stalled, preserve partial value where safe, and use undo-backed writes for queue/done mutations.
If cueloop run loop stops on queue validation, start with cueloop queue repair --dry-run to preview recoverable fixes, apply them with cueloop queue repair, and optionally confirm the result with cueloop queue validate.
cueloop task insert --format json, cueloop task mutate --format json, and cueloop task decompose --format json emit versioned JSON documents suitable for automation.
Machine clients should prefer cueloop machine task show, lifecycle commands (start, status, done, reject), deterministic task create, runner-backed task build when they intentionally invoke the task-builder, task insert, task mutate, and task followups apply for stable JSON and structured errors.
cueloop task followups apply and cueloop machine task followups apply consume .cueloop/cache/followups/<TASK_ID>.json, validate the proposal, create undo, insert generated tasks into the queue, and record continuation state in the same family as task mutate/decompose. Follow-up proposals use numeric top-level "version": 1; followups@v1 is the contract name, not the canonical JSON version value.
cueloop machine system info
cueloop machine queue read
cueloop machine queue validate
cueloop machine queue repair --dry-run
cueloop machine queue undo --dry-run
cueloop machine config resolve
cueloop machine doctor report
cueloop machine task create --input task-create.json
cueloop machine task build --input task-build-request.json
cueloop machine task insert --input task-insert.json
cueloop machine task mutate --input request.json
cueloop machine task show RQ-0001
cueloop machine task start RQ-0001 --note "Started by current agent"
cueloop machine task done RQ-0001 --note "Verified with make agent-ci"
cueloop machine task followups apply --task RQ-0001 --dry-run
cueloop machine task followups apply --task RQ-0001
cueloop machine task decompose --from-file docs/plans/oauth.md --with-dependencies
cueloop machine task decompose --write --from-preview <CHECKPOINT_ID>
cueloop machine run one --resume --id RQ-0001
cueloop machine run loop --resume --max-tasks 5
cueloop machine run loop --resume --max-tasks 0 --parallel 2
cueloop machine run stop
cueloop machine schemaMachine run loops use the same convention: --max-tasks 0 means unlimited execution.
cueloop run loop --parallel 4 --max-tasks 8
cueloop run parallel status --json
cueloop run parallel retry --task RQ-0007Parallel direct-push execution is experimental. Keep it out of default onboarding paths and opt in only when the repository and branch policy are ready for it.
cueloop daemon start
cueloop daemon status
cueloop daemon logs --follow --tail 200
cueloop watch --auto-queuecueloop webhook test
cueloop webhook status
cueloop webhook replay --dry-run --id <delivery-id>cueloop prompt list
cueloop prompt worker --phase 1 --repo-prompt plan
cueloop prompt export --all
cueloop prompt diff workercueloop undo --list
cueloop undo --dry-run
cueloop undoresumeoneloopparallel(status,retry) - experimental
validate,prune,next,next-id,show,list,search,archive,repair,unlock,sort- Analytics/reporting:
stats,history,burndown,aging,dashboard - Integrations:
schema,graph,export,import,issue,stop,explain,tree
- Build/create:
task(freeform),build,insert,refactor,build-refactor,from,template,followups - Lifecycle:
show,ready,status,done,reject,start,schedule - Editing:
field,edit,update - Structure/relations:
clone,split,relate,blocks,mark-duplicate,children,parent - Bulk operations:
batch
cueloop completions bash > ~/.local/share/bash-completion/completions/cueloop
cueloop completions zsh > ~/.zfunc/_cueloop
cueloop completions fish > ~/.config/fish/completions/cueloop.fish
cueloop completions powershell > $PROFILE.CurrentUserAllHostsFor behavior that may change between releases, trust live command help first:
cueloop --help
cueloop help-all
cueloop <command> --help
cueloop <command> <subcommand> --help