Skip to content
SkimNews
SponsoredApplysparrowPaste a job link, get a resume written for that job.Try it free →
Tech & AI

AISlop CLI Scores AI-Generated Code Smells 0-100

Image from Hacker News

The 30-Second Skim7 points

  • What happenedA new open-source CLI tool called aislop scans codebases for structural 'slop' patterns left by AI coding assistants like Claude Code, Cursor, Codex, and OpenCode, scoring every change 0-100 using 50+ deterministic rules across eight programming languages.
  • Key facts & numbersaislop is a new MIT-licensed CLI that detects code 'smells' left by AI coding agents including Claude Code, Cursor, Codex, and OpenCode, flagging patterns like narrative comments above self-explanatory code, swallowed exceptions, as any casts, hallucinated imports, duplicated helpers, dead code, todo stubs, and oversized functions The tool ships with 50+ rules across 8 language targets — TypeScript, JavaScript, Expo/React Native, Python, Go, Rust, Ruby, and PHP — and scores every change 0-100 in sub-second time The scanner is deterministic, with no LLM in the runtime path, so the same code in produces the same score out, the documentation states; repos mostly written in unsupported languages get score: null rather than a misleading number
  • What happens nextThe 'no LLM in the runtime path' bit is the actual story — it's a linter with attitude, not another AI-on-AI detector. The 0-100 score is a nice hook for README bragging rights.
  • aislop is a new MIT-licensed CLI that detects code 'smells' left by AI coding agents including Claude Code, Cursor, Codex, and OpenCode, flagging patterns like narrative comments above self-explanatory code, swallowed exceptions, as any casts, hallucinated imports, duplicated helpers, dead code, todo stubs, and oversized functions
  • The tool ships with 50+ rules across 8 language targets — TypeScript, JavaScript, Expo/React Native, Python, Go, Rust, Ruby, and PHP — and scores every change 0-100 in sub-second time
  • The scanner is deterministic, with no LLM in the runtime path, so the same code in produces the same score out, the documentation states; repos mostly written in unsupported languages get score: null rather than a misleading number
  • aislop fix auto-fixes mechanical issues like formatters, unused imports, and dead code, with a --safe mode restricted to reversible changes; the aggressive -f flag handles dependencies and unused files

Why It Matters

For teams shipping AI-assisted code, aislop provides a free, sub-second static-analysis layer that catches the structural decay AI agents leave behind — swallowed exceptions, narrative cruft, hallucinated imports — even when tests and linters pass. Because it's deterministic and LLM-free at runtime, it sidesteps the cost and latency of AI-on-AI review while still plugging into Codex, Claude Code, or OpenCode for the judgement calls via aislop agent.

Sources Cited

Related Coverage

The day’s news in one short email, every morning.

Free. One email a day. Unsubscribe in one click.