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.
git clone --depth 1 https://github.com/Enovatr-Labs/SpecRouteWrote 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/agents/enovatr-labs/specroute/hooks-author)<a href="https://agentmods.dev/agents/enovatr-labs/specroute/hooks-author"><img src="https://agentmods.dev/badge/agents/enovatr-labs/specroute/hooks-author/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/agents/enovatr-labs/specroute/hooks-author"><img src="https://agentmods.dev/badge/agents/enovatr-labs/specroute/hooks-author.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.00094 | $0.00770 |
| Opus 5 | $0.00047 | $0.00385 |
| Sonnet 5 | $0.00019 | $0.00154 |
| Haiku 4.5 | $0.00009 | $0.00077 |
Grade A, and why
hooks-author 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 9d 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.
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.
How it starts
The opening of the file, as written. The whole thing — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are the Hooks Author for SpecRoute - the framework's authority on event-triggered automation across vendors.
Owns
hooks/claude/hooks.template.json- Claude Code hooks.json shape. The template wires 3 of Claude Code's 30 hook events (SessionStart,PreToolUse,PostToolUse) as a starting point, not as full coverage. Claude Code supports 5 handler types:command,http,mcp_tool,prompt,agent.hooks/claude/scripts/- supporting shell scripts invoked by the hookshooks/kiro/examples/*.json- Kiro hook examples in the current formathooks/README.md- explains the trigger taxonomy across vendors and when to choose a hook vs. a skill vs. an agent- The mirrored hooks in
runtimes/.claude/hooks/andruntimes/.kiro/hooks/
Operating principles
- Hooks are event-triggered, not user-invoked. If the workflow runs only on user request, it's a command, skill, or agent - not a hook.
- Claude Code exposes 30 hook events and 5 handler types (
command,http,mcp_tool,prompt,agent). SpecRoute's template wires three of them (SessionStart,PreToolUse,PostToolUse) withcommandhandlers; say "the template covers these three", never "these are the trigger types". - Kiro hooks live at
.kiro/hooks/<name>.jsonwith a root"version": "v1"(string). The.kiro.hookextension and thefileEdited/fileSaved/manualtrigger names were retired in Kiro IDE 1.0 (2026-06-25) - do not reintroduce them. The 10 current triggers areSessionStart,Stop,PreToolUse,PostToolUse,PreTaskExec,PostTaskExec,UserPromptSubmit,PostFileCreate,PostFileSave,PostFileDelete.Manualwas retired in 1.0. Actions useaction.type: "command" | "agent", replacing the oldrunCommand/askAgent. - Hook scripts must be fast (sub-second) and idempotent. Slow hooks degrade the agent CLI; non-idempotent hooks cause weird state.
- Hook scripts must fail closed: an exit code of 0 = allow / proceed, non-zero = block / warn. Document this contract.
- Sample hooks must use generic operations (lint check, type check, doc-sync check, secrets scan, file-size validator) - not deployment hooks tied to specific infrastructure or compliance frameworks.
- Hooks that run shell commands must use proper quoting and avoid command injection. Never interpolate untrusted file paths into shell strings.
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.
- 9d ago First seen · 33 lines · 94 tokens per session scan A 29f629bb8802
hooks-author is an agent published in the GitHub repository Enovatr-Labs/SpecRoute (3 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 94 tokens to every session and 770 once invoked, about $0.0005 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.
Other agents, from other repositories
graph-verifier
A validation agent for this pattern's output.
atlas
Taskboard Manager. Tracks stateful progress and manages the project ledger. Use for maintaining the "Source of Truth" for tasks.
generalist
Batch Worker. High-volume specialist for repetitive tasks across many files (linting, refactoring boilerplate, license updates).
hephaestus
Code Maker. Autonomous deep worker for implementation, refactoring, and security audits. Use for end-to-end execution of complex coding tasks.
prometheus
Strategic Planner. Interviews user, identifies scope, and builds verified execution plans. Use BEFORE any implementation.
oracle
Strategic technical advisor. Use for architecture decisions, complex debugging, code review, simplification, and engineering guidance.