~/.nu/policy.yaml. Nu starts with these:
Anything else asks first. That includes MCP and package tools, installing or
writing packages, browser tasks, messages to anyone but you, and changes to the
policy or specialists.
Changing the rules
The quickest way is from an approval card. Always allow adds a rule for that tool, and Write a rule lets you describe the rule you want. See Approvals. You can also ask from chat with/policy, for example
/policy ask before any git push. Nu drafts the change and shows it to you
before it takes effect. /policy on its own lists the current rules, and
nu policy --yaml prints them as YAML.
Rules edited in the dashboard take effect within a
few seconds. If an edit fails Nu’s checks, Nu undoes it and tells you why.
A rule can match the tool name and its arguments: