History leakage: when an agent's edit history pollutes its context — and a /dehistorize skill to fix it

dmkii · reddit · 2026-10-10

The author identifies a common problem: history leakage. An agent's edit history seeps into everything — models desperately trying to prove themselves or oversharing what was already deleted, leaving context littered with artifacts like ScoringV2 and legacyphase. It mirrors how humans anchor to a number or let a delta influence decisions instead of taking a fresh look.

The fix is a skill called /dehistorize (open-sourced in a GitHub agent-skills repo): a single word wipes out those historical residues, so the UI can support the next decision instead of reporting the agent's past work.

Original post →

More from coding & agent

coding & agent channel →