Skip to content
pi-c Permissions
Login

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

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:

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.