codebase-memory-mcp icon indicating copy to clipboard operation
codebase-memory-mcp copied to clipboard

hook-augment: local efficacy counters (fired / emitted / bytes)

Open SStonkSS1 opened this issue 1 month ago • 0 comments

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.

SStonkSS1 avatar Oct 31 '26 14:10 SStonkSS1