Skip to main content

Crate zag

Crate zag 

Source
Expand description

Unified Rust interface for zag — AI coding agent orchestration.

This crate re-exports [zag-agent] (core agent library) and [zag-orch] (orchestration primitives) under a single zag package name.

§Usage

use zag::builder::AgentBuilder;
use zag::orch::spawn;

Modules§

agent
auto_selector
Auto-selection of provider and/or model based on task analysis.
builder
High-level builder API for driving agents programmatically.
capability
config
Configuration management for the zag CLI.
factory
file_util
Atomic file write utilities.
json_validation
JSON validation utilities for --json and --json-schema output modes.
mcp
orch
Orchestration primitives: spawn, wait, collect, pipe, status, events, cancel, and more.
output
preflight
CLI binary pre-flight validation.
process
process_store
Process tracking store.
progress
providers
sandbox
search
serve
Network server: remote access to AI agent orchestration over HTTP/WebSocket.
session
Session-to-worktree mapping store.
session_log
skills
streaming
Streaming session for programmatic stdin/stdout interaction with agents.
worktree