Global flags
gitq parses its own command line in one place, src/cli/main.ts, with node's parseArgs, in non-strict mode.
Exit codes and errors
gitq uses exactly three exit codes, and the code is the only signal a script or an agent driving gitq should rely on. Branch on the exit code, not on human text, and read the JSON's own fields for anything more granular than "did this work".
JSON output
Every command accepts --json (see Global flags) and prints one JSON document to stdout instead of its human summary, through a single shared function, emit() (src/cli/output.ts:4-7). The shapes on this page come from the actual value each command passes to emit(), read at the source, not from a written schema. Examples marked "Real capture" are actual output against a scratch repo, trimmed where the output is long. Sections with no example give the shape from its source type.
Configuration
gitq reads its configuration from the rt settings store: the CLI reads gitq.workSlots and gitq.forges. A key nobody set reads its default.
Pause file
gitq-pause.json is what a cascade writes the instant it stops on a conflict. For the resolve loop around it (what refuses, and what continue and abort each do), see The pause protocol.
Read only
4 items
Tracking
4 items
Cascade
3 items
Surgery
6 items
Forge
3 items
Other
1 item