Commit c080b0a
fix(agents): add subagent support with dedicated subagent files and simplified prompts (#639)
Previously, parent agents contained large inline instruction blocks for
tasks like research, validation, implementation, and prompt testing.
This made agents difficult to maintain, test independently, and reuse
across workflows. This PR extracts those responsibilities into eight
dedicated subagent files and updates the entire agent ecosystem
accordingly.
**Subagent extraction** — Eight focused subagents now live under
`.github/agents/subagents/`: `implementation-validator`,
`phase-implementor`, `plan-validator`, `prompt-evaluator`,
`prompt-tester`, `prompt-updater`, `researcher-subagent`, and
`rpi-validator`. Each owns a single responsibility that was previously
duplicated or embedded inline across multiple parent agents.
**Parent agent rewrites** — Seven parent agents (`rpi-agent`,
`task-implementor`, `task-planner`, `task-researcher`, `task-reviewer`,
`prompt-builder`, `doc-ops`) were restructured to declare subagent
dependencies through `agents:` frontmatter with glob-based resolution
paths. The agents now orchestrate work by invoking subagents rather than
executing everything inline.
**Prompt simplification** — Eight prompt files were reduced to lean
wrappers containing only the user-facing Requirements section. Workflow
logic that previously lived in prompts moved into their corresponding
agents, giving prompts a clear single purpose: capture user intent and
delegate.
**Instructions update** — The `prompt-builder.instructions.md` file
gained guidance for the new subagent structural template, agent
delegation patterns, and sandbox environment definitions.
**Configuration and discovery** — VS Code settings,
`copilot-instructions.md`, and `CUSTOM-AGENTS.md` were updated so the
new `subagents/` directory is discoverable and the documentation
reflects current terminology and architecture.
**Collection and plugin alignment** — All nine collection manifests and
their corresponding markdown descriptions were updated to include the
new subagent entries. Plugin outputs were regenerated with updated agent
tables and symlinks.
## Related Issue(s)
<!-- No issue references detected in commits or branch name -->
## Type of Change
Select all that apply:
**Code & Documentation:**
- [x] Bug fix (non-breaking change fixing an issue)
- [ ] New feature (non-breaking change adding functionality)
- [ ] Breaking change (fix or feature causing existing functionality to
change)
- [ ] Documentation update
**Infrastructure & Configuration:**
- [ ] GitHub Actions workflow
- [ ] Linting configuration (markdown, PowerShell, etc.)
- [ ] Security configuration
- [ ] DevContainer configuration
- [ ] Dependency update
**AI Artifacts:**
- [x] Reviewed contribution with `prompt-builder` agent and addressed
all feedback
- [x] Copilot instructions (`.github/instructions/*.instructions.md`)
- [x] Copilot prompt (`.github/prompts/*.prompt.md`)
- [x] Copilot agent (`.github/agents/*.agent.md`)
- [ ] Copilot skill (`.github/skills/*/SKILL.md`)
> **Note for AI Artifact Contributors**:
>
> - **Agents**: Research, indexing/referencing other project (using
standard VS Code GitHub Copilot/MCP tools), planning, and general
implementation agents likely already exist. Review `.github/agents/`
before creating new ones.
> - **Skills**: Must include both bash and PowerShell scripts. See
[Skills](../docs/contributing/skills.md).
> - **Model Versions**: Only contributions targeting the **latest
Anthropic and OpenAI models** will be accepted. Older model versions
(e.g., GPT-3.5, Claude 3) will be rejected.
> - See [Agents Not
Accepted](../docs/contributing/custom-agents.md#agents-not-accepted) and
[Model Version
Requirements](../docs/contributing/ai-artifacts-common.md#model-version-requirements).
**Other:**
- [ ] Script/automation (`.ps1`, `.sh`, `.py`)
- [ ] Other (please describe):
## Sample Prompts (for AI Artifact Contributions)
**User Request:**
`/rpi Research, plan, and implement subagent support for the
task-planner agent`
**Execution Flow:**
1. User invokes `rpi-agent`; the agent loads subagents via `agents:`
frontmatter glob paths
2. Research phase delegates to `researcher-subagent` for codebase
analysis
3. Planning phase invokes `plan-validator` to validate the generated
plan against research findings
4. Implementation phase delegates to `phase-implementor` for each phase,
with change tracking
5. Review phase uses `rpi-validator` per phase and
`implementation-validator` for quality assessment
**Output Artifacts:**
Tracking artifacts in `.copilot-tracking/` remain unchanged. Subagent
delegation is transparent to the user; parent agents orchestrate the
workflow using glob-based subagent resolution.
**Success Indicators:**
- Parent agents invoke subagents through the subagent tool without
manual intervention
- Subagent files appear in `.github/agents/subagents/` and are
discoverable via `chat.agentFilesLocations`
- Collection manifests include all subagent dependencies for each parent
agent
## Testing
<!-- Describe how you tested these changes -->
## Checklist
### Required Checks
- [ ] Documentation is updated (if applicable)
- [ ] Files follow existing naming conventions
- [ ] Changes are backwards compatible (if applicable)
- [ ] Tests added for new functionality (if applicable)
### AI Artifact Contributions
<!-- If contributing an agent, prompt, instruction, or skill, complete
these checks -->
- [ ] Used `/prompt-analyze` to review contribution
- [ ] Addressed all feedback from `prompt-builder` review
- [ ] Verified contribution follows common standards and type-specific
requirements
### Required Automated Checks
The following validation commands must pass before merging:
- [ ] Markdown linting: `npm run lint:md`
- [ ] Spell checking: `npm run spell-check`
- [ ] Frontmatter validation: `npm run lint:frontmatter`
- [ ] Link validation: `npm run lint:md-links`
- [ ] PowerShell analysis: `npm run lint:ps`
## Security Considerations
<!-- 1 parent 21820be commit c080b0a
File tree
130 files changed
+3033
-1609
lines changed- .github
- agents
- subagents
- instructions
- prompts
- .vscode
- collections
- docs/contributing
- plugins
- ado
- agents
- coding-standards
- agents
- data-science
- agents
- github
- agents
- hve-core-all
- agents
- project-planning
- agents
- prompt-engineering
- agents
- rpi
- agents
- security-planning
- agents
- scripts/linting
- Modules
- schemas
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
130 files changed
+3033
-1609
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
| 349 | + | |
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
| 389 | + | |
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
12 | | - | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
18 | | - | |
| 22 | + | |
19 | 23 | | |
20 | | - | |
21 | | - | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
64 | | - | |
65 | | - | |
| 68 | + | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
135 | 139 | | |
136 | 140 | | |
137 | 141 | | |
138 | | - | |
139 | | - | |
140 | | - | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
144 | | - | |
| 146 | + | |
145 | 147 | | |
146 | 148 | | |
147 | | - | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
154 | | - | |
| 156 | + | |
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
| |||
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
163 | | - | |
| 165 | + | |
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
| |||
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
178 | | - | |
| 180 | + | |
179 | 181 | | |
180 | | - | |
| 182 | + | |
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
| |||
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
199 | | - | |
| 201 | + | |
200 | 202 | | |
201 | | - | |
| 203 | + | |
202 | 204 | | |
203 | | - | |
204 | | - | |
| 205 | + | |
| 206 | + | |
205 | 207 | | |
206 | | - | |
| 208 | + | |
207 | 209 | | |
208 | 210 | | |
209 | | - | |
| 211 | + | |
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
| |||
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
248 | | - | |
| 250 | + | |
249 | 251 | | |
250 | 252 | | |
251 | 253 | | |
| |||
407 | 409 | | |
408 | 410 | | |
409 | 411 | | |
410 | | - | |
| 412 | + | |
0 commit comments