gk_guard
Control file-write permissions for AI coding agents by managing an allowlist. Set or clear allowed paths for the current turn to enforce quality gates and prevent unauthorized edits.
Instructions
Write allowlist for host PreToolUse. set_paths arms ONE turn (ship default max 1 path); end_turn clears it. Ultradeep syncs current file only — never the whole queue. Blocks native Write only when the host hook is wired. Pass action= and optional args={}. 3 actions; unknown action returns allowed list (saves schema tokens).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| action | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |