fix: add <available_agent_types> to all workflows spawning named agents
PR #1139 added <available_agent_types> sections to execute-phase.md and plan-phase.md to prevent /clear from causing silent fallback to general-purpose. However, 14 other workflows and 2 commands that also spawn named GSD agents were missed, leaving them vulnerable to the same regression after /clear. Added <available_agent_types> listing to: research-phase, quick, audit-milestone, diagnose-issues, discuss-phase-assumptions, execute-plan, map-codebase, new-milestone, new-project, ui-phase, ui-review, validate-phase, verify-work (workflows) and debug, research-phase (commands). Added regression test that enforces every workflow/command spawning named subagent_type must have a matching <available_agent_types> section listing all spawned types. Fixes #1357 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -14,6 +14,15 @@ Flags are composable: `--discuss --research --full` gives discussion + research
|
||||
Read all files referenced by the invoking prompt's execution_context before starting.
|
||||
</required_reading>
|
||||
|
||||
<available_agent_types>
|
||||
Valid GSD subagent types (use exact names — do not fall back to 'general-purpose'):
|
||||
- gsd-phase-researcher — Researches technical approaches for a phase
|
||||
- gsd-planner — Creates detailed plans from phase scope
|
||||
- gsd-plan-checker — Reviews plan quality before execution
|
||||
- gsd-executor — Executes plan tasks, commits, creates SUMMARY.md
|
||||
- gsd-verifier — Verifies phase completion, checks quality gates
|
||||
</available_agent_types>
|
||||
|
||||
<process>
|
||||
**Step 1: Parse arguments and get task description**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user