pi-lot-pack-permissions0.1.1
Pi asks before a tool call that no rule covers, remembers the answer, keeps secrets closed, and can sandbox commands on macOS. With tool sets.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
Permissions and tool sets
Pi asks before a tool call that no rule covers, remembers your answer for the scope you choose, keeps files with passwords and keys closed, and can run macOS commands in a sandbox so that fewer questions come.
How it decides · The settings page · Commands · Tool sets · Files · Known limits

The question offers to allow once, for this session, or always (a command in this project, any other call everywhere), or to deny. A dangerous command can be allowed once only; a change to protected configuration once or for this session. tab denies and lets you tell Pi why; escape denies and stops the turn.
Install
pi install npm:pi-lot-pack-permissions
Or every extension of Pi-lot Pack at once with pi install npm:pi-lot-pack. Install one or the other: with both, this extension loads twice.
How it decides
| Mode | A call that no rule covers |
|---|---|
strict |
is denied |
balanced (default) |
is asked about |
relaxed |
is asked about, except simple, non-dangerous commands inside the folders you let Pi use, which run |
pass (You Shall Pass) |
runs, except what your rules deny; asks you to confirm once |
In every mode but You Shall Pass:
- Files with passwords or keys, such as
.envand~/.ssh, stay closed unless you allow one. - A dangerous command, such as a recursive removal or a force push, needs a confirmation that allows it once only (denied at
strict). - Protected configuration, such as
.git/hooksor Pi's own settings, is asked about before it is written (denied atstrict).
Always:
- Your rules come first. Allow rules are read only from your own files under Pi's agent folder; a file inside a project never grants anything.
- Approve for me (off by default): a model you choose answers routine questions for you, after you agree once to what is sent, with secrets hidden. It never answers about secrets or dangerous commands, and cannot change a deny.
- The sandbox (macOS, off by default): Pi's
bashruns in an operating-system sandbox that limits where commands write and which sites they reach, so that ordinary commands need no question.
The extension is a guardrail against ordinary mistakes and ordinary prompt injection, not a security boundary. What it does not do is listed in known limits.
The settings page

/permissions opens it. Every setting, rule and recent decision is here; without a UI, /permissions prints the status.
Commands
| Command | Effect |
|---|---|
/permissions level <pass|relaxed|balanced|strict> [--session] |
Change the permission mode, or only for this session; pass asks you to confirm once |
/permissions trust [path] [--read-only] |
Let Pi work in a folder (default: the current one) without asking |
/permissions untrust [path] |
Remove a folder that you added with trust |
/permissions forget |
Remove what you allowed for this session only |
/permissions tools |
Rules for tools that extensions add; looking at a tool's code with a model |
/permissions log |
Recent decisions, and a way to stop being asked about one |
/permissions delegate [off] |
Approve for me. off turns it off; pi --approve-for-me also lets it answer in print, JSON and RPC mode for that run |
/permissions export [file] / import <file> |
Save your rules to a file, or load the rules from one |
/permissions help |
One page of help |
Tool sets
/toolset chooses which tools Pi can use, from a page where you can change a set or make your own. It only takes tools away: your permission rules still decide about every call.
| Command | What it does |
|---|---|
/toolset [name] |
Switch, or open the page. ctrl+alt+t cycles through the sets, and a set can have its own shortcut. On the page, d removes a tool set you made. A new set starts empty or from a preset, and one based on a preset can restore it |
/toolset normal |
No limit |
/toolset read-only |
The read tools you chose, and commands in a sandbox that blocks writes. Commands can download from the internet unless the set turns that off. Without the sandbox, only commands known to be read-only can run, and they cannot reach the internet |
/toolset chat-only |
No tools |
/toolset pi-only |
Restarts as plain Pi in a new session: no extensions, skills or project files, and no permission checks. /quit, then pi -c, to return |
pi --toolset <name> |
Start with a set |
Files
Under Pi's agent folder (~/.pi/agent unless Pi is configured otherwise), in pi-lot-pack/permissions/. Change settings on /permissions; the files are not for editing by hand:
| File | Holds |
|---|---|
settings.json |
A copy of the saved settings to read. If it is changed, it is put aside and made again |
state/settings.json |
The saved settings: permission mode, rules, protected files, Approve for me and the sandbox. Every decision reads this file |
state/settings.backup.json |
The saved settings as of the last save, for recovery on /permissions |
state/grants.json |
Rules for one project or one session, and which projects were asked about |
state/investigations.json |
Looks at tools' code |
state/toolsets.json |
Tool sets you changed or made |
state/variables.json |
How often a command was allowed that was asked about only because of a variable |
logs/log.<date>.jsonl |
One line per decision, one file per day |
The pictures on this page are drawn by the extension's own views in Pi's dark theme, with sample data (scripts/readme-images.mjs).