When a long AI session starts giving worse answers, the usual diagnosis is “it got too long.” But “too long” only suggests one remedy: start over, and lose everything. A more useful move is to name what is actually in the session and clean it like you would clean a workspace.
I use a small glossary of six things that accumulate in long sessions, each with how to spot it and what to do. Treating this as a habit, doing it when the session starts to feel off, prevents the full restart.
Stale fact. Something that was true when it entered the session and is no longer true, a renamed file, a reversed decision. Ask the assistant to list its assumptions and compare against reality. Correct explicitly and say the new fact supersedes the old.
Duplicate. The same information present twice in slightly different versions, requirements pasted Monday, “updated” requirements Wednesday, the first never withdrawn. The problem is not duplication itself, but the lack of a signal about which version prevails.
Dead branch. An approach tried and abandoned, still sitting in the session with its code and reasoning. Mark it: “The caching approach above was abandoned, do not build on it.”
Orphaned instruction. A rule given for one task and never withdrawn, “don’t touch the tests” during task one, still active three tasks later. Restate scope when the task changes.
Bulk paste. A large log or full file pasted when only twenty lines mattered. Paste only the relevant slice next time.
Drifted goal. The session began with one task and turned into another. Write the current goal in one sentence without scrolling up.
Run these six as a checklist when a session feels off. For each one found, there is a small repair: a correction, a deletion, a marker, a restated scope. Sometimes that makes a restart unnecessary. Other times it shows a restart is the right call, and tells you what the new session should carry over.
This is a habit because it is cheaper to clean continuously than to rebuild from scratch. The decision comes from the contents of the session, not from a feeling that it has been going on for a while.
I wrote a longer version of this glossary: https://medium.com/@nagatomopedro05/a-small-glossary-for-sessions-that-have-gone-wrong-1073a38e2156
Question: Do others treat context cleanup as a recurring habit, or do you just restart when the session feels slow?