OptionalclaudePath or name of the Claude Code binary. Resolution order:
claudeBin → process.env.CLAUDE_BIN → "claude".
OptionalextraExtra CLI args inserted before the prompt argument. Use for flags this config does not model directly.
OptionalloggerOptional logger for all diagnostics. Defaults to a no-op logger (silent).
OptionalmodelOptional model identifier passed through as --model <model>.
OptionalreplayWhat to do when a --resumed session has vanished server-side.
false (default): reject the turn with an actionable error naming this
flag. Fail-loudly is the default because the alternative is a silent
modality change (see below) under an eval harness.true: recover in place — evict the dead id and re-run the SAME turn from
the full transcript against a fresh session.The recovery re-flattens the whole conversation into a role: content
prompt for a NEW session, so it loses server-side session state (context
cache, tool state): the turn is no longer a true --resume continuation.
Enable it only when surviving a lost session matters more than that
fidelity.
OptionalskillOptional absolute path to a SKILL.md to inject into the working
directory before the CLI runs (see injectSkill). When omitted, no skill
injection occurs.
OptionalskipWhen true, passes --dangerously-skip-permissions. Never passed
otherwise. Off by default.
OptionaltimeoutPer-call timeout in milliseconds. On exceed, the child is killed and
call rejects with a timeout error.
Directory the Claude Code CLI is spawned in (its cwd). Files Claude reads
or writes are resolved relative to this.
Configuration for ClaudeCodeAgentAdapter.