OptionalabortController
abortController?: AbortController
OptionaladditionalDirectories
additionalDirectories?: string[]
OptionalappendSystemPrompt
appendSystemPrompt?: string
canUseTool?: (
toolName: string,
input: Record<string, unknown>,
options: { signal: AbortSignal },
) => Promise<
{ behavior: "allow"
| "deny"; message?: string; updatedInput?: unknown },
>
Optionalcontinue
continue?: boolean
disallowedTools?: string[]
Optionalenv
env?: Record<string, string>
Optionalexecutable
executable?: "bun" | "deno" | "node"
OptionalexecutableArgs
executableArgs?: string[]
extraArgs?: Record<string, null | string>
OptionalfallbackModel
fallbackModel?: string
OptionalmaxThinkingTokens
maxThinkingTokens?: number
OptionalmaxTurns
maxTurns?: number
Optionalmodel
model?: string
OptionalpathToClaudeCodeExecutable
pathToClaudeCodeExecutable?: string
permissionPromptToolName?: string
Optionalresume
resume?: string
Optionalstderr
stderr?: (data: string) => void
OptionalstrictMcpConfig
strictMcpConfig?: boolean
OptionalsystemPrompt
systemPrompt?:
| string
| { append?: string; preset: "claude_code"; type: "preset" }