Overview
The Agent Discovery service automatically registers and tracks agents as they send telemetry to the platform. No manual configuration required - agents are discovered from run data and enriched with real-time metrics.Automatic registration
When an agent sends its first run via the ingest endpoint, the platform automatically:- Creates an agent record with
agent_idfrom the run - Tracks first seen and last seen timestamps
- Begins calculating metrics (runs, actions, costs, success rates)
- Monitors intervention and approval rates
Agent endpoints
List agents
agent_id(optional): Filter by agent ID (partial match)sort_by(optional): Sort field -last_seen,first_seen,total_runs,total_cost,intervention_ratesort_order(optional):ascordesc(default:desc)
Get agent details
Get agent statistics
Update agent metadata
Only
display_name and description can be updated. All other fields are automatically calculated from run data.Calculated metrics
The platform automatically calculates:Activity metrics
- Total runs: Count of all runs
- Total actions: Count of all actions across runs
- Total cost: Sum of costs (USD)
- Success rate: Percentage of successful actions
- Average cost per run: Mean cost per run
- Average actions per run: Mean actions per run
Intervention metrics
- Intervention rate: Percentage of actions that triggered interventions
- Interventions count: Total number of interventions
- High-risk blocks: Count of critical/high-risk interventions prevented
Approval metrics
- Total approvals: Count of approval requests
- Pending approvals: Currently pending approval requests
- Approval rate: Percentage of approvals granted
- Average decision time: Mean time to approve/reject (seconds)
Recent activity
- Last 24 hours: Runs, actions, cost
- Last 7 days: Runs, actions, cost
- Last 30 days: Runs, actions, cost
Temporal data
- Days active: Count of unique days with activity
- First seen: Timestamp of first run
- Last seen: Timestamp of most recent run
Filtering agents in the UI
In the web console, navigate to Agents page to:- View all discovered agents
- Sort by activity, cost, or intervention rate
- Click an agent to see detailed statistics
- Edit display name and description
- View recent runs for an agent
- Link to agent’s actions in Activity Ledger
Gateway decisions
allow, deny and require_approval returned by POST /api/v1/gateway/authorize or an approval redemption), newest first, with each row’s reason code, budget reservation state, budget headroom and per-row integrity. Read-only.
Query parameters:
agent_id(optional): Only this agent’s decisions. Ignored for agent-bound API keys.decision(optional):allow,denyorrequire_approvallimit(optional): Integer from 1 to 200 (default: 50)before_seq(optional): Integer ≥ 1. Only rows withseqbelow this value. Pass the previous page’snext_before_seq.
422.
Scope:
- A user session sees its active organization.
- An API key sees the key’s organization. A key with no organization sees no decisions.
- An agent-bound API key sees only its own agent’s decisions, whatever
agent_idis passed.
reserved_usd,reservation_status(reserved,reconciledorreleased) andactual_cost_usdcome from the decision’s budget reservation in the same organization; they arenullwhen the decision held none.remaining_usdis the monthly budget headroom recorded at decision time,nullwhen none was recorded (for example, a deny, or no monthly budget).hash_okrecomputes the row’s hash and compares it with the storedrow_hash.signature_okverifies the row’s signature against the platform key:nullfor an unsigned row, andfalsefor a signed row when the platform has no signing key configured.next_before_seqisnullon the last page.
Per-row integrity tells you whether a single decision was altered. To verify that no rows were removed or reordered, use whole-chain verification:
GET /api/v1/ledger/verify.Agent scoping
Agents are scoped to organizations - each organization sees only their agents. Use the agent discovery system to:- Monitor agent performance across your fleet
- Identify high-cost agents
- Track agents with high intervention rates (indicating policy issues)
- Analyze approval patterns by agent
Best practices
See also
- Runs - View runs by agent
- Activity Ledger - Filter actions by agent_id
- Gateway decisions - Gateway decisions with reservation state and per-row integrity
- Interventions - Track policy enforcement by agent
- Approvals - View approval requests by agent