Deny Rules
The commands each delivery mode denies, and where that set comes from.
In Claude Code, each install.sh run with AGENT_RULES set writes the rule set for the configured delivery mode into permissions in settings.json. Strengthening and neutral changes apply on their own, and a weakening change waits for you to confirm it at a terminal. Rule Levels covers which entries the installer owns, how the confirmation works and what it prints when rules are not managed.
The installer reads the set from the Rule groups table in rule-groups.md, and this page renders the live groups. Each row is a group with an id. A retired group, one no longer recommended in either mode, stays in that file so older pasted copies can be recognised, and is left off this page. Placeholders like {conf} are shown as written and expanded by the installer.
| id | group | entries | hands-off | prs |
|---|---|---|---|---|
merge | Merge a PR | Bash(gh pr merge:*), Bash(gh stack merge:*) | deny | deny |
force-push | Force or mirror push | Bash(git push --force *), Bash(git push * --force), Bash(git push * --force *), Bash(git push --force-with-lease *), Bash(git push * --force-with-lease), Bash(git push * --force-with-lease *), Bash(git push --force-with-lease=*), Bash(git push * --force-with-lease=*), Bash(git push -f *), Bash(git push * -f), Bash(git push * -f *), Bash(git push -fu *), Bash(git push * -fu), Bash(git push * -fu *), Bash(git push -uf *), Bash(git push * -uf), Bash(git push * -uf *), Bash(git push --mirror *), Bash(git push * --mirror), Bash(git push * --mirror *), Bash(git push * +*) | deny | deny |
pr-review | Review a PR | Bash(gh pr review:*) | deny | deny |
issue-comment | Comment on an issue | Bash(gh issue comment:*) | deny | deny |
pr-comment | Comment on a PR | Bash(gh pr comment:*) | deny | deny until the commit guard is wired |
skills-conf | Edit skills.conf | Edit({conf}) | deny | deny |
installer | Rerun the installer | Bash(./install.sh *), Bash(sh install.sh *), Bash(sh ./install.sh *), Bash(bash install.sh *), Bash(bash ./install.sh *), Bash({checkout}/install.sh *), Bash(./skills/playbook/bin/skills install *), Bash(skills/playbook/bin/skills install *), Bash({checkout}/skills/playbook/bin/skills install *), Bash({agents}/playbook/bin/skills install *), Bash({claude}/skills/playbook/bin/skills install *), Bash(skills install *), Bash(./skills/playbook/bin/skills --root * install), Bash(./skills/playbook/bin/skills --root * install *), Bash(skills/playbook/bin/skills --root * install), Bash(skills/playbook/bin/skills --root * install *), Bash({checkout}/skills/playbook/bin/skills --root * install), Bash({checkout}/skills/playbook/bin/skills --root * install *), Bash({agents}/playbook/bin/skills --root * install), Bash({claude}/skills/playbook/bin/skills --root * install), Bash({agents}/playbook/bin/skills --root * install *), Bash({claude}/skills/playbook/bin/skills --root * install *), Bash(skills --root * install), Bash(skills --root * install *), Bash(./skills/playbook/bin/skills update *), Bash(skills/playbook/bin/skills update *), Bash({checkout}/skills/playbook/bin/skills update *), Bash({agents}/playbook/bin/skills update *), Bash({claude}/skills/playbook/bin/skills update *), Bash(skills update *), Bash(./skills/playbook/bin/skills --root * update), Bash(./skills/playbook/bin/skills --root * update *), Bash(skills/playbook/bin/skills --root * update), Bash(skills/playbook/bin/skills --root * update *), Bash({checkout}/skills/playbook/bin/skills --root * update), Bash({checkout}/skills/playbook/bin/skills --root * update *), Bash({agents}/playbook/bin/skills --root * update), Bash({claude}/skills/playbook/bin/skills --root * update), Bash({agents}/playbook/bin/skills --root * update *), Bash({claude}/skills/playbook/bin/skills --root * update *), Bash(skills --root * update), Bash(skills --root * update *) | deny | deny |
claude-settings | Edit Claude settings | Edit({claude}/settings.json) | ask | ask |
skills-git-config | Set a skills git config value | Bash(git config skills.*), Bash(git config * skills.*) | deny | deny |
publishing | Commit, push or open a PR | Bash(git commit:*), Bash(git push:*), Bash(gh pr create:*), Bash(gh pr edit:*), Bash(gh pr ready:*), Bash(gh pr close:*), Bash(gh stack submit:*), Bash(gh stack sync:*), Bash(gh stack push:*) | deny | no rule |
skills-cli | Run skills CLI verbs that publish nothing | Bash({claude}/skills/playbook/bin/skills plans wave *), Bash({agents}/playbook/bin/skills plans wave *), Bash({claude}/skills/playbook/bin/skills plans resume *), Bash({agents}/playbook/bin/skills plans resume *), Bash({claude}/skills/playbook/bin/skills plans schedule *), Bash({agents}/playbook/bin/skills plans schedule *), Bash({claude}/skills/playbook/bin/skills plans frontier *), Bash({agents}/playbook/bin/skills plans frontier *), Bash({claude}/skills/playbook/bin/skills plans set-row *), Bash({agents}/playbook/bin/skills plans set-row *), Bash({claude}/skills/playbook/bin/skills plans add *), Bash({agents}/playbook/bin/skills plans add *), Bash({claude}/skills/playbook/bin/skills plans log *), Bash({agents}/playbook/bin/skills plans log *), Bash({claude}/skills/playbook/bin/skills plans import *), Bash({agents}/playbook/bin/skills plans import *), Bash({claude}/skills/playbook/bin/skills plans show *), Bash({agents}/playbook/bin/skills plans show *), Bash({claude}/skills/playbook/bin/skills plans history *), Bash({agents}/playbook/bin/skills plans history *), Bash({claude}/skills/playbook/bin/skills plans checkout *), Bash({agents}/playbook/bin/skills plans checkout *), Bash({claude}/skills/playbook/bin/skills recall *), Bash({agents}/playbook/bin/skills recall *), Bash({claude}/skills/playbook/bin/skills threads log *), Bash({agents}/playbook/bin/skills threads log *), Bash({claude}/skills/playbook/bin/skills threads resume *), Bash({agents}/playbook/bin/skills threads resume *), Bash({claude}/skills/playbook/bin/skills plans close *), Bash({agents}/playbook/bin/skills plans close *), Bash({claude}/skills/playbook/bin/skills plans sweep *), Bash({agents}/playbook/bin/skills plans sweep *), Bash({claude}/skills/playbook/bin/skills plans start *), Bash({agents}/playbook/bin/skills plans start *), Bash({claude}/skills/playbook/bin/skills plans pin *), Bash({agents}/playbook/bin/skills plans pin *), Bash({claude}/skills/playbook/bin/skills plans bind *), Bash({agents}/playbook/bin/skills plans bind *), Bash({claude}/skills/playbook/bin/skills plans lint *), Bash({agents}/playbook/bin/skills plans lint *), Bash({claude}/skills/playbook/bin/skills plans handoff *), Bash({agents}/playbook/bin/skills plans handoff *), Bash({claude}/skills/playbook/bin/skills plans chain *), Bash({agents}/playbook/bin/skills plans chain *), Bash({claude}/skills/playbook/bin/skills plans stack-base *), Bash({agents}/playbook/bin/skills plans stack-base *), Bash({claude}/skills/playbook/bin/skills plans below *), Bash({agents}/playbook/bin/skills plans below *), Bash({claude}/skills/playbook/bin/skills brief *), Bash({agents}/playbook/bin/skills brief *), Bash({claude}/skills/playbook/bin/skills reviewers *), Bash({agents}/playbook/bin/skills reviewers *), Bash({claude}/skills/playbook/bin/skills round gate *), Bash({agents}/playbook/bin/skills round gate *), Bash({claude}/skills/playbook/bin/skills round decide *), Bash({agents}/playbook/bin/skills round decide *), Bash({claude}/skills/playbook/bin/skills settings *), Bash({agents}/playbook/bin/skills settings *), Bash({claude}/skills/playbook/bin/skills review read *), Bash({agents}/playbook/bin/skills review read *), Bash({claude}/skills/playbook/bin/skills pr green *), Bash({agents}/playbook/bin/skills pr green *), Bash({claude}/skills/playbook/bin/skills pr watch *), Bash({agents}/playbook/bin/skills pr watch *), Bash({claude}/skills/playbook/bin/skills delivery *), Bash({agents}/playbook/bin/skills delivery *), Bash({claude}/skills/playbook/bin/skills fast-mode *), Bash({agents}/playbook/bin/skills fast-mode *), Bash({claude}/skills/playbook/bin/skills arms *), Bash({agents}/playbook/bin/skills arms *), Bash({claude}/skills/playbook/bin/skills check *), Bash({agents}/playbook/bin/skills check *), Bash({claude}/skills/playbook/bin/skills audit *), Bash({agents}/playbook/bin/skills audit *), Bash({claude}/skills/playbook/bin/skills device *), Bash({agents}/playbook/bin/skills device *), Bash({claude}/skills/playbook/bin/skills dash fetch *), Bash({agents}/playbook/bin/skills dash fetch *), Bash({claude}/skills/playbook/bin/skills dash *), Bash({agents}/playbook/bin/skills dash *), Bash({claude}/skills/playbook/bin/skills digest *), Bash({agents}/playbook/bin/skills digest *), Bash({claude}/skills/playbook/bin/skills machine show *), Bash({agents}/playbook/bin/skills machine show *), Bash({claude}/skills/playbook/bin/skills machine label *), Bash({agents}/playbook/bin/skills machine label *), Bash({claude}/skills/playbook/bin/skills machine refresh *), Bash({agents}/playbook/bin/skills machine refresh *), Bash({claude}/skills/playbook/bin/skills issues file *), Bash({agents}/playbook/bin/skills issues file *), Bash({claude}/skills/playbook/bin/skills issues list *), Bash({agents}/playbook/bin/skills issues list *), Bash({claude}/skills/playbook/bin/skills issues show *), Bash({agents}/playbook/bin/skills issues show *), Bash({claude}/skills/playbook/bin/skills issues close *), Bash({agents}/playbook/bin/skills issues close *), Bash({claude}/skills/playbook/bin/skills issues link *), Bash({agents}/playbook/bin/skills issues link *), Bash({claude}/skills/playbook/bin/skills issues renumber *), Bash({agents}/playbook/bin/skills issues renumber *), Bash({claude}/skills/playbook/bin/skills sessions scan *), Bash({agents}/playbook/bin/skills sessions scan *), Bash({claude}/skills/playbook/bin/skills sessions list *), Bash({agents}/playbook/bin/skills sessions list *), Bash({claude}/skills/playbook/bin/skills sessions show *), Bash({agents}/playbook/bin/skills sessions show *), Bash({claude}/skills/playbook/bin/skills sessions restore *), Bash({agents}/playbook/bin/skills sessions restore *), Bash({claude}/skills/playbook/bin/skills hub join *), Bash({agents}/playbook/bin/skills hub join *), Bash({claude}/skills/playbook/bin/skills hub devices *), Bash({agents}/playbook/bin/skills hub devices *), Bash({claude}/skills/playbook/bin/skills hub status *), Bash({agents}/playbook/bin/skills hub status *), Bash({claude}/skills/playbook/bin/skills hub sync *), Bash({agents}/playbook/bin/skills hub sync *) | allow | allow |
Ask's Limits
In Claude Code, ask still prompts in bypassPermissions and auto mode. In claude -p runs and dontAsk mode, where nobody can answer, it acts as deny. A harness that auto approves prompts turns ask into allow. Deny is the only level that holds everywhere.
OpenCode global rules
In OpenCode, the same groups go into the global config: denies as configuration policies, which hold against project permissions, saved approvals and --auto, and asks as permission rules, which those can approve. Weakening changes need a terminal confirmation, as in Claude Code. Rule groups on the OpenCode page covers which file each entry goes to, which entries the installer owns and what Edit rules miss.
With the Commit Guard
The installer plans rules after wiring the commit guard, so a first prs install adds no pr-comment deny. With AGENT_RULES set, a run at a terminal lists removal of an existing deny for you to confirm. A non-terminal run leaves it on a left line for you to apply by hand. If CLAUDE_HOOK_PRE_TOOL_USE=off prevents wiring the guard, the deny stays recommended.
The installer counts the guard as wired only when that same settings.json runs skills hook pre-tool-use under a PreToolUse matcher reaching Bash. The command must name an absolute or unquoted ~/ path that resolves to this checkout's CLI, run as a command hook with no async: true and no if filter, and disableAllHooks must not be true. No managed setting may turn user hooks off, including allowManagedHooksOnly: true or disableAllHooks: true. Wiring in a project settings file is out of scope.
The gh pr comment deny also blocks the trigger a reviewer extension posts, such as @greptileai. Once the commit guard is wired in, remove Bash(gh pr comment:*) from the prs set. The guard takes over: it lets an active reviewer's bare trigger through and blocks every other comment.
Keep that deny in hands-off mode.
Installer and settings guards
Agents can no longer run the installer, including in this repository. Run ./install.sh yourself in your terminal. Tests still reach it through bun test; reading install.sh and searching for install stay allowed.
Editing Claude's settings.json prompts even in bypassPermissions. Approve an edit you requested before the agent applies it.
What a Deny Misses
A deny matches the command text. git -C . push --force slips past it, and so does git config Skills.greptile.rereviews 9, since git reads section names in any case. The commit guard denies a git config command naming a skills. key in any case.
A deny catches mistakes. The delivery rules agents follow hold either way.