Skip to main content
Run it on a repo and get a score from 0 to 100, a file-and-line fix list, and a CI exit code you can enforce. These docs cover the open-source CLI; scanaislop.com is the hosted platform around it (badges, public scans, team gates).
Run it
Output

Quickstart

Scan, read the score, repair, and gate CI in four steps.

Gate pull requests

Fail PRs that drop below your threshold with the GitHub Action.

Give it to your agent

Install the skill, hooks, and AGENTS.md in one prompt.

CLI reference

Every command and flag, with examples.

Configure

Thresholds, engines, rule overrides, and architecture rules.

Rules

All 50+ rules, what they catch, and how they are weighted.
No config required. Same code in, same score out. There is no language model in the runtime path: aislop uses regex, AST analysis, and standard open-source tooling.

What it catches

AI coding agents (Claude Code, Cursor, Codex, OpenCode, Gemini CLI) often produce code that passes tests and lint, then leaves residue: narrative comments, swallowed exceptions, as any casts, hallucinated imports, dead code, TODO stubs, oversized functions. aislop encodes 50+ of those patterns and weights them so security and high-confidence defects hit harder than mechanical cleanup.

Six engines

Every scan runs six engines in parallel. Architecture is opt-in.

Formatting

Biome, ruff, gofmt, cargo fmt, rubocop, php-cs-fixer, dotnet format, clang-format.

Linting

oxlint, ruff, golangci-lint, clippy, expo-doctor, PMD / Checkstyle, Roslynator / InspectCode, cppcheck / clang-tidy.

Code quality

Function and file size, nesting, unused files and dependencies via knip, unused declarations.

AI slop

Narrative and trivial comments, swallowed exceptions, as any, unused imports, TODO stubs, generic names.

Security

eval, innerHTML, injection patterns, hardcoded secrets, and dependency audits.

Architecture

Opt-in import bans, layering rules, and required patterns in .aislop/rules.yml.

12 language targets (Scala in beta)

Built-in checks still run when optional system tools are missing. If a repository is mostly an unsupported language (Swift, Kotlin), aislop withholds the score and reports scoreable: false instead of scoring a handful of incidental files.

Why it is safe in CI

Deterministic

No LLM at runtime. The same tree always produces the same score.

Fast

Engines run in parallel. Most projects scan in well under a second.

Zero-config start

npx aislop@latest scan works on any supported repo. Add .aislop/config.yml when you want thresholds, rule overrides, or architecture rules.

Repair path

aislop fix handles mechanical cleanup. aislop agent runs a local Codex, Claude Code, or OpenCode session with aislop owning scoring and verification.
Current CLI: v0.22.3. MIT licensed.

Give this to your agent

Paste this into Claude Code, Cursor, Codex, or any other coding agent. It installs the aislop skill, hooks, and AGENTS.md standard.
Or run:
Full copy-paste prompt, AGENTS.md template, and URLs: For agents.