Skip to main content

Module backend

Module backend 

Source
Expand description

Backend abstraction. csd drives claude today and is designed to drive codex later (decision #49: keep the dispatch backend swappable so a forced move off the interactive REPL is a config flip, not a rewrite). Everything release-dependent — the spawn command and the capture-pane gate markers — lives behind this trait in ONE place (PoC gotcha #4).

Structs§

Claude
SpawnOpts
Options needed to build a spawn command. cwd is handled by tmux (-c), not the command itself.

Constants§

CLAUDE_PERMISSION_MODES
Permission modes accepted by claude --permission-mode (PoC §2.1).

Traits§

Backend
A driveable agent CLI.

Functions§

marker_warning
Warning to attach to spawn/state/ps output when the session’s backend version is not in the marker-verified set, so a backend upgrade turns gate-detection drift from a silent stall into a machine-readable signal. CSD_VERIFIED_VERSIONS (comma-separated) extends the built-in set without a csd release once the user re-verifies the markers by hand.
resolve
Resolve a backend by name.