claude-code-hooks-daemon: Instructions file for Claude Code

CLAUDE.md

claude-code-hooks-daemon CLAUDE.md is an instructions file for Claude Code from Edmonds-Commerce-Limited/claude-code-hooks-daemon. It costs 19,008 tokens per session, scanned F, original, MIT.

Project instructions for a hooks daemon, a background service that runs checks when coding tools are used. They describe active handlers, blocked Git commands, file-editing restrictions, and required path rules.

In plain words
What is it for?
Use them when working in the claude-code-hooks-daemon project, especially around Git commands, file changes, shell paths, and the hooks-daemon directory.
Why use it?
They explain why an action may be blocked and how to continue safely without bypassing project checks or editing files in forbidden ways.

Instructions file for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is Edmonds-Commerce-Limited/claude-code-hooks-daemon's own configuration. It tells Claude Code how to work on claude-code-hooks-daemon itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-hooks-daemon configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/Edmonds-Commerce-Limited/claude-code-hooks-daemon/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Edmonds-Commerce-Limited/claude-code-hooks-daemon

Made for: Claude Code.

Wrote 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.

agentmods badge for claude-code-hooks-daemon CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/edmonds-commerce-limited/claude-code-hooks-daemon/claude-md/github.svg)](https://agentmods.dev/instructions/edmonds-commerce-limited/claude-code-hooks-daemon/claude-md)
Your own site
<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.

agentmods 80×15 button for claude-code-hooks-daemon CLAUDE.md

Your own site · 80×15
<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>
Per session 19,008 This file is loaded in full into every session.
When invoked 19,008 The same file — it is already loaded in full.
Security scan F 5 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 7 Sept 2026 📄 Read the review
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 5d ago against content hash 2df6e0525ee9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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`
CLAUDE.md · 822 lines

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

Read the full file on GitHub · 822 lines

Changes

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.

  1. 5d ago Changed · +4 lines · +80 tokens per session 2df6e0525ee9
  2. 6d ago Changed · +3 lines · +148 tokens per session 13db7b217ac6
  3. 11d ago Changed · +9 lines · +251 tokens per session 2f1678318f36
  4. 12d ago Changed · +3 lines · +190 tokens per session f8f9d3b3e1a3
  5. 14d ago Changed · +1 lines · +69 tokens per session c2fba59c201e
  6. 15d ago Changed · +32 tokens per session 302737de36eb
  7. 16d ago Changed · -132 tokens per session 846cff0415b8
  8. 18d ago Changed · +28 lines · +1,251 tokens per session 4c026f70e583
  9. 19d ago Changed · +3 lines · +86 tokens per session 159b362178b6
  10. 20d ago First seen · 771 lines · 17,033 tokens per session scan F 97a865c5b73e

Subscribe to this mod's changes

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.

Related

Other instructions, from other repositories