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

Simplifying Automation with OpenClaw Wrappers
OpenClaw Wrappers offer an efficient way to manage AI coding agents. Discover how these tools integrate easily into existing frameworks with specific command examples and community feedback.

OpenClaw Browser Relay Chrome Extension Alternative to Manual Configs
A Reddit user reports success with a Chrome extension for OpenClaw browser relay after manual configuration attempts caused system crashes and debugging headaches.

Open-Source Benchmark Runner for Testing OpenClaw Agents on Real Workflows
A new open-source project lets you benchmark OpenClaw agents against your own private, real-world tasks defined in YAML, with support for importing actual agent workspaces.

GuppyLM: A 9M Parameter LLM Built from Scratch for Educational Purposes
GuppyLM is a ~9M parameter language model trained from scratch on 60K synthetic conversations, using a vanilla transformer architecture with 6 layers, 384 hidden dimensions, and 6 attention heads. It trains in about 5 minutes on a free Colab T4 GPU and speaks with a fish personality focused on water, food, and tank life.