Skip to content
pi-c Permission modes
Login

Permission modes

Status: decided by the owner 2026-11-27 (ticket #107, closing #41): permission modes like Claude Code's, off by default. Built 2026-11-27.

Tier: core (src/perm.c). Clock: durability. Record: pic_permission, a pic_ask per call that asks. Default: allow, which asks nothing.

Why

Pi has no permission prompts, and pic followed it: a PreToolUse hook's ask ran the call. A phone that can start work wants the opposite for some conversations: stop before a command or an edit and wait for a yes, from wherever the person is. Durable questions (asks) made that possible without a process waiting at a terminal.

The decision

Why core

The gate sits between a call's journaled intent and its start, which only core owns: it decides nothing a model, vendor or prompt changes, only what the person chose, and it must be journaled before the call may run and read back on recovery. The rule is four lines of C over a registry flag (read_only) and two tool names; everything a person sees is an ask, which is core already. The internals are in permissions.