Pi
IntermediateA minimal open-source Agent Harness that starts with just 4 tools (read/write/edit files + bash) — system prompt and tool definitions under 1,000 tokens for ~3x context reduction and 50%+ cost savings, extensible via TypeScript.
Company
earendil-works
Founded
2026
Headquarters
Open Source
Pricing Range
Free (open source)
Difficulty
intermediate
Target Audience
Developers who want a minimal, context-efficient, fully transparent Agent Harness with maximum cost savings — from individual coders to teams building lightweight agents.
About
Pi is a minimal, open-source Agent Harness developed by earendil-works and hosted at pi.dev. Its design philosophy is 'start small, add only what you need': by default it ships just four tools — read files, write files, edit files, and execute bash commands — with no pre-installed workflows or unnecessary tools. Because the system prompt and tool definitions together fit in under 1,000 tokens, the model's context stays clean and focused, which reduces context size by roughly 3x and lowers costs by over 50% in real-world tasks. Pi remains fully extensible: you can add custom tools, commands, or UI elements through TypeScript extensions, and it includes solid session management — save and restore sessions, branch conversations, and compress context. Installation is one line on every platform: curl for Linux/macOS, PowerShell for Windows, or npm with @earendil-works/pi-coding-agent. For developers who want full transparency into what the model sees and maximum cost efficiency in performance-critical tasks, Pi is the most efficient harness choice.
Advantages
- 1Minimal kernel: only 4 default tools
- 2System prompt + tool definitions under 1,000 tokens
- 3~3x context reduction, 50%+ lower costs
- 4TypeScript extensions for tools, commands, and UI
- 5Full session management (save/restore, branch, compress)
- 6One-line install on Linux/macOS/Windows/npm
Pros & Cons
Pros
- +Extreme context efficiency (~3x reduction, 50%+ lower costs)
- +Full transparency into what the model sees
- +Minimal learning curve — start with 4 tools
- +Truly minimal and easy to audit
Cons
- −No out-of-the-box workflows — you build them
- −Fewer built-in tools than OpenCode or DeepSeek Harness
- −TypeScript extensions require coding
- −Younger ecosystem and community
Use Cases
Lightweight, cost-efficient coding tasks
Performance-critical agent workloads
Full transparency into model context
Custom lightweight agents via TypeScript extensions
Context-compressed session management
Pricing
Free
Free (open source)
- Minimal 4-tool kernel
- Under 1,000-token system prompt + tools
- TypeScript extensions
- Session management
Skills
Related Tools
Codex Agent
OpenAI desktop AI agent controlling apps via natural language for automation.
Cursor
AI-first code editor built on VS Code with deep AI integration for faster development.
GitHub Copilot
AI pair programmer from GitHub that suggests code in real-time across popular IDEs.
Replit AI
Browser-based IDE with built-in AI agent that can build and deploy apps from prompts.