Skip to content
BH
All posts

Why Claude Code gets "dumber" in a long session, and how to fix it

It was sharp in the morning and ignoring your instructions by the afternoon. The model did not change. Your context window filled up.

Last updated

Workshop slide: why the assistant gets worse as the context window fills up

In almost every workshop I run, an engineer says the same thing: "It was brilliant this morning. By the afternoon it was ignoring my instructions and making silly mistakes."

It is not the model. It is your context window. This is tip 15 of the 42 in my Claude Code Best Practices workshop, and it is the one people remember.

What the context window is

The context window is everything the assistant can see at once: your messages, the files it has read, the output of every command, and its own replies. All of it stays in the session, and the session only grows.

A long session is like a meeting that has run for six hours. Everything said is still technically in the room, but nobody is tracking the first hour any more.

What you notice as it fills

This is the general pattern the community has observed. These are not official numbers from Anthropic. They are rules of thumb, and they match what I see with my own teams.

  • Under 70% used. The assistant is sharp and follows instructions well.
  • 70 to 85%. Precision starts to drop. Subtle mistakes appear.
  • 85 to 90%. Mistakes become more frequent.
  • Above 90%. Responses become unreliable, and your rules get ignored.

So when the assistant "forgets" a rule you gave it two hours ago, it has not become worse at its job. The rule is buried.

What to do about it

Look first. Run /context to see how full the window is. Do it now, in the session you have open. Almost every complaint I hear about the assistant "being dumb" turns out to be a context window problem.

One task per session. When a task is done, run /clear and start the next one fresh. This is the single habit that changes the most.

Compact before it hurts. At around 70%, run /compact with a short note on what to keep, for example /compact keep the API design decisions. You choose what survives, instead of leaving it to chance.

Use subagents for work you can throw away. Searching a codebase or reading long logs fills the window with material you will never need again. A subagent does that work in its own window and hands back only the answer.

Keep project instructions short. A long instructions file is loaded into every session. In the workshop I recommend keeping CLAUDE.md under 200 lines.

The short version

Clear often. One task, one session. Check /context before you blame the model.

If you want your team to build these habits together, this is part of the AI training I run for engineering teams.