@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…

X AI KOLs Timeline News

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.

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.
Original Article
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

Pi Coding Agent

Product Hunt

Pi Coding Agent is a customizable harness for building coding agents, now available on Product Hunt.

@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…

X AI KOLs Timeline

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.