Defined in ./.claude-plugin/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"name": "document-indexing",
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/src/rag_cli_plugin/hooks/document-indexing.py",
"priority": 50,
"description": "Automatically indexes new or modified documents"
}
]
}
],
"SessionEnd": [
{
"hooks": [
{
"name": "session-end",
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/src/rag_cli_plugin/hooks/session-end.py",
"priority": 30,
"description": "Cleanup and state persistence when Claude Code session ends"
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"name": "response-post",
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/src/rag_cli_plugin/hooks/response-post.py",
"enabled": false,
"priority": 80,
"description": "Adds inline citations to Claude responses when RAG context is used (DISABLED: Claude Code framework bug)"
}
]
}
],
"Notification": [
{
"hooks": [
{
"name": "error-handler",
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/src/rag_cli_plugin/hooks/error-handler.py",
"priority": 70,
"description": "Provides graceful error handling with helpful troubleshooting tips"
}
]
},
{
"hooks": [
{
"name": "plugin-state-change",
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/src/rag_cli_plugin/hooks/plugin-state-change.py",
"priority": 60,
"description": "Persists RAG settings across Claude Code restarts"
}
]
}
],
"SessionStart": [
{
"hooks": [
{
"name": "session-start",
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/src/rag_cli_plugin/hooks/session-start.py",
"priority": 40,
"description": "Initializes RAG-CLI resources when a Claude Code session starts"
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"name": "slash-command-blocker",
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/src/rag_cli_plugin/hooks/slash-command-blocker.py",
"priority": 150,
"description": "Prevents Claude from responding to slash commands, showing only execution status"
}
]
},
{
"hooks": [
{
"name": "user-prompt-submit",
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/src/rag_cli_plugin/hooks/user-prompt-submit.py",
"priority": 100,
"description": "Automatically enhances queries with RAG context and multi-agent orchestration"
}
]
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": true,
"touchesFileWrites": false
},
"typeStats": {
"command": 8
},
"eventStats": {
"PreToolUse": 1,
"SessionEnd": 1,
"PostToolUse": 1,
"Notification": 2,
"SessionStart": 1,
"UserPromptSubmit": 2
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 8,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 8
}
}