Files
guanjihuan.com/2026.06.23_claude_code_hooks/通用/settings.json
2026-07-15 11:49:49 +08:00

75 lines
1.5 KiB
JSON

{
"hooks": {
"SessionEnd": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "python3 /root/claude/hooks/audit.py SessionEnd",
"timeout": 15
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "python3 /root/claude/hooks/audit.py UserPromptSubmit",
"timeout": 10
}
]
}
],
"PreToolUse": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "python3 /root/claude/hooks/audit.py PreToolUse",
"timeout": 10
}
]
}
],
"PostToolUse": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "python3 /root/claude/hooks/audit.py PostToolUse",
"timeout": 10
}
]
}
],
"PermissionRequest": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "python3 /root/claude/hooks/audit.py PermissionRequest",
"timeout": 10
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "python3 /root/claude/hooks/audit.py Stop",
"timeout": 15
}
]
}
]
}
}