Expand description
AgentWatch Core — AI Agent Detection Library
This crate provides the core detection logic for identifying AI coding agents running on a system. It’s used by both the AgentWatch desktop app and CLI.
§Example
use agentwatch_core::{scan_agents, AgentProcess};
let agents = scan_agents().expect("failed to scan");
for agent in agents {
println!("{}: {} ({})", agent.pid, agent.name, agent.vendor);
}Re-exports§
pub use detection::AgentFingerprint;pub use detection::get_agent_db;pub use detection::matches_patterns;pub use detection::generate_session_key;pub use error::Error;pub use error::Result;
Modules§
Structs§
- Agent
Process - Represents a detected AI agent process
- Agent
Stats - Summary statistics for detected agents
Functions§
- calculate_
stats - Calculate summary statistics for a list of agents
- extract_
project - Extract project name from working directory path
- format_
uptime - Format uptime seconds into human-readable string
- scan_
agents - Scan the system for AI coding agents