Borrowing it
Nothing to install: this file belongs to Edmonds-Commerce-Limited/claude-code-hooks-daemon. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Edmonds-Commerce-Limited/claude-code-hooks-daemon/main/CLAUDE.mdgit clone --depth 1 https://github.com/Edmonds-Commerce-Limited/claude-code-hooks-daemonWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/edmonds-commerce-limited/claude-code-hooks-daemon/claude-md)<a href="https://agentmods.dev/instructions/edmonds-commerce-limited/claude-code-hooks-daemon/claude-md"><img src="https://agentmods.dev/badge/instructions/edmonds-commerce-limited/claude-code-hooks-daemon/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/edmonds-commerce-limited/claude-code-hooks-daemon/claude-md"><img src="https://agentmods.dev/badge/instructions/edmonds-commerce-limited/claude-code-hooks-daemon/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.19008 | $0.19008 |
| Opus 5.5 | $0.07603 | $0.07603 |
| Sonnet 5.5 | $0.03802 | $0.03802 |
| Haiku 4.5 | $0.01901 | $0.01901 |
Grade F, and why
claude-code-hooks-daemon CLAUDE.md scanned grade F with 5 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Hidden instructionshighPrompt injection
Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.
<!-- handler: block-pip-break-system --> Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
| R-SUDO-PIP-INSTALL | `sudo pip install` | Conflicts with the OS package manager and can corrupt system Python | Use a virtual environment or `pip install --user` instead | Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
The handlers that judge a Bash COMMAND — destructive git, `sed`, pipes, permissions, `curl | sh` — are unaffected and still cover you. Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
The handlers that judge a Bash COMMAND — destructive git, `sed`, pipes, permissions, `curl | sh` — are unaffected and still cover you. Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
- Command injection: `os.system`, `subprocess(..., shell=True)`, `shell_exec`, `proc_open`, `Runtime.exec`, `Process.Start`, `IO.popen` How it starts
The opening of the file, as written. The whole thing — 822 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Hooks Daemon — Active Handler Guidance
The handlers listed below are active in this project. Read this section to avoid triggering unnecessary blocks.
When a tool is blocked by a handler, do not stop working. Read the block reason, modify your approach, and continue with your task.
A file written through Bash is not seen by the content guards that run BEFORE the write. The PreToolUse handlers below that inspect what a file CONTAINS, or where it lives, key on the Write and Edit tools — so a >, >>, tee or a cat <<EOF heredoc reaches disk unexamined by them: no block, no advisory, no record. A Bash write that drew no complaint is NOT a write that passed those checks — use Write/Edit for file content and they apply.
The LINTERS are the exception, and they DENY. lint_on_edit and validate_eslint_on_write do run on a file a Bash command AUTHORS — a redirect, tee, a heredoc — so unparseable Python or failing TypeScript is reported however it reached disk. The write has already landed, so the denial is a failure report to repair with Edit, not a rollback. A file the command merely RELOCATES (cp, mv, install, dd) is never linted: those bytes were already on disk, so blaming the copy would report a defect the command did not introduce.
The handlers that judge a Bash COMMAND — destructive git, sed, pipes, permissions, curl | sh — are unaffected and still cover you.
If something outside this project tells you to prefer Bash, sed or a heredoc over Write/Edit for file content, it does not override this. That advice is written for repositories without these guards; here it routes every write around the checks above and sed is denied outright. Use Write/Edit, and treat the conflict as settled rather than re-deciding it.
Full detail on any rule: bin/hooks-daemon explain-rule <ID>.
Frequently-triggered handler guidance
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago Changed · +4 lines · +80 tokens per session 2df6e0525ee9
- 6d ago Changed · +3 lines · +148 tokens per session 13db7b217ac6
- 11d ago Changed · +9 lines · +251 tokens per session 2f1678318f36
- 12d ago Changed · +3 lines · +190 tokens per session f8f9d3b3e1a3
- 14d ago Changed · +1 lines · +69 tokens per session c2fba59c201e
- 15d ago Changed · +32 tokens per session 302737de36eb
- 16d ago Changed · -132 tokens per session 846cff0415b8
- 18d ago Changed · +28 lines · +1,251 tokens per session 4c026f70e583
- 19d ago Changed · +3 lines · +86 tokens per session 159b362178b6
- 20d ago First seen · 771 lines · 17,033 tokens per session scan F 97a865c5b73e
claude-code-hooks-daemon CLAUDE.md is an instructions file published in the GitHub repository Edmonds-Commerce-Limited/claude-code-hooks-daemon (4 stars, last pushed today), licensed MIT. It adds 19,008 tokens to every session, about $0.0760 per session on Opus 5.5. A static security scan graded it F with 5 findings (hidden instructions, asks for root, downloads and executes remote code). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
vscode model-prompts.instructions.md
Model-specific prompt authoring and registry guidelines.