Add a rule for a specific command
- Open Settings → Automation. In Allowed Commands or Blocked Commands, type a command prefix and press Enter. Use the × beside a rule to remove it. Review the lists and apply your settings if Desktop shows unsaved changes.
- Use a prefix such as npm run lint for a lint script you have reviewed. This covers npm run lint and npm run lint -- --fix, because the same first three tokens match. It does not match npm run lint-all. Keep the prefix narrow and review options as well as the script.
Check which rule wins
The default allow list starts with 15 verification prefixes such as git status, python -m pytest and npm test. The block list starts empty. If you add a more specific block for npm run lint -- --fix, that block takes priority over npm run lint in Allowed Commands, including for manual runs and Hold My Beer.
An allow rule makes a command eligible where the effective profile and repository grant permit it. Check Per-Repository Consent and the Effective Execution Policy card before turning on Auto-Run. Platform guards still apply.
Try a check and read its decision
- Select a practice repository in Inspect. For a queued check you want to run once, use Run. Before choosing Always Run, confirm you want GDP to add the proposed prefix to the shared Allowed Commands list.
- Read the individual command outcome. A command pending approval is waiting for a decision. A policy-blocked command was denied. A nonzero exit code after execution means the command ran but reported a failure.