Open-source tool checks AI-written code for ‘slop’

A developer open sourced a tool called ‘aislop’ for finding problems in AI-written code. A related update says it can now run as a hook inside Claude Code, Cursor, and Codex. The tool looks for issues such as narrative comments, hallucinated imports, swallowed exceptions, `as any` casts, duplicate functions, and very long files.

Key points

  • aislop is an open-source tool for checking AI-written code quality.
  • The update says it can run as a hook inside Claude Code, Cursor, and Codex.
  • It targets issues like hallucinated imports, duplicate functions, long files, and `as any` casts.
  • The goal is to catch code that may pass tests but still make the codebase harder to maintain.
  • Solo developers should still review the diff instead of trusting automatic cleanup alone.

Quick term guide

open sourced
Released so people can inspect, use, or modify the model more freely.
AI-written code
Program code produced by an AI tool such as ChatGPT, Claude, Gemini, or Cursor.
hallucinated
When an AI confidently believes something is real or true when it isn't
AI coding tool
Software that uses AI to help write, edit, or explain code.
coding agent
An AI tool that writes or edits code from a person’s instructions.
Architecture
The overall structure and organization of a software project.
open-source
Software whose code is shared publicly so others can inspect, use, or change it.
Solo developer
An individual who handles all parts of creating a project or product alone.

Sources covering this story (2)

Read original