Artifact 4e07349ed3a20ab187b5c7a29d7c9d62c3bae4abf3382616797af6fdc5129ba1:
- File docs/manual/permissions.md — part of check-in [e5be0b7db3] at 2026-11-27 14:38:45 on branch perm-modes — Permission modes: settings row, hook allow note, test counts (user: dmestas, size: 3148) [annotate] [blame] [check-ins using]
Permissions
By default pic runs every tool call the model makes, as Pi does. A permission mode makes a conversation stop and ask you first, or refuse changes altogether. The mode belongs to the conversation: it survives a restart, and every terminal and phone sees the same one.
| Mode | Asks before | Refuses | Claude Code's nearest |
|---|---|---|---|
allow |
nothing | nothing | bypassPermissions |
ask-edits |
write and edit |
nothing | none |
ask-all |
every call that can change something: commands, writes, edits, messages, MCP tools not marked read-only | nothing | default |
read-only |
nothing | every call that can change something | plan |
Reading, searching and listing (read, grep, find, ls, tool_search, and MCP tools their
server marks read-only) never ask.
Choosing a mode
/permissionssays the conversation's mode and the tools allowed for it;/permissions ask-allchanges it. Before the first message, the mode goes with that message. The footer names the mode while it is notallow.pic --permission-mode ask-allgives the conversation that mode at its next message, in the terminal interface, with-pand withpic ask.- The setting
permissionModeis the mode a new conversation starts with. A conversation that has already run keeps its own. - A paired phone shows each conversation's mode and can change it.
- In RPC mode,
get_permission_modeandset_permission_mode.
When a call asks
The call waits, and you get a question in the terminal, on a paired phone and in
pic answer, titled with the tool and what it acts on ("Allow bash: make deploy?") and showing the
command, or the start of the file or the change. It has three answers:
- Allow runs this call.
- Allow for this conversation runs it, and that tool runs without asking for the rest of the conversation.
- Deny does not run it. The model is told you denied it, and goes on.
The question is kept in the journal. If pic stops while it waits, the call has not run and the question stays open: answer it, and the next pic to take up the conversation runs the call (or not) on that answer, without asking again.
A hook can ask too: a PreToolUse hook that answers "permissionDecision": "ask" puts the call to
you this way in every mode, allow included, with the hook's reason above the preview.
A hook can also widen what a mode permits: a PreToolUse hook that answers "allow" runs the call
without the mode asking, as in Claude Code. Only read-only holds against it: a change is still
refused there. Configure only hooks you trust.
With nobody there
A run with no terminal (-p, pic run, a loop firing) still waits: answer from a phone or with
pic answer in another shell. A question nobody answers closes after 7 days, as every question
does; the call is then denied, pic says so on stderr, and the model is told nobody answered.
In read-only
A call that would change something is not run and not asked about; the model is told the conversation is read-only and to read, search and list only, or to ask you to change the mode.