โ† Back to Resources

Prompts

Keep Claude Sharp: The Name Trick + 4 Context-Saving Habits

๐Ÿง  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 worksEvery response starts with your name โ€” your instructions are being followed
๐Ÿšฉ The signalThe moment Claude stops saying your name, context is filling up and earlier rules are getting dropped
๐Ÿ› ๏ธ What to doCompact 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:

โš ๏ธ 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:

HabitResult
One long thread for everythingContext fills fast, instructions drift, answers get muddy
Fresh context per taskSharp, 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:

๐Ÿ’ก Every token you don't paste is context Claude keeps for following your instructions instead.

๐Ÿ“‹ Quick Reference

TipOne-Liner
1. Name trickYour name disappearing = drift detector
2. Lean CLAUDE.mdEvery rule costs context in every session
3. Clear between tasksOne chat = one job
4. Handoff docCompress the old chat before starting fresh
5. Snippets, not dumpsPaste 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.