Skip to main content

AgentSight

AgentSight is a zero-instrumentation observability tool for AI Agents. It attaches eBPF probes to processes that are already running, so it records LLM calls, Token consumption, tool calls, and session interruptions without any change to Agent code, prompts, or configuration.

AgentSight Agent Observability page

Start here

  • Quick start — install, start tracing, produce the first session, open the Dashboard.
  • Dashboard guide — token access, page-by-page walkthrough.
  • CLI reference — every command, flag, and real output.
  • Configuration — config file, feature switches, Agent discovery rules.

What you can do with it

GoalRead next
See which Agents are running and what they cost in TokensQuick start
Find out why an Agent task stalled, failed, or loopedInterruption detection
Replay one session step by step (prompts, tool calls, results)Dashboard guide
Add an Agent that AgentSight does not recognise yetConfiguration
Run it as a service, in a container, or on macOSDeployment
Query data from scripts, Prometheus, or another systemData and storage
Combine it with Tokenless, agent-sec-core, or coshIntegrations
Fix "no data", 401, or port problemsTroubleshooting

Capabilities

CapabilityWhat it gives you
Zero-instrumentation captureeBPF uprobes read plaintext from TLS calls; no SDK, proxy, or env var in the Agent
Agent auto-discoveryRecognises Agent processes by command line (cosh, Claude Code, Codex, Qwen Code, OpenClaw, Hermes, AgentScope, and custom rules)
Token accountingInput/output/cached Tokens per Agent, session, conversation, and model
Session and conversation viewSessions group conversations; each conversation keeps its LLM calls, messages, and tool calls
Interruption detection18 interruption types (crash, timeout, rate limit, context overflow, dead loop, tool failure, …) with severity and root-cause detail
Trajectory exportAny session, conversation, or trace exports as ATIF v1.7 JSON
DashboardWeb UI with time-range filters, Token charts, latency percentiles, interruption badges, and per-step replay
Machine-readable output--json on most commands, Prometheus /metrics, and a documented HTTP API

Requirements

RequirementValue
OSLinux (x86_64); macOS runs a reduced trajectory-only mode
Kernel>= 5.8 with BTF enabled
Privilegesroot (or CAP_BPF + CAP_PERFMON) for agentsight trace
Install modesystem mode — eBPF needs root
DiskA few hundred MB under /var/log/sysak/.agentsight (size-capped, see Data and storage)

macOS: only agentsight trace (scans local Agent JSONL session files, no eBPF) and agentsight serve (Dashboard) are available. Every other command needs the Linux eBPF pipeline.

How it works

Agent process ──TLS write/read──▶ eBPF uprobe ─┐
Agent process ──execve/exit─────▶ eBPF probe ─┼─▶ parser ─▶ aggregator ─▶ analyzer
│ (HTTP/SSE) (req↔resp) (tokens, audit)
│ │
ring buffer ▼
GenAI semantic events

┌───────────────────────────────┼──────────────────┐
▼ ▼ ▼
SQLite databases interruption detector external log export
│ │
└────────▶ HTTP API + Dashboard ◀┘

Two processes do the work, and the packaged service starts both:

ProcessRole
agentsight traceLoads eBPF probes, discovers Agents, writes events to SQLite (needs root)
agentsight serveServes the HTTP API and the Dashboard from the same SQLite databases

Details: ARCHITECTURE.md in the source tree.

Terminology

TermMeaning
SessionOne Agent run as the Agent itself identifies it (a session_id from the Agent, e.g. a cosh session)
ConversationOne request/response cycle inside a session, including its tool calls
TraceOne captured LLM HTTP call (request + streamed response)
InterruptionA detected abnormal end or stall of a conversation, with a type and a severity
Agent nameThe label a discovery rule assigns to a process, e.g. CoshNG, Claude, Codex
TrajectoryA session or conversation exported in ATIF v1.7 format for replay or offline analysis

Install and first run

# system mode is required — eBPF needs root
sudo anolisa install agentsight

# start tracing and the Dashboard together
sudo systemctl enable --now agentsight.service

# print the Dashboard URL and access token
sudo agentsight dashboard --no-open

Full walkthrough with expected output: Quick start.

Reference pages

PageContent
Quick startInstall, verify capture, first Dashboard visit
Dashboard guideAuthentication and all Dashboard pages
CLI referencetrace, serve, dashboard, token, audit, discover, metrics, summary, interruption, skill-metrics
Configurationconfig.json schema, feature switches, runtime limits, discovery rules
Interruption detectionThe 18 interruption types and the triage workflow
Deploymentsystemd, foreground, container/sidecar, macOS, upgrade, uninstall
Data and storageDatabases, retention, HTTP API, Prometheus, ATIF export
IntegrationsTokenless, agent-sec-core, enforcer, cosh, Prometheus
TroubleshootingNo data, 401, unreachable port, database growth