~ / agents / pi-agent

Pi Agent

Pi is a minimal open-source coding agent for the terminal: four tools, a system prompt under 1,000 tokens, and your own model keys.

Project status. Pi is MIT-licensed and written in TypeScript. It was created by Mario Zechner and is now developed under Earendil Works at github.com/earendil-works/pi, which carried 89.0k stars when this page was last checked on 13 August 2026. The harness deliberately ships without MCP, plan mode or sub-agents; extensions supply those instead. It does not appear on the Terminal-Bench 2.0 or 2.1 leaderboards, so the score here rests on architecture review rather than a published benchmark run.
AgentRanks score35
Workflow typeCLI
PricingFree agent
Open sourceYes
Best fitminimal-token terminal use

Best Pi Agent stacks

Model pairings ranked by combined ARscore.

#StackARscoreContextCostBest fit
1Pi Agent + DeepSeek V4 FlashOS
CLI agent
27.71M$0.14/$0.28minimal-token terminal use
2Pi Agent + DeepSeek V3.2OS
CLI agent
24.5128K$0.25/$0.38minimal-token terminal use
3Pi Agent + Qwen 3.6OS
CLI agent
22.8128K$0.3/$0.6minimal-token terminal use

Alternatives

Nearby agents by workflow or openness.

Claude Code

deep terminal workflows and complex multi-step refactors

score 86 / CLI/Desktop

ChatGPT Codex

ChatGPT Codex workflows, terminal automation, and CI-style editing

score 84 / CLI/Desktop

ClineOS

MCP-heavy VS Code workflows and bring-your-own-model setups

score 61 / Extension

AiderOS

git-native terminal editing and experienced open-source users

score 60 / CLI