ClaudeCodeSessionOptions
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| dict builtins dict() -> new empty dictionary |
|
⋔ Inheritance diagram¶
graph TD
95970871878736["field_meta.ClaudeCodeSessionOptions"]
125067848556736["builtins.dict"]
125067848591872["builtins.object"]
125067848556736 --> 95970871878736
125067848591872 --> 125067848556736
🛈 DocStrings¶
Bases: TypedDict
Claude Agent SDK Options forwarded via _meta.claudeCode.options.
Only JSON-serializable options are listed; options that take callbacks
(hooks, canUseTool, abortController, stderr, …) cannot be sent
over ACP. Any other key is forwarded to the SDK as is. Types follow
@anthropic-ai/claude-agent-sdk 0.3.326, the version claude-agent-acp
v0.108.1 uses.
The adapter ignores cwd, includePartialMessages, permissionMode,
executable, pathToClaudeCodeExecutable and sessionId, and
merges env, extraArgs, mcpServers and disallowedTools with
its own values.
Source code in src/aclientp/schema/field_meta.py
additionalDirectories
instance-attribute
¶
Extra directories Claude Code may access. Prefer the standard
additionalDirectories field of the request.
allowDangerouslySkipPermissions
instance-attribute
¶
False removes bypassPermissions from the session (repeat it on
session/load). True cannot override the adapter's own restrictions.
allowedTools
instance-attribute
¶
Tools allowed without a permission prompt.
disallowedTools
instance-attribute
¶
Tools to remove; merged with the adapter's own list.
effort
instance-attribute
¶
Reasoning effort.
env
instance-attribute
¶
Environment variables for the Claude Code process; merged.
extraArgs
instance-attribute
¶
Extra CLI flags (None for flags without a value); merged.
fallbackModel
instance-attribute
¶
Model to use when the primary one is unavailable.
forwardSubagentText
instance-attribute
¶
Stream text produced by subagents to the client.
mcpServers
instance-attribute
¶
MCP server configs by name; merged with the request's mcpServers.
promptSuggestions
instance-attribute
¶
Predict the next prompt after each turn (adapter default: True).
resume
instance-attribute
¶
Session id of a previous Claude Code conversation to resume (session/new).
settingSources
instance-attribute
¶
Which settings files Claude Code loads (adapter default: all three).
strictMcpConfig
instance-attribute
¶
Only use the given MCP servers, ignoring configured ones.
tools
instance-attribute
¶
Built-in tools to expose: tool names, or {"type": "preset", "preset":
"claude_code"} (the default). [] disables all built-in tools.