Build From Source
Use this guide when developing AgentSight or building a local binary from the repository. If you only want to run a release binary, see the Quick Start in README.md.
Requirements
- Rust toolchain 1.88.0+
The portable agent-native commands (top, bind, vis, and report) build on
Windows, macOS, and Linux. A Windows source build needs the MSVC Rust host
toolchain and linker; the repository's Windows GitHub Actions workflow provides
that environment and uploads agentsight.exe, so Windows users do not need a
local compiler when using its artifact.
Building the eBPF capture path additionally requires:
- Linux with eBPF support
- Node.js 18+
- clang and LLVM
- libelf development headers
- zlib development headers
- make and standard C build tools
On Ubuntu/Debian, the repository Makefile can install the expected system dependencies:
make installBuild
Clone with submodules:
git clone https://github.com/eunomia-bpf/agentsight.git --recursive
cd agentsightIf you already cloned without submodules:
git submodule update --init --recursiveBuild all components:
make buildFor a native Windows build of the portable CLI, build the collector crate from a Developer PowerShell, or run the Windows workflow and download its artifact:
cargo build --release --manifest-path collector/Cargo.tomlThe resulting binary is collector/target/release/agentsight.exe. Commands that
load eBPF (record and eBPF-backed debug commands) return a platform-specific
error on Windows; session discovery, reporting, visualization, binding, and the
process-backed top view remain available.
make build rebuilds the frontend and eBPF loaders, then refreshes the
vendored assets embedded by the Rust binary. The frontend build id is stable for
the same source inputs, so repeated builds do not create new hashed asset paths
unless the frontend source or configuration changed.
The built binary is at:
collector/target/release/agentsightBuild individual components when iterating:
make build-frontend # frontend assets
make build-vis # self-contained Agent Nebula runtime
make build-bpf # eBPF programs
make build-rust # Rust collectormake build-rust and direct cargo build use the existing vendored assets and
do not refresh them. For packaging outside the Makefile, set
AGENTSIGHT_SYNC_VENDOR=1 when building the collector after rebuilding the
frontend and eBPF loaders.
Verify
Run the test suite:
make testFor frontend development:
cd frontend
npm run dev继续阅读
返回索引
AgentSight:基于 eBPF 的零侵入 LLM 智能体可观测性工具
 
上一篇 / 上一页
Supported Agents
AgentSight works with any process that makes TLS-encrypted API calls. This page covers agent-specific setup and quirks.
下一篇 / 下一页
开发指南
collector 二进制在编译时通过 RustEmbed 将前端资源内嵌。默认情况下,每次前端改动都需要重新编译 collector(cargo build --release)才能生效。
- 最后更新
- 2026年8月13日
- 首次发布
- 2026年6月3日
- 贡献者
- github-actions[bot], LinuxDev9002
这个页面有帮助吗?