earendil-works/pi

AI agent toolkit: unified LLM API, agent loop, TUI, coding agent CLI

What it solves

Pi provides a modular framework for building and running AI agents, specifically offering a self-extensible coding agent that can interact with a local environment to perform programming tasks.

How it works

Pi is structured as a monorepo of specialized packages:

  • pi-agent-core: Manages the agent's runtime, state, and tool-calling capabilities.
  • pi-ai: Provides a unified API to interface with multiple LLM providers such as OpenAI, Anthropic, and Google.
  • pi-coding-agent: A CLI tool that implements an interactive coding agent.
  • chord: A runtime for application composition, RPC, and replicated state.
  • pi-telemetry: Handles vendor-neutral telemetry and typed schemas.
  • pi-tui: A terminal user interface library for rendering.

Who it’s for

Developers who want a powerful, extensible coding assistant in their terminal or those looking for a modular agent runtime to build their own AI-driven tools.

Highlights

  • Multi-provider support: Unified API for switching between different LLM backends.
  • Self-extensible: Designed to be expanded with new capabilities.
  • Containerization options: Supports isolation via Docker, OpenShell, or the Gondolin extension (routing tools to a Linux micro-VM).
  • Supply-chain hardening: Strict dependency pinning and verification to ensure secure installations.

Written about in

Related

  • Project
  • Project
  • Project
  • Project
  • Project