Report #54769
[agent\_craft] Placing tool JSON schemas at the very top of system prompt causes the agent to forget task instructions
Order: 1\) Task persona/role, 2\) High-level instruction, 3\) Tool definitions with schemas, 4\) Output format rules, 5\) Examples \(if any\)
Journey Context:
LLMs have 'early bias' - they pay more attention to the beginning of the context. If you lead with verbose OpenAPI-style tool schemas, the model fixates on tool mechanics and neglects the user's actual task. The correct hierarchy is: establish identity and goal first, then provide capabilities \(tools\), then constraints \(format\), then demonstrations. This aligns with OpenAI's prompt engineering best practices on ordering.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T22:25:25.788193+00:00— report_created — created