Install
1
Install the plugin$
npx claudepluginhub mksglu/context-mode --plugin context-modeWant just this hook?
Then install: npx claudepluginhub u/[userId]/[slug]
Risk Indicators
Executes bash commandsMatches all tools
Source
Defined in hooks/hooks.json
Configuration
{
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/precompact.mjs"
}
],
"matcher": ""
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/pretooluse.mjs"
}
],
"matcher": "Bash"
},
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/pretooluse.mjs"
}
],
"matcher": "WebFetch"
},
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/pretooluse.mjs"
}
],
"matcher": "Read"
},
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/pretooluse.mjs"
}
],
"matcher": "Grep"
},
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/pretooluse.mjs"
}
],
"matcher": "Agent"
},
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/pretooluse.mjs"
}
],
"matcher": "Task"
},
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/pretooluse.mjs"
}
],
"matcher": "mcp__plugin_context-mode_context-mode__ctx_execute"
},
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/pretooluse.mjs"
}
],
"matcher": "mcp__plugin_context-mode_context-mode__ctx_execute_file"
},
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/pretooluse.mjs"
}
],
"matcher": "mcp__plugin_context-mode_context-mode__ctx_batch_execute"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/posttooluse.mjs"
}
],
"matcher": ""
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/sessionstart.mjs"
}
],
"matcher": ""
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/userpromptsubmit.mjs"
}
],
"matcher": ""
}
]
}Summary
{
"riskFlags": {
"touchesBash": true,
"matchAllTools": true,
"touchesFileWrites": false
},
"typeStats": {
"command": 13
},
"eventStats": {
"PreCompact": 1,
"PreToolUse": 9,
"PostToolUse": 1,
"SessionStart": 1,
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 13,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 13
}
}Stats
Stars5539
Forks345
Last CommitMar 5, 2026