• Spawn the claude CLI with given arguments in interactive mode. Uses async spawn so the event loop keeps running — critical on Windows after the Ink TUI, where spawnSync inherits a console handle whose input mode hasn't fully settled yet (keyboard input never reaches the child).

    Parameters

    • args: string[]
    • OptionalcliPath: string
    • Optionalcwd: string

    Returns Promise<null | number>