Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.248 Home All releases olderv2.1.247 v2.1.250newer
Claude Code v2.1.248

Restricted sessions handled the same way whether set by flag or environment

Use it now
Useful4 Signal3
Restricted Sessions Notable

Setting CLAUDE_CODE_RESTRICTED now restricts a session exactly as --restricted does.

CLAUDE_CODE_RESTRICTED--restricted
What

The check that decides how session options such as permission mode, model, fallback model, effort, agent list, settings and appended system prompt are handled now also trips when CLAUDE_CODE_RESTRICTED is set in the environment, not only via --restricted. A new message states that cloud sessions cannot be created from a restricted session because they would not enforce the restriction.

Evidence

Cloud sessions cannot be created from a --restricted session: they would not enforce it.

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.248 →