Expand description
Modules§
- agent
- attachment
- File attachment support for embedding files in agent prompts.
- 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.
- exit_
mode - Library-level support for
--exitinteractive mode. - factory
- file_
util - Atomic file write utilities.
- json_
validation - JSON validation utilities for
--jsonand--json-schemaoutput modes. - listen
- Event formatting and filtering helpers shared by
zag listen, the library-side streaming builder options, and any consumer that wants to renderAgentLogEventvalues. - manpages
- Built-in manpages and the
--help-agentreference document. - mcp
- orch
- Orchestration primitives: spawn, wait, collect, pipe, status, events, cancel, and more.
- output
- plan
- Library-level implementation of
zag plan. - preflight
- CLI binary pre-flight validation.
- process
- process_
registration - Helper for registering an agent process in zag’s
ProcessStoreand producing the env vars (ZAG_PROCESS_ID,ZAG_SESSION_ID, etc.) thatzag ps kill self/zig self terminateuse to resolve the running agent from inside the agent’s own subshell. - process_
store - Process tracking store.
- progress
- prompts
- Helpers for loading versioned prompt files (§13.5).
- providers
- review
- Library-level implementation of
zag review. - 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.
- usage_
limits - Shared types and helpers for provider usage-limit detection and auto-resume.
- worktree