/plugin marketplace add rand/rlm-claude-code/plugin install rlm-claude-code@rlm-claude-code-marketplaceDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/scripts/save_trajectory.py",
"timeout": 5000,
"description": "Save trajectory on session end"
}
],
"matcher": ".*"
}
],
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/scripts/externalize_context.py",
"timeout": 10000,
"description": "Externalize context before compaction"
}
],
"matcher": ".*"
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/scripts/sync_context.py",
"timeout": 2000,
"description": "Sync tool context with RLM state"
}
],
"matcher": ".*"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/scripts/capture_output.py",
"timeout": 2000,
"description": "Capture tool output for RLM context"
}
],
"matcher": ".*"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/scripts/init_rlm.py",
"timeout": 5000,
"description": "Initialize RLM environment and load config"
}
],
"matcher": ".*"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "python ${CLAUDE_PLUGIN_ROOT}/scripts/check_complexity.py \"$PROMPT\"",
"timeout": 3000,
"description": "Check if RLM should activate based on task complexity"
}
],
"matcher": ".*"
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": false
},
"typeStats": {
"command": 6
},
"eventStats": {
"Stop": 1,
"PreCompact": 1,
"PreToolUse": 1,
"PostToolUse": 1,
"SessionStart": 1,
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 6,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}