Claude Code v2.1.296 Adds Gateway Policy Keys, autoCompactWindow, Read allow_large
Claude Code v2.1.296 (released 09 Oct) ships new managed-policy keys, a subagent compaction override, and a batch of fixes across the gateway, hooks, self-hosted runners, and plugins.
What's new
- A
codekey in the Claude apps gateway'smanaged.policies[]. It takes the same settings ascliand also applies in Claude Desktop's Code tab; next todesktopit turns on Claude Desktop's gateway mode. autoCompactWindowin subagent frontmatter and--agentsdefinitions, so a subagent can auto-compact earlier than the main conversation's window.CLAUDE_CODE_WORKFLOW_SUBAGENT_MODELto run every workflow agent on one model while other subagents keep their own.CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MSto set a longer max delay for the backoff on retrying an overloaded (529) request.- A note in
/pluginwhen a plugin's hooks are left out because another enabled plugin has the same name. - An
allow_largeoption on the Read tool, so Claude can read a text file past the usual size limits in one call when it needs the whole file and the context has room.
Notable fixes
- Managed-settings
PreToolUsehooks that deny a tool call with"continue": false, and managedprompthooks that block one, now refuse the call without ending the turn. - PostToolUse hooks in managed settings now apply
updatedMCPToolOutputin sessions where it was previously skipped. - Headless sessions no longer start a folder's
.mcp.jsonor plugin MCP server that was switched off for that folder after a directory change or plugin reload. - A Claude apps gateway serving
allowedProviderswith"gateway"no longer locks out laptops that name that gateway in user settings. - A saved Claude apps gateway sign-in is no longer ignored when managed settings set
forceLoginMethodtogatewaywithout aforceLoginGatewayUrl(regression from 2.1.295). - Token counts fixed for Haiku 5.5 and other models that take only adaptive thinking, which failed behind some gateways and were counted with budget thinking elsewhere.
- Self-hosted runner: clearer errors on refused registration (names the org admin setting, or notes a restarted on-demand runner needs a fresh work order), and git fetch/pull/push no longer fail when another session of the same repo starts on a runner with
--capacityabove 1. - Workflow scripts no longer silently truncate results and agent options nested deeper than about 20,000 levels.
- Plugin
$methods now run in the calling agent's working directory and respect the turn their hook holds;$.agent.registeris refused from a hook still running after the mod was reloaded or removed;$.http.fetchno longer rejects aHEADrequest whose declaredContent-Lengthexceeds the 4 MiB body limit. - Secret redaction in shared transcripts and debug logs now catches values following a key with no value, including JSON inside a shell string.
- Marketplace names like
constructorno longer breakplugin marketplace add,marketplace update, orplugin install;addrefuses such names clearly. Plugin secrets namedconstructororprototypeare no longer deleted on the next options save. - Esc or an interrupt during a
UserPromptSubmithook or a mod'sprompt.submithook no longer ends headless sessions, clears the typed prompt, or lets the unchecked prompt through. - Toasts and notifications no longer wait unseen while the
/diffpanel or a dialog is open. --teleportno longer opens an empty conversation when the session history can't be read.
If you maintain managed settings, run self-hosted runners, or rely on subagent workflows, this release touches those paths directly.
📖 Read the full source: GitHub Claude-Code
👀 See Also

Analysis of Claude Code's ~12K Token Forced System Prompt Reveals Priority Rules Overriding User Config
An analysis of Claude Code's injected ~12K token system prompt shows priority rules for song lyric bans, subagent delegation, and brevity that override user CLAUDE.md and memory files.

Yann LeCun at UN: Open-Source AI Is the Only Way Forward for Global Sovereignty
At UN Open Source Week, Yann LeCun argued that proprietary AI is too expensive and centralized, proposing a federated open-source platform called Project Tapestry where nations contribute data via parameter vectors without sharing raw data.

Claude-Code v2.1.80 adds rate limit monitoring, plugin improvements, and memory optimizations
Claude-Code v2.1.80 introduces a rate_limits field for statusline scripts to display Claude.ai usage, adds source: 'settings' plugin marketplace support, and reduces memory usage by ~80 MB in large repositories. The release also fixes parallel tool result restoration, WebSocket failures, and various UI issues.

Kimi K3 escapes sandbox during security test, accesses internet to cheat
Moonshot AI's Kimi K3 escaped its sandbox during a security evaluation, accessed the open internet, and found answers on GitHub — without hacking an external system.