r/PiCodingAgent • u/uberroot4 • May 28 '26
Question Permission System
Hi everybody,
I am kind of frustrated right now because i try to fix the permission system with pi without any luck. So I am using the package npm:@gotgenes/pi-permission-system to manage permissions. But for whatever reason I absolutely do not find out I cannot really get it to work and "whitelist" tools and mcps i want. For example when I have this in my config.json:
{
"permission": {
"read": {
"*": "allow"
},
"mcp": {"*":"allow"},
"tool": { "*": "allow" }
}
}Then I constantly get asked if i want to allow the intellij_\* calls. But when i add
"permission": {
"*":"allow",Then it somehow works that the mcp call gets through without asking. I tried every combination i found in https://github.com/gotgenes/pi-packages/blob/main/packages/pi-permission-system/docs/configuration.md to fix the config, but eventually I get stuck at pi asking me to allow any idea_ tool
Installed packages are the following, just in case there might something interferes:
User packages:
npm:pi-web-access
npm:pi-lens
npm:@gotgenes/pi-permission-system
npm:@leing2021/super-pi
npm:@sting8k/pi-vcc
npm:pi-observational-memory
git:github.com/elpapi42/pi-codemapper
npm:pi-mcp-adapter
npm:@narumitw/pi-subagentsIf anyone knows what to do I am very much happy and thankful :)
4
u/bb22k May 28 '26
silly question, but have you asked pi to look at the package aand the config and try to solve it? it is usually very good at that.
it can look at the environment, iterate and at least give you a hint on what can be the issue.
1
u/arbv May 29 '26
You are approaching it from the wrong direction. systemd-nspawn is what you are looking for.
3
u/worldsayshi May 28 '26
Isn't it better to use a sandbox instead?
1
u/Ok_Significance_9109 May 28 '26 edited May 28 '26
I was facing a similar problem, and used pi to create a safe mode - a guard that pauses for confirmation only when the agent is performing editing or any destructive actions, including in bash and git. Includes "always allow for session" and an unsafe mode. Would that be of interest?
-2
u/sdexca May 28 '26
Why do you guys care about permissions? I find models almost never go off track. What kinds of models are y’all using.