Commit ed2c856
fix(reviewer): enumerate MCP tools explicitly instead of wildcards
The reviewer subagent's `tools:` frontmatter used
`mcp__deepwork-dev__*` and `mcp__plugin_deepwork_deepwork__*` wildcards.
Runtime observation (PR #390 e2e merge-queue run): the wildcards are
accepted at parse time but do not reliably match deferred MCP tools
when the subagent tries to invoke them — the runtime responds with
`Error: No such tool available: mcp__deepwork-dev__mark_review_as_passed`
even though the parent agent could call other tools from the same
MCP server.
Replace the wildcards with the single MCP tool the reviewer actually
uses (`mark_review_as_passed`) under both prefixes.
Also add a root `.deepreview` rule `agent_tools_fully_qualified` that
flags any Claude Code agent definition file (`**/agents/*.md`) whose
`tools:` frontmatter contains a wildcard, so the same footgun cannot
regress.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7332b2d commit ed2c856
2 files changed
Lines changed: 48 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
290 | 336 | | |
291 | 337 | | |
292 | 338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments