Commands Reference

March 17, 2026 · View on GitHub

Session Commands

CommandDescription
/gsdStep mode — execute one unit at a time, pause between each
/gsd nextExplicit step mode (same as /gsd)
/gsd autoAutonomous mode — research, plan, execute, commit, repeat
/gsd quickExecute a quick task with GSD guarantees (atomic commits, state tracking) without full planning overhead
/gsd stopStop auto mode gracefully
/gsd steerHard-steer plan documents during execution
/gsd discussDiscuss architecture and decisions (works alongside auto mode)
/gsd statusProgress dashboard
/gsd queueQueue and reorder future milestones (safe during auto mode)
/gsd captureFire-and-forget thought capture (works during auto mode)
/gsd triageManually trigger triage of pending captures
/gsd forensicsPost-mortem investigation of auto-mode failures — structured root-cause analysis with log inspection
/gsd cleanupClean up GSD state files and stale worktrees
/gsd visualizeOpen workflow visualizer (progress, deps, metrics, timeline)
/gsd knowledgeAdd persistent project knowledge (rule, pattern, or lesson)
/gsd helpCategorized command reference with descriptions for all GSD subcommands

Configuration & Diagnostics

CommandDescription
/gsd prefsModel selection, timeouts, budget ceiling
/gsd modeSwitch workflow mode (solo/team) with coordinated defaults for milestone IDs, git commit behavior, and documentation
/gsd doctorRuntime health checks (7 checks) with auto-fix for common state corruption issues
/gsd skill-healthSkill lifecycle dashboard — usage stats, success rates, token trends, staleness warnings
/gsd skill-health <name>Detailed view for a single skill
/gsd skill-health --decliningShow only skills flagged for declining performance
/gsd skill-health --stale NShow skills unused for N+ days
/gsd hooksShow configured post-unit and pre-dispatch hooks
/gsd run-hookManually trigger a specific hook
/gsd migrateMigrate a v1 .planning directory to .gsd format

Parallel Orchestration

CommandDescription
/gsd parallel startAnalyze eligibility, confirm, and start workers
/gsd parallel statusShow all workers with state, progress, and cost
/gsd parallel stop [MID]Stop all workers or a specific milestone's worker
/gsd parallel pause [MID]Pause all workers or a specific one
/gsd parallel resume [MID]Resume paused workers
/gsd parallel merge [MID]Merge completed milestones back to main

See Parallel Orchestration for full documentation.

Git Commands

CommandDescription
/worktree (/wt)Git worktree lifecycle — create, switch, merge, remove

Session Management

CommandDescription
/clearStart a new session (alias for /new)
/exitGraceful shutdown — saves session state before exiting
/killKill GSD process immediately
/modelSwitch the active model
/loginLog in to an LLM provider
/thinkingToggle thinking level during sessions
/voiceToggle real-time speech-to-text (macOS, Linux)

Keyboard Shortcuts

ShortcutAction
Ctrl+Alt+GToggle dashboard overlay
Ctrl+Alt+VToggle voice transcription
Ctrl+Alt+BShow background shell processes
Ctrl+V / Alt+VPaste image from clipboard (screenshot → vision input)
EscapePause auto mode (preserves conversation)

Note: In terminals without Kitty keyboard protocol support (macOS Terminal.app, JetBrains IDEs), slash-command fallbacks are shown instead of Ctrl+Alt shortcuts.

Tip: If Ctrl+V is intercepted by your terminal (e.g. Warp), use Alt+V instead for clipboard image paste.

CLI Flags

FlagDescription
gsdStart a new interactive session
gsd --continue (-c)Resume the most recent session for the current directory
gsd --model <id>Override the default model for this session
gsd --print "msg" (-p)Single-shot prompt mode (no TUI)
gsd --mode <text|json|rpc|mcp>Output mode for non-interactive use
gsd --list-models [search]List available models and exit
gsd sessionsInteractive session picker — list all saved sessions for the current directory and choose one to resume
gsd --debugEnable structured JSONL diagnostic logging for troubleshooting dispatch and state issues
gsd configRe-run the setup wizard (LLM provider + tool keys)
gsd updateUpdate GSD to the latest version
gsd headless new-milestoneCreate a new milestone from a context file (headless — no TUI required)

Headless Mode

gsd headless runs /gsd commands without a TUI — designed for CI, cron jobs, and scripted automation. It spawns a child process in RPC mode, auto-responds to interactive prompts, detects completion, and exits with meaningful exit codes.

# Run auto mode (default)
gsd headless

# Run a single unit
gsd headless next

# Machine-readable output
gsd headless --json status

# With timeout for CI
gsd headless --timeout 600000 auto

# Force a specific phase
gsd headless dispatch plan

# Create a new milestone from a context file and start auto mode
gsd headless new-milestone --context brief.md --auto

# Create a milestone from inline text
gsd headless new-milestone --context-text "Build a REST API with auth"

# Pipe context from stdin
echo "Build a CLI tool" | gsd headless new-milestone --context -
FlagDescription
--timeout NOverall timeout in milliseconds (default: 300000 / 5 min)
--jsonStream all events as JSONL to stdout
--model IDOverride the model for the headless session
--context <file>Context file for new-milestone (use - for stdin)
--context-text <text>Inline context text for new-milestone
--autoChain into auto-mode after milestone creation

Exit codes: 0 = complete, 1 = error or timeout, 2 = blocked.

Any /gsd subcommand works as a positional argument — gsd headless status, gsd headless doctor, gsd headless dispatch execute, etc.

MCP Server Mode

gsd --mode mcp runs GSD as a Model Context Protocol server over stdin/stdout. This exposes all GSD tools (read, write, edit, bash, etc.) to external AI clients — Claude Desktop, VS Code Copilot, and any MCP-compatible host.

# Start GSD as an MCP server
gsd --mode mcp

The server registers all tools from the agent session and maps MCP tools/list and tools/call requests to GSD tool definitions. It runs until the transport closes.