Loading...
{
"permissions": {
"allow": ["Bash(*)"]
}
}{
"permissions": {
"allow": ["Bash(npm test)", "Bash(npm run lint)", "Bash(git status)"],
"ask": ["Bash(git push:*)"],
"deny": ["Read(./.env)", "Bash(rm -rf:*)"]
}
}Specific allow rules remove prompts for safe commands, while risky actions still ask and secret files stay blocked.
Only inside a strong sandbox with no secrets and no network. On a normal machine it lets any command run, including destructive ones.
Allow runs without a prompt, ask requires approval each time, and deny blocks the action. Deny usually takes priority when rules overlap.
They limit the damage. If an injected instruction tries to read secrets or push code, deny and ask rules stop or expose it.