Install
1
Install the plugin$
npx claudepluginhub earthmanweb/serena-workflow-engine --plugin serena-workflow-engineWant just this hook?
Then install: npx claudepluginhub u/[userId]/[slug]
Risk Indicators
Executes bash commandsModifies files
Source
Defined in hooks/hooks.json
Configuration
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/stop/swe_stop_workflow_check.py",
"timeout": 10
}
]
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/pre/swe_pre_tool_init_gate.py",
"timeout": 10
}
],
"matcher": ".*"
},
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/pre/swe_pre_swarm_feature_gate.py",
"timeout": 10
}
],
"matcher": "mcp__ruv-swarm__swarm_init"
},
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/pre/swe_pre_bash_test_gate.py",
"timeout": 10
}
],
"matcher": "Bash"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/post/swe_post_read_state.py",
"timeout": 10
}
],
"matcher": "mcp__serena__read_memory|mcp__plugin_swe_serena__read_memory"
},
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/post/swe_post_write_continue.py",
"timeout": 5
}
],
"matcher": "mcp__serena__write_memory|mcp__plugin_swe_serena__write_memory|mcp__serena__edit_memory|mcp__plugin_swe_serena__edit_memory"
},
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/post/swe_post_todo_wm_sync.py",
"timeout": 5
}
],
"matcher": "TodoWrite"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/session/swe_session_start.py",
"timeout": 10
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/prompt/swe_user_prompt_workflow.py",
"timeout": 10
},
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/prompt/swe_user_prompt_swarm.py",
"timeout": 10
}
]
}
]
}Summary
{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 10
},
"eventStats": {
"Stop": 1,
"PreToolUse": 3,
"PostToolUse": 3,
"SessionStart": 1,
"UserPromptSubmit": 2
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 10,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}Stats
Stars1
Forks0
Last CommitFeb 22, 2026