console.log Guard
hookMonitoring & opsconsole.log Guard is a hook that scans each edit for stray debug output. It flags console.log and print statements as they are written, so leftover debug statements are caught before they end up in committed code.
Unavailable. Delivery for this kind is on the roadmap — not serving yet.
Have an agent setup that supports hooks.
What your AI can do with it
- Flags console.log statements at edit time
- Flags print statements at edit time
- Runs a quick scan on each edit
- Keeps stray debug output out of the code tree
Getting started
- Have an agent setup that supports hooks.
- Add the console.log Guard hook to your hook configuration.
- Edit files as usual; the hook scans each edit and flags stray debug statements.
Signals
- GitHub stars
- 268k
- Forks
- 40k
- Last commit
- Sep 2026
Questions
- What does it flag?
- It flags stray console.log and print debug statements as you edit, so they don't get committed.
- When does the scan happen?
- It runs a quick scan on each edit, catching debug statements at edit time rather than after they are committed.
Advanced
- Item type
- hook
- Key
console-log-guard- Source
- github.com/affaan-m/everything-claude-code