cukas/patrol
3 stars · Last commit 2026-03-13
ESLint for Claude Code - policy engine with adaptive enforcement, rule system, and built-in safety. Zero tokens during normal coding.
README preview
<div align="center"> <img src="docs/patrol-hero.png" alt="Patrol" width="600"> *"Learn your ways, I will. Have your back, I do."* **ESLint for Claude Code.** Rules. Workflows. Safety. One install. [](LICENSE) []() []() </div> --- Patrol is a **policy engine for Claude Code** — think ESLint, but for AI coding behavior. It enforces coding rules, prevents dangerous actions, and guides better workflows — with adaptive enforcement that learns from your behavior. ``` Three layers of protection: Safety rules (always on) → block force-push, rm -rf /, .env commits