Skip to main content
Documentation navigation

CLI reference

Use gaionix-coder run, tui, continue, compact, retry, session, and queue commands through the shared Rust runtime.

Commands at a glance

CommandPurpose
tuiInteractive terminal chat, approvals, steering, and slash controls.
run [PROMPT]One headless task; omit PROMPT or use “-” to read stdin.
continue SESSION_ID [DIRECTION]Continue the latest eligible failed or cancelled turn.
retry SESSION_ID [DIRECTION]Fresh linked attempt after the latest failure or timeout.
compact SESSION_IDManual context summary through the existing compactor and cost guard.
session list | show | resumeInspect sessions; resume is the compatibility continuation command.
queue list | status | add | removeInspect or change runtime-owned follow-ups; add can execute work.

Provider and task options

gaionix-coder run "Inspect the failing test" \
  --workspace . --model MODEL_ID --reasoning-effort auto

gaionix-coder run --help
gaionix-coder compact --help
gaionix-coder retry --help

Use --provider gaionix-gateway (default) or custom-openai-compatible. Custom providers require --custom-base-url. Use --workspace to bind tools and local sessions, --output jsonl for structured output, and --max-steps to set the execution limit. The default is 64; 0 means unlimited.

Manual compaction

gaionix-coder compact SESSION_ID --workspace . --model MODEL_ID

Compaction uses the selected provider and may make one billable summary call. It requires an idle, reconciled runtime. A valid, complete summary must pass schema and reduction checks before a checkpoint replaces context. No automatic retry occurs. In the TUI, enter /compact.

Continue and Retry

gaionix-coder continue SESSION_ID "Finish the remaining tests"
gaionix-coder retry SESSION_ID
# Custom-provider sessions also need their endpoint:
gaionix-coder retry SESSION_ID --custom-base-url https://YOUR_ENDPOINT/v1

Saved source-turn model, reasoning, access mode, and task settings are preserved. To override them, explicitly provide provider, model, and reasoning together. Retry accepts eligible failure/time-out states; stopped or step-limited work uses Continue. Both create a fresh turn and check durable tool outcomes.

TUI keys

Key / commandAction
EnterSubmit a draft; normal active-turn submissions join Queue.
Ctrl+SSteer the active turn using the draft.
Ctrl+CRequest cancellation of active work.
Ctrl+QRequest safe cancellation and exit.
/continue [DIRECTION]Continue eligible unfinished work.
/retry [DIRECTION]Retry an eligible failed or timed-out turn.
/compactSummarize the idle session context.
F3Open the workspace session picker.

Output and exit status

Runtime stdout carries JSONL protocol only. Human CLI output may contain assistant text; diagnostics use stderr. With --output jsonl, output is structured, including agent events and terminal outcomes.

CodeMeaning
0Completed command
2Configuration, rejected request, or ineligible control
3Agent/provider task failure
4Cancelled
5Runtime/protocol failure
6Blocked safety or ownership boundary