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.
--toolsClaude Code changelogmodified, 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 toolsee the edit
--flagRun Claude Code behind a corporate launchermodified, 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 sinceA 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-referencesee the edit
Confirmed sinceAnthropic'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-sessionchangelogsee the edit
Confirmed sinceAnthropic'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-referencesee the edit
Added sinceA 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…headlesssee 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…