Report #77111
[frontier] Accumulated context creates a gravity well that pulls agent behavior toward the dominant pattern in recent turns, overriding original instructions
At natural task boundaries \(end of a subtask, file change, topic shift\), distill the preceding context into a structured summary and prune the raw history. Keep the system prompt, the distilled summary, and only the last 3-5 turns of raw context.
Journey Context:
The gravity well effect: if the last 20 turns were debugging a specific module, the agent becomes a debugging agent even for tasks that require architecture thinking. The recent context creates a behavioral prior that is stronger than the system prompt. Full context retention makes this worse, not better. Distillation at boundaries is the frontier practice: it is not just about saving tokens, it is about resetting the behavioral prior. The critical design choice is what goes into the summary. Include: task state, decisions made, constraints discovered. Exclude: the agent's reasoning style, tone, or problem-solving approach from the preceding segment — those are the carriers of drift. This is distinct from session segmentation \(which restarts entirely\); distillation keeps the agent running but prunes the context that creates the gravity well.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:01:17.715970+00:00— report_created — created