awesome-claude-code-hooks

agent
Guvenlik Denetimi
Uyari
Health Uyari
  • License — License: NOASSERTION
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Uyari
  • Code scan incomplete — No supported source files were scanned during light audit
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

A curated list of hooks, guides, and tools for Claude Code hooks (PreToolUse, PostToolUse, SessionStart, Notification, Stop, and more).

README.md

Awesome Claude Code Hooks Awesome

A curated list of hooks, guides, tools, and examples for Claude Code hooks — the shell-command lifecycle events that let you intercept, block, log, or augment what your coding agent does.

Claude Code hooks fire on events like PreToolUse, PostToolUse, SessionStart, SessionEnd, Notification, Stop, and UserPromptSubmit, running arbitrary shell commands with structured JSON in/out. This list collects the best real-world implementations, so you don't have to write your security guardrail or notification hook from scratch.

Contributions welcome — see CONTRIBUTING.md.

Contents

Official Docs

Getting Started / Guides

Security & Guardrail Hooks

Hooks that block destructive commands, exfiltration attempts, or unsafe file access before they execute.

  • DataFog/datafog-python — datafog-hook gates tool calls (shell commands, web requests, file writes, MCP tools) and blocks PII from leaving the machine, entirely offline in ~70-90ms.
  • dwarvesf/claude-guardrails — hardened Claude Code security config with permission deny rules, shell hooks, and prompt-injection defense in full and lite variants.
  • hahahahahahahahah6/agent-guard — dependency-free guard stack that blocks the "green by editing the test" cheat (snapshots test/source hashes, blocks Stop until a changed test is proven to fail without the fix), plus an outbound-action denylist for pushes, publishes, deploys, and mass-send channels, with mutation-testing and comment-slop checks on top.
  • hanlulong/overleaf-sync-now — PreToolUse hook that pulls fresh Overleaf web edits before every .tex/.bib read or write, stopping the agent from silently overwriting them with a stale local Dropbox copy.
  • JeongJaeSoon/agent-guard — PreToolUse guardrail that blocks an agent from reading .env files or writing secret-like values, using gitleaks for detection, with matching Git hook and CI backstops.
  • kaboumou/agent-run-guard — dependency-free hook CLI for repeat-call and call-budget limits, with a documented Claude Code adapter (simulated hook tests; fails open on internal errors).
  • kenryu42/cc-safety-net — PreToolUse guardrail hook blocking destructive git/filesystem commands and secret file access; also supports Codex, Cursor, Gemini CLI, and other agent runtimes.
  • kornysietsma/tool-gate-hook — PreToolUse hook for Claude Code and GitHub Copilot CLI that auto-allows, auto-denies, or forces a prompt on tool calls via TOML rules, and logs every decision (payload, matched rules, outcome) to a JSONL audit trail. Rename/rework of the old claude-code-permissions-hook.
  • li-zhixin/claude-ignore — PreToolUse hook that blocks Claude from reading files matching .claudeignore patterns, mirroring .gitignore semantics.
  • liberzon/claude-hooks — PreToolUse hook that decomposes compound bash commands and checks each sub-command individually against allow/deny permission patterns.
  • MaxwellCalkin/sentinel-ai — safety guardrails that use fast scanners to detect prompt injection, PII, and code vulnerabilities.
  • Pantheon-Security/medusa — scans .claude/ hooks, permissions, and skills for compromise before you clone/run a repo; 40,000+ attack-signature patterns.
  • sangrokjung/claude-forge — 6-layer security hook stack bundled into a full Claude Code plugin framework.
  • tillmeier/claude-code-guardrails — guardrail hooks derived from real incidents, paired with a plan→implement→verify→crosscheck loop, backed by 35 bats tests and measured hook overhead.
  • wangbooth/Claude-Code-Guardrails — protective hooks preventing accidental code loss via branch protection, automatic checkpointing, and safe commit squashing.
  • randommonicle/claude-skills — a four-layer architecture of guardrail hooks and norms distilled from real shipped defects across four production codebases.
  • yurukusa/cc-safe-setup — interactive installer for PreToolUse/PostToolUse/SessionStart/Stop/SubagentStop hooks that block destructive commands (rm -rf, force-push, git reset --hard, secret writes) at the tool boundary, with plugin variants for git protection, credential guarding, and token budgets.

Notification Hooks

Send a ping to Slack, Telegram, desktop notification center, etc. when Claude needs input or finishes a task.

Observability & Logging Hooks

  • coleam00/claude-memory-compiler — hooks capture full sessions, an LLM compiler distills them into a structured, cross-referenced project knowledge base.
  • disler/claude-code-hooks-multi-agent-observability — real-time dashboard for monitoring multiple Claude Code agents via hook event tracking.
  • hansipie/ecotokens — PreToolUse/PostToolUse hooks filter and compress shell output, file reads, and grep results before they hit the model, with a TUI dashboard tracking token savings per project.

Git & Commit Hooks

  • blader/taskmaster — Stop hook that keeps the agent working until all plan items and user requests are fully complete, rather than stopping early.
  • malaysherasia-ai/claude-never-again — turns each bug you fix into a PreToolUse hook on git commit that blocks the mistake (warn first, then deny after five correct fires), also run from git’s own pre-commit; the rest become one capped line in LESSONS.md.
  • parcadei/Continuous-Claude-v3 — hooks maintain ledgers/handoffs for context continuity across sessions and commits.

Formatting / Linting / Testing Gates

Voice / TTS Hooks

Session Memory & Context Hooks

  • coleam00/claude-memory-compiler — auto-captures sessions and compiles a persistent, evolving knowledge base.
  • entireio/cli — installs PreToolUse/PostToolUse hooks that capture full agent sessions (prompts, files touched, tool calls) into a separate git branch, indexed and searchable alongside your commit history.
  • mksglu/context-mode — hooks that compress tool output to save context window space and persist session memory.
  • parcadei/Continuous-Claude-v3 — ledger/handoff hooks for context management across long sessions.
  • SethGammon/Citadel — persistent project memory, intent routing, safety hooks, and cost telemetry as one operating layer.
  • shimo4228/harness-scope — a mod whose prompt.context, prompt.attachment, agent.offer and tool.call hooks hide global skills, agents, rules files and tools per repo through named profiles, so each repo's context carries only what it uses.

Frameworks & Toolkits (bundle many hooks)

  • composio-community/awesome-claude-plugins — curated Claude Code plugins that bundle hooks with commands/agents/MCP servers.
  • davepoon/buildwithclaude — hub for finding hooks alongside skills, agents, commands, and marketplace plugins.
  • fcakyon/claude-codex-settings — battle-tested hook configs across Claude Code, Codex, and Cursor.
  • ITW-Creative-Works/workkit — issue-pipeline plugin with 28 hooks in four groups (safety, docs, manager, workflow) that gate commits on Conventional Commits and test proof, guard vendor files, and keep GitHub issue labels in step with the work.
  • kyu1204/oh-my-harness — generates a catalog of enforcement hooks (TDD guard, branch guard, command guard, commit-test gate, auto-lint, auto-PR) from a plain-English project description, with omh sync --check as a CI drift gate.
  • rohitg00/awesome-claude-code-toolkit — 20+ hooks bundled with agents, skills, commands, and rules.
  • vibeeval/vibecosystem — 73 hooks as part of a larger self-learning multi-agent swarm setup.
  • yotamleo/Himmel — an orchestrated harness for running Claude Code that includes guardrail hooks, a Jira CLI, and a cross-session handover system.

Multi-Agent / Cross-Tool Hooks

Hooks designed to work across Claude Code, Codex, Cursor, Gemini CLI, and other agent runtimes.

  • first-fluke/oh-my-agent — stop-hook gates and independent judges verifying agent work by artifacts, across multiple agent runtimes.
  • JakeSelby/model-citizen — a control plane that projects your hooks, guardrails, and telemetry rules into Claude Code and Codex.
  • kenryu42/cc-safety-net — cross-runtime guardrail hook (Claude Code, Codex, Cursor, Gemini CLI, Hermes Agent, and more).

Contributing

New hooks, guides, and tools are added regularly — see CONTRIBUTING.md for the submission criteria. This list is updated frequently to track newly published hook implementations.

License

CC0 — public domain, per awesome list convention.

Yorumlar (0)

Sonuc bulunamadi