fix(#217): use inline Task() syntax for map-codebase agent spawning

Closes #217

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Lex Christopherson
2026-02-17 14:09:39 -06:00
parent b94a1cac2b
commit f77252cc6c

View File

@@ -90,17 +90,13 @@ Use Task tool with `subagent_type="gsd-codebase-mapper"`, `model="{mapper_model}
**Agent 1: Tech Focus** **Agent 1: Tech Focus**
Task tool parameters:
``` ```
subagent_type: "gsd-codebase-mapper" Task(
model: "{mapper_model}" subagent_type="gsd-codebase-mapper",
run_in_background: true model="{mapper_model}",
description: "Map codebase tech stack" run_in_background=true,
``` description="Map codebase tech stack",
prompt="Focus: tech
Prompt:
```
Focus: tech
Analyze this codebase for technology stack and external integrations. Analyze this codebase for technology stack and external integrations.
@@ -108,22 +104,19 @@ Write these documents to .planning/codebase/:
- STACK.md - Languages, runtime, frameworks, dependencies, configuration - STACK.md - Languages, runtime, frameworks, dependencies, configuration
- INTEGRATIONS.md - External APIs, databases, auth providers, webhooks - INTEGRATIONS.md - External APIs, databases, auth providers, webhooks
Explore thoroughly. Write documents directly using templates. Return confirmation only. Explore thoroughly. Write documents directly using templates. Return confirmation only."
)
``` ```
**Agent 2: Architecture Focus** **Agent 2: Architecture Focus**
Task tool parameters:
``` ```
subagent_type: "gsd-codebase-mapper" Task(
model: "{mapper_model}" subagent_type="gsd-codebase-mapper",
run_in_background: true model="{mapper_model}",
description: "Map codebase architecture" run_in_background=true,
``` description="Map codebase architecture",
prompt="Focus: arch
Prompt:
```
Focus: arch
Analyze this codebase architecture and directory structure. Analyze this codebase architecture and directory structure.
@@ -131,22 +124,19 @@ Write these documents to .planning/codebase/:
- ARCHITECTURE.md - Pattern, layers, data flow, abstractions, entry points - ARCHITECTURE.md - Pattern, layers, data flow, abstractions, entry points
- STRUCTURE.md - Directory layout, key locations, naming conventions - STRUCTURE.md - Directory layout, key locations, naming conventions
Explore thoroughly. Write documents directly using templates. Return confirmation only. Explore thoroughly. Write documents directly using templates. Return confirmation only."
)
``` ```
**Agent 3: Quality Focus** **Agent 3: Quality Focus**
Task tool parameters:
``` ```
subagent_type: "gsd-codebase-mapper" Task(
model: "{mapper_model}" subagent_type="gsd-codebase-mapper",
run_in_background: true model="{mapper_model}",
description: "Map codebase conventions" run_in_background=true,
``` description="Map codebase conventions",
prompt="Focus: quality
Prompt:
```
Focus: quality
Analyze this codebase for coding conventions and testing patterns. Analyze this codebase for coding conventions and testing patterns.
@@ -154,29 +144,27 @@ Write these documents to .planning/codebase/:
- CONVENTIONS.md - Code style, naming, patterns, error handling - CONVENTIONS.md - Code style, naming, patterns, error handling
- TESTING.md - Framework, structure, mocking, coverage - TESTING.md - Framework, structure, mocking, coverage
Explore thoroughly. Write documents directly using templates. Return confirmation only. Explore thoroughly. Write documents directly using templates. Return confirmation only."
)
``` ```
**Agent 4: Concerns Focus** **Agent 4: Concerns Focus**
Task tool parameters:
``` ```
subagent_type: "gsd-codebase-mapper" Task(
model: "{mapper_model}" subagent_type="gsd-codebase-mapper",
run_in_background: true model="{mapper_model}",
description: "Map codebase concerns" run_in_background=true,
``` description="Map codebase concerns",
prompt="Focus: concerns
Prompt:
```
Focus: concerns
Analyze this codebase for technical debt, known issues, and areas of concern. Analyze this codebase for technical debt, known issues, and areas of concern.
Write this document to .planning/codebase/: Write this document to .planning/codebase/:
- CONCERNS.md - Tech debt, bugs, security, performance, fragile areas - CONCERNS.md - Tech debt, bugs, security, performance, fragile areas
Explore thoroughly. Write document directly using template. Return confirmation only. Explore thoroughly. Write document directly using template. Return confirmation only."
)
``` ```
Continue to collect_confirmations. Continue to collect_confirmations.