Skip to main content

select

Function select 

Source
pub fn select(command: &[String], _cwd: &Path) -> Option<Box<dyn Adapter>>
Expand description

Detect which adapter applies to command (FR-1.5). Returns None for a generic agent (PTY-only capture). Detection order: Claude Code, Claude Desktop, Codex CLI, Gemini CLI — by the basename of command[0]. A forced adapter from hh run --adapter is resolved by the recorder, not here.