permission-request
Run when a permission dialog is shown, to audit, auto-approve, or deny tool permissions.
- Score
- Unranked
- Evidence
- No signals yet
- Last commit
- Not known
- Listed
Install
armory install permission-request --cli claudewrites the file to.claude/hooks/permission-requestListed as compatible
# fetches the hook script into:
.claude/hooks/permission-request
# then register it in your settings.json "hooks" block.↳ Add the hook entry to settings.json, then restart the harness.
Needs the armory CLI · not on npm yet, build it from cli/ in the repository
Alternatives · Hooks
- dippy243 stars · 21 forks94.073
What it is
A Claude Code hook from disler/claude-code-hooks-mastery. Run when a permission dialog is shown, to audit, auto-approve, or deny tool permissions.
When to use it
Run when a permission dialog is shown, to audit, auto-approve, or deny tool permissions.
How to install / invoke
# wire the script into .claude/settings.json hooks for the matching event
curl -sL https://github.com/disler/claude-code-hooks-mastery/raw/main/.claude/hooks/permission_request.py -o .claude/hooks/permission-request.py
Notes
Extracted from .claude/hooks/permission_request.py. See the repo for the settings.json wiring and full implementation.
Source docstring: PermissionRequest Hook ====================== Triggered when the user is shown a permission dialog. This hook can: - Log all permission requests for auditing - Auto-allow specific patterns (e.g., read-only operations) - Deny permission requests based on security policies - Modify tool inputs before allowing Input JSON includes: - session_id, transcript_path, cwd, permission_mode - hook_event_name: "PermissionRequest" - tool_name, tool_input, tool_use_id Output JSON for decision control: { "hookSpecificOutput": { "hookEventName": "PermissionRequest", "decision": { "behavior": "allow" | "deny", "updatedInput": {...}, // optional for allow "message": "...", // optional for deny "interrupt": false // optional for deny } } }