Expand description
Runner abstraction for cross-platform Claude CLI execution
Provides automatic detection and execution of Claude CLI across Windows, WSL, and native environments. Supports automatic detection (try native first, then WSL on Windows) and explicit mode selection.
§Security Model
All process execution goes through CommandSpec to ensure argv-style invocation.
This prevents shell injection attacks by ensuring arguments are passed as discrete
elements rather than shell strings.
Re-exports§
pub use claude::BufferConfig;pub use claude::ClaudeResponse;pub use claude::NdjsonResult;pub use claude::Runner;pub use claude::WslOptions;pub use command_spec::CommandSpec;pub use error::RunnerError;pub use native::NativeRunner;pub use process::ProcessOutput;pub use process::ProcessRunner;pub use ring_buffer::RingBuffer;pub use types::RunnerMode;pub use wsl::WslRunner;
Modules§
- claude
- command_
spec - error
- Error types for runner module
- native
- ndjson
- process
- ring_
buffer - Ring buffer implementation for bounded output capture
- types
- Types used by the runner module
- wsl