@MaximeRivest: Pi coding agent is very often the best for its price. Pi's system prompt is very short and has only 4 tools. My Pi syst…
Summary
Maxime Rivest shares tips for optimizing Pi coding agent usage with custom system prompts, and Matei Zaharia discusses surprising results from benchmarking coding agents at Databricks.
View Cached Full Text
Cached at: 07/09/26, 07:51 PM
Pi coding agent is very often the best for its price.
Pi’s system prompt is very short and has only 4 tools.
My Pi system prompt is even more minimalistic and I get better & cheaper results (according to my guts; sorry i don’t have better proof, yet!)
how?
I have a custom extension that let’s me change the system prompt easily and I now have 25 modes (prewritten specialized system prompts).
The models are better at smaller context, everyone accept that as fact by now. I, also, feel that everyone would accept as fact that a model is better with a specialized system prompt. Yet, no one does it for coding agents! Pi agents are told that they are coding agents in Pi, I prefer them to think they are maintainer of library X and have access to some tools. Or that they are Documentation writer, etc.
LLMs are trained to be extremely ‘responsive’ and ‘deligent’ in following system prompts over user prompts. We must take advantage of that!
I often switch system prompt mid-conversation:
oh not my prompt cache!
its actually not bad and in my experience it is totally worth it! Thanks to the gain in performance for the next turn the model use much less tool calls and succeed faster, offsetting the cost of not being prompt caching friendly.
In short, I recommend pi and i recommend making yourself a way to change the system prompt.
here is the vibed repo, intended as inspiration.
I included some of my modes. my favorite mode are the stackoverflow and surprise-reporter.
https://github.com/MaximeRivest/pi-modes…
i switch the system prompt often for turns lower down i nthe conversation, system prompt instead of user prompt because it stirs the model more forcefully. replacing pi prompt with mine instead of appending to not have the ‘confusing’:
you are a pi coding assistant. [append] you are a stackoverflow response simulator.
i also toggle in our out tools description, in somecase making the model think no tool exists (so it just responds).
true! I never thought it was of much interest. let me push it.
here is the vibed repo, intended as inspiration.
I included some of my modes. my favorite mode are the stackoverflow and surprise-reporter.
https://github.com/MaximeRivest/pi-modes…
Similar Articles
@binghe: I've recently become a heavy user of Pi Agent... The more I use it, the more I like it. Pi can chain multiple skills to complete complex tasks, and the local Agent has more practical value! Pi Agent's system prompt is less than 1500 characters, only about 1/13 of Claude Code's...
The user shares their in-depth experience with Pi Agent, noting that its prompts are short, responses fast, and token consumption low, outperforming Claude Code.
According to DataBricks, pi-coding-agent is ~2x cheaper than CC/Codex, GLM 5.2 on par with Opus 4.8 high
Databricks benchmarks show pi-coding-agent is up to 2x cheaper than CC/Codex with higher pass rates, and GLM 5.2 performs on par with Opus 4.8 for coding tasks.
Pi Coding Agent
Pi Coding Agent is a customizable harness for building coding agents, now available on Product Hunt.
@wquguru: https://x.com/wquguru/status/2056235143623495975
A comprehensive guide to the Pi Coding Agent, comparing its features to Claude Code and highlighting its support for the /goal command.
@9hills: After several weeks of exploration and various attempts, the configuration of pi agent is basically stable. I posted a list before without explanation, which wasn't very friendly. This time I'm posting a full version with comments. Warning: If you need an out-of-box Coding Agent, don't use Pi; Claude Code/Codex is more suitable…
The author shares the stable configuration of pi agent (full version with comments), and warns that if you need an out-of-box Coding Agent, Claude Code/Codex is more suitable.