eunomia-bpf/agentsight
Local eBPF observability links AI agent calls to their effects on the host
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
AgentSight combines a Linux eBPF capture layer with a Rust collector and a native-session ingestion path. The bpf/ layer supplies process and file events and observes plaintext at supported SSL/TLS call boundaries. The collector correlates those events with agent sessions and model calls. Where live probes are unavailable, the tool can use native session files; top also falls back to process snapshots. That fallback is useful for triage, but does not recover the host events a live probe would have captured.
The agentsight-capture crate exposes the runners, native sources, analyzers, event model, materialized view, and sinks; the agentsight CLI is its primary consumer. record persists a run to SQLite, while the web UI serves both live and saved sessions. Web Nebula reads audit_events with audit_type=file from a Node materialized view. The collector computes the layout at GET /api/v1/nebula; the browser renders and plays it back. For external integration, the collector can export captured LLM calls as OpenTelemetry gen_ai.* spans over OTLP/HTTP.
Key Capabilities & Differentiators
The terminal top view ranks active sessions and surfaces model calls, token use, process families, and file and network activity. For detailed investigation, record follows a launched command or attaches to a target, and report queries saved prompts and responses, token totals, and audit events such as process spawns, file opens, and API calls. Token reports can group by working directory with --group-by dir. On supported Linux kernels, FILE_OPEN events include resolved paths, access mode, overlay-layer metadata, and inode information.
Agent coverage depends on the capture path: record supports targets such as Claude Code and Gemini CLI, while top can read Cursor's local sessions without sudo. In a Git worktree, offline vis scans matching Claude, Codex, and Gemini session files to build a replay; this is distinct from the web timeline, process tree, metrics, and Node-backed Nebula view. For cost analysis without privileged capture, agentpprof can turn local Claude and Codex history into pprof, folded-stack, or SVG profiles.
Trade-offs & Limitations
AgentSight is strongest when the agent is an existing binary and the problem is explaining host-side effects. LangSmith, Langfuse, and Phoenix are better fits for application-level tracing and evals where the code can be instrumented. Helicone fits a request-gateway architecture; AgentSight does not need model calls rerouted, but plaintext coverage depends on probe compatibility. Statically linked TLS libraries in Claude/Bun and Node can defeat a system libssl.so probe. Launch-mode discovery handles supported binaries, but attach workflows can still require an explicit --binary-path, and native session ingestion should not be mistaken for full live capture.
The evaluated CPU overhead was under 3% for typical traced workloads, but that is not a sizing guarantee. Validate probe visibility, CPU load, and database growth with representative sessions on the target host. Local SQLite keeps storage under operator control, but prompt and response bodies, headers, paths, and destinations make databases and exports sensitive. Plan access, retention, and export review before turning on background capture. Treat AgentSight as an observation tool, not a sandbox or policy enforcement layer.
Hardware & Deployment Guide
Start with cargo install agentsight or a release binary. Listed release assets cover Linux x86-64 and AArch64 and Windows x86-64. On Windows, macOS, and Linux, top, bind, vis, and report can use native session files. Live eBPF capture is Linux-only: the minimum listed kernel is 4.1 with eBPF support, 5.0+ is recommended, and record uses sudo. With record -- <command>, the probes are elevated but the launched agent runs as the normal user. The local web UI uses port 7395. record writes databases to the current directory by default; background monitoring stores weekly databases under ~/.agentsight/monitor.
The Dockerfile is a runtime image, not a source build: it uses Ubuntu 24.04, installs libelf1, copies the prebuilt collector/target/release/agentsight into /app/agentsight, and exposes 7395. Docker does not remove the need for privileged host access to eBPF. Recent releases show ongoing work on capture fidelity: v1.0.34 addressed SSL readiness and process and file evidence; v1.0.35 scoped sidecar capture by PID namespace and improved live Codex token totals; v1.0.36 added a session-analysis event timeline.
top uses process snapshots and native session files when live eBPF capture is unavailable.record writes per-run SQLite databases; report queries prompts, token usage, and process, file, and API audit events.vis builds artifacts from native session logs; web Nebula renders Node file audit events using layout from GET /api/v1/nebula.agentsight-capture exposes the Rust capture pipeline; LLM calls can be exported as OpenTelemetry gen_ai.* spans over OTLP/HTTP.libelf1 and runs /app/agentsight; live eBPF still requires privileged host access.Teams debugging or auditing existing coding-agent CLIs that need to connect model activity to subprocesses, file access, network destinations, and resource use. Start with native session inspection, then validate narrowly scoped Linux capture on a representative host.
You need application-level evals, preventive controls, or full live host tracing on macOS, Windows, or Linux hosts where probe privileges are prohibited. Native session inspection does not fill those gaps.
Quick Start & Installation
cargo install agentsight # or: wget https://github.com/eunomia-bpf/agentsight/releases/latest/download/agentsight && chmod +x agentsight
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| agentsight ★ | 816 | +10 | C | MIT | Local eBPF observability links AI agent calls to their effects on the host |
| hermes-agent | 268.1k | +1.5k | Python | MIT | Self-hosted Python agent with persistent memory and automation across chat and C |
| n8n | 213.1k | +787 | TypeScript | — | Visual Node.js platform for self-hosted workflows and multi-step AI agents |
| TradingAgents | 124.7k | +709 | TypeScript | Apache-2.0 | A multi-agent CLI for source-cited financial research and reporting |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/eunomia-bpf/agentsight.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about agentsight
Do we need to change our agent code or route requests through a proxy?
agentsight top to inspect available native session files and process snapshots. On Linux, use sudo agentsight record -- claude for a scoped live recording. System events come from eBPF; model payload visibility depends on whether the agent's TLS implementation can be probed.Does AgentSight need a GPU, and how much overhead should we budget?
Can we self-host it commercially, and what data controls do we need?
When is AgentSight a better fit than Langfuse, LangSmith, Phoenix, or Helicone?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy