ZAP is a terminal-first, local AI coding agent built in Rust. It uses AST-powered codebase indexing and lazy-loaded skills to completely eliminate prompt bloat and minimize context token costs.
README
An AI coding agent built in Rust — skill-first context injection, a hard security boundary, and a single binary with no runtime.
Website · Docs · Architecture
curl -fsSL https://raw.githubusercontent.com/zap-coding-agent/zap-coding-agent/main/install.sh | bash
The script detects your OS and architecture, downloads the latest release, installs to ~/.local/bin, and patches your shell config if needed. On macOS it also runs codesign --sign - automatically.
| Platform | Binary |
|---|---|
| macOS Apple Silicon (ARM64) | zap-macos-arm64.tar.gz |
| Linux x86_64 | zap-linux-x86_64.tar.gz |
| macOS Intel | Build from source |
Download zap-windows-x86_64.zip from the latest release, extract, and move zap.exe somewhere on your PATH:
Expand-Archive zap-windows-x86_64.zip .
Move-Item pkg\zap.exe "$env:USERPROFILE\.local\bin\zap.exe"
Requires Rust 1.75+.
git clone https://github.com/zap-coding-agent/zap-coding-agent
cd zap-coding-agent
cargo build --release
cp target/release/zap ~/.local/bin/zap
zap # interactive TUI
zap --goal "add tests" # single-shot (non-interactive)
zap --auto --goal "..." # skip all permission prompts (CI)
zap --sdk # JSON-lines remote control over stdin/stdout
First run will pro