permissions
Manage the interactive permission system — create policies, review audit trails, and test risk classification.
Commands
permissions list
Show all stored permission policies.
bashmayros permissions list
permissions add <pattern>
Create a new permission policy.
bashmayros permissions add "git commit*" --kind always_allow --type glob mayros permissions add "npm publish" --kind ask --type exact --risk medium mayros permissions add "rm -rf.*" --kind always_deny --type regex
| Option | Description | Default |
|---|---|---|
--kind | always_allow, always_deny, ask | ask |
--type | exact, glob, regex | exact |
--risk | Maximum risk level for this policy | — |
permissions remove <id>
Delete a permission policy by ID.
bashmayros permissions remove policy-1234-1
permissions audit
Show recent permission decisions.
bashmayros permissions audit mayros permissions audit --limit 50
Each entry shows: tool name, command, risk level, decision, source, and timestamp.
permissions classify <command>
Test the risk classifier on a command without executing it.
bashmayros permissions classify "git push --force origin main" # → Risk: high — Matched: git push --force, git push -f
permissions status
Show current configuration and statistics.
bashmayros permissions status
Displays: mode, auto-approve setting, policy count, recent decision count.
Related
- Interactive Permissions — concept overview
- Bash Sandbox — command sandboxing
- sandbox CLI — sandbox management