Claude Code hook
Claude Code Patterns
Field-tested Claude Code patterns & anti-patterns for personal agents — an AI workflow that compounds: knowledge base, memory consolidation, hooks, subagents. Enterprise agent trust: agentrust-io.com. Updated monthly.
Install
git clone https://github.com/AaronRoeF/claude-code-patterns.gitFrom the README
Claude Code Pattern Library Clone this repo. Point Claude at it. Tell it to build you a plan. That's the whole idea. This is a field-tested collection of patterns, architecture decisions, and operational techniques for turning Claude Code into something that compounds — where every session makes the next one smarter. Every technique is production-tested, and the whole thing is organized so both humans and AI agents can consume it. I built the system this grew out of to run my company. Meeting prep that pulls calendar, email, CRM, and LinkedIn data in 30 seconds. Skills that ghostwrite in my voice. A knowledge base that gets richer every session without me maintaining it. Hooks that enforce discipline I'd otherwise forget. The patterns here are the genericized versions — stripped of anything company-specific, structured so you can replicate them. Scope: personal agents. Everything here is for the agent you run for yourself — your files, your notes, your inbox, your calendar — not the agents your company ships to customers. Enterprise agent trust is a different problem with different machinery: policy enforcement on data flows and verifiable evidence, not a human approver. That work lives at AgenTrust-io.com, an open source community I'm heavily involved with. For AI agents: This repo is designed to be consumed programmatically. Three entries bind you when you build from it: pin every MCP server you add (Pin Your MCP Servers); do not mark a scheduled job done until it has run once under its real launcher on one real input (The First Real Run Decides); and when you delegate to subagents, report what you checked that they could not (The Check You Owe Your Delegate). Each part is self-contained with clear headings, structured examples, and implementation details. Point…
How hooks work
- Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
- They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
- A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Details
- Repository
- AaronRoeF/claude-code-patterns
- Type
- Hooks
- License
- MIT
- Last updated
- 11 October 2026
FAQ
What is Claude Code Patterns?
Field-tested Claude Code patterns & anti-patterns for personal agents — an AI workflow that compounds: knowledge base, memory consolidation, hooks, subagents. Enterprise agent trust: agentrust-io.com. Updated monthly. It is a hook for Claude Code, from AaronRoeF/claude-code-patterns on GitHub.
How do I install Claude Code Patterns?
Clone AaronRoeF/claude-code-patterns from GitHub and follow the setup steps in its README.
Is Claude Code Patterns popular?
AaronRoeF/claude-code-patterns has 126 GitHub stars and 16 forks. It was last updated on 11 October 2026.
More hooks
Helpline
115coleam00/helpline
Demonstration codebase for building the AI Layer (CLAUDE.md hierarchy, hooks, skills, LSP, MCP, plugin) — companion repo for the 'How Claude Code works in large codebases' video.
Boucle Framework
126Bande-a-Bonnot/Boucle-framework
Autonomous agent framework with structured memory, safety hooks, and loop management. Built by the agent that runs on it.
Canny
132qkal/Canny
Stops AI coding agents from claiming work is done without evidence. Deterministic hooks decide, TypeSafe's Jev advises. Append-only ledger, zero runtime dependencies.
Claude Prime
120avibebuilder/claude-prime
You've heard Claude Code can do amazing things. Skills, hooks, agents, memory systems — but who has time to figure all that out? Claude Prime sets it up for you in one command.
Agent Usage Guard
93rbartoli/agent-usage-guard
Hook mod that pauses subagent fan-out, heavy prompts and retry loops before they burn quota.
Claude Code Guardrails
54wangbooth/Claude-Code-Guardrails
Protective hooks that guard against lost work via branch protection and automatic checkpoints.
Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.