Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Try the Simulator

Loading engine… curated examples ready

Watch a command walk through the gate pipeline. Pick a curated example below or enter your own command to see how the rules are evaluated. All commands (including curated examples) run locally in your browser using the real tool-gates engine compiled to WebAssembly. You can also drag and drop your own settings.json or settings.local.json files to simulate custom permission rules.

Examples

Pick a command.

Drag & drop settings.json or settings.local.json files here
Files are parsed locally and never uploaded. Choose files or drop them here.

$git status
gate pipeline · stepping through
raw_floor.rs
Raw-string scan
awaiting input…
parser.rs
tree-sitter parse
awaiting input…
gates/*.rs
Gate dispatch
awaiting input…
settings.rs
Settings.json merge
awaiting input…

Execution is completely local. Loading the engine fetches a WebAssembly-compiled tool-gates build (~600KB) that runs the actual raw-string, parse, and gate-dispatch pipeline in your browser. Dragged-and-dropped settings files are parsed in memory and never sent to any server.

tool-gates · permission gate hook for Claude Code, Codex CLI, and Antigravity CLI, with deprecated Gemini CLI support. github.com/camjac251/tool-gates

13 gates · 400+ commands · built from rules/*.toml