mirror of
https://github.com/supermemoryai/claude-supermemory.git
synced 2026-09-14 14:58:03 +08:00
2556183965
Re-introduces the reasoned recall feature (previously reverted in #64), source files only — generated plugin/scripts/*.cjs are intentionally not included and must be produced by the build step. - recall-hook (UserPromptSubmit): injects a per-turn directive so Claude decides whether recalling saved memory helps the current message. - recall-approve (PreToolUse): auto-approves only the supermemory-search tool call (narrow allow-list, rejects shell-laced commands). - settings: recallDirective override + getRecallConfig. - build/hooks wiring and version bump to 0.0.8. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
52 lines
1.0 KiB
JSON
52 lines
1.0 KiB
JSON
{
|
|
"description": "Supermemory: Persistent memory for Claude Code",
|
|
"hooks": {
|
|
"SessionStart": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/context-hook.cjs\"",
|
|
"timeout": 30
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"UserPromptSubmit": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/recall-hook.cjs\"",
|
|
"timeout": 10
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "Skill|Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/recall-approve.cjs\"",
|
|
"timeout": 10
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/summary-hook.cjs\"",
|
|
"timeout": 30
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|