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