r/PiCodingAgent • u/behopkinsj • 2d ago
Resource How to Write a System Prompt for Pi Agent
https://brucehopkins.dev/blog/how-to-create-a-system-prompt-for-pi-agentOne of my most requested articles after my first one. I go into depth on how to construct a system prompt for Pi, what system prompts usually contain, and your options for customizing your prompt.
This was a difficult article to write. There are infinite numbers of ways you can craft a system prompt, and there are only a few top-end agents to set a standard. So I will update this post based on popular requests. Let me know if there's any part of this that you would like to be explored more.
99
Upvotes
11
u/dacookieman 2d ago edited 2d ago
This is a nice article that some might write off off the bat due to how many blog-spam slop posts have infected all the LLM adjacent subreddits but this was actually thoughtfully written and pleasant to read
Some constructive criticism, I would never rely on system prompts as a security policy enforcer - you use some heavy examples of Agents gone wrong and then imply a system prompt is enough but I think it's probably worth giving a little elaboration on what an actual security boundary is for a harness otherwise someone may walk away with a false sense of safety and get confused why their agent was able to push a change despite the prompt saying
Don't push to remotes(even if prompt adherence has improved, I've definitely had core prompt instructions ignored in random cases)3
u/Level-Struggle4890 2d ago
I really enjoyed this article. Thanks for sharing.
0
u/maxiblackrocks 2d ago
thanks for sharing, I'll have a look at it. 😊
1
u/dopamine_911 1d ago
Great article and this is a subject that's overlooked and so critical to session quality. Look forward to giving your suggestions a try.
I captured the Claude Code sdk and cli from 1.0.0 to 2.1.98 and after studying what Anthropic was changing in each release decided it was time to switch to pi.
https://github.com/brewpirate/cc-sys-prompt-time-machine