/plugin marketplace add Jayphen/coders/plugin install jayphen-coders@Jayphen/codersDefined in ./hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "if echo \"$CLAUDE_TOOL_INPUT\" | grep -qE 'tmux (new-session|send-keys|list-sessions|kill-session|attach|capture-pane)'; then echo '{\"decision\": \"allow\"}'; else echo '{\"decision\": \"ask\"}'; fi"
}
],
"matcher": "Bash"
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": false
},
"typeStats": {
"command": 1
},
"eventStats": {
"PreToolUse": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 1
}
}