Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.98 ·

CLAUDE_CODE_SCRIPT_CAPS Environment Variable

Entry
JSON All of v2.1.98
EntryKind: in v2.1.98,
New FeaturesSection of the release
What

Enforces per-script call limits in subprocess-scrubbed environments to prevent data exfiltration via repeated write operations.

Usage
export CLAUDE_CODE_SCRIPT_CAPS='{"curl": 10, "wget": 5}'
Details
  • JSON object mapping script/command name substrings to maximum call counts
  • Tracks cumulative usage across the session
  • Throws an error when a cap is exceeded: "Script call limit exceeded: X has been called N times (cap: M)"
  • Only active when CLAUDE_CODE_SUBPROCESS_ENV_SCRUB is enabled
  • Designed for untrusted-input workflows where exfiltration prevention is critical
Evidence

Script caps (search for "CLAUDE_CODE_SCRIPT_CAPS" and "Script call limit exceeded")

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

How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeAdded subprocess sandboxing with PID namespace isolation on Linux when CLAUDE_CODE_SUBPROCESS_ENV_SCRUB is set, and CLAUDE_CODE_SCRIPT_CAPS…

See this entry in the whole of v2.1.98 →

Feedback