Unclear How a host program switches these two options on is not known.
What
The Agent SDK is the toolkit programs use to run Claude Code. When it starts Claude Code, the two exchange an "initialize" message before any prompt is sent. Your settings and your deny rules (disallowedTools, the list of tools or tool uses Claude is not allowed to make) can now travel in that message instead of on the command line. Before, only managed settings and MCP servers (managedSettingsDelivery, mcpServersDelivery) could be sent this way.
--initialize-fieldsis a new CLI flag takingsettingsand/ordisallowedTools. It requires--await-initializeand stream-json input, and reads the named values from the initialize request instead of from flags. Passing the same value by its own flag too (--settings,--disallowedTools) is an error.- The initialize request can now carry a
settingsJSON object and adisallowedToolslist of strings. Each is checked when named in--initialize-fields, and a malformed value returns a violation error. settingsDeliveryanddisallowedToolsDeliveryare new SDK options, set to'argv'(the default) or'initialize'. Any other value gives "Invalid settingsDelivery. Expected 'argv' or 'initialize'."settingsViaInitializeanddisallowedToolsViaInitializemake the SDK add--initialize-fields, and the SDK then stops putting--disallowedToolson the command line. The check for whether Claude Code reads initialize at startup now counts these options too.- The initialize response gains
settings_appliedanddisallowed_tools_applied, which say whether the values sent match the ones taken at launch. A host that sent them must not send a prompt until the value is true. - If Claude Code does not confirm them, or does not answer initialize at all, the SDK ends the session with an error and the prompt is not sent.
initialize_fields_not_deliveredis a new startup refusal reason, alongsidemanaged_settings_not_delivered. Claude Code refuses to start when the named fields can't be taken from the initialize request, or when a named field's own flag is also passed.
Why
Programs that run Claude Code can pass settings and deny rules over its input stream instead of the command line. If the values do not arrive, for example against an older Claude Code, the session stops with an error rather than running without your deny rules.
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.
* **Tool access**: `--tools`, `--allowedTools`, `--disallowedTools`sessions see the edit
**Custom Skills** let you package domain expertise and organizational knowledge. Create them in Claude Code, upload them through the [Skills API](https://platform.claude.com/docs/en/build-with-claude/skills-guide), or add them in claude.ai…agents-and-tools/agent-skills/overview see the edit
<template data-mint="manifest">{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Claude.ai Documentation","colors":{"primary":"#0E0E0E","light":"#D4A27F","dark":"#0E0E0E"},"logo":{"light":"https://mintcdn.com…claude-tag see the edit
How a host program switches these two options on is not known.
A small documentation edit on claude-tag touched a line naming settings after this was published.