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.
More from coding & agent
- Desktop as Agent 'Second Brain' Replaces Scattered MD Files — draginol · 2026-08-28
- Multi-agent systems may have advantages over single-agent replacements — 841io · 2026-08-28
- M3 Max achieves 70 tok/s locally with 20GB RAM free after 32k task — mayfer · 2026-08-28
- Practitioner take: cross-product MCP workflows are missing; agents could run 60-80% of company ops — pritisinghhhh · 2026-08-28
- Dev newsletter: 'My AI assistant is turning into an operating system' — dSebastien · 2026-08-28
- Grok Bot Tested: Reuses Hermes Patterns, Controls Any API — gregmushen · 2026-08-28