v2.1.117

Description

Claude Code version 2.1.117 (April 21, 2026). Adds CLAUDE_CODE_FORK_SUBAGENT=1 env var to enable forked subagents on external builds (previously production-internal only). Agent frontmatter mcpServers now loaded for main-thread sessions via --agent. Critical fix: Opus 4.7 sessions were computing context percentages against a 200K window instead of the native 1M, causing autocompact to fire at ~20% actual utilization — now correctly uses the 1M window. Model selection persists across restarts.

Key claims

Relations

Sources

src-20260423-542f02260352