Skip to main content

Crate agentwatch_core

Crate agentwatch_core 

Source
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§

detection
error
Error types for AgentWatch Core

Structs§

AgentProcess
Represents a detected AI agent process
AgentStats
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