agentmemory-python / plugin /hooks /hooks.codex.json
Yash030's picture
feat: add Python plugin system, multi-agent connect CLI, and MCP tool expansions
26a284a
{
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "python \"${CLAUDE_PLUGIN_ROOT}/scripts/session_start.py\"",
"statusMessage": "agentmemory: loading session context"
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "python \"${CLAUDE_PLUGIN_ROOT}/scripts/prompt_submit.py\"",
"statusMessage": "agentmemory: recalling relevant memories"
}
]
}
],
"PreToolUse": [
{
"matcher": "Edit|Write|Read|Glob|Grep",
"hooks": [
{
"type": "command",
"command": "python \"${CLAUDE_PLUGIN_ROOT}/scripts/pre_tool_use.py\""
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "python \"${CLAUDE_PLUGIN_ROOT}/scripts/post_tool_use.py\""
}
]
}
],
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "python \"${CLAUDE_PLUGIN_ROOT}/scripts/pre_compact.py\""
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "python \"${CLAUDE_PLUGIN_ROOT}/scripts/stop.py\""
}
]
}
]
}
}