@langwatch/scenario
    Preparing search index...

    Interface ClaudeCodeAgentAdapterConfig

    Configuration for ClaudeCodeAgentAdapter.

    interface ClaudeCodeAgentAdapterConfig {
        claudeBin?: string;
        extraArgs?: string[];
        logger?: Logger;
        model?: string;
        replayOnLostSession?: boolean;
        skillPath?: string;
        skipPermissions?: boolean;
        timeout?: number;
        workingDirectory: string;
    }
    Index
    claudeBin?: string

    Path or name of the Claude Code binary. Resolution order: claudeBinprocess.env.CLAUDE_BIN"claude".

    extraArgs?: string[]

    Extra CLI args inserted before the prompt argument. Use for flags this config does not model directly.

    logger?: Logger

    Optional logger for all diagnostics. Defaults to a no-op logger (silent).

    model?: string

    Optional model identifier passed through as --model <model>.

    replayOnLostSession?: boolean

    What 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.

    false
    
    skillPath?: string

    Optional absolute path to a SKILL.md to inject into the working directory before the CLI runs (see injectSkill). When omitted, no skill injection occurs.

    skipPermissions?: boolean

    When true, passes --dangerously-skip-permissions. Never passed otherwise. Off by default.

    timeout?: number

    Per-call timeout in milliseconds. On exceed, the child is killed and call rejects with a timeout error.

    120000
    
    workingDirectory: string

    Directory the Claude Code CLI is spawned in (its cwd). Files Claude reads or writes are resolved relative to this.