If you run Claude Code behind a gateway or on Bedrock or Vertex, this release adds the Monitor tool and fixes request failures and a Windows hook bypass that let tool calls through.
Key takeaways · AI-distilled
Claude Code v2.1.310 brings the Monitor tool and plugin monitors to Bedrock, Vertex and Foundry, and to setups with telemetry or nonessential traffic disabled, while also blocking long foreground sleeps there.
Requests behind gateways that reject the effort-2025-11-24 beta value or mid-conversation system messages no longer just fail: Claude Code retries without them.
On Windows, PreToolUse and PermissionRequest hooks could let a tool call through when Git Bash was missing and the agent hookA script the harness runs automatically at a fixed point in an agent's loop — before a tool call, after an edit, on session start.Full definition → command was only quoted strings; this release fixes that gap.
context compactionSummarizing an agent's earlier conversation to free room in the context window so a long session can keep going.Full definition → after a "Prompt is too long" error now trims dense text such as base64 or SVG properly, where it previously kept so much that the next request could fail again.
Terms in this piece · Glossary
context compaction — Summarizing an agent's earlier conversation to free room in the context window so a long session can keep going.
agent hook — A script the harness runs automatically at a fixed point in an agent's loop — before a tool call, after an edit, on session start.