mati_core/hooks/post_memget.rs
1/// Claude PostToolUse(mcp__mati__mem_get) hook — record an ACTOR-SCOPED consult receipt.
2/// Fires after a successful mem_get; the payload carries session_id, agent_id (subagent),
3/// and tool_input.key. Captures the consult per-actor (the MCP handler is actor-blind).
4pub const SCRIPT: &str = r#"#!/usr/bin/env bash
5HOOKS_DIR="$(cd "$(dirname "$0")" && pwd)" && export PATH="$HOOKS_DIR:$PATH"
6command -v mati >/dev/null 2>&1 || exit 0
7exec mati hook-decide claude-post-memget
8"#;