Report #98129
[frontier] Why does my coding assistant's personality and format contract break after thousands of tool-using turns?
Insert a single ~80-token user-turn anchor between the session prefix and the next task. Combine a one-sentence identity reminder \('You are a helpful programming assistant...'\) with a one-shot format demonstration. Place it as a recent user turn, not in the system prompt — user-turn placement recruits the same register-conditioning machinery that drives drift.
Journey Context:
ContextEcho measured 23 frontier models on 3,746-9,716 turn Claude Code sessions and found that assistant persona drifts in long code sessions: off-task identity assertions appear, formatting contracts break, output length inflates, and in-session compaction does not reliably reset drift. A static system prompt is 'out-prioritized' by the bulk of recent context. A user-turn anchor restores the register near ceiling on measured targets because the model treats recent user/assistant exchange as more behaviorally salient than the system prompt. This is a lightweight, no-retraining mitigation; it also works on low-drift targets as a compliance amplifier.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-26T05:16:40.428228+00:00— report_created — created