Claude Code 2.1.248-2.1.250 add a restricted mode and cross-provider session messaging
Claude Code gains `--restricted`, which drops the tools that run commands and ignores settings files; a per-agent prompt cache TTL; `/usage-credits` for Enterprise limit requests; and cross-session messaging on Bedrock, Vertex, and Foundry.
What does this mean for me?
Plan for it
Engineering leadership
Cost, risk, timeline, team impact Plan for it`--restricted` gives you a supported way to let Claude Code touch untrusted repos or third-party code without shell access — worth writing into your agent policy. Bedrock, Vertex and Foundry teams now get cross-session messaging and `/loop` parity, so provider choice no longer limits capability. Enterprise admins can field limit requests via `/usage-credits`.
Engineer
What to change, what breaks, what to test Worth knowingRun untrusted work with `claude --restricted` (or `CLAUDE_CODE_RESTRICTED=1`): command/code tools are gone, `WebFetch` only if listed in `--tools`, file access is confined to the CWD, `bypassPermissions` is refused, and settings files are ignored. `SendMessage`/`ListAgents` now work on Bedrock, Vertex and Foundry.
General consumer
Using the Claude apps, not the API No impactNothing to do — this is a Claude Code command-line change and does not affect the Claude apps.
The new --restricted flag (or CLAUDE_CODE_RESTRICTED=1) starts a session with the built-in tools that run commands or code removed, along with WebFetch unless it is named in --tools. File tools are confined to the working directory, bypassPermissions is refused, and user, project and local settings files are ignored. It is the strongest built-in confinement Claude Code offers for untrusted work.
Cross-session messaging (SendMessage / ListAgents) between sessions on the same machine now works on Bedrock, Vertex and Foundry, and when telemetry is disabled; /loop’s self-paced dynamic mode and no-prompt autonomous default are likewise now always available on those providers. An invalid crossSessionInbound value is no longer silently ignored: it warns and holds messages under user settings, and refuses them under managed settings. A SendMessage sent from a subagent now says in its result that any reply goes to the parent session’s conversation.
Other additions: experimental.cacheTtl ("5m" or "1h") in agent frontmatter sets a per-agent prompt cache TTL when no subagent TTL setting is configured; claude self-hosted-runner --client-label overrides the label the runner registers with; and /usage-credits lets members of Enterprise organizations billed through AWS Marketplace, self-serve Enterprise, and Enterprise trials ask an admin for a higher usage limit.
Two behaviour changes to note. In the agent view dispatch input, shift+enter now inserts a newline and ctrl+enter dispatches and attaches. Claude Desktop and Cowork sessions no longer disappear after 30 days — transcript cleanup keeps desktop-written sessions while they are in the app, capped by the new desktopSessionCleanupPeriodDays setting unless org policy manages retention. Separately, /ultrareview and locally seeded cloud sessions no longer upload uncommitted prod.env-style and *.tfvars files or editor swap, temp and backup copies of credential files, and the Workflow tool’s description dropped from roughly 5.7k to 1k tokens, with its script-writing reference moved into a bundled workflow-authoring skill.
The changelog carries no dates. Version 2.1.247 was already recorded as of 2026-08-26, and 2.1.248 and 2.1.250 appeared in the 2026-08-27 snapshot, so the entry is dated 2026-08-27; treat the date as approximate.
Topics: Coding tools