Help center

#Context

4 guides tagged Context.

Stop running one giant chat: manage context in Claude Code
A long-running Claude Code session gets slower, pricier, and less accurate. Here is how I keep context lean, and the truth about what a big context window actually costs.
How-to
/clear, /compact, or a new session: when to reset Claude Code
Claude Code gives you two ways to trim a session and a third option to start over. Here is what /clear and /compact each do, and a simple rule for choosing.
How-to
Write a CLAUDE.md that stops you repeating yourself
A good CLAUDE.md is project memory: say the durable facts once and Claude Code loads them every session. Here is what to put in it, what to leave out, and why it saves both tokens and mistakes.
How-to
Context rot: why a long Claude Code chat gives worse answers
Claude Code does get worse as a session grows, and it is not your imagination. Here is what context rot is, why it happens, and why pasting everything backfires.
Reference