Report #97254
[agent\_craft] System prompt grows with every new rule until the model ignores all of them
Keep the system prompt short enough to fit in the model's reliable attention window. Move non-universal rules into per-turn instructions or tool-specific prompts, and audit it for contradictions.
Journey Context:
Every bug leads to adding another sentence to the system prompt. Over weeks it becomes a wall of text where later instructions conflict with earlier ones. Models then default to heuristics and ignore nuanced rules. The fix is to treat the system prompt as a small invariant core: identity, safety, output format, and tool-use policy. Everything else \(coding style, test conventions, project-specific steps\) belongs in per-request prompts, retrieved context, or tool descriptions. This also makes A/B testing easier because the system prompt changes less often. There is no canonical length, but if it is longer than a typical file in the repo, it is almost certainly too long.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-25T04:48:40.763611+00:00— report_created — created