21 lines
618 B
JSON
21 lines
618 B
JSON
{
|
|
"_comment": "Org OS enforcement hooks. TEMPLATE — activate by merging into .claude/settings.json (takes effect on next Claude Code session; hook changes require security review).",
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "Bash|Write|Edit|NotebookEdit",
|
|
"hooks": [
|
|
{ "type": "command", "command": "python3 \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard_tools.py\"" }
|
|
]
|
|
}
|
|
],
|
|
"SubagentStop": [
|
|
{
|
|
"hooks": [
|
|
{ "type": "command", "command": "python3 \"$CLAUDE_PROJECT_DIR/.claude/hooks/stop_validate.py\"" }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|