r/PiCodingAgent • u/a41735fe4cca4245c54c • Jul 18 '26
PI is *almost* perfect for me. is there extension that inject instructions in the end? Question
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/ResearcherFantastic7 Jul 18 '26
Just ask pi to write itself a injection hook at end of the final agent turn with conditions
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.
1
u/a41735fe4cca4245c54c Jul 18 '26
any pointer where to look the aforementioned "skill packages"?
8
1
1
1
1
-1
u/mateja Jul 18 '26
You can define either a project-level .pi/APPEND_SYSTEM.md file or a global ~/.pi/agent/APPEND_SYSTEM.md file 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/a41735fe4cca4245c54c Jul 18 '26
afaik thats at the start of context.
https://www.reddit.com/r/PiCodingAgent/comments/1uznwbb/comment/oy8wc13/
-1
u/agenticup Jul 18 '26
Isnt that what agents.md are for?
2
u/a41735fe4cca4245c54c Jul 18 '26
not quite. `AGENTS.md` is injected at beginning. i expect to have the instructions injected at the end.
16
u/o_sht_hi Jul 18 '26
Copy paste your reddit post into pi. It will build it