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:
@@ -90,17 +90,13 @@ Use Task tool with `subagent_type="gsd-codebase-mapper"`, `model="{mapper_model}
|
||||
|
||||
**Agent 1: Tech Focus**
|
||||
|
||||
Task tool parameters:
|
||||
```
|
||||
subagent_type: "gsd-codebase-mapper"
|
||||
model: "{mapper_model}"
|
||||
run_in_background: true
|
||||
description: "Map codebase tech stack"
|
||||
```
|
||||
|
||||
Prompt:
|
||||
```
|
||||
Focus: tech
|
||||
Task(
|
||||
subagent_type="gsd-codebase-mapper",
|
||||
model="{mapper_model}",
|
||||
run_in_background=true,
|
||||
description="Map codebase tech stack",
|
||||
prompt="Focus: tech
|
||||
|
||||
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
|
||||
- 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**
|
||||
|
||||
Task tool parameters:
|
||||
```
|
||||
subagent_type: "gsd-codebase-mapper"
|
||||
model: "{mapper_model}"
|
||||
run_in_background: true
|
||||
description: "Map codebase architecture"
|
||||
```
|
||||
|
||||
Prompt:
|
||||
```
|
||||
Focus: arch
|
||||
Task(
|
||||
subagent_type="gsd-codebase-mapper",
|
||||
model="{mapper_model}",
|
||||
run_in_background=true,
|
||||
description="Map codebase architecture",
|
||||
prompt="Focus: arch
|
||||
|
||||
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
|
||||
- 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**
|
||||
|
||||
Task tool parameters:
|
||||
```
|
||||
subagent_type: "gsd-codebase-mapper"
|
||||
model: "{mapper_model}"
|
||||
run_in_background: true
|
||||
description: "Map codebase conventions"
|
||||
```
|
||||
|
||||
Prompt:
|
||||
```
|
||||
Focus: quality
|
||||
Task(
|
||||
subagent_type="gsd-codebase-mapper",
|
||||
model="{mapper_model}",
|
||||
run_in_background=true,
|
||||
description="Map codebase conventions",
|
||||
prompt="Focus: quality
|
||||
|
||||
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
|
||||
- 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**
|
||||
|
||||
Task tool parameters:
|
||||
```
|
||||
subagent_type: "gsd-codebase-mapper"
|
||||
model: "{mapper_model}"
|
||||
run_in_background: true
|
||||
description: "Map codebase concerns"
|
||||
```
|
||||
|
||||
Prompt:
|
||||
```
|
||||
Focus: concerns
|
||||
Task(
|
||||
subagent_type="gsd-codebase-mapper",
|
||||
model="{mapper_model}",
|
||||
run_in_background=true,
|
||||
description="Map codebase concerns",
|
||||
prompt="Focus: concerns
|
||||
|
||||
Analyze this codebase for technical debt, known issues, and areas of concern.
|
||||
|
||||
Write this document to .planning/codebase/:
|
||||
- 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.
|
||||
|
||||
Reference in New Issue
Block a user