/plugin marketplace add xkayo32/agent-memory-orchestrator/plugin install xkayo32-agent-memory-orchestrator@xkayo32/agent-memory-orchestratorDefined in hooks/hooks.json
{
"PreCompact": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Before compaction, identify critical information to preserve: 1) Active task IDs and status, 2) Recent architectural decisions, 3) Pending action items, 4) Important context from last 10 minutes. Store these explicitly via memory_store() with type='context' and high-priority marker. Return systemMessage listing what was preserved.",
"timeout": 45
}
],
"matcher": "*"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Check if the Bash command was a git commit (tool_input.command contains 'git commit'). If yes, extract commit hash from tool_result and call git_sync() to update repository index. Then suggest running task verification if a task_id is available. Return systemMessage confirming git sync or empty if not a commit.",
"timeout": 30
}
],
"matcher": "Bash"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Check if project is initialized via project_list(). If active project exists, load recent context with context_summary(). If no active project, prompt user to initialize with project_init() or provide project info. Return systemMessage with project status and loaded context summary.",
"timeout": 30
}
],
"matcher": "*"
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": false
},
"typeStats": {
"prompt": 3
},
"eventStats": {
"PreCompact": 1,
"PostToolUse": 1,
"SessionStart": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}