# Claude Code context and memory habits

> Set up CLAUDE.md, trim what fills the context window, give every task a check and reset between tasks.

Page: https://videotomd.com/b/45K3zHckCnQ/
Tool: Claude Code · Tags: claude-code, context, tokens, evals, claude-md, btw · 519 words, about 675 tokens
Pills: free · checked 2026-10-15 · Claude Code · file tools · shell · on demand · frontier · coding · starting out · building

## Recipe

- Kind: workflow
- Stage: starting out, building
- Loads: on demand
- Works in: Claude Code
- Needs: file tools, shell
- Bring: nothing
- Cost: free
- Model: frontier
- Tested in: not yet
- Checked: 2026-10-15
- For: coding

## Similar
- [The 40-line AGENTS.md that works everywhere](https://videotomd.com/b/text-agents-md-everywhere/): Pick it when Codex, Cursor or other agents share the repo and you want a single 40-line AGENTS.md they all read natively, not habits that only work in Claude Code.
- [Interview, spec and ticket skills for Claude Code](https://videotomd.com/b/4DhcSPkEbwI/): Pick it when step 6 (interview, write SPEC.md, build fresh) is your main need and you want it as an installed skill that also splits the spec into tickets.

## Put it here

Loads on demand: paste or attach it when the task comes up. To have it every session, put it where your tool reads instructions:

- Claude Code: Save as CLAUDE.md in the project root, or .claude/CLAUDE.md. Other agents share the repo: put the shared rules in AGENTS.md and make CLAUDE.md one line, @AGENTS.md. Commit it. Start a new session: the file is read at launch. Reload: new session (or /memory to open the files). Check it loaded: /context lists the Memory files it read; /skills, /agents, /hooks list the rest; the InstructionsLoaded hook event fires once per loaded instruction file. Source: https://code.claude.com/docs/en/memory (checked 2026-10-12).

## Access

Membership: plans at https://videotomd.com/pricing/, or email then a plan at https://videotomd.com/b/45K3zHckCnQ/. A member's browser downloads the file there; an AI without that session needs the member to attach it.
