Introduction
Comply is a CLI tool and MCP server that checks git diffs against team-defined process rules written in plain-English YAML.
What is Comply?
Comply enforces the agreements your team already has — code review checklist items, architectural constraints, documentation requirements — as automated checks that run before every merge.
Instead of relying on reviewers to remember every convention, you write rules in YAML and Comply evaluates each git diff against them. Rules can be:
- LLM-evaluated — semantic checks powered by any OpenRouter-compatible model
- Regex-based — fast, local pattern matching, no API calls
- AST-based — Python static analysis for structural checks
Why Comply?
Code review is slow and inconsistent. Linters catch syntax. CI catches tests. But nothing catches process — the soft agreements that live in your team wiki and get forgotten under deadline pressure.
Comply fills that gap. It runs in under a second for regex/AST rules and a few seconds for LLM rules. It integrates into GitHub Actions and runs natively inside Claude Desktop and Cursor via the MCP protocol.
AI-first design: as LLMs get smarter, your semantic checks get smarter automatically. No rule updates required.
Three rule types at a glance
| Type | Evaluated by | Speed | Use for |
|---|---|---|---|
llm | OpenRouter model | 2–10s | Semantic, intent-based checks |
regex | Local regex engine | <10ms | Pattern enforcement, naming |
ast | Python AST parser | <50ms | Structural code analysis |
Next steps
Install Comply and run your first check in under two minutes.