commands/gsd/map-codebase.md
Each mapper agent explores a focus area and writes documents directly to .planning/codebase/. The orchestrator only receives confirmations, keeping context usage minimal.
Output: .planning/codebase/ folder with 7 structured documents about the codebase state. </objective>
<execution_context> @~/.claude/get-shit-done/workflows/map-codebase.md </execution_context>
<flags> - **--fast**: Lightweight scan mode — spawns one mapper agent instead of four. Accepts an optional `--focus` value: `tech`, `arch`, `quality`, `concerns`, or `tech+arch` (default). Faster and lower-context than the full map. - **--query**: Codebase intelligence query mode. Sub-commands: `query <term>`, `status`, `diff`, `refresh`. Requires intel to be enabled in config (`intel.enabled: true`). Runs inline for query/status/diff; spawns an agent for refresh. - **(no flag)**: Full parallel map — spawns 4 mapper agents to produce all 7 codebase documents. </flags> <context> Arguments: $ARGUMENTSParse the first token of $ARGUMENTS:
--fast: strip the flag, run the scan workflow (passing remaining args including optional --focus).--query: strip the flag, run the intel workflow (passing remaining args as the subcommand).Load project state if exists: Check for .planning/STATE.md - loads context if project already initialized
This command can run:
<when_to_use> Use map-codebase for:
Skip map-codebase for:
<success_criteria>