Claude Code v2.1.267: Prompt Cache Fixes, Effort Caps, and Security Patches
Anthropic released Claude Code v2.1.267 on September 9th. This patch focuses on prompt-cache reliability, model effort caps, and a security fix for marketplace paths on macOS and Linux. If you're hitting cache misses or using MCP servers with dynamic tools, this update is worth reading.
New Settings and Flags
maxEffortLevel: a new top-level or per-model setting (undermodelSettings) that caps the effort level on every provider, including Bedrock, Vertex, and Foundry. Users can still select a lower level, but can't exceed the cap.--system-prompt-snapshot off: renders the system prompt fresh on each request instead of reusing the conversation's recorded prompt — useful when iterating on prompt text.
Prompt Cache and Session Reliability
The release fixes multiple scenarios that caused prompt-cache misses or dropped context:
- A background worker forked from a conversation no longer adds
EnterWorktreeto the tool block mid-session. - Mid-session MCP and plugin tools are now deferred in sessions without ToolSearch, preserving cache reuse.
- Switching models with
/modelno longer re-sends every tool definition (previous cache miss). Commit and PR attribution now arrives as a conversation note that updates on model changes. - Resumed sessions no longer rewrite the inline tool set when an MCP connector reconnects at a different time.
- Resumed sessions now replay recorded tool descriptions instead of re-rendering them on the first turn.
- Prompt-cache misses and dropped extended thinking are fixed when a claude.ai connector's tools change between a session and its resume.
- Resumed sessions no longer rewrite earlier MCP tool announcements before connectors reconnect.
- A
-pconversation resumed interactively no longer breaks cache by changing the system prompt prefix. - Earlier reasoning is no longer dropped when an MCP server re-sends a tool the model already loaded.
- If a tool disappears mid-conversation (due to MCP disconnect or upgrade), the tool list is no longer rewritten, discarding earlier thinking.
Security and Auth Fixes
- Fixed a macOS/Linux containment bypass where a marketplace entry path containing a backslash could escape the check for fetched marketplaces.
- Managed settings for
allowedHttpHookUrls,httpHookAllowedEnvVars, andallowedChannelPluginsnow admit nothing when unreadable, instead of everything. - Expired AWS/Google Cloud credentials no longer retry ten times with generic errors before showing the re-authenticate prompt.
/loginEsc behavior is corrected for machines requiring gateway sign-in.claude remote-controlnow re-registers when the server credential expires, avoiding dropped sessions.
Other Fixes
/contextand other local commands render properly on mobile clients.- Shift+Enter and option+backspace work again after resuming a tmux/ssh session in agent view.
- The dim last-prompt header shows when scrolling up in fullscreen mode.
- Artifact publishes retry once after a dropped connection instead of reporting an unknown outcome.
- Artifact publish errors now include line/column when the page file isn't valid UTF-8 or contains U+FFFD.
effort:frontmatter on custom commands, skills, and subagents is now honored on models with pinned default effort (Opus 4.7, Opus 4.8, Fable 5).- The
/diffpanel no longer flashes “0 files changed” before settling, and its empty state is centered.
Who Should Update
Teams heavily using MCP servers, resuming long sessions, or managing remote control sessions will see immediate improvements in reliability and cache efficiency. The marketplace path fix is important for security-sensitive environments.
📖 Read the full source: GitHub Claude-Code
👀 See Also

Logira: eBPF Runtime Auditing for AI Agent Runs
Logira is an observe-only Linux CLI tool that records exec, file, and network events via eBPF during AI agent runs, with per-run local storage in JSONL and SQLite and built-in detection rules for credential access, persistence changes, and suspicious patterns.

Local Qwen Models Achieve Browser Automation with Stepwise Planning and Compact DOM
A developer found small local LLMs like Qwen 8B and 4B succeed at browser automation using stepwise planning instead of upfront multi-step plans, combined with a compact semantic DOM representation that reduces token usage from 50-100K+ to ~15K for full flows.

Sitefire Automates AI Search Optimization with Content Agents
Sitefire's platform monitors AI search results, analyzes which pages get cited, and uses content agents to draft improvements or create new pages that get pushed directly to clients' CMS. One client saw AI bot requests increase from ~200/day to ~570/day within ten days.

Local PII Redaction Skill for OpenClaw Uses GLiNER Model
A new OpenClaw skill intercepts outgoing responses and runs them through the local nvidia/gliner-PII model to detect and redact sensitive information like API keys and PII, replacing them with labels like [API_KEY] and adding removal notices.