hooks-daemon

hooks-daemon is a skill for Claude Code, Codex from Edmonds-Commerce-Limited/claude-code-hooks-daemon. It costs 25 tokens per session (2,316 once invoked), scanned A, original, MIT.

A command set for installing, updating, checking, restarting, and developing a project’s Claude Code Hooks Daemon, a background service that runs configured code handlers.

In plain words
What is it for?
Use it to install or upgrade the daemon, restart it after changes, regenerate its documentation, and work with project-level handlers.
Why use it?
It avoids manually managing the daemon or wondering whether configuration and handler changes have been loaded.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/edmonds-commerce-limited/claude-code-hooks-daemon/hooks-daemon
Any agent
npx skills add Edmonds-Commerce-Limited/claude-code-hooks-daemon --skill hooks-daemon
Clone the repo
git clone --depth 1 https://github.com/Edmonds-Commerce-Limited/claude-code-hooks-daemon

Made for: Claude Code, Codex.

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 hooks-daemon

README.md
[![agentmods](https://agentmods.dev/badge/skills/edmonds-commerce-limited/claude-code-hooks-daemon/hooks-daemon.svg)](https://agentmods.dev/skills/edmonds-commerce-limited/claude-code-hooks-daemon/hooks-daemon)
Your own site
<a href="https://agentmods.dev/skills/edmonds-commerce-limited/claude-code-hooks-daemon/hooks-daemon"><img src="https://agentmods.dev/badge/skills/edmonds-commerce-limited/claude-code-hooks-daemon/hooks-daemon.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,316 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00025 $0.02316
Opus 5 $0.00013 $0.01158
Sonnet 5 $0.00005 $0.00463
Haiku 4.5 $0.00003 $0.00232

Measured today against content hash 7febffe26d71, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hooks-daemon scanned grade A with 0 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.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/_resolve-venv.sh, scripts/daemon-cli.sh, scripts/health-check.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/claude_code_hooks_daemon/skills/hooks-daemon/SKILL.md · 307 lines

How it starts

The opening of the file, as written. The whole thing — 307 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hooks Daemon Management

Manage your Claude Code Hooks Daemon installation with these commands.

Available Commands

Install Daemon

Install the hooks daemon on a fresh clone (daemon not yet present):

/hooks-daemon install          # Install daemon from GitHub
/hooks-daemon install --force  # Force reinstall over existing

See install.md for detailed install documentation.

Upgrade Daemon

Update to a new version of the hooks daemon:

/hooks-daemon upgrade          # Auto-detect and upgrade to latest version
/hooks-daemon upgrade 2.14.0   # Upgrade to specific version
/hooks-daemon upgrade --force  # Force reinstall current version

See upgrade.md for detailed upgrade documentation.

Optimise Configuration

The config-optimisation review — the mandatory closing step of every upgrade, and the repeatable answer to "enable all relevant handlers and ensure optimal configuration for this project":

/hooks-daemon optimise

Scores five areas, surfaces handlers that are new or disabled-but-relevant, and applies its recommendations only on explicit confirmation.

See optimise.md — it starts by running scripts/optimise-invoke.sh, which prints the procedure to follow.

Restart Daemon

Required after editing .claude/hooks-daemon.yaml or project handlers:

/hooks-daemon restart

The daemon caches config at startup — restart picks up any config or handler changes.

See restart.md for details.

Regenerate Generated Docs

Force-regenerate the daemon's generated documentation without restarting:

/hooks-daemon regen-docs

Rewrites both generated artifacts to their canonical form in one shot:

  • .claude/HOOKS-DAEMON.md — the active-handler summary.
  • The <hooksdaemon> guidance block inside your project CLAUDE.md.

This is the explicit way to recover both files after a git merge/rebase conflict left them stale or conflict-marked — run it, then stage the clean result. (A normal restart also refreshes these, but regen-docs does it as a one-shot with no daemon bounce.)

Read the full file on GitHub · 307 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. today Changed · +42 lines 7febffe26d71
  2. 5d ago First seen · 265 lines · 25 tokens per session scan A 1bd06ac01233

Subscribe to this mod's changes

hooks-daemon is a skill published in the GitHub repository Edmonds-Commerce-Limited/claude-code-hooks-daemon (3 stars, last pushed today), licensed MIT. It adds 25 tokens to every session and 2,316 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.