Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Local Development

This page covers the from-clone development loop for the agent-assembly monorepo. For contribution conventions (commit style, PR process) see CONTRIBUTING.md.

Prerequisites

  • Rust stable (≥ 1.75) via rustup
  • protoc — Protocol Buffers compiler (brew install protobuf / apt-get install protobuf-compiler); required by the aa-proto and aa-gateway build scripts
  • cargo-nextest, cargo-deny, and Lefthook
  • Linux only for the proxy / eBPF layers — see Supported platforms.

Bootstrap

git clone https://github.com/ai-agent-assembly/agent-assembly.git
cd agent-assembly

# Installs toolchains, clones the SDK polyrepos as siblings, installs git
# hooks, and builds the workspace.
make dev-setup

# Smoke-tests each SDK repo in parallel, then checks gateway health.
make dev-verify

Everyday loop

cargo build --workspace --exclude aa-ebpf   # build (skip the BPF-target crate off Linux)
cargo nextest run --workspace               # full test suite
cargo nextest run -p aa-core                # one crate
cargo fmt --all                             # format
cargo clippy --all-targets -- -D warnings   # lint
cargo deny check                            # dependency / license audit

The eBPF crates compile with a target-specific toolchain; on non-Linux hosts cargo check -p aa-ebpf is sufficient.

Git hooks

Hooks are managed by Lefthook (lefthook.toml). Install them once with lefthook install. The pre-commit hook runs fmt, clippy, and deny scoped by file glob; the pre-push hook runs cargo doc --workspace --no-deps.

Running locally

Point the gateway at a bundled reference policy and connect a sidecar:

cargo run -p aa-gateway -- --policy policy-examples/low-risk.yaml

See the CLI page for aasm operator commands and the README “Running with Docker Compose” section for the sidecar stack.

Troubleshooting

SymptomCauseFix
protoc / “Could not find protoc” build errorProtocol Buffers compiler missingInstall it (brew install protobuf or apt-get install protobuf-compiler) — aa-proto and aa-gateway need it
cargo build fails on aa-ebpf* off LinuxeBPF crates target the BPF toolchainBuild with --exclude aa-ebpf; use cargo check -p aa-ebpf on non-Linux hosts
Pre-commit hook does not runLefthook hooks not installedRun lefthook install once in the repo
Pre-push fails on cargo docA doc comment has a broken intra-doc linkRun cargo doc --workspace --no-deps locally and fix the reported link
make dev-verify skips the Go smoke testgo-sdk checkout is missing or has no internal/smoke/Expected when the Go SDK sibling repo is absent; clone it next to agent-assembly to enable it

Last updated: 2026-06-11 by Chisanan232