/plugin marketplace add kerinin/claude-modes/plugin install modes@claude-modesDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "curl -s --unix-socket \"$CLAUDE_PROJECT_DIR/.claude/mode.sock\" -X POST -d @- http://./check-tool 2>/dev/null || true"
}
],
"matcher": "*"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "curl -s --unix-socket \"$CLAUDE_PROJECT_DIR/.claude/mode.sock\" http://./context 2>/dev/null || true"
}
],
"matcher": ""
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": true,
"touchesFileWrites": false
},
"typeStats": {
"command": 2
},
"eventStats": {
"PreToolUse": 1,
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 2
},
"timeoutStats": {
"commandsWithoutTimeout": 2
}
}