Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.295 ·

Agent SDK passes options so values starting with a dash are not misread

The Agent SDK now passes many options as --flag=value, so a value starting with a dash is no longer mistaken for another flag

You'll notice Bug Fixes
JSON All of v2.1.295
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
SDKArea: what it touches
Bug FixesKind: in v2.1.295,
Bug FixesSection of the release
What

The Agent SDK is the library that lets you run Claude Code from your own code. It starts the claude program with a list of options, called flags. It now passes many of those flags with the value joined on, such as --thinking=adaptive, instead of as two separate pieces. For flags including --model, --max-turns, --effort, --mcp-config and --managed-settings:

  • A value longer than one character that starts with - is joined to its flag, as in --max-turns=-1.
  • Any other value is still passed as a separate piece.

An empty --tools list is now passed as --tools= instead of --tools ''.

Why

A value such as a negative number or a string starting with a dash could be mistaken for a separate flag. That can no longer happen. If you wrap or inspect the claude command the SDK runs, expect both spellings.

Read from
Names in the bundle--model--effort--mcp-config
What the documentation says
--tools Claude Code changelog modified, high confidence * Fixed Claude being told to continue or message subagents with `SendMessage` in sessions, including resumed ones, where a host, a permission rule or a `--tools` list removed that tool see the edit
--flag Run Claude Code behind a corporate launcher modified, medium confidence * **Don't depend on how arguments are spelled.** A flag's value can arrive as its own argument, `--flag value`, or joined to the flag, `--flag=value`. Which form a flag uses can change between versions. see the edit
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Added since A small documentation edit on CLI reference touched a line naming --effort after this was published. | `--effort` | Set the [effort level](https://code.claude.com/docs/en/model-config.md#adjust-effort-level) for the current session. Options: `low`, `medium`, `high`, `xhigh`, `max`, or `ultracode`. Available levels depend on the model. `ul… cli-reference see the edit
Confirmed since Anthropic's documentation has since written up --mcp-config, on Claude Code changelog. * Fixed self-hosted runner sessions shutting down MCP servers added through an `--exec-path` wrapper's own `--mcp-config` when connectors change mid-session changelog see the edit
Confirmed since Anthropic's documentation has since written up --effort, on All settings. * **Per-session overrides**: `/effort ultracode` turns ultracode on for one session without this key, and `/effort ultracode off` turns it off for one session when this key is `true`. The `--effort ultracode` flag also turns it on for one … settings-reference see the edit
Confirmed since Anthropic's documentation has since written up --model, on thinking. --model claude-opus-5-5 \ build-with-claude/thinking see the edit
Added since A small documentation edit on Run Claude Code programmatically touched a line naming --mcp-config after this was published. Use the MCP server fields the same way. When you pass [`--mcp-config`](/docs/en/cli-reference#cli-flags) with `-p`, Claude Code waits for still-pending servers before running the first turn, up to the [`MCP_TIMEOUT`](/docs/en/env-vars) sta… headless see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agrees--tools on Claude Code changelog
Anthropic's release notes agreeFixed --tools and --restricted not applying to built-in tools that register after launch, and deprecated tool names reaching tools outside…

See this entry in the whole of v2.1.295 →

Feedback