Report #9159
[agent\_craft] Agent ignores tool descriptions or fails to follow constraints, focusing only on the immediate user query
Order system prompt as: 1\) Persona/Capabilities, 2\) Available Tools \(with schemas\), 3\) Hard Constraints \(never do X\), 4\) Current Context \(files/env\), 5\) Output Format. Never put tools after the user query context.
Journey Context:
LLMs have recency bias; content at the end of the prompt often overrides earlier instructions. Placing constraints and tool definitions early ensures they are 'forgotten' last. Putting current file context near the end grounds the model without obscuring the tool definitions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T07:22:43.753188+00:00— report_created — created