fix(dispatcher): rename Task→Agent in allowed-tools, workflow prose, and agent tools frontmatter

Fixes #3168

The Claude Code subagent dispatcher tool is named `Agent` (with `subagent_type`
parameter). The `Task*` namespace (TaskCreate, TaskList, TaskGet, TaskUpdate,
TaskOutput, TaskStop) is the separate task-tracker. GSD's commands, workflows,
and agents were partially migrated and still referenced `- Task` / `Task(` in
55 files, causing orchestrators to silently fall back to inline execution when
no `Task` tool appeared on their tool surface.

Changes:
- `commands/gsd/*.md` allowed-tools: replaced `- Task` with `- Agent` in 24
  files; removed duplicate `- Task` from autonomous.md (already had `- Agent`)
- `get-shit-done/workflows/*.md`: replaced dispatcher `Task(` → `Agent(` in
  29 workflow files (~133 call sites); TaskCreate/List/Get/Update/Output/Stop
  left untouched
- `agents/gsd-debug-session-manager.md`: replaced `Task` → `Agent` in tools
  frontmatter (the only remaining agent with the wrong name)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Tom Boucher
2026-05-06 15:00:08 -04:00
parent 94f835af40
commit 1452b1275b
56 changed files with 281 additions and 168 deletions

View File

@@ -755,7 +755,7 @@ Display spawning indicator:
Spawn 4 parallel gsd-project-researcher agents with path references:
```
Task(prompt="<research_type>
Agent(prompt="<research_type>
Project Research — Stack dimension for [domain].
</research_type>
@@ -795,7 +795,7 @@ Use template: ~/.claude/get-shit-done/templates/research-project/STACK.md
</output>
", subagent_type="gsd-project-researcher", model="{researcher_model}", description="Stack research")
Task(prompt="<research_type>
Agent(prompt="<research_type>
Project Research — Features dimension for [domain].
</research_type>
@@ -835,7 +835,7 @@ Use template: ~/.claude/get-shit-done/templates/research-project/FEATURES.md
</output>
", subagent_type="gsd-project-researcher", model="{researcher_model}", description="Features research")
Task(prompt="<research_type>
Agent(prompt="<research_type>
Project Research — Architecture dimension for [domain].
</research_type>
@@ -875,7 +875,7 @@ Use template: ~/.claude/get-shit-done/templates/research-project/ARCHITECTURE.md
</output>
", subagent_type="gsd-project-researcher", model="{researcher_model}", description="Architecture research")
Task(prompt="<research_type>
Agent(prompt="<research_type>
Project Research — Pitfalls dimension for [domain].
</research_type>
@@ -916,12 +916,12 @@ Use template: ~/.claude/get-shit-done/templates/research-project/PITFALLS.md
", subagent_type="gsd-project-researcher", model="{researcher_model}", description="Pitfalls research")
```
> **ORCHESTRATOR RULE — CODEX RUNTIME**: After calling all 4 researcher Task() calls above, do NOT read research files or synthesize content independently while the subagents are active. Wait for all 4 researchers to complete before spawning the synthesizer. This prevents duplicate work and wasted context.
> **ORCHESTRATOR RULE — CODEX RUNTIME**: After calling all 4 researcher Agent() calls above, do NOT read research files or synthesize content independently while the subagents are active. Wait for all 4 researchers to complete before spawning the synthesizer. This prevents duplicate work and wasted context.
After all 4 agents complete, spawn synthesizer to create SUMMARY.md:
```
Task(prompt="
Agent(prompt="
<task>
Synthesize research outputs into SUMMARY.md.
</task>
@@ -943,7 +943,7 @@ Commit after writing.
", subagent_type="gsd-research-synthesizer", model="{synthesizer_model}", description="Synthesize research")
```
> **ORCHESTRATOR RULE — CODEX RUNTIME**: After calling Task() above, stop working on this task immediately. Do not read more files, edit code, or run tests related to this task while the subagent is active. Wait for the subagent to return its result. This prevents duplicate work, conflicting edits, and wasted context. Only resume when the subagent result is available.
> **ORCHESTRATOR RULE — CODEX RUNTIME**: After calling Agent() above, stop working on this task immediately. Do not read more files, edit code, or run tests related to this task while the subagent is active. Wait for the subagent to return its result. This prevents duplicate work, conflicting edits, and wasted context. Only resume when the subagent result is available.
Display research complete banner and key findings:
@@ -1132,7 +1132,7 @@ Display stage banner:
Spawn gsd-roadmapper agent with path references:
```
Task(prompt="
Agent(prompt="
<planning_context>
<files_to_read>
@@ -1160,7 +1160,7 @@ Write files first, then return. This ensures artifacts persist even if context i
", subagent_type="gsd-roadmapper", model="{roadmapper_model}", description="Create roadmap")
```
> **ORCHESTRATOR RULE — CODEX RUNTIME**: After calling Task() above, stop working on this task immediately. Do not read more files, edit code, or run tests related to this task while the subagent is active. Wait for the subagent to return its result. This prevents duplicate work, conflicting edits, and wasted context. Only resume when the subagent result is available.
> **ORCHESTRATOR RULE — CODEX RUNTIME**: After calling Agent() above, stop working on this task immediately. Do not read more files, edit code, or run tests related to this task while the subagent is active. Wait for the subagent to return its result. This prevents duplicate work, conflicting edits, and wasted context. Only resume when the subagent result is available.
**Handle roadmapper return:**
@@ -1231,7 +1231,7 @@ Use AskUserQuestion:
- Re-spawn roadmapper with revision context:
```
Task(prompt="
Agent(prompt="
<revision>
User feedback on roadmap:
[user's notes]
@@ -1248,7 +1248,7 @@ Use AskUserQuestion:
", subagent_type="gsd-roadmapper", model="{roadmapper_model}", description="Revise roadmap")
```
> **ORCHESTRATOR RULE — CODEX RUNTIME**: After calling Task() above, stop working on this task immediately. Do not read more files, edit code, or run tests related to this task while the subagent is active. Wait for the subagent to return its result. This prevents duplicate work, conflicting edits, and wasted context. Only resume when the subagent result is available.
> **ORCHESTRATOR RULE — CODEX RUNTIME**: After calling Agent() above, stop working on this task immediately. Do not read more files, edit code, or run tests related to this task while the subagent is active. Wait for the subagent to return its result. This prevents duplicate work, conflicting edits, and wasted context. Only resume when the subagent result is available.
- Present revised roadmap
- Loop until user approves