Pi 的极简主义是它的优势
Pi's Minimalism Is Its Advantage

原始链接: https://earendil.com/posts/pi-autoresearch-and-databricks/

尽管许多公司通过复杂的层级和海量的提示词(prompts)来填充其 AI 编码代理,但 **Pi** 采取了一种极简主义的方法。通过使用极简的系统提示词和仅有的四个核心工具,Pi 优先考虑“上下文规范”——即通过最小化开销来避免 token 冗余和重复指令。 **Databricks** 的研究证实,这种极简设计不仅性能更佳,而且更具成本效益;Pi 以极低的成本实现了比同类大型竞品更高的成功率。该研究表明,决定端到端工程经济性的不仅是模型本身,还有其外围的支撑架构。 至关重要的是,Pi 的极简主义并未牺牲功能。其架构专为扩展性而设计,允许用户定制工作流——例如 **Shopify** 的高性能“自动研究(Autoresearch)”扩展。通过提供一个避免不必要抽象的简洁接口,Pi 使开发人员仅在必要时才增加复杂性。随着前沿模型在处理标准编码环境方面变得愈发熟练,Pi 这种精简的“少即是多”理念证明:一套高效的支撑架构远胜于臃肿的预封装方案。

关于 AI 代理工具“Pi”的 Hacker News 讨论显示,用户群体存在明显分歧:一方看重其极简主义,另一方则对其过于简陋感到沮丧。 **支持 Pi 的观点:** 支持者认为,Pi 的主要优势在于它没有“强加于人”的功能,允许用户构建高度个性化的工作流。得益于其极简设计,它提供了一个干净且可扩展的平台,让开发者只需根据需求添加特定的工具(扩展)。支持者推崇这种对环境的掌控感,并认为进阶用户通过量身定制工具,可以获得显著的效率提升。 **批评意见:** 反对者则认为 Pi “过于极简”,即便是一些其他工具开箱即用的基本功能,它也需要大量手动配置。主要批评包括: * **默认配置糟糕:** 快捷键设置不便、不符合 XDG 目录规范以及启动速度缓慢。 * **安全隐患:** 默认的“YOLO”模式在没有完善沙箱保护的情况下授予代理过高的权限,被视为重大隐患。 * **臃肿问题:** 有人认为“极简主义”的宣传存在误导,因为该工具仍强制包含 shell 执行器等组件,并非其所声称的那样是一张“白纸”。 总而言之,目前达成的共识是:Pi 更像是“AI 原生版的 Neovim”——对于愿意投入时间进行自定义的用户来说功能强大,但对于追求“开箱即用”工具的用户而言,其效率可能并不理想。
相关文章

原文

AI has made code cheap, and as a result many companies are building bigger tools in pursuit of better performance. Larger prompts, more orchestration, more layers, more complexity. This also makes these tools intrinsically more expensive to use. Pi takes the opposite approach.

Pi is the coding harness that chooses minimalism on purpose. It comes out of the box with only 4 tools, and its system prompt and tool definitions come in below 1,000 tokens. The idea being that most work can be done with the basics, and if you want more, build it.

Evidence increasingly suggests that Pi’s design is not just cleaner; it’s cheaper and more performant. Users are finding that vanilla Pi produces industry leading results, even before adding on extensions to match user specific workflows and needs. As we'll see in case studies of Databricks and Shopify, Pi produced ideal outcomes for both.

Case Studies

Databricks Study: Cost Per Task

Databricks recently shared their findings “Benchmarking Coding Agents on Databricks’ Multi-Million Line Codebase.” The goal of their research was to understand which coding agents offer the best performance on real-world coding tasks, and how task-performance varies with price.

To avoid bias from external benchmarks that have become oversaturated, they created their own based on tasks their team of engineers regularly performs. The results match what we would expect, but what many in the industry may have been surprised to learn. In their words, “...the harness a model is called from dramatically impacts cost and quality,” and, “in many cases, simple harnesses like Pi performed best on our workloads.”

Databricks benchmark chart comparing coding-agent pass rate and cost per task.
Figure made by Databricks.

When combined with Opus 4.8, xhigh, Pi had the highest overall pass-rate, at a significantly lower cost than both Claude Code and Codex.

Minimal harness, measurable effect

Pi shines because it doesn’t try to wrap the model in a bunch of defaults and instructions that get lost in the instruction hierarchy. Instead, Pi stays out of the model’s way, and the team is able to add what they actually need for their workflow.

Databricks’ study is insightful because it separates model from harness.

They reported that when they ran the same model with the same thinking effort through different harnesses, “the cost per task differed significantly (more than 2x in some cases), while quality remained the same”. We call this Pi’s “context discipline”. “Pi sent about 3x less context per turn. It managed context better, keeping a tighter working set and finishing the tasks in fewer runs.”

We agree that one must take into account end-to-end engineering economics, and not just price per token. And this is also true at the model level; we have observed, for instance, that running complex workflows on Haiku 4.5 was often more expensive than Sonnet 4.6, especially when code execution was involved, simply because the agent required more turns to complete the task successfully.

Now we see this at the harness level too; stronger, more expensive models with a performant harness can be cheaper than the converse.

Shopify builds Pi Autoresearch: Extensible beats bloat

Minimalism is part of Pi’s core philosophy. What makes this work is that minimal does not mean inflexible. In fact, it is the first widely used agentic infrastructure created for extensibility and self-editability.

Another insightful external validation of Pi’s design comes from Shopify. In this post from Shopify Engineering, David Cortés describes building pi-autoresearch directly as a Pi extension, by simply asking “Pi, [to] create an extension for Autoresearch...”. Pi reads its own extension documentation and starts building a new workflow from there.

Autoresearch is an autonomous loop for optimization with coding agents. When you ask for a change, it runs experiments to find out what works and what causes regressions. For as long as the target is measurable, it can throw out these regressions and keep self-improving.

For Shopify and others, the Autoresearch extension quickly became a serious internal productivity tool. Shopify reported cases including unit tests running “300 times faster,” React component mounting “20% faster,” reduced build times across multiple projects, and even improvements to pnpm performance.

Screenshot from Shopify’s pi-autoresearch GitHub repository.
Image from Shopify’s pi-autoresearch GitHub repository.

The important point here is that Pi doesn’t ship any of these tools out of the box. Instead, it makes it ridiculously simple for you to build them. Instead of assuming the vendor knows your workflow and trying to ship every tool under the sun, Pi assumes you know best, and gifts you extensibility to wield and craft your own workflow.

Why minimal wins now

About a year ago, an argument could be made for native harnesses having a structural advantage over all others, because models were built around them. However, this argument has gotten weaker.

Frontier models are now generally very competent at understanding a terminal (or terminal-style) coding environment, and acting within it. Anthropic recently cutting down Claude Code’s system prompt by 80% is a clear sign of this. So the question is becoming less about how native the harness is, and more about how it handles context to avoid redundancy and act with clean primitives. Models need a clean interface to the environment, and a harness that does not waste context.

Pi provides this: less prompt overhead and repeated context, cheaper runs, fewer unnecessary abstractions. Because it is extensible, you do not lose power, but gain selectivity. You add complexity only when it “earns its keep”.

We are also seeing local models developing fast, and at Earendil we find them very promising. Pi’s context discipline is especially an asset here. Local models usually have lower context windows, and prefill can take a long time, so preserving a stable prompt prefix matters. Context discipline means we do not change the context without the user explicitly asking for it, avoiding minute-long re-prefilling. Combined with the minimal default system prompt and tool set, this makes pi an ideal harness for local models.

Pi is proving that it can manage it all. To be cheaper, minimal, and more performant.

联系我们 contact @ memedata.com