
Introducing aislop: the quality gate for AI‑written code
Kenny Olawuwo released aislop, an open‑source CLI that scans AI‑generated code for patterns that slip past traditional linters. It can run locally or be added to CI pipelines to catch swallowed exceptions, unsafe casts, and other AI‑specific smells.
Kenny Olawuwo released aislop on June 6, 2026, an open‑source CLI that scans AI‑generated code for patterns missed by standard linters [Dev.to][GitHub].
── What shipped ──
The tool ships as an npm package (npx aislop@latest scan) and a dev‑dependency (npm install --save-dev aislop). It provides three commands:
aislop scan --changes– scans staged files.aislop ci --changes --base origin/main– outputs a CI‑friendly report.aislop hook install --claude– installs a Git hook that runs the gate on Claude‑generated patches.
The scanner flags a concrete list of AI‑specific patterns: narrative comments above self‑explanatory code, swallowed exceptions, empty fallbacks, unsafe as any casts, hallucinated imports, duplicated helpers, dead code, production TODO stubs, hard‑coded environment values, and oversized files or functions that agents tend to bloat. Each finding receives a score, is reported, and can be auto‑fixed.
── Why it matters ──
AI agents leave a distinct fingerprint that generic linters miss; for example, a catch { return [] } pattern silently masks failures, which aislop flags. By catching these smells early, teams prevent the accumulation of technical debt—noisy files, weaker type safety, and duplicated logic—while preserving the speed advantage of AI assistance. Integration is frictionless: aislop runs as a standard npm script, fits into existing CI pipelines, and can be gated behind pull‑request checks without rewriting linting or testing setups.
── Editor's take ──
The real story isn’t that aislop blocks AI agents; it forces engineers to treat AI‑generated code as a separate risk surface. Codifying “AI‑specific smells” into an automated gate prevents subtle erosion of code health that would otherwise go unnoticed. The trade‑off is a modest increase in CI runtime, but the payoff—fewer silent failures and a cleaner codebase—outweighs the cost.
Reader poll
Which AI‑assisted development safeguard do you rely on most?
- Linter + type‑checker only
- Dedicated AI‑code quality gate (e.g., aislop)
- Manual review of AI output
- No extra safeguard, trust the AI
Subscribe to the broadcast.
Daily digest of the day's most important tech news. No fluff. Engineering signal only.
// delivered via substack · double-opt-in confirmation


