Summary
codebase-memory-mcp install for Claude Code writes PreToolUse (Grep/Glob), SessionStart, and SubagentStart hook entries to ~/.claude/hooks/ and settings.json. The README also documents a PostToolUse hook on Read — fallback structural context when a file couldn't be fully parsed/indexed — but no script or settings.json entry for it gets created.
Evidence
Install output (v0.9.0, Windows) lists only:
hooks: PreToolUse (Grep/Glob search-graph augmenter, non-blocking)
hooks: SessionStart (MCP usage reminder on startup/resume/clear/compact)
hooks: SubagentStart (MCP usage reminder for subagents)
src/cli/hook_augment.c already contains the matching logic, ahead of the Gemini/Qwen/Qoder/Factory/Augment dialect checks:
if (strcmp(event, "PostToolUse") == 0 && strcmp(tool, "Read") == 0) {
if (coverage) { *coverage = true; }
return true;
}
So the runtime is ready for a Claude Code PostToolUse/Read event — the install template just never emits the corresponding hook entry for it.
Expected
install/update should also write a PostToolUse hook entry (matcher Read) pointing at the augmenter, alongside the existing PreToolUse/SessionStart/SubagentStart entries.
Environment
codebase-memory-mcp 0.9.0, Windows, Claude Code (native install)
🤖 Filed with the help of Claude Code
Summary
codebase-memory-mcp installfor Claude Code writes PreToolUse (Grep/Glob), SessionStart, and SubagentStart hook entries to~/.claude/hooks/andsettings.json. The README also documents a PostToolUse hook onRead— fallback structural context when a file couldn't be fully parsed/indexed — but no script orsettings.jsonentry for it gets created.Evidence
Install output (v0.9.0, Windows) lists only:
src/cli/hook_augment.calready contains the matching logic, ahead of the Gemini/Qwen/Qoder/Factory/Augment dialect checks:So the runtime is ready for a Claude Code PostToolUse/Read event — the install template just never emits the corresponding hook entry for it.
Expected
install/updateshould also write aPostToolUsehook entry (matcherRead) pointing at the augmenter, alongside the existing PreToolUse/SessionStart/SubagentStart entries.Environment
codebase-memory-mcp 0.9.0, Windows, Claude Code (native install)
🤖 Filed with the help of Claude Code