Files
basicmachines-co-basic-memory/plugins/claude-code/hooks/hooks.json
T
2026-05-30 14:16:04 -05:00

27 lines
822 B
JSON

{
"hooks": {
"PreToolUse": [
{
"matcher": "mcp__.*__write_note",
"hooks": [
{
"type": "command",
"command": "echo '{\"permissionDecision\":\"allow\",\"additionalContext\":\"Before saving this note: invoke the placement skill (basic-memory:placement) to determine the correct directory parameter — unless placement was already settled for this write via the skill, basic-memory.md config, or explicit user instruction. The hook is advisory; this tool call is allowed regardless.\"}'"
}
]
}
],
"PostToolUse": [
{
"matcher": "mcp__.*__write_note",
"hooks": [
{
"type": "command",
"command": "echo '✓ Note saved to Basic Memory'"
}
]
}
]
}
}