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.

  [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
  [![Version](https://img.shields.io/badge/version-3.0.0-green.svg)]()
  [![Shell](https://img.shields.io/badge/pure%20shell-zero%20deps-orange.svg)]()
</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

View full repository on GitHub →