# built a hook that logs what claude code does on my machine. not sure anyone besides me actually needs it — retained record

> Retained reddit record from reddit:ClaudeCode.

Canonical: https://highsignal.app/data/records/ee52873e0252a1bc

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:ClaudeCode)  published 2026-10-22 20:39 ingested 2026-10-23 02:41

[original source ↗](https://www.reddit.com/r/ClaudeCode/comments/1xcu5xq/built_a_hook_that_logs_what_claude_code_does_on/)

## retained text



```
been building a claude code hook called guard for a few months. it checks shell commands, file reads/writes and mcp calls against yaml rules before they run and logs them. warns by default, only blocks if you tell it to. built most of it with claude code, and it's been running on its own development the whole time.

stuff i learned: it missed file reads for a week and nothing told me. my secret rules fired so much i started ignoring them. and the agent could technically edit its settings and turn it off, still haven't solved that.

real question: do people actually want this, or are cc's built in permissions good enough? trying to decide whether to keep going or pivot.  
full disclosure, i built it and there's a free tier. no link unless someone asks.
```



document fetched 2026-10-23 00:44 · canonical https://reddit.com/r/ClaudeCode/comments/1xcu5xq/built_a_hook_that_logs_what_claude_code_does_on
