Claude Code hook
agentlint
Local guardrail hooks that check proposed file edits and shell commands and block risky patterns.
Install
uv tool install agentlintgit clone https://github.com/mauhpr/agentlint.gitFrom the README
AgentLint Catch risky actions while your coding agent works. AgentLint checks proposed file changes and shell commands locally. It blocks detected secret writes and plain force-pushes to main or master, warns about risky operations, and gives your agent feedback it can act on. Quickstart · Documentation · Integration coverage · Rules *Illustration with a supported pre-tool hook and standard policy. AgentLint evaluates the revised proposal again; it does not rewrite your code itself.* See the difference A coding agent proposes putting a credential in config.py. The no-secrets rule denies the write and returns a reason: The agent can replace the literal with an environment-variable lookup: The credential finding is resolved. The revised action is checked against the active policy, and any other findings still apply. https://github.com/user-attachments/assets/ae9a6b72-8bf7-4b73-abe3-7f0f3b483d3b Watch the 53-second product overview. The demonstration evaluates synthetic proposed actions as data; it does not execute dangerous commands. Get started Requires Python 3.11+ and pipx or uv. Use your agent's name for the last command: Prefer pipx? Use pipx install agentlint instead. Setup adds hooks to your agent's settings and creates agentlint.yml if it does not exist, using packs detected from the project. Make one tool call in your agent, then run: Look for a recent observed hook call from this project. A configuration file alone does not prove the hooks are running. If nothing is observed, run agentlint doctor and follow troubleshooting. The five-minute quickstart completes the first check and correction. Claude Code users can alternatively install the marketplace plugin; use the plugin or native setup to avoid duplicate hooks. What blocks, what warns With…
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
- mauhpr/agentlint
- Type
- Hooks
- Website
- mauhpr.github.io/agentlint
- Language
- Python
- License
- MIT
- Last updated
- 2 November 2026
- Topics
- agentlinterai-agentsai-safetyclaude-codeclicode-qualitycodexcursordeveloper-toolsgemini-clgemini-cliguardrails
FAQ
What is agentlint?
Local guardrail hooks that check proposed file edits and shell commands and block risky patterns. It is a hook for Claude Code, from mauhpr/agentlint on GitHub.
How do I install agentlint?
Run uv tool install agentlint, then follow the setup in the README.
Is agentlint popular?
mauhpr/agentlint has 215 GitHub stars and 2 forks. It was last updated on 2 November 2026.
More hooks
Model Matchmaker
168coyvalyss1/model-matchmaker
Local hook that routes each prompt to a suitable model tier to save cost.
Claude Code Boost
165yifanzz/claude-code-boost
Claude Code Boost - Hook utilities for Claude Code with intelligent auto-approval
Model Router Hook
107tzachbon/claude-model-router-hook
Hooks that switch Claude's model tier automatically according to task complexity.
Claude Hooks SDK
68beyondcode/claude-hooks-sdk
PHP library for building Claude Code hooks with a fluent API.
Claude Code Spinner
320i1kazantsev/claude-code-spinner
Замена фраз спиннера клод-кода для уважаемых вайбкодеров.
jev-guard
144leepokai/jev-guard
Risk-scores each tool call with session context and decides to allow, ask or deny.
Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.