Skip to main content

Module llm_spawn_backend

Module llm_spawn_backend 

Source
Expand description

Shared LLM CLI spawn backend surface (GAP-SG-126).

Thin trait covering the common binary-resolution and child-spawn entry points used by claude_runner and codex_spawn. Full command construction, OAuth guards, and output parsing stay in the per-backend command modules; this module only extracts the duplicated adapter surface so call sites can depend on a single trait instead of ad-hoc which + Command::new pairs.

Prefer compile-green, minimal surface area over a full spawn redesign.

Structs§

ClaudeSpawnBackend
Claude Code (claude) spawn backend stub.
CodexSpawnBackend
Codex CLI (codex) spawn backend stub.
OpencodeSpawnBackend
OpenCode headless (opencode) spawn backend stub.

Traits§

LlmSpawnBackend
Common surface for LLM CLI spawn adapters (claude, codex, …).