~/acme-platform $

npx aislop scan

The code-quality gate for AI coding agents.

50+ patterns no LLM 8 languages runs in your CI

The patterns agents leave behind.

// Increment the counter by one
counter++;
Trivial comments
ai-slop/trivial-comment
Restates what the code already says
try {
  await fetchData();
} catch (e) {}
Swallowed exceptions
ai-slop/swallowed-exception
Error caught, never handled or rethrown
const data2 = getData();
Generic naming
ai-slop/generic-naming
“data2” describes nothing
const r = res as any;
Type abuse
ai-slop/unsafe-type-assertion
“as any” throws away type safety
return x;
log(x); // never runs
Dead code
ai-slop/unreachable-code
Code after return can never execute
console.log("here", user);
Console leftovers
ai-slop/console-leftover
Debug logging shipped to prod

+ 44 more: hallucinated imports · hardcoded secrets · duplicate imports · empty functions · dead code · narrative comments …

What the agent shipped, and the clean-up.

problematic.ts score 38 · 5 issues
1 // Set the user name to value
2 user.name = value;
3
4 try {
5 await fetchData();
6 } catch (e) {
7 // TODO: handle
8 }
9
10 const data2 = getData();
11 const r = res as any;
profile.ts score 98 · clean
1 user.name = value;
2
3 try {
4 await fetchData();
5 } catch (err) {
6 logger.error('fetch failed', err);
7 throw err;
8 }
9
10 const profile = getProfile();
11 const parsed = ProfileSchema.parse(res);
ai-slop/trivial-comment L1 ai-slop/swallowed-exception L6 ai-slop/todo-stub L7 ai-slop/generic-naming L10 ai-slop/unsafe-type-assertion L11

Four commands, the whole loop.

aislop scan
Score the code and surface every slop pattern. Deterministic, no LLM.
aislop fix
Auto-fix the mechanical issues; hand the rest back in your style.
aislop agent
Install the guardrail into your coding agent. One flag per target.
aislop hook
Scan on every agent edit, commit, or PR, before the code lands.
14 compatible
agents & IDEs
Claude Code Codex Cursor Windsurf Gemini CLI VS Code Copilot Amp Aider Warp Goose OpenCode Cline Zed one flag swaps the target

Where aislop stands today.

16K+
downloads
across npm + PyPI
5,800+
developers
ran aislop
31K+
scans run
CLI + agent hooks
34.2K CLI commands run all-time, across 5.8K developers
27.9K autonomous agent-hook scans fired by agents, no human asked
7,430 MCP server sessions agents calling aislop as a tool
10.9K npm downloads last 30 days · +2.6K last 7

Sources: npm + PyPI registries, product telemetry (opt-out). Figures rounded.

scanaislop.com.

QR code linking to github.com/scanaislop/aislop
scan → star us on GitHub
GitHub
github.com/scanaislop/aislop
Talk with us
talk@scanaislop.com
Try it
npx aislop scan
← → to navigate · F for fullscreen