Skip to main content

detect_clients

Function detect_clients 

Source
pub fn detect_clients(
    scope: ScopeRequest,
    project_root: &Path,
) -> Vec<ConfigTarget>
Expand description

Detect all installed AI coding clients and resolve their config targets.

When scope == Auto, each client first checks for a project-level config in project_root; if none exists it falls back to the global config. Detect non-Claude-Code clients that use JSON-patch approach.

Claude Code is intentionally excluded here — it is handled separately via handle_claude_code_via_cli which calls claude mcp add.