* feat: Created gsd-orchestrator/ skill directory with ClawHub frontmatte… - "gsd-orchestrator/SKILL.md" - "gsd-orchestrator/references/commands.md" - "gsd-orchestrator/references/answer-injection.md" - "gsd-orchestrator/references/json-result.md" GSD-Task: S03/T01 * test: Add audit persistence tests for workflow-logger (#2722) The production fix for #2722 (wiring setLogBasePath + preserving _auditBasePath across _resetLogs) was already merged but had no test coverage. Add tests verifying both behaviors. Closes #2722 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4.7 KiB
GSD Commands Reference
All commands run as subprocesses via gsd headless [flags] [command] [args...].
Global Flags
These flags apply to any gsd headless invocation:
| Flag | Description |
|---|---|
--output-format <fmt> |
text (default), json (structured result), stream-json (JSONL) |
--json |
Alias for --output-format stream-json |
--bare |
Minimal context: skip CLAUDE.md, AGENTS.md, user settings, user skills |
--resume <id> |
Resume a prior headless session by ID |
--timeout N |
Overall timeout in ms (default: 300000) |
--model ID |
Override LLM model |
--supervised |
Forward interactive UI requests to orchestrator via stdout/stdin |
--response-timeout N |
Timeout for orchestrator response in supervised mode (default: 30000ms) |
--answers <path> |
Pre-supply answers and secrets from JSON file |
--events <types> |
Filter JSONL output to specific event types (comma-separated, implies --json) |
--verbose |
Show tool calls in progress output |
Exit Codes
| Code | Meaning | When |
|---|---|---|
0 |
Success | Unit/milestone completed normally |
1 |
Error or timeout | Runtime error, LLM failure, or --timeout exceeded |
10 |
Blocked | Execution hit a blocker requiring human intervention |
11 |
Cancelled | User or orchestrator cancelled the operation |
Workflow Commands
auto (default)
Autonomous mode — loop through all pending units until milestone complete or blocked.
gsd headless --output-format json auto
next
Step mode — execute exactly one unit (task/slice/milestone step), then exit. Recommended for orchestrators that need decision points between steps.
gsd headless --output-format json next
new-milestone
Create a milestone from a specification document.
gsd headless new-milestone --context spec.md
gsd headless new-milestone --context spec.md --auto
gsd headless new-milestone --context-text "Build a REST API" --auto
cat spec.md | gsd headless new-milestone --context - --auto
Extra flags:
--context <path>— path to spec/PRD file (use-for stdin)--context-text <text>— inline specification text--auto— start auto-mode after milestone creation
dispatch <phase>
Force-route to a specific phase, bypassing normal state-machine routing.
gsd headless dispatch research
gsd headless dispatch plan
gsd headless dispatch execute
gsd headless dispatch complete
gsd headless dispatch reassess
gsd headless dispatch uat
gsd headless dispatch replan
discuss
Start guided milestone/slice discussion.
gsd headless discuss
stop
Stop auto-mode gracefully.
gsd headless stop
pause
Pause auto-mode (preserves state, resumable).
gsd headless pause
State Inspection
query
Instant JSON snapshot — state, next dispatch, parallel costs. No LLM, ~50ms. The recommended way for orchestrators to inspect state.
gsd headless query
gsd headless query | jq '.state.phase'
gsd headless query | jq '.next'
gsd headless query | jq '.cost.total'
status
Progress dashboard (TUI overlay — useful interactively, not for parsing).
gsd headless status
history
Execution history. Supports --cost, --phase, --model, and limit arguments.
gsd headless history
Unit Control
skip
Prevent a unit from auto-mode dispatch.
gsd headless skip
undo
Revert last completed unit. Use --force to bypass confirmation.
gsd headless undo
gsd headless undo --force
steer <description>
Hard-steer plan documents during execution. Useful for mid-course corrections.
gsd headless steer "Skip the blocked dependency, use mock instead"
queue
Queue and reorder future milestones.
gsd headless queue
Configuration & Health
doctor
Runtime health checks with auto-fix.
gsd headless doctor
prefs
Manage preferences (global/project/status/wizard/setup).
gsd headless prefs
knowledge <rule|pattern|lesson>
Add persistent project knowledge.
gsd headless knowledge "Always use UTC timestamps in API responses"
Phases
GSD workflows progress through these phases:
pre-planning → needs-discussion → discussing → researching → planning →
executing → verifying → summarizing → advancing → validating-milestone →
completing-milestone → complete
Special phases: paused, blocked, replanning-slice
Hierarchy
- Milestone: Shippable version (4–10 slices, 1–4 weeks)
- Slice: One demoable vertical capability (1–7 tasks, 1–3 days)
- Task: One context-window-sized unit of work (one session)