Back to Get Shit Done

Config

commands/gsd/config.md

1.40.02.2 KB
Original Source
<objective> Configure GSD settings interactively with a single consolidated command.

Mode routing:

  • default (no flag): Common-case toggles (model, research, plan_check, verifier, branching) → settings workflow
  • --advanced: Power-user knobs (planning tuning, timeouts, branch templates, cross-AI execution) → settings-advanced workflow
  • --integrations: Third-party API keys, code-review CLI routing, agent-skill injection → settings-integrations workflow
  • --profile <name>: Switch model profile (quality|balanced|budget|inherit) → set-profile (inline) </objective>
<routing>
FlagActionWorkflow
(none)Interactive 5-question common-case config promptsettings
--advancedPower-user knobs: planning, execution, discussion, cross-AI, git, runtimesettings-advanced
--integrationsAPI keys (Brave/Firecrawl/Exa), review CLI routing, agent skillssettings-integrations
--profile <name>Switch model profile without interactive promptgsd-sdk config-set-model-profile
</routing>

<execution_context> @/.claude/get-shit-done/workflows/settings.md @/.claude/get-shit-done/workflows/settings-advanced.md @~/.claude/get-shit-done/workflows/settings-integrations.md </execution_context>

<context> Arguments: $ARGUMENTS

Parse the first token of $ARGUMENTS:

  • If it is --advanced: strip the flag, execute settings-advanced workflow
  • If it is --integrations: strip the flag, execute settings-integrations workflow
  • If it starts with --profile: extract the profile name (remainder after --profile), then:
    1. Pre-flight check (#2439): verify gsd-sdk is on PATH via command -v gsd-sdk. If absent, emit the install hint Install GSD via 'npm i -g get-shit-done' and stop — do NOT invoke gsd-sdk directly (avoids the opaque command not found: gsd-sdk failure).
    2. Run: gsd-sdk query config-set-model-profile <profile-name> --raw and display the output verbatim.
  • Otherwise: execute settings workflow (no argument needed) </context>
<process> 1. Parse the leading flag (if any) from $ARGUMENTS. 2. Load and execute the appropriate workflow end-to-end, or run the inline SDK command for --profile. 3. Preserve all workflow gates from the target workflow. </process>