codebase-memory-mcp
codebase-memory-mcp copied to clipboard
hook-augment: local efficacy counters (fired / emitted / bytes)
Summary
Hooks are fail-open and silent, so there is no way to tell whether hook-augment helps without parsing agent transcripts.
Request
A local counter per hook event, readable from the CLI:
- fired
- emitted context (yes/no)
- bytes emitted
So a user can see firing and emission rates without scraping ~/.claude/projects JSONL.
Why
In one week on Claude Code we saw roughly 765 PreToolUse Bash hook runs, about 20 injections, 0 followed by a CBM tool call, plus false positives on log greps. Without counters in the product, every efficacy review is a custom transcript scrape.