# Claude Code 2.1.333: Pass allowedTools as One Value Before You Upgrade CI

Claude Code 2.1.333 (30 November 2026) can stop the launch when --allowedTools or --tools gets a list as several values, ends SDK background commands once the host is gone, and stops re-attaching uploaded files after compaction. Join tool lists into one comma-separated value in CI before you upgrade.

By Neomanex. Updated 2026-12-01.

Upgrade CI last, not first. [Claude Code](/directory/claude-code) 2.1.333, dated 30 November 2026, changes how `--allowedTools` and `--tools` read their lists, and a script that passes the list as several arguments can now fail before the session starts. Our directory verdict on Claude Code stays **Conditional**: this release is worth taking, on the condition that you fix your launch flags and SDK host assumptions first. The changelog counts 32 improvements and 163 bug fixes; below are the ones that need action.

## What happened

Anthropic shipped 2.1.333 with five behaviour changes that can break an existing setup:

- **Tool lists.** "Changed `--allowedTools` and `--tools` to stop the launch on some lists given as several values; put the list in one value, such as `--allowedTools "Read,Edit,Write"`". The changelog says "some lists", not every multi-value list, so test yours rather than assume.
- **SDK background work.** "Changed SDK sessions to end background commands, monitors and wakeups once the host is gone and no subagent runs; `CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0` opts out; stream-json adds `keep_alive` lines".
- **Compaction.** "Changed compaction so that uploaded files, downloads and saved tool results are no longer re-attached afterwards; Claude can read them again when it needs them".
- **Mods.** "Changed what `/compact` prints to reach `session.append` by door `compaction`; this breaks mods that match `/compact`'s output on door `command`".
- **VS Code links.** "Changed `vscode://anthropic.claude-code/open` links to refuse prompts over 5,000 characters".

It also adds three things worth knowing:

- **Gateway spend limits.** "Added `error.details.error_code: spend_limit_reached` to the 429 for a user's reached spend limit".
- **Code review.** "Added REVIEW.md support to `/code-review`: local reviews now follow the root REVIEW.md on your repository's default branch".
- **Plugins.** "Added a Built-in tab to `/plugin` that lists built-in plugins by group with plain names, and shows the ones your organization's settings lock on or off".

## Why it matters

The tool-list change is the one that bites silently in automation: a pipeline that worked on the previous version can stop at launch with no code change on your side. The SDK change matters for hosts that fire off background commands and exit, expecting the work to finish without them; that work now ends unless you opt out. Hosts that parse stream-json will also see new `keep_alive` lines.

Three fixes carry a safety angle:

- "Fixed an `asyncRewake` hook that keeps exiting quickly with code 2 waking Claude in an endless loop; wakes now stop after 8 in a row (`CLAUDE_CODE_STOP_HOOK_BLOCK_CAP` changes it)".
- "Fixed Claude Code exiting with no message in fullscreen mode, and background sessions showing no reason, when `sandbox.failIfUnavailable` is set and the sandbox can't start".
- "Fixed tap-mode and auto-submit dictation in `!` mode running your words as a shell command as soon as they were transcribed". If you dictate in shell mode, this is the release that stops spoken words running as commands.

The changelog names no CVE or advisory for any of these.

## What changes for you

- **CI and scripts:** rewrite every `--allowedTools` or `--tools` call into one comma-separated value, for example `--allowedTools "Read,Edit,Write"`, then upgrade.
- **SDK hosts:** if background commands must outlive the host, set `CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0`, and make your stream-json parser tolerate `keep_alive` lines.
- **Mod authors:** move any match on `/compact` output from door `command` to door `compaction`.
- **Gateway clients:** treat `spend_limit_reached` on a 429 as a spend cap, not a rate limit, so retries do not loop.
- **Long sessions:** after compaction, expect Claude to re-read uploaded files and saved tool results on demand instead of carrying them forward.

## FAQ

**Does every multi-value tool list break?** No. The changelog says the launch stops on "some lists" given as several values. One comma-separated value is the documented safe form.

**Can I keep the old SDK background behaviour?** Yes. `CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0` opts out of ending background commands when the host is gone.

Canonical: https://neomanex.com/news/claude-code-2-1-333-allowedtools-one-value-sdk-background-commands-compaction
