LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

aislop

Catch AI-generated code smells and low-quality patterns left by coding agents

TLDR

Scan the current directory for AI slop
$ aislop scan
copy
Scan only changed files and output JSON for CI
$ aislop scan --changes --json
copy
Auto-fix mechanical issues
$ aislop fix
copy
Install a hook that runs after every agent edit (Claude Code example)
$ aislop hook install --claude
copy
Run in CI mode and fail the build below a threshold
$ aislop ci
copy
Scan staged files only
$ aislop scan --staged
copy
Run with a custom config and fail CI if score drops below 80
$ aislop ci --fail-below 80
copy
Print the prompt you can hand to an agent for the remaining issues
$ aislop fix --prompt
copy

SYNOPSIS

aislop [command] [options] [path]

DESCRIPTION

aislop is a fast, deterministic CLI that detects the characteristic patterns left behind by AI coding agents (Claude Code, Cursor, Codex, etc.). It scores code on a 0–100 scale and can automatically fix many mechanical issues.Instead of relying on LLMs at runtime, aislop uses a combination of formatters, linters, AST analysis, and a large set of hand-written rules targeting narrative comments, trivial comments, `as any` casts, hallucinated imports, swallowed exceptions, dead code, oversized functions, and other "slop" patterns that compile and pass tests but degrade long-term maintainability.The tool supports TypeScript/JavaScript, Python, Go, Rust, Ruby, PHP, and Java. It is designed to run in editors, pre-commit hooks, CI pipelines, and as a quality gate before accepting agent-generated changes.

PARAMETERS

scan

Analyze code and report issues (default command when no subcommand given)
fix
Automatically fix issues that can be fixed mechanically
ci
Run in CI mode (JSON output, exits non-zero below threshold)
hook
Manage per-edit hooks for Claude, Cursor, and other agents
rules
List all active rules
init
Create a .aislop/config.yml file
Common flags:--json
Output machine-readable JSON
--sarif
Output SARIF 2.1.0 for GitHub Code Scanning
-f, --force (with fix)
Apply aggressive fixes (unused dependencies, files, etc.)

CONFIGURATION

Create `.aislop/config.yml` to tune behavior:

$ ci:
  failBelow: 75

rules:
  ai-slop/narrative-comment: warning
  security/hardcoded-secret: error

exclude:
  - "**/*.generated.ts"
copy

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid