Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/edmonds-commerce-limited/claude-code-hooks-daemon/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.svg" alt="Measured on agentmods" 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.11266 | $0.11266 |
| Opus 5 | $0.05633 | $0.05633 |
| Sonnet 5 | $0.02253 | $0.02253 |
| Haiku 4.5 | $0.01127 | $0.01127 |
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 today.
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 — 582 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.
Full detail on any rule: bin/hooks-daemon explain-rule <ID>.
Frequently-triggered handler guidance
sed_blocker — sed is forbidden for file modification
sed is blocked because Claude gets sed syntax wrong and a single error can silently destroy hundreds of files with no recovery possible.
THE RULE IS DENY-BY-DEFAULT, NOT A LIST OF BAD PATTERNS. Any Bash command containing the WORD sed is blocked unless it matches one of the four narrow exemptions below. This framing matters: an earlier version of this guidance listed specific blocked shapes, which read as though anything unlisted was fine. It is not — python3 -c "print('sed')" is blocked, and so is xargs sed 's/a/b/' despite having no -i, no command-head position and no pipe stage.
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.
- today Changed · -1,057 lines · -17,739 tokens per session 343362e8450d
- 5d ago First seen · 1,639 lines · 29,005 tokens per session scan F a5ae9d94254c
claude-code-hooks-daemon CLAUDE.md is an instructions file published in the GitHub repository Edmonds-Commerce-Limited/claude-code-hooks-daemon (3 stars, last pushed yesterday), licensed MIT. It adds 11,266 tokens to every session, about $0.0563 per session on Opus 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
claude-skills CLAUDE.md
Claude Code instructions for secondsky/claude-skills, covering claude skills - project context, ⚠️ critical: communication rule — the most important rule, ⚠️ critical: repository policy - never touch jezweb repo, ❌ forbidden actions (jezweb repo) and ✅ required actions (secondsky repo).
claude-skills AGENTS.md
AGENTS.md instructions for secondsky/claude-skills, covering agent instructions, ⚠️ critical: communication rule — the most important rule and full project context.
semba-claude-plugins CLAUDE.md
Claude Code instructions for lc-semba-ryuichiro/semba-claude-plugins, covering claude.md, commands, linting, formatting and git hooks (lefthook).
touch-grass AGENTS.md
Instructions for nalediym/touch-grass: This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in nodemodules/next/dist/docs/ before writing any code. Heed deprecation notices.
touch-grass CLAUDE.md
Instructions for nalediym/touch-grass, a project described as: A Claude Code plugin that teaches your AI agent to remind you to go outside. Weather-aware, sunset-aware, session-aware. Ships an MCP server + SessionStart hook + skill.
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).