fix(skills): include tool constraint in subagent task prompts
The file-tools-over-bash instruction was in the orchestrator's context but not passed to spawned subagents. Changed to an explicit quoted instruction block that must be included in each subagent's task prompt so it's visible to the subagent, not just the orchestrator.
This commit is contained in:
@@ -200,7 +200,9 @@ Use subagents for context isolation when investigating multiple artifacts — no
|
||||
| **Parallel subagents** | 3+ truly independent artifacts with low overlap |
|
||||
| **Batched subagents** | Broad sweeps — narrow scope first, then investigate in batches |
|
||||
|
||||
Subagents should use dedicated file search and read tools for investigation — not shell commands. This avoids unnecessary permission prompts and is more reliable across platforms.
|
||||
**When spawning any subagent, include this instruction in its task prompt:**
|
||||
|
||||
> Use dedicated file search and read tools (Glob, Grep, Read) for all investigation. Do NOT use shell commands (ls, find, cat, grep, test, bash) for file operations. This avoids permission prompts and is more reliable.
|
||||
|
||||
There are two subagent roles:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user