mauhpr/agentlint

213 stars · Last commit 2026-11-07

Local guardrails for AI coding agents. Check proposed file changes and shell commands, block risky patterns, and return actionable feedback. Works with Claude Code, Codex, Cursor, Gemini CLI, and more

README preview

# 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.

[![PyPI](https://img.shields.io/pypi/v/agentlint)](https://pypi.org/project/agentlint/)
[![CI](https://github.com/mauhpr/agentlint/actions/workflows/ci.yml/badge.svg)](https://github.com/mauhpr/agentlint/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/mauhpr/agentlint/branch/main/graph/badge.svg)](https://codecov.io/gh/mauhpr/agentlint)
[![Downloads](https://api.pepy.tech/badge/agentlint)](https://pepy.tech/projects/agentlint)
[![GitHub stars](https://img.shields.io/github/stars/mauhpr/agentlint)](https://github.com/mauhpr/agentlint/stargazers)
[![Python](https://img.shields.io/pypi/pyversions/agentlint)](https://pypi.org/project/agentlint/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

[Quickstart](https://mauhpr.github.io/agentlint/quickstart/) · [Documentation](https://mauhpr.github.io/agentlint/) · [Integration coverage](https://mauhpr.github.io/agentlint/coverage/) · [Rules](https://mauhpr.github.io/agentlint/rules/)

![A proposed credential write is blocked, the agent receives a correction, and a revised proposal is checked again.](https://raw.githubusercontent.com/mauhpr/agentlint/main/docs/assets/correction-loop.svg)

*Illustration with a supported pre-tool hook and standard policy. AgentLint evaluates the revised proposal again; it does not rewrite your code itself.*

View full repository on GitHub →