The context window is the scarce resource Claude Code thinks inside of, and managing it turns out to be the same skill as managing your CLAUDE.md files. This episode covers both halves and the one idea underneath them: a fuller window is a slower, more forgetful, more expensive Claude, not a smarter one. Anthropic frames the whole craft in [Effective context engineering for AI agents](https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents) as finding the smallest set of high-signal tokens that does the job, and we build practical habits around that. First, the mechanics. What's already loaded before you type (system prompt, tools, skills, MCP servers, and your CLAUDE.md), and why long sessions degrade: context rot, the attention budget, the quadratic cost of attention, and lost in the middle. The [context-window docs](https://code.claude.com/docs/en/context-window) ship an interactive walkthrough and the load order we use throughout. Then the workflow. Reading the `/context` meter (including the autocompact buffer it reserves), `/compact` with focus instructions, what survives a compaction versus what silently vanishes, and the `/clear`-versus-`/compact`-versus-fresh-session decision rule. Plus offloading noisy work to a subagent (the docs' own example reads 6,100 tokens and returns 400), and quick memory with the `#` shortcut and `/memory`. Sources: [Manage costs effectively](https://code.claude.com/docs/en/costs). The second half is the [memory hierarchy](https://code.claude.com/docs/en/memory): managed policy, user, project, and local CLAUDE.md files, how they concatenate rather than override, and how Claude discovers them by walking up the directory tree at launch and loading nested subdirectory files on demand. We cover `@`-imports (and why they don't save context), the monorepo pattern with path-scoped rules in `.claude/rules/`, and what belongs in CLAUDE.md versus a skill or a hook. The pitfall: a bloated, stale CLAUDE.md silently eats your window on every turn and you can't see it in the terminal. How to catch it with `/context` and `/memory`, and how to fix it by moving instructions to where they load on demand. Earlier episodes referenced: subagents, skills, hooks, and MCP servers.