Local-first 🧠memory for Hermes Agent that lives in your Obsidian vault and remembers project context. Nightly 😴 dream passes turn repeat corrections into confirmed preferences with measurable confidence. Adapters ship for Claude Code, Codex, and OpenClaw, with an MCP server for anything else.
TypeScript
{
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/active-inject.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
},
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/gap-agenda.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
},
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/backlog-nudge.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
},
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/log-catchup.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
},
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/view-render.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
},
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/session-capture.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/session-capture.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
},
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/recall-inject.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
},
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/nav-inject.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
},
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/neighbour-updates.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
},
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/counterparty-brief.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
}
]
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/pretool-orient.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
},
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/pretool-host-backup.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
}
]
}
],
"PostToolUse": [
{
"matcher": "brain_feedback",
"hooks": [
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/session-capture.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
}
]
},
{
"matcher": "Write|Edit|MultiEdit|apply_patch|search_replace",
"hooks": [
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/post-write-reminder.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
},
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/subagent-inject.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/session-capture.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
},
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/stop-log-guardrail.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
},
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/answer-quote-check.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
},
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/hygiene-digest.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
}
]
}
],
"SubagentStop": [
{
"hooks": [
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/session-capture.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
}
]
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/session-capture.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
},
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/gap-promote.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
}
]
}
],
"PostCompact": [
{
"hooks": [
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/active-inject.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
},
{
"type": "command",
"command": "<BUN> run <REPO>/hooks/session-capture.ts",
"env": {
"VAULT_AGENT_NAME": "grok-dev-agent"
},
"timeout": 10
}
]
}
]
}
}