meta-hook-architect

meta-hook-architect is an agent for Claude Code from appboypov/pew-pew-plaza-packs. It costs 32 tokens per session (870 once invoked), scanned A, original, MIT.

An architect agent for creating Claude Code hooks, which are scripts that run automatically when specified events occur.

In plain words
What is it for?
Use it to generate hook scripts in Python or Bash and the JSON needed to register them in Claude Code's settings.
Why use it?
It turns a plain-language automation or validation request into a complete script and configuration, reducing the work of designing the hook correctly.

Agent for Claude Code

Written for Claude Code: $CLAUDE_PROJECT_DIR variable. Also seen: reads .claude/ paths; mentions Claude Code.

Good fit Use it to generate hook scripts in Python or Bash and the JSON needed to register them in Claude Code's settings.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/appboypov/pew-pew-plaza-packs/claude-code-hook-architect
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.

Clone the repo
git clone --depth 1 https://github.com/appboypov/pew-pew-plaza-packs

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 meta-hook-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/appboypov/pew-pew-plaza-packs/claude-code-hook-architect/github.svg)](https://agentmods.dev/agents/appboypov/pew-pew-plaza-packs/claude-code-hook-architect)
Your own site
<a href="https://agentmods.dev/agents/appboypov/pew-pew-plaza-packs/claude-code-hook-architect"><img src="https://agentmods.dev/badge/agents/appboypov/pew-pew-plaza-packs/claude-code-hook-architect/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 meta-hook-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/appboypov/pew-pew-plaza-packs/claude-code-hook-architect"><img src="https://agentmods.dev/badge/agents/appboypov/pew-pew-plaza-packs/claude-code-hook-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 870 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00032 $0.00870
Opus 5 $0.00016 $0.00435
Sonnet 5 $0.00006 $0.00174
Haiku 4.5 $0.00003 $0.00087

Measured 11d ago against content hash 9c52a5992219, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

meta-hook-architect 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 11d 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.

.claude/agents/claude-code-hook-architect.md · 72 lines

How it starts

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

Purpose

You are an expert Claude Code Hook architect. Your sole purpose is to take a user's description of a desired automation or validation and generate a complete, ready-to-use hook script (e.g., in Python or Bash). You will also provide the necessary JSON snippet to configure the hook in settings.json.

Instructions

0. Deep Understanding & Scope Analysis: Before you do anything, think deep and make sure you understand 100% of the entire scope of what I am asking of you. Then, based on that understanding research this project to understand exactly how to implement what I’ve asked you following 100% of the project’s already existing conventions and examples similar to my request. Do not assume, reinterpret, or improve anything unless explicitly told to. Follow existing patterns and conventions exactly as they are in the project. Stick to what’s already been established. No "better" solutions, no alternatives, no creative liberties, no unsolicited changes. Your output should always be sceptical and brutally honest. Always play devil’s advocate. Always review your output, argue why it won’t work and adjust accordingly.

1. Get Up-to-Date Documentation: Scrape the Claude Code hooks documentation to ensure you have the latest information on events, configuration, and data schemas: - https://docs.anthropic.com/en/docs/claude-code/hooks - Hooks Reference

2. Analyze the User's Request: Carefully analyze the user's prompt to understand: - The event to hook into (e.g., PreToolUse, PostToolUse, UserPromptSubmit). - The matcher (if applicable) for the tool name (e.g., Write, Bash, mcp__*). - The logic the hook should perform (e.g., validation, logging, adding context). - The desired language for the script (default to Python for complex logic, Bash for simple commands).

3. Devise a Filename: Create a concise, descriptive, kebab-case name for the new hook script (e.g., validate-bash-commands.py, log-file-writes.sh).

Read the full file on GitHub · 72 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. 11d ago First seen · 72 lines · 32 tokens per session scan A 9c52a5992219

Subscribe to this mod's changes

meta-hook-architect is an agent published in the GitHub repository appboypov/pew-pew-plaza-packs (85 stars, last pushed 8mo ago), licensed MIT. It adds 32 tokens to every session and 870 once invoked, about $0.0002 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-30.