๐ง The core problem: the longer a Claude chat runs, the more context fills up โ and Claude starts quietly dropping your earlier instructions. Most people never notice it happening. Here are 5 tips to catch it in real time and keep every session running smooth.
5 Tips to Keep Claude Sharp in Long Sessions
1๏ธโฃ ๐จ The Name Trick โ Catch Context Drift in Real Time
Add one line to your CLAUDE.md:
Call me [Your Name] every single time you reply.
| โ While it works | Every response starts with your name โ your instructions are being followed |
| ๐ฉ The signal | The moment Claude stops saying your name, context is filling up and earlier rules are getting dropped |
| ๐ ๏ธ What to do | Compact the conversation or start a new one |
๐ก Rule of thumb: compact around the 50% context mark โ don't wait until things start breaking.
2๏ธโฃ ๐ Keep Your CLAUDE.md Lean
Your CLAUDE.md gets loaded into every single session โ so every extra paragraph in there is context you pay for before you've even typed anything.
What to do:
- Keep it to the rules that actually change Claude's behavior
- Cut anything Claude would do by default anyway
- Audit it monthly โ delete rules you added for problems that no longer exist
โ ๏ธ A bloated CLAUDE.md doesn't just waste tokens โ it makes drift happen sooner, because you start every session with less headroom.
3๏ธโฃ ๐งน Clear Between Unrelated Tasks
Finished debugging and moving on to writing docs? Don't keep going in the same thread. Old context from the previous task is dead weight that Claude still has to carry โ and it can even bleed into your new task and confuse the output.
What to do:
- Run
/clear(or start a fresh chat) the moment you switch to an unrelated task - Treat one chat = one job as the default
| Habit | Result |
| One long thread for everything | Context fills fast, instructions drift, answers get muddy |
| Fresh context per task | Sharp, focused responses every time |
4๏ธโฃ ๐ Ask for a Handoff Doc Before You Reset
Scared to start fresh because you'll lose everything? You won't โ if you grab a handoff first.
Before clearing or starting a new chat, ask:
Write me a handoff doc: summarize what we're working on,
the decisions we've made, what's done, and what's still open.
Paste that into the new chat and you keep all the signal with none of the bloat. You've essentially compressed 50 messages into one.
5๏ธโฃ ๐ Feed Claude Snippets, Not Dumps
The fastest way to burn context is pasting in things Claude doesn't need โ full log files, entire stack traces, whole documents โ when only a few lines matter.
What to do:
- Paste the relevant error lines, not the whole log
- Share the specific function, not the entire file
- Trim long outputs to the part you actually have a question about
๐ก Every token you don't paste is context Claude keeps for following your instructions instead.
๐ Quick Reference
| Tip | One-Liner |
| 1. Name trick | Your name disappearing = drift detector |
| 2. Lean CLAUDE.md | Every rule costs context in every session |
| 3. Clear between tasks | One chat = one job |
| 4. Handoff doc | Compress the old chat before starting fresh |
| 5. Snippets, not dumps | Paste only what matters |
โ Pro Tip
Stack tips 1 + 4: the moment your name disappears, ask for the handoff doc, start a new chat, paste it in โ you'll be back at full sharpness in under a minute.