Remix.run Logo
▲ dingaling911 3 hours ago

How does pi let the agent edit the harness?

▲PaulKeeble 3 hours ago | parent | next [-]

There is pretty much no sandbox behaviour at all, so it can read and write files across the entire system. What pi does in its system prompt is tell the agent where it can find markdown files that explain skills and extensions alongside examples. If you prompt it to make a new skill or extension it will then go about doing so and inserts them into either ~/.pi/ or the current directory .pi depending on what makes most sense on what you asked.

I have made one extension called globalstats which iterates over all the sessions and costs up everything across various agents (with locals being negative price of the most common used cloud option, sort of money saved) and I have some skills about accessing dev servers and where to find the docker settings and up/down aliases so it can add things.

▲dingaling911 2 hours ago | parent [-]

I use pi extensions liberally, but I also used claude config for similar extensions. For sure, pi is way more extensible and I prefer it. I just don't think it's so mind blowing as people think. It's basically the simplest harness you can get, with well defined extension mechanisms.

▲pornel 35 minutes ago | parent | prev [-]

pi injects docs for extending itself into the system prompt. You just tell the agent what features you want, and it knows how to do the rest.