ailinter scans your AI-generated code for quality issues, hardcoded secrets, and security vulnerabilities — before they reach production. Built natively for the Model Context Protocol. Works with Claude, OpenCode, and Cursor.
MIT licensed. 15MB binary. Zero dependencies. No signup required.
Four major features to make your AI-generated code safer and cleaner than ever.
Embedded go vet, staticcheck, gofmt, misspell, and ineffassign — invoked via --meta-lint (now enabled by default) or ailinter init. Zero additional setup. One binary replaces five tools.
--estimate-tokens calculates AI token cost before sending code to an LLM. Saves money by flagging expensive files before they go to context.
Now at 81.7% line coverage (up from 66.2%). Enforced at 70% function / 80% line coverage in CI. Every new feature must maintain or improve these thresholds.
Everything you need to keep AI-generated code safe and maintainable.
20 detectors: deep nesting, brain methods, bumpy roads, complex conditionals, duplication, cohesion, primitive obsession, long switches, global data, and more. Every file scored 0–100 with AI-friendly refactoring guidance.
269 betterleaks rules + 150 gitleaks fallback. AWS keys, Stripe tokens, GitHub PATs, private keys, JWT, Slack tokens, and more. All secrets redacted in MCP output — never leaked to AI context.
58 patterns, 6 categories: injection, XSS, deserialization, weak crypto, XXE, and workflow. Covers Python, Go, JS/TS, Java, C#, PHP. Line-level reporting with human-readable descriptions and fix reminders.
ailinter is an MCP server with 7 tools — AI coding assistants invoke it directly via stdio. No daemon, no API key, no cloud dependency. Everything is local, fast, and private.
New features, vulnerability patterns, and Pro tier launch. No spam.