Skip to main content

Crate pi

Crate pi 

Source
Expand description

Pi - High-performance AI coding agent CLI

This library provides the core functionality for the Pi CLI tool, a Rust port of pi-mono (TypeScript) with emphasis on:

  • Performance: Sub-100ms startup, smooth TUI at 60fps
  • Reliability: No panics in normal operation
  • Efficiency: Single binary, minimal dependencies

§Public API policy

The pi crate is primarily the implementation crate for the pi CLI binary. External consumers should treat non-sdk modules/types as unstable and subject to change. Use sdk as the stable library-facing surface.

Currently intended stable exports:

Modules§

sdk
Stable SDK-facing API surface for embedding Pi as a library.

Enums§

Error
Main error type for the Pi application.

Type Aliases§

PiResult
Result type alias using our error type.