Prompt caching in Claude Code: what breaks the cache and what's safe
Switching model, effort, fast mode, MCP servers or /compact breaks the cache; editing files, modes and rewinding don't. Plus 5-minute/1-hour TTLs and /usage.
Everything about Claude Code: commands, CLAUDE.md, hooks, plugins, saving tokens. · 35 articles
Switching model, effort, fast mode, MCP servers or /compact breaks the cache; editing files, modes and rewinding don't. Plus 5-minute/1-hour TTLs and /usage.
How auto memory differs from CLAUDE.md, the four note types, MEMORY.md's 200-line/25KB load limit, toggling it, relocating it, and token and security caveats.
The four built-in styles (Proactive, Concise, Explanatory, Learning), switching, custom styles, and styles vs CLAUDE.md, skills, hooks.
Permission modes, rule syntax for Bash, Read, WebFetch and MCP, the deny → ask → allow order, and the limits of Bash rules you need to know.
Adding stdio/HTTP MCP servers, the three scopes and precedence, sharing .mcp.json without secrets, approving project servers.
Continue a local Claude Code session from the Claude app or a browser: three ways to start, server mode, worktrees, no inbound ports.
Connect Claude Code to Chrome via the Claude in Chrome extension: console debugging, form testing, data extraction, site permissions and risks.
Auto mode uses a classifier to review each action: default blocks, how to enable it, autoMode settings, cost, and when you still need deny rules.
Turn on the sandboxed Bash tool: Seatbelt, bubblewrap, allowedDomains, denyRead, excludedCommands and pitfalls to avoid.
Claude's managed PR review for Team/Enterprise: find-verify-rank-post, Quick/Standard/Deep levels, REVIEW.md, and how it compares with other review options.
Workflows are JavaScript scripts orchestrating subagents at scale: /deep-research, the ultracode keyword, /workflows, limits and cost.
Pair a fast main model with a stronger advisor in Claude Code: enabling /advisor, model pairings, cost, limits and how it compares with opusplan.
Enable computer-use via /mcp so Claude can test native apps, simulators and layout bugs: macOS permissions, per-app approval, safeguards and risks.
Set up a Claude Code status line with /statusline or a jq script to show context %, session cost, 5-hour limit and effort, and save tokens.
Automatic checkpoints before every prompt; /rewind restores code, conversation, or summarizes to free context. What checkpoints don't track.
claude --worktree gives each session its own checkout; .worktreeinclude copies .env files; subagent isolation: worktree; cleanup rules.
Plugins bundle skills, subagents, hooks and MCP into one /plugin install. Install scopes, marketplaces, per-turn context cost and security.
The andrej-karpathy-skills repo explained: four principles that make Claude Code guess less, write less, and produce cleaner diffs. Setup and tradeoffs.
Clear between tasks, pick the right model and effort, prefer CLIs over MCP, slim CLAUDE.md, filter output with hooks, delegate noisy work, be specific.
Seven reasons usage climbs in long sessions, how to read cache stats in /usage, the f fix shortcut, and telling the different limit messages apart.
Without something to run, you are the test suite. Four levels of verification from prompt to Stop hook, and when a CLAUDE.md line should become a hook.
CLAUDE.md loads every session, so length hurts. A two-question test, a lean template, and when to use rules, skills or hooks instead.
Prompt tips from the best practices: symptoms and definition of done, @file and pipes, “be ambitious”, and an interview prompt that yields SPEC.md.
Commands in .claude/commands, frontmatter, $ARGUMENTS/$0 arguments, shell injection with !`cmd`, and narrow allowed-tools.
Turning on plan mode (Shift+Tab, /plan, defaultMode), the approval flow, editing plans with Ctrl+G and when to use it.
Every Claude Code subagent can run its own model. Configure it well and you save tokens without losing quality.
One lead coordinates, teammates have their own context, share a task list and message each other directly. Experimental, powerful, token-hungry.
CLAUDE.md is advice; hooks are law. Scripts run at fixed points in the agent loop, so the result is guaranteed.
Not just a terminal chat — headless mode turns Claude Code into a CLI command you can drop into automated pipelines.
Anthropic's official action runs on your own runner: automated PR review, issue triage, docs sync, scheduled maintenance.
Since 2.1.277, if a folder has no CLAUDE.md, Claude Code uses AGENTS.md — the open format already used by Codex, Cursor and others.
Claude Code, Cursor and Devin share the same “harness”: think → call a tool → observe → repeat. Understanding the loop makes you better at using agents.
Every iteration resends the whole context. If iterations are spaced longer than the prompt cache lives, each one pays full price.
Installed Claude Code — now what? This open-source repo goes from slash commands to plugins, with diagrams, templates and self-check quizzes.
A session sidebar, the /btw command, automatic sub-tasks and saved Environments — four changes that make multi-threaded work easier.
Try another keyword or clear the topic filter.
Follow binhAI via RSS (Feedly, Inoreader, Slack…) to get new articles as soon as they’re published.