Skip to content

camjac251/tool-gates

v1.22.0MIT

Intelligent permission gate for Claude Code shell, file, search, Skill, and MCP tool surfaces. AST-parses Bash commands, guards file reads/writes, and blocks configured tool invocations. Defers benign asks to CC's resolver so the prompt UI shows the 'Yes, and don't ask again for X' button, while keeping a deny floor for dangerous patterns. Tracks one-time approvals so they can be batch-promoted to permanent rules later.

review

Batch-promote frequently asked tool-gates patterns to permanent permission rules in settings.json. Lists pending one-time approvals across sessions, shows counts and suggested glob patterns, and writes selected rules at local, project, or user scope. Use when the user asks to review pending approvals, promote recurring patterns, clean up the approval queue, share rules, or audit accumulated approvals. For a single in-session approval, use Claude Code's "Yes, and don't ask again" prompt. Not for manual settings edits, hooks, environment variables, MCP configuration, or building an allowlist from a transcript.

Read SKILL.md at the source

Pinned to revision 9741a13f11fe, so it is the text this page describes rather than whatever the author pushed since.

Pre-approved tools experimental

Experimental field. Support varies between clients, so this list is what the author declared, not what your client will enforce.

  • Bash(tool-gates pending list:*)
  • Bash(tool-gates rules list:*)
  • Bash(tool-gates approve:*)

Files

Every link opens the file at its source, pinned to the revision this page describes.