Claude Code 2.1.248 Adds --restricted Mode, Fixes Prompt-Cache Bug Dropping Thinking Context
ClaudeCodeLog · x · 2026-08-28
Claude Code CLI 2.1.248 is out with 49 changes.
Highlights:
- New --restricted flag (CLAUDECODERESTRICTED=1): removes built-in command/code execution tools and WebFetch (unless named via --tools), confines file tools to the working directory, refuses bypassPermissions, and ignores user/project/local settings files.
- experimental.cacheTtl ("5m" or "1h") in agent frontmatter for per-agent prompt cache TTL.
- claude self-hosted-runner --client-label to override the runner's registration label.
- Server-managed settings diagnostics: startup warning plus /doctor and /status explanations when settings fail to load (Bedrock/Vertex/third-party, custom ANTHROPICBASEURL).
- SendMessage/ListAgents now works on Bedrock/Vertex/Foundry with telemetry off, enabling same-machine agent messaging.
- Notable fix: a prompt-cache bug that dropped extended-thinking context every hour — breaking continuity in long sessions — is resolved.
Related event: Claude Code 2.1.248 Adds --restricted Mode and Cache Fixes(2 posts)→
More from coding & agent
- Left to Solve puts 52,979 open math problems up for AI agents, with Lean checking proofs — FinanceYF5 · 2026-11-30
- Left to Solve: 46,309 Open Math Problems Now Open to AI Agents, Verified by Lean — FinanceYF5 · 2026-11-30
- Ex-Citadel MD: AI will automate equity long-short workflows within 3 years; job seekers should build eval suites — _AustinCalvert_ · 2026-11-30
- Why Google bans users: wrapping Gemini CLI in Claude Code violates consumer ToS — thomasahle · 2026-11-30
- After two Claude account bans, a dev switches to Google AI and moves his Anthropic stock bets to Google — yangyi · 2026-11-30
- Antigravity remote control may not be enabled for enterprise accounts — gharik · 2026-11-30