Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add FlorianBruniaux/claude-code-plugins/plugin install ai-methodologyWrote 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/skills/florianbruniaux/claude-code-plugins/eval-hooks)<a href="https://agentmods.dev/skills/florianbruniaux/claude-code-plugins/eval-hooks"><img src="https://agentmods.dev/badge/skills/florianbruniaux/claude-code-plugins/eval-hooks/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/skills/florianbruniaux/claude-code-plugins/eval-hooks"><img src="https://agentmods.dev/badge/skills/florianbruniaux/claude-code-plugins/eval-hooks.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.00115 | $0.08563 |
| Opus 5.5 | $0.00046 | $0.03425 |
| Sonnet 5.5 | $0.00023 | $0.01713 |
| Haiku 4.5 | $0.00012 | $0.00856 |
Grade A, and why
eval-hooks scanned grade A with 2 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 1mo 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.
Reads agent configuration directorieslowAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
| `~/.claude/settings.json` | User | Not read by cloud sessions | Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
3. Flag slow operations (`curl`, `sleep`, network calls) without an internal timeout guard in hooks on the interactive path. How it starts
The opening of the file, as written. The whole thing — 513 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Hooks evaluator
Discover every Claude Code and Codex hook in scope, validate each one against the filesystem and the host's documented hook semantics, then run an interactive session to confirm or improve them.
The goal is not just to score; it is to leave every hook working, correctly scoped, and safe to run.
Sources of truth: the official Claude Code hooks reference (https://code.claude.com/docs/en/hooks) and the Codex hooks documentation (https://developers.openai.com/codex/hooks). When a rule below and the live documentation disagree, the documentation wins; report the disagreement instead of scoring against stale text.
When to use
- First time adding hooks (validate before committing)
- A hook never fires, or fires on every tool call
- The agent hangs noticeably before executing a tool
- A policy hook is supposed to block but doesn't
- After copying hooks from another project, machine, or host
- Periodic hygiene: "are all these hooks still doing something useful?"
Scope
| Argument | Audit |
|---|---|
| none | Every Claude Code and Codex location listed below that exists |
claude or codex |
That host only |
| a file path | That file only (settings JSON, hooks.json, config.toml, skill or agent file) |
audit-only, or the user asks for no changes |
Steps 1-4 and 6 only: list each proposed change instead of asking or editing, and omit the user-feedback lines from the report |
Audit each host with its own rules. Never score a Codex hook against Claude Code semantics or the reverse.
When a ctxharness doctor --format json report generated during this task is available, reconcile against it: every hook-layer finding it reports must appear in the audit, and every extra finding needs file:line evidence.
Claude Code: Key concepts
Event types (33)
| Event | When it fires | Exit 2 effect |
|---|---|---|
SessionStart |
Session begins or resumes | Stderr to user only |
Setup |
--init-only, or --init / --maintenance in -p mode |
Ignored |
UserPromptSubmit |
Prompt submitted, before processing | Blocks and erases the prompt |
UserPromptExpansion |
A typed command expands into a prompt | Blocks the expansion |
PreToolUse |
Before a tool call executes | Blocks the tool call |
PermissionRequest |
A tool call needs a permission decision | Not honored: deny through the JSON decision object |
PermissionDenied |
Auto mode denies a tool call | Ignored (only hookSpecificOutput.retry is read) |
PostToolUse |
After a tool call succeeds | Stderr to Claude; the tool already ran |
PostToolUseFailure |
After a tool call fails | Stderr to Claude |
PostToolBatch |
After a full batch of parallel tool calls | Stops the agentic loop |
Notification |
Claude Code sends a notification | Ignored |
MessageDisplay |
While assistant text is displayed | Original text displayed |
SubagentStart |
A subagent is spawned | Stderr to user only |
SubagentStop |
A subagent finishes | Prevents the subagent from stopping |
TaskCreated |
A task is being created | Rolls back the creation |
TaskCompleted |
A task is being marked completed | Prevents completion |
Stop |
Claude finishes responding | Prevents stopping, continues the turn |
StopFailure |
The turn ends on an API error | Ignored (except terminalSequence) |
TeammateIdle |
An agent team teammate is about to go idle | Keeps the teammate working |
InstructionsLoaded |
A CLAUDE.md or .claude/rules/*.md file loads |
Ignored |
ConfigChange |
A configuration file changes mid-session | Blocks the change (except policy_settings) |
CwdChanged |
The working directory changes | Stderr to user only |
DirectoryAdded |
A directory is added via /add-dir or SDK register_repo_root |
Stderr to debug log; already added |
FileChanged |
A watched file changes on disk | Stderr to user only |
WorktreeCreate |
A worktree is being created | Any non-zero exit fails creation |
WorktreeRemove |
A worktree is being removed | Any non-zero exit fails removal if the directory remains |
PreCompact |
Before compaction | Blocks compaction |
PostCompact |
After compaction | Stderr to user only |
PreModelSwitch |
Before a requested model switch | Blocks the switch |
PostModelSwitch |
After the session model changes | Stderr to user only |
Elicitation |
An MCP server requests user input | Denies the elicitation |
ElicitationResult |
After the user answers an elicitation | Blocks the response (becomes decline) |
SessionEnd |
Session terminates | Stderr to user only |
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.
- 1mo ago Changed · +160 lines · +37 tokens per session 7d95f309d080
- 3mo ago First seen · 353 lines · 78 tokens per session scan A 25e1616567ad
eval-hooks is a skill published in the GitHub repository FlorianBruniaux/claude-code-plugins (47 stars, last pushed 5d ago), licensed MIT. It adds 115 tokens to every session and 8,563 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
eval-hooks compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| eval-hooksFlorianBruniaux/claude-code-plugins | Skill | 47 | 5d ago | MIT | A | 115 | Claude Code |
| app-store-screenshotsfatihkan/badi | Skill | 8 | 1mo ago | MIT | A | 68 | Claude Code |
| contentfatihkan/badi | Skill | 8 | 1mo ago | MIT | A | 0 | Claude Code |
| expo-app-configfatihkan/badi | Skill | 8 | 1mo ago | MIT | A | 86 | Claude Code |
| expo-config-pluginfatihkan/badi | Skill | 8 | 1mo ago | MIT | A | 85 | Claude Code |
| expo-eas-buildfatihkan/badi | Skill | 8 | 1mo ago | MIT | A | 75 | Claude Code |
| expo-eas-submitfatihkan/badi | Skill | 8 | 1mo ago | MIT | A | 75 | Claude Code |