Pi Agent vs Claude Code After 100 Hours of Real Use
说明与用途
Pi Agent 在任务成功率和成本上优于 Claude Code,提供透明度和控制,但需要用户自行扩展功能。
问题
Developers need a lightweight, cost‑effective coding agent that offers full control over tools and pricing while maintaining high task success rates.
结果
Pi outperformed Claude Code on task success and cost per success while offering greater transparency and control. Claude Code remains attractive for users who prioritize built‑in features and predictable subscription pricing.
工作流
- 1. Set up Pi with desired model API keys or local model. 2. Run Pi in terminal, optionally enabling read‑only tools via
--tools read,grep,find,ls. 3. Submit coding tasks to Pi. 4. Pi calls the model, executes tool calls, and returns results. 5. Use/treeor/forkto branch or rewind sessions. 6. If additional tools are needed, ask Pi to generate a TypeScript extension and run it inside the agent process. 7. Monitor token usage and cost per task. - 8. For comparison, run the same tasks on Claude Code with its default harness and observe higher token consumption and cost per success.
证据
Pi passed more tasks than any of the eight harnesses we tested, and did it at the lowest cost of the whole bunch.
Pi achieved higher task success (20/30 vs 16/30) at a fraction of the cost ($0.028 per success vs $0.195).
- 记录日期: 2026-09-10T00:30:55.710Z