1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Agent detection and hook management.
//!
//! This module provides automatic detection of installed AI coding agents
//! and idempotent hook configuration for each supported agent.
//!
//! # Supported Agents
//!
//! | Agent | Hook Support | Detection |
//! |-------|--------------|-----------|
//! | Claude Code | PreToolUse (JSON) | Full |
//! | Gemini CLI | pre_tool_use (JSON) | Full |
//! | Codex CLI | Hooks (TOML) | Full |
//! | Cursor | Unknown | Detection only |
//! | Continue.dev | config.json | Partial |
//! | Windsurf | Unknown | Detection only |
//! | Aider | None | Detection only |
//! | Cline | Unknown | Detection only |
//!
//! # Example
//!
//! ```no_run
//! use rch::agent::{detect_agents, AgentKind};
//!
//! let agents = detect_agents()?;
//! for agent in agents {
//! println!("{}: {}", agent.kind.name(), agent.version.as_deref().unwrap_or("unknown"));
//! }
//! # Ok::<(), anyhow::Error>(())
//! ```
pub use ;
pub use ;
pub use ;