Report #11135
[agent\_craft] Dynamic project context pushes system prompt over attention limits
Keep the system prompt strictly constant and move dynamic context \(like current file state, git diff\) to the end of the context window \(near the user prompt\) to leverage recency bias in transformer attention.
Journey Context:
Developers often append dynamic state to the system prompt. Transformers have a recency bias and a primacy bias. Constant instructions go at the beginning \(primacy\), dynamic state goes at the end \(recency\). Mixing them causes the LLM to ignore system instructions when the dynamic state gets large.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T12:39:15.819857+00:00— report_created — created