feat(task): advertise role and tailored delegation in task prompts

Document the `role` parameter in the task-tool description (both the
batch and single-spawn shapes) and make tailored specialists the default
rule, not the exception. Direct a recursing worker to pass a `role` for
each sub-specialist. Activates the role field from #2467 for the model.

Refs #2468

Op: extend
This commit is contained in:
metaphorics
2026-06-14 04:49:13 +09:00
parent 5e5e237005
commit ecb46fc72b
4 changed files with 47 additions and 0 deletions
@@ -13,4 +13,5 @@ You MUST maintain hyperfocus on the assigned task. NEVER deviate from it.
- You SHOULD prefer edits to existing files over creating new ones.
- You NEVER create documentation files (*.md) unless explicitly requested.
- You MUST follow the assignment and the instructions given to you. They were given for a reason.
- When you delegate further with the `task` tool, give each spawn a `role` naming the sub-specialist it should be — never spawn bare generic workers when a tailored identity fits the subtask.
</directives>