| ▲ | PaulKeeble a day ago | |
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 a day ago | parent | next [-] | |
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. | ||
| ▲ | chriswarbo 16 hours ago | parent | prev [-] | |
> There is pretty much no sandbox behaviour at all, so it can read and write files across the entire system. It does provide hooks, so tool calls can be intercepted/gated/etc. The first thing I did with pi was have it write an extension that asks for permission for each Bash invocation. I've extended that with a simple Python script which auto-denies known-bad things (e.g. running find on /), auto-allows known-safe things (e.g. non-destructive text processing pipelines), and asks me for anything else. Its tools can also be switched-out; e.g. I've replaced its read/write/edit tools with alternatives which invoke emacsclient. There's no reason you couldn't replace its tools with sandboxed alternatives, if you wanted. | ||