Pi
FreeHighly customizable terminal harness; minimal base prompt, extension-driven.
About Pi
Pi is a minimal agent harness designed to adapt to your workflows rather than forcing you to adapt to it. It features a minimal system prompt for token efficiency and extensive customization through extensions, skills, prompt templates, and themes. Pi supports over 15 AI model providers including Anthropic, OpenAI, Google, Mistral, and more, with the ability to switch models mid-session. Its tree-structured session history allows branching from any point, filtering, bookmarking, and sharing via HTML export or GitHub gist. Context engineering capabilities include AGENTS.md and SYSTEM.md files, compaction, and dynamic context injection via extensions. Pi operates in four modes: interactive TUI, print/JSON for scripting, RPC for non-Node integrations, and an SDK for embedding. Users can steer running agents with inline messages or queue follow-ups. Pi is open source and shipped with powerful defaults, intentionally omitting sub-agents and plan mode to keep the harness minimal.
Key Features
Pros & Cons
- Highly customizable via extensions, skills, and themes
- Minimal base prompt reduces token usage and cost
- Supports a wide range of AI providers and models
- Tree-structured history allows non-linear exploration
- Open source and free to use
- Four distinct modes cover terminal, scripting, RPC, and embedding
- Dynamic context injection enables long-term memory and RAG
- Easy sharing of sessions via gist or HTML export
- Intentionally omits sub-agents and plan mode, which may be needed for complex multi-step workflows
- Terminal-based interface may have a learning curve for non-command-line users
- Customization via extensions requires some technical proficiency
- Limited built-in guidance due to minimal base prompt