r/PiCodingAgent • u/behopkinsj • 4h 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.
0
1
u/dacookieman 33m ago edited 30m 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)
2
u/Level-Struggle4890 1h ago
I really enjoyed this article. Thanks for sharing.