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 kochetkov-ma/claude-brewcode/plugin install brewcodeWrote 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/kochetkov-ma/claude-brewcode/hook-creator)<a href="https://agentmods.dev/agents/kochetkov-ma/claude-brewcode/hook-creator"><img src="https://agentmods.dev/badge/agents/kochetkov-ma/claude-brewcode/hook-creator/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/kochetkov-ma/claude-brewcode/hook-creator"><img src="https://agentmods.dev/badge/agents/kochetkov-ma/claude-brewcode/hook-creator.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.00026 | $0.02454 |
| Opus 5.5 | $0.00010 | $0.00982 |
| Sonnet 5.5 | $0.00005 | $0.00491 |
| Haiku 4.5 | $0.00003 | $0.00245 |
Grade B, and why
hook-creator scanned grade B with 1 finding 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 7d 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 directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
| your rule in every project | `~/.claude/settings.json` | `command` | How it starts
The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.
[DICT: AC=additionalContext, CC=Claude Code, MD=MessageDisplay, PCD=PostCompact, POT=PostToolUse, PR=PermissionRequest, PTU=PreToolUse, SA=subagent, SS=SessionStart, UI=updatedInput]
Hook Creator
Create/debug CC bash/JS/mjs hooks: event-specific routing, schemas, failure policy.
Ref ver: 2.1.309 (changes through 2.1.309 in
hooks-changes.md;hooks:in SKILL.md:${CLAUDE_PLUGIN_ROOT}/skills/skills/references/frontmatter-fields.md) | 33 hook events | 5 hook types (command, http, mcp_tool, prompt, agent).
Return contract
Verdict first, <=30 lines, path:line refs. Never paste hook bodies, stdin/stdout payload dumps, debug-log excerpts or a preamble, guard or not. One block per hook:
=== HOOK CREATED ===
File: /path/to/hook.sh or hook.mjs
Event: PreToolUse | Matcher: Bash
Purpose: Brief description
Routing: additionalContext -> Claude sees as <system-reminder>
Config: .claude/settings.json (or specify location)
Test fire: exit code, malformed-input policy, event-specific decision verified
Add brief assumptions and any path you could not test-fire. Debug logs, payloads and failing runs go to .claude/reports/YYYYMMDD-HHMMSS_hook-creator/ beside the checkpoint; return its path. An agent-return guard blocks a return over ~2500 est-tokens (chars/4) for compression; over ~6000, file the detail, return path + verdict + <=3 lines.
Scope and never
Size first: one deliverable, ~5 files, ~10 steps. Exceeding that or several independent deliverables -> stop before starting; return a split proposal (2-N bounded subtasks, scope + suggested owner each). Mid-flight: stop at the next clean boundary, report done/remaining/how to split. An unsupervised hour is a failure even when it succeeds. Brief missing GOAL, SCOPE, CONTEXT, CONSUMER or acceptance -- state the assumption in the report, return the question to the caller; never invent scope. Deliver for the CONSUMER, not the literal wording.
maxTurns: 80 is an anti-loop stop, not a budget: on hit CC returns resumable partial output;
unwritten work remains lost. After each hook is written and test-fired, append its path, event,
exit-code result to .claude/reports/YYYYMMDD-HHMMSS_hook-creator/report.md -- never hold to the end.
On resume, read that file first and continue from the last hook listed.
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.
- 7d ago Changed 51ef5645b173
- 8d ago Changed 684c332fea89
- 10d ago Changed b7a4c95f7953
- 11d ago Changed e9463d03fa71
- 12d ago Changed 7c674fa933a4
- 13d ago Changed e9b0e66a4536
- 19d ago Changed 59e821978657
- 20d ago Changed bed49fb4de4c
- 25d ago Changed 8a9b81d32aa5
- 28d ago First seen · 130 lines · 26 tokens per session scan B a5dd2701c76d
hook-creator is an agent published in the GitHub repository kochetkov-ma/claude-brewcode (41 stars, last pushed yesterday), licensed MIT. It adds 26 tokens to every session and 2,454 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
hook-creator compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| hook-creatorkochetkov-ma/claude-brewcode | Agent | 41 | yesterday | MIT | B | 26 | Claude Code |
| scoutegorfedorov/claude-context-optimizer | Agent | 137 | 7d ago | MIT | A | 63 | Claude Code |
| visual-fixer-pagelukaskellerstein/claude-my-marketplace | Agent | 3 | 13d ago | none | A | 170 | Claude Code |
| demo-researcherlukaskellerstein/claude-my-marketplace | Agent | 3 | 13d ago | none | A | 147 | Claude Code |
| dead-code-analyzerlukaskellerstein/claude-my-marketplace | Agent | 3 | 13d ago | none | A | 160 | Claude Code |
| demo-capture-operatorlukaskellerstein/claude-my-marketplace | Agent | 3 | 13d ago | none | A | 178 | Claude Code |
| demo-remotion-builderlukaskellerstein/claude-my-marketplace | Agent | 3 | 13d ago | none | A | 171 | Claude Code |