AgentSight: System-wide AI agent profiling and monitoring with eBPF
English | 中文
AI agents can run commands, rewrite files, spawn processes, and contact remote services—but when a run fails, stalls, or behaves unexpectedly, their logs rarely tell the whole story.
AgentSight is a local-first top/strace-like observability tool for AI agents. It connects prompts, model calls, and tool decisions to their real effects on your machine.
- See what the agent is doing now. Monitor active sessions, processes, resource, model and tool calls, file and network activity.
- Understand failures and improve agent behavior. Connect prompts and skills to errors, then turn them into better instructions and skills.
- Find where time, tokens, and resources go. Spot slow steps, retry loops, repeated model or tool calls, token-heavy sessions, and resource-hungry processes.
- Audit data movement and security-sensitive effects. See which services received requests, which files changed, and whether agents stayed and give safety/security suggestions.
- Use it with your existing agents. Run AgentSight around Claude Code, Codex, Gemini CLI, OpenCode, OpenClaw, or any command—without an SDK, proxy, or vendor integration.
No SDK, no proxy, no vendor integration. AgentSight observes with eBPF and TLS traffic tracing, so it works even when the agent is a closed-source CLI. ✨ Zero SDK Required
Quick Start
cargo install agentsight
# or: wget https://github.com/eunomia-bpf/agentsight/releases/latest/download/agentsight && chmod +x agentsight
Live sessions ranked by model, session tokens, health, process family, tool calls, file activity, and network activity
agentsight top
Agent Nebula replays how coding agents read, write, create, rename, and delete files across the ACTplane repository
agentsight vis
Width is system-effect weight; the uneven stack height shows prompt, tool-call, process, and effect paths ending at different depths. See the agentpprof guide for the other profiles and how widths and stack depths are drawn.
🚀 Why AgentSight?
Traditional Observability vs. System-Level Monitoring
Application-level tools such as LangSmith, Langfuse, and Phoenix are great for traces, prompts, tokens, evals, and latency when you own the application code. Gateway/proxy tools such as Helicone are useful when you can route provider traffic through a managed endpoint.