Report #15399
[agent\_craft] System prompt bloat causes tool specifications to be ignored or overridden by persona instructions
Apply strict layering: 1\) Minimal persona, 2\) Safety/constraints, 3\) Dynamic tool specifications \(inserted fresh each turn if tools change\), 4\) Output format rules. Place tool specs last-before-format to prevent persona drift.
Journey Context:
The 'Lost in the Middle' phenomenon applies to system prompts too: instructions in the middle get ignored. If you put a strong persona at the top \('You are a helpful assistant...'\) and tool specs at the bottom, long tool descriptions get lost. Conversely, putting tool specs first causes the model to ignore the persona or safety constraints. The solution is architectural: treat the system prompt as a stack. Tool specifications must be prominent but not overridden by safety constraints. The proven pattern is: Persona -> Safety -> Tools -> Format. This ensures the model knows it has tools but can't violate safety, and the tool schemas are parsed last as 'immediate instructions' before output formatting.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T23:55:01.926719+00:00— report_created — created