Skip to main content

Module agents

Module agents 

Source
Expand description

Agent detection.

Walks $HOME/ looking for deterministic on-disk traces of supported AI coding agents (Claude Code, GitHub Copilot CLI, Codex CLI, Kimi Code CLI, Cursor, Gemini CLI, Antigravity), and reports a structured snapshot per agent — install status, session count, last-used timestamp, and a score used to pick a primary candidate for devboy onboard.

Architecture: one AgentDetector implementation per agent file, plus a registry::detect_all entrypoint that runs every detector sequentially and returns a sorted AgentSnapshot vector. Each detector is bound on filesystem I/O (a handful of read_dir + metadata calls); the total wall-clock is well under a second on a real machine, so we don’t add a thread pool today.

See ADR-017.

Re-exports§

pub use registry::detect_all;
pub use registry::detect_all_with_home;
pub use score::compute_score;
pub use score::pick_primary;

Modules§

antigravity
Antigravity (Google IDE-agent) detector.
bundles
Skill bundle profiles for devboy onboard.
claude
Claude Code detector.
codex
OpenAI Codex CLI detector.
copilot
GitHub Copilot CLI detector.
cursor
Cursor IDE detector.
gemini
Gemini CLI detector.
kimi
Kimi Code CLI detector.
registry
Registry that runs every per-agent detector and returns sorted snapshots.
score
Score formula and primary-selection logic.

Structs§

AgentSnapshot
One row in the detector’s report.

Enums§

InstallStatus
Whether an agent is installed on the machine.

Traits§

AgentDetector
Trait every per-agent detector implements.