agent wants to run a command │ ▼ ┌──────────┐ ┌────────────────┐ ┌────────┐ │ Accept │ │ Accept Always │ │ Deny │ └──────────┘ └────────────────┘ └────────┘ │ │ │ run once remember rule reject + tell agent
/add-dir/add-dir <directory>:12/add-dir ../shared-lib grant access to a sibling directory /add-dir * grant access to all folders
opencode.json. See the OpenCode Permissions docs for the full schema, pattern matching, and per-agent overrides.1234567--- description: Build agent that never stalls on prompts mode: primary permission: question: allow plan_enter: allow ---
kimaki send, restrict tools for that session only with repeatable --permission rules:1234# Read-only review session kimaki send -c <channel-id> -p 'Review this code' \ --permission 'bash:deny' \ --permission 'edit:deny'
--permission reference.