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
- Left to Solve: 46,309 Open Math Problems Now Open to AI Agents, Verified by Lean — FinanceYF5 · 2026-11-30
- Left to Solve puts 52,979 open math problems up for AI agents, with Lean checking proofs — 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