A minimal, extensible coding agent harness that you can make your own
open sourceMITfree
Pi is a minimal, open source coding agent harness from Earendil (formerly pi-mono): a terminal coding agent with a short system prompt, so it's token efficient, that you adapt to your workflow rather than the other way round. You extend it with TypeScript extensions (including custom TUI), skills, prompt templates and themes, bundled as Pi packages shared through npm or git, and it deliberately ships without sub-agents or plan mode, which you add as packages or ask Pi to build. It reads AGENTS.md files, lets you rewind to any earlier message, branch and share sessions, and steer a run while it works. It runs interactively, in print or JSON mode for scripts, over RPC, or embedded with its TypeScript SDK, and connects to many model providers by API key or subscription login. The monorepo also holds its libraries: pi-ai (one API over OpenAI, Anthropic, Google and other providers), pi-agent-core (an agent runtime with tool calling), pi-tui (a terminal UI library with differential rendering) and Pi Durable (durable conversations and tasks).
Ways to install
Package managers
Problems it solves
- a coding agent I can customise completely instead of living with someone else's workflow
- a token-efficient terminal coding agent with a short system prompt
- one TypeScript API for calling OpenAI, Anthropic and Google models
- script a coding agent from shell scripts with JSON output
Features
- extensions, skills, prompt templates and themes, shared as Pi packages
- rewind to any message, branch and share a session
- interactive TUI, print and JSON modes for scripts, RPC control and a TypeScript SDK
- many model providers, by API key or subscription login
- unified multi-provider LLM API and agent runtime libraries
Limitations
- No built-in permission system: it runs with the full permissions of the user who starts it, unless you containerize or sandbox it.3
- Leaves out sub-agents and plan mode by design; extensions or packages add them.3
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Takes plugins | plan not known |
| Has official SDKs | plan not known |
Forks
- oh-my-pi (omp) Terminal coding agent with the IDE wired in, forked from Pi. Its own project since 2025.
Alternatives
The same job
These do what Pi does.
- OmO Agent harness that turns one prompt into a graph of model-matched agents
- Prime Agent Self-improving coding and research agent built on a persistent Python REPL
- jcode Rust coding agent harness built for running many agents in parallel with little memory
- Codewhale Open source terminal coding agent for any model
- OpenCode The open source coding agent.
- Qwen Code Open source AI coding agent for the terminal, editor, desktop, browser and chat