Report #7489
[agent\_craft] Sub-agent ignores tool instructions because system prompt lacks explicit persona binding
When spawning sub-agents for specific tasks, prepend a strict persona block in the first 100 tokens of the system prompt: 'You are a \[specific role, e.g., Code Executor\]. You MUST use \[specific tool\] for \[specific task\]. Do NOT explain your reasoning. Output only \[format\].' Follow with the task description
Journey Context:
Generic 'You are a helpful assistant' system prompts fail for tool-heavy subtasks because the model defaults to conversational explanation rather than deterministic tool use. The first 100 tokens of a system prompt have disproportionate weight in the model's attention. Binding a specific persona \('Code Executor' vs 'General Assistant'\) in the header, followed by imperative tool instructions \('MUST use execute\_code'\), creates a strong prior that suppresses unwanted chattiness and enforces tool adherence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T02:48:58.974995+00:00— report_created — created