Skip to content
CLI Reference

CLI Reference

The helix CLI is a shell orchestrator that sits on top of DDx primitives. It delegates work-item storage to ddx bead and agent dispatch to ddx agent run, adding supervisory intelligence on top.

Commands

Execution

CommandPurpose
helix runSupervisory autopilot — select and execute the next best action
helix build [issue]One bounded implementation pass
helix check [scope]Decide what action should happen next
helix statusStructured lifecycle snapshot

Steering

CommandPurpose
helix frame [scope]Create vision, PRD, feature specs
helix design [scope]Create or extend design documents
helix evolve "requirement"Thread a change through the artifact stack
helix review [scope]Fresh-eyes review of recent work
helix align [scope]Top-down reconciliation audit
helix polish [scope]Iterative issue refinement
helix triage "Title"Create well-structured tracker issues
helix experiment [issue]Metric-driven optimization
helix nextShow recommended next issue
helix commit [issue-id]Commit with build gate and tracker update

Aliases

  • helix implement is an alias for helix build
  • helix plan is an alias for helix design

helix run

The primary command. Runs the supervisory autopilot loop.

helix run [options]

Options

FlagDefaultDescription
--agent codex|claudecodexWhich agent to dispatch
--smart-model MODELautoModel for reasoning stages
--cheap-model MODELautoModel for mechanical stages
--max-cycles NunlimitedStop after N completed builds
--review-every N15Periodic alignment interval
--review-threshold N100Skip review below N changed lines
--review-agent AGENTautoAgent for cross-model review
--no-auto-alignSkip periodic alignment
--no-auto-reviewSkip post-build reviews
--summary, -sConcise output with log pointers
--quiet, -qSuppress progress output
--dry-runPrint agent commands, don’t execute

Environment Variables

VariableDefaultDescription
HELIX_AGENTcodexDefault primary agent
HELIX_ALT_AGENTauto-detectedAlternate agent for adversarial rotation
HELIX_AGENT_TIMEOUT2700Per-agent-call timeout (seconds)
HELIX_SMART_MODELopus / gpt-5.4Model for reasoning stages
HELIX_CHEAP_MODELsonnet / gpt-5.4-miniModel for mechanical stages
HELIX_LIBRARY_ROOTautoOverride workflows/ location
HELIX_BACKOFF_SLEEPformulaOverride backoff delay
HELIX_ORPHAN_THRESHOLD7200Stale claim threshold (seconds)

NEXT_ACTION Contract

When the ready queue drains, helix check returns one of:

ActionBehavior
BUILDRe-enter ready-work selection
DESIGNRun one bounded design pass, then re-check
POLISHRun one issue-refinement pass, then re-check
ALIGNRun alignment once if auto-align enabled
BACKFILLStop and surface the backfill command
WAITStop — blocked by external dependency
GUIDANCEStop — human decision required
STOPStop — no actionable work remains

helix status

Reports the current run-controller state:

helix status

Shows: current claimed issue, focused epic, completed cycles, token usage, blocked work, and stop reason.

helix commit

Commit with HELIX conventions:

helix commit [issue-id]
  1. Auto-stages modified files if nothing staged
  2. Runs the build gate (lefthook, cargo check, npm test)
  3. Commits with the issue title as summary
  4. Pushes with rebase
  5. Closes the tracker issue