Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
gsd:map-codebase - Prompt - OpenSmartRoute
Promptv1.0.0
gsd:map-codebase
Analyze codebase with parallel Explore agents to produce .planning/codebase/ documents
Prompt file imported from PetriLahdelma/digitaltableteur (.claude/commands/gsd/map-codebase.md). Fill in {{arguments}} before use. Copyright stays with the author.
This command spawns multiple Explore agents to analyze different aspects of the codebase in parallel, each with fresh context.
Output: .planning/codebase/ folder with 7 structured documents about the codebase state.
Load project state if exists:
Check for .planning/STATE.md - loads context if project already initialized
This command can run:
Before /gsd:new-project (brownfield codebases) - creates codebase map first
After /gsd:new-project (greenfield codebases) - updates codebase map as code evolves
Anytime to refresh codebase understanding
<when_to_use>
Use map-codebase for:
Brownfield projects before initialization (understand existing code first)
Refreshing codebase map after significant changes
Onboarding to an unfamiliar codebase
Before major refactoring (understand current state)
When STATE.md references outdated codebase info
Skip map-codebase for:
Greenfield projects with no code yet (nothing to map)
Trivial codebases (<5 files)
</when_to_use>
<success_criteria>
.planning/codebase/ directory created
All 7 codebase documents written
Documents follow template structure
Parallel agents completed without errors
User knows next steps
</success_criteria>
Installed into a catalogue, chosen by a router
Install gsd:map-codebase and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.