Crates
The Rust crates in the pi-rust workspace: pi-ai, pi-agent, pi-tui, pi-mcp, pi-js, pi-coding-agent, and the rest.
| Crate | Contents |
|---|---|
pi-ai |
Message types (JSON-compatible with pi), streaming events, providers, OAuth, the model registry, and catalogs |
pi-agent |
The agent loop, tool argument validation, and the stateful Agent |
pi-tui |
The terminal UI library: differential rendering, editor, markdown, images, and components |
pi-mcp |
The MCP client (stdio and HTTP, OAuth) and server manager |
pi-codemode |
Codemode: a sandboxed JavaScript runtime in which the model writes scripts that call tools |
pi-js |
Embedded QuickJS with Node-style modules and TypeScript, for pi extensions |
pi-coding-agent |
Tools, sessions, compaction, resources, extensions, the interactive TUI, the print, JSON, RPC, and ACP modes, and the pi CLI |
pi-chord |
Chord: an application composition runtime for services, replicated state, RPC, and plugins |
pi-telemetry |
Vendor-neutral telemetry contracts and typed schema utilities |
pi-schema |
TypeBox-compatible JSON Schema checks, defaults, and value cleanup, for pi-ai and pi-chord |
pi-embedded |
In-process pi sessions for native and Rust applications, with a C ABI (include/pi_embedded.h) |
pi-protocol, pi-client, pi-server |
The CBOR wire protocol, its client, and its server over Unix sockets |
pi-durable |
Pi Durable: durable sessions on memory, SQLite, or JSONL storage, the harness, and its coding tools |
pi-env, pi-env-daemon |
Remote execution environments for Pi Durable over SSH, and the pi-env daemon that runs on the remote machine |
pi-evals |
Behavioral evals for the coding agent: host evals and a documentation-lift comparison in Docker (not published) |