zag (Rust)
The published Rust crate for zag — a unified interface for AI coding agents.
This crate re-exports zag-agent (core agent library) and zag-orch (orchestration primitives) under a single zag package name.
Usage
use AgentBuilder;
use Config;
use spawn;
Agent types are available directly under zag:: (from zag-agent), while orchestration primitives live under zag::orch:: (from zag-orch).
How it differs from the other bindings
The TypeScript, Python, and C# bindings spawn the zag CLI as a subprocess. This Rust crate directly depends on the workspace libraries, giving you native access to all types and async APIs with no subprocess overhead.
See also
- zag-agent — Core agent library
- zag-orch — Orchestration library
- TypeScript bindings — CLI subprocess wrapper
- Python bindings — CLI subprocess wrapper
- C# bindings — CLI subprocess wrapper