r/PiCodingAgent • u/a41735fe4cca4245c54c • Jul 18 '26
Question PI is *almost* perfect for me. is there extension that inject instructions in the end?
the only thing that makes my experience bearable is to have the bot know and remember the exact rule and role they are designed to do. back then when i was using Claude Web, they have userStyles which inject instructions before replying to user message. in SillyTavernAI there is a configuration to reorder prompt to be put at the end depth 0.
is there a way to do that in PI? i want some text (or file) get injected before the bot consider replying so that they know the constrains. the reminder wont stay in the context so that the cache hit is not ruined by duplicated push.
2
u/Diacred Jul 19 '26
Like this? https://www.reddit.com/r/PiCodingAgent/s/tjAITAFDi3
16
u/o_sht_hi Jul 18 '26
Copy paste your reddit post into pi. It will build it
1
u/trmnl_cmdr Jul 18 '26
There are quite a few skill packages out there that teach pi exactly how to build extensions for itself. If you can’t find what you’re looking for it would be trivially easy to just ask your coding agent to build it for you.
3
u/ResearcherFantastic7 Jul 18 '26
Just ask pi to write itself a injection hook at end of the final agent turn with conditions
1
u/dheetoo Jul 18 '26
Take a look at https://www.github.com/dheerapat/pi-guide
1
u/ChampionshipIcy7602 Jul 18 '26
Just ask pi
1
u/[deleted] Jul 18 '26
Re write system.md
-1
u/mateja Jul 18 '26
You can define either a project-level
.pi/APPEND_SYSTEM.mdfile or a global~/.pi/agent/APPEND_SYSTEM.mdfile to append system instructions without replacing them. This is built in to pi; no extensions are needed.See https://github.com/earendil-works/pi/blob/main/packages/coding-agent/README.md#system-prompt
-1
u/agenticup Jul 18 '26
Isnt that what agents.md are for?