mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
5365f971ef
Signed-off-by: phernandez <paul@basicmachines.co>
27 lines
822 B
JSON
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'"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|