{ "hooks": { "pre-exec": [ { "matcher": "", "command": "scale gate pre-tool Bash --args-json \"$ARGS\" --session-id \"$SESSION_ID\"" }, { "matcher": "edit|write", "command": "scale gate pre-tool Edit --args-json \"$ARGS\" --session-id \"$SESSION_ID\"" } ], "post-exec": [ { "matcher": "edit|write", "command": "scale gate post-tool Edit --args-json \"$ARGS\" --exit-code \"$EXIT_CODE\" --session-id \"$SESSION_ID\"" }, { "matcher": "", "command": "scale gate post-tool Bash --args-json \"$ARGS\" --exit-code \"$EXIT_CODE\" --session-id \"$SESSION_ID\"" } ], "before-stop": [ { "matcher": "", "command": "scale gate before-stop --session-id \"$SESSION_ID\"" } ] }, "permissions": { "allow": [ "scale:*" ] } }