Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
TypeScript aiai-agentsai-memoryanthropicartificial-intelligencechromadbclaudeclaude-agent-sdkclaude-agentsclaude-codeclaude-code-pluginclaude-skillsembeddingslong-term-memorymem0memory-engineopenmemoryragsqlitesupermemory
{
"version": 1,
"hooks": {
"beforeSubmitPrompt": [
{ "command": "npx -y claude-mem hook cursor session-init" },
{ "command": "npx -y claude-mem hook cursor context" }
],
"afterMCPExecution": [
{ "command": "npx -y claude-mem hook cursor observation" }
],
"afterShellExecution": [
{ "command": "npx -y claude-mem hook cursor observation" }
],
"afterFileEdit": [
{ "command": "npx -y claude-mem hook cursor file-edit" }
],
"postToolUse": [
{ "matcher": "Read|Grep|Task", "command": "npx -y claude-mem hook cursor observation" }
],
"postToolUseFailure": [
{ "matcher": "Read|Grep|Task|Write", "command": "npx -y claude-mem hook cursor observation" }
],
"stop": [
{ "command": "npx -y claude-mem hook cursor summarize" }
]
}
}