使用 AgentSight 记录系统级代理活动
Wrap Claude Code, Codex, Gemini CLI, OpenClaw, or another agent command with AgentSight to capture processes, files, network destinations, prompts, and reports.
Prerequisites
Linux with eBPF support, sudo or equivalent probe permissions, Rust Cargo or AgentSight release binary, target agent CLI such as Claude Code, Codex, Gemini CLI, OpenCode, or OpenClaw
Installation
Use the upstream install or setup path that matches your environment:
- cargo install agentsight
- For local use, install with cargo install agentsight or download the latest
- Docker is useful for container, CI, or isolated Linux environments, but it still needs privileged host access for eBPF. See docs/docker.md.
- cargo run --manifest-path agentpprof/Cargo.toml -- \
Requirements and caveats from upstream:
- | Python (aider, open-interpreter, …) | sudo ./agentsight record -c python |
- | Docker containers (OpenClaw, …) | sudo ./agentsight record -c node --binary-path docker://openclaw |
- Q: Why doesn't AgentSight capture traffic from Claude Code, Node.js, or Gemini CLI?
Basic usage or getting-started notes:
- Run agentsight around Claude Code, Codex, Gemini CLI,
- sudo agentsight top
- <div align="center">
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/eunomia-bpf/agentsight/HEAD/README.md
Documentation
- https://eunomia.dev/agentsight/