karanb192/claude-code-hooks
🪝 Claude Code hooks + an installable plugin marketplace: safety, cost, observability, productivity.
What it solves
Claude Code and similar AI agents can autonomously run shell commands, edit files, and install packages. This project provides a safety and management layer that enforces "least privilege" on these agents, preventing accidental or malicious actions like secret exfiltration, dangerous command execution, or unauthorized configuration changes.
How it works
These hooks act as a gatekeeper that intercepts every tool call an agent makes. Because they run as separate processes outside the AI model, they cannot be bypassed by prompt injection. Each hook is triggered by specific events (like PreToolUse or SessionStart) to either allow, deny, or modify the agent's actions based on your security settings.
Who it’s for
This is for developers using Claude Code who want to automate tasks while maintaining strict control over what the AI is allowed to do on their local machine or within their codebase.
Highlights
- Safety Guards: Blocks dangerous commands (e.g.,
rm -rf), protects sensitive files like .env, and prevents the agent from tampering with its own security configuration.
- Easy Installation: Shipped as a 22-plugin marketplace; you can add the entire collection with one command and install only the specific hooks you need.
- Operational Insights: Includes tools for logging sessions, tracking context costs, generating daily standups, and auditing rule compliance.
- Flexible Enforcement: Supports "ask mode" where the agent prompts you for permission instead of outright blocking an action.
- Standalone Capability: While designed as plugins, every hook script can also be used as a standalone file if you prefer manual configuration.
Related
- Project
hamzafer/claude-code-modsClaude Code mods and themes is a collection of optional plugins for Claude Code that add live activity lines, safety guards, cost-saving features, and animated desktop themes, all installable via a single command.
- Project
sangrokjung/claude-forgeClaude Forge is a plug‑in pack that turns the basic Claude Code terminal coding assistant into a production‑grade development environment. It adds 16 specialist AI agents, 35 slash‑commands, 33 saved “skills”, 22 safety hooks, 14 behavior rules and 4 external‑tool connections. Install with a one‑liner script (full install) or via Claude Code’s plugin marketplace (commands only). The pack automates planning, test‑first development, security reviews, documentation sync, and an adversarial verification loop that requires an independent agent to approve every change. Licensed MIT, actively maintained (v4.3.0, Sep 2026).
- Project
umputun/cc-thingzA collection of opinionated plugins for Claude Code that adds advanced capabilities for collaborative brainstorming, structured implementation planning, automated PR reviews, and autonomous task execution.
- Project
CloudAI-X/claude-workflow-v2A universal workflow plugin for Claude Code and other AI agents that adds specialized sub-agents, slash commands, and automation hooks for professional software engineering.
- Project
Lifecycle-Innovations-Limited/claude-opsclaude-ops is a plugin for Claude Code that turns the coding assistant into a full business operations hub. One command (`/ops:go`) shows infrastructure health, CI/CD status, unified inbox, PRs, sprint progress, and revenue in a single dashboard. It ships 70 skills, 21 autonomous AI agents, 22 integrations (GitHub, AWS, Stripe, Slack, etc.), an auto-fix subsystem that watches deployments and repairs failures automatically, safety hooks, and voice/phone capabilities. Setup is a guided wizard; the installer also mirrors skills across other CLIs (Codex, Gemini, OpenClaw, Hermes, OpenCode).