Files
socraticode/hooks/hooks.json
T
Giancarlo Erra 72e4a5f998 fix: change SessionStart hook type from prompt to command
Prompt-type hooks require ToolUseContext which doesn't exist at session
startup, causing an error on every Claude Code session start.

Closes #16
2026-03-26 17:47:04 +00:00

17 lines
614 B
JSON

{
"hooks": {
"SessionStart": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "echo 'IMPORTANT: If you notice that SocratiCode MCP tools appear with BOTH a plugin prefix (e.g. mcp__plugin_socraticode_socraticode__codebase_search) AND a standalone prefix (e.g. mcp__socraticode__codebase_search), the user has a duplicate configuration. Advise them to remove the standalone MCP by running: claude mcp remove socraticode — the plugin already provides the MCP server.'",
"timeout": 5
}
]
}
]
}
}