Claude Code 2.1.248 adds --restricted sandbox mode, removes a dozen env vars
ClaudeCodeLog · x · 2026-08-28
Claude Code CLI 2.1.248 highlights:
- New --restricted / CLAUDECODERESTRICTED=1: removes built-in tools that run commands or code plus WebFetch (unless named via --tools), keeps file tools inside the working directory, refuses bypassPermissions, and ignores user/project/local settings — effectively a hardened sandbox mode.
- New env vars including DISABLEAUTOUPDATER, DISABLECOMPACT, SELFHOSTEDRUNNERCLIENTLABEL; claude-3-5-haiku added to models.
- Experimental per-agent cacheTtl ("5m" or "1h") in agent frontmatter.
- Removed a dozen-plus env vars such as CLAUDEBGISOLATION, CLAUDECODEEFFORTLEVEL, and CLAUDECODESHELLPREFIX.
Related event: Claude Code 2.1.248 Adds --restricted Mode and Cache Fixes(2 posts)→
More from coding & agent
- How to hook Claude Code or Codex up to iMessage in 3 steps — jacob_posel · 2026-10-16
- Are the fastest GPU kernels now written by AI? Kernels are hyper-verifiable, argues one dev — fleetwood___ · 2026-10-16
- Anthropic lead engineer's 4-question prompt makes agents more ambitious, now a free skill — daniel_mac8 · 2026-10-16
- Simon Willison builds Chirp Pong: two phones syncing game state via audio chirps, in static HTML — Simon Willison · 2026-10-16
- ChainForge dev shows 'feature map' for orchestrating subagents on large PRs — IanArawjo · 2026-10-16
- aiDotEngineer benchmarks agent orchestration pipelines, staging humans as Foreman and workers — vikvang1 · 2026-10-16