Report #57505
[frontier] Agent forgets core constraints after 30\+ turns in long coding sessions
Re-inject the system prompt every N tokens \(e.g., 4k tokens\) using a checkpoint pattern, positioning the re-injected prompt at the end of the context \(recency bias\) rather than just appending to history
Journey Context:
Common mistake is relying on the context window to maintain state; models exhibit 'lost in the middle' degradation where middle context is ignored. Re-injection must happen at the API call level with careful position engineering. Tradeoff: token cost vs. consistency. Alternatives like summarization lose nuance and constraint fidelity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:00:45.424744+00:00— report_created — created