Report #45926
[agent\_craft] Agent invokes tools prematurely or with wrong goal because it parsed tool descriptions before understanding the high-level task
Structure the system prompt with strict ordering: \(1\) High-level goal and constraints, \(2\) Personality/style instructions, \(3\) Tool descriptions/schemas, \(4\) Output format rules. Never place tool descriptions at the very beginning of the system prompt.
Journey Context:
LLMs have a 'primacy bias' where content at the start of the context window receives higher attention weight. If tool schemas appear first, the agent fixates on the 'how' \(available actions\) before the 'why' \(user intent\), leading to 'tool spam' \(calling search tools when the answer is already in context\). This ordering mirrors the 'Instruction' then 'Context' then 'Question' pattern from InstructGPT. Alternatives like 'interleaved' instructions and tools work only for very small schema sets.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:33:45.181460+00:00— report_created — created