# Anthropic: How To Maximize Your Claude Code <!-- ref: @content/youtube/sean-kochel/anthropic-how-to-maximize-your-claude-code tags: [Claude Code, context management, prompt caching, token cost, subagents, MCP servers, session hygiene] version: 2 updated_at: 2026-11-24T05:13:18.824Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=LWx5jp7eoBE)** # Anthropic: How To Maximize Your Claude Code *Synthesized from Sean Kochel, 2026-08-18.* A solo video in which Sean Kochel walks through six takeaways from an Anthropic article on getting more out of Claude Code sessions. The article is Anthropic's; the selection and commentary are Sean Kochel's. ## Core Thesis Sean Kochel argues that most wasted spend in Claude Code comes from three habits: keeping stale context, breaking the prompt cache, and letting noisy command output land in the main context. He ties each to a concrete habit: clear between tasks, compact early, check the context load, and offload noise to subagents. ## Key Insights - **Clear between tasks.** Use the clear command whenever the next task does not need the previous context, since it removes context you no longer need. - **Compact within the hour.** Prompt caching holds earlier messages, so running compact after an hour of inactivity loses that cache and forces a full reread. He says to compact before the hour passes if you use it at all. - **Check the context load.** The context command shows what loads before the first message. In his example, an Opus 5 window already held 47,000 tokens before any prompt, including 11,000 tokens of memory. - **Prune installed tools.** Skills and MCP servers, often set globally, can push the starting load toward about 100,000 tokens. His own load rose from about 20,000 to 40,000 tokens over two or three weeks, so he recommends a check about once a week. - **Do not change model or effort mid-session.** Switching model or effort level invalidates the cache, so the next message rereads everything at higher cost. If a different model is needed for one task, a subagent is the cleaner route. - **@-mention files.** Mentioning a file directly attaches it to the request, which avoids the search and read calls an agent makes when asked to find a file by name. - **Filter noisy commands in subagents.** Run commands with large output, such as git status with many untracked changes, in a Sonnet or Haiku subagent that returns only the summary to the main session. - **Why it matters.** Heavily subsidised plans hide token cost, but open-source models bill full cost, so random unscoped work will cost more as those models spread. ## Actionable Takeaways 1. Run the clear command between unrelated tasks. 2. Run the compact command within an hour of your last message, or not at all. 3. Run the context command at the start of a project and again about once a week, and delete unneeded memory, skills and MCP servers. 4. Pick the model and effort level before a session starts, and use a subagent for a one-off change. 5. @-mention known files instead of asking the agent to search for them. 6. Send noisy commands to a Haiku or Sonnet subagent and keep only the summary, such as the branch, last five commits and index state. ## Notable Quotes > "use the clear command between tasks." — Sean Kochel --- *Related: `@content/web/github/2026-11-26-interactive-session-misclassified-background-issue-112133` · `@content/youtube/zazencodes/build-your-own-ai-software-factory-with-claude-code` · `@content/youtube/sean-kochel/opus-4-7-is-insanely-powerful-and-insanely-expensive` · `@content/youtube/yifan-bth/how-to-prompt-cursor-windsurf-copilot-to-get-reliable-output` · `@content/youtube/yifan-bth/openai-devday-2024-biggest-takeaways-in-2-minutes`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*