# Claude Code 2.1.248

By Steven Van · 2026-08-27

Added --restricted (or CLAUDE\_CODE\_RESTRICTED=1): removes the built-in tools that run commands or code and WebFetch (unless named in --tools), keeps file…

[Claude Code](<https://creatorstoolbox.com/tools/claude-code>) 2.1.248 adds a locked-down mode for running the tool in less trusted environments, along with several smaller changes for enterprise admins and agent authors, detailed in the [changelog](<https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#21248>).

- A new **--restricted** flag (or CLAUDE\_CODE\_RESTRICTED=1) removes the built-in tools that run commands or code and WebFetch, unless those tools are explicitly named in --tools. It also keeps file tools confined to the working directory, refuses bypassPermissions, and ignores user, project and local settings files.

- Agent frontmatter can now set **experimental.cacheTtl** to "5m" or "1h", giving each agent its own prompt cache TTL when no subagent TTL setting is configured.

- claude self-hosted-runner gains a **--client-label** flag (or SELF\_HOSTED\_RUNNER\_CLIENT\_LABEL) to override the label the runner registers with, which otherwise defaults to the hostname.

- Server-managed settings now get diagnostics: a startup warning when they fail to load, and a line in /doctor and /status explaining a load failure or why they weren't fetched, covering Bedrock, Vertex, third-party providers and custom ANTHROPIC\_BASE\_URL setups.

- /web-setup now warns when the GitHub CLI token lacks the workflow scope, since pushes to very large repositories can otherwise be rejected.

- **/usage-credits** lets members of Enterprise organizations billed through AWS Marketplace, self-serve Enterprise and Enterprise trials request a higher usage limit from their admin.

- Agents can now message across sessions via **SendMessage** and **ListAgents**.

[![](<https://opengraph.githubassets.com/1c44a02e32016a621b4346fffa25e1736ef65afb7e0e26fa3286b45462f5e78d/anthropics/claude-code>)](<https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#21248>)

![Claude Code](<https://www.google.com/s2/favicons?domain=claude.com&sz=128>)

Claude Code

Anthropic's agentic coding tool — Claude in your terminal, IDE, desktop app and browser, reading and editing your codebase, running commands, opening pull requests and working on tasks in the cloud.

[View Claude Code →](<https://creatorstoolbox.com/tools/claude-code>)

Sources

[Original source](<https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#21248>)

[Read Claude Code 2.1.248 on Creators Toolbox](<https://creatorstoolbox.com/blog/claude-code-claude-code-2-1-248>)

---
Canonical source: https://creatorstoolbox.com/blog/claude-code-claude-code-2-1-248
