Skip to main content Switch to mobile version aislop 0.23.1 Install aislop with Python tooling and scan your code for AI slop
pip install aislop==0.23.1 Copy PIP instructions
Catch the slop AI coding agents leave in your code.
The patterns Claude Code, Cursor, Codex, and OpenCode leave behind: narrative comments above self-explanatory code, swallowed exceptions, hidden fallbacks, as any casts, hallucinated imports, duplicated helpers, dead code, todo stubs, oversized functions. Tests pass. Lint passes. The code rots anyway.
aislop catches them. 50+ rules across 12 language targets (TypeScript, JavaScript, Expo / React Native, Python, Go, Rust, Ruby, PHP, Java, Scala (beta), C#, C/C++). Scores every change 0–100. Sub-second. Deterministic: no LLM in the runtime path, same code in, same score out. MIT-licensed, free CLI.
Scala support is in beta. Coverage and accuracy are still being refined; Scala 3 indentation-based syntax and real-world scalafmt integration remain ongoing work.
This package is the Python-tooling distribution of aislop. The CLI is identical across every channel. Prefer npm or Homebrew? See other ways to install.
Use pipx for a global, isolated, Python-managed CLI install:
pipx install aislop Then scan any project:
aislop scan pipx keeps aislop in its own virtual environment, so it never collides with your project dependencies. Plain pip install --user aislop also works if you prefer.
From the root of a repo:
aislop scan You get a single 0–100 score and a list of findings. Common next steps:
aislop fix # auto-fix safe issues aislop fix -f # aggressive fixes (deps, unused files) aislop ci # CI-friendly JSON output and exit code aislop hook install --claude # install a per-edit agent hook aislop rules # see every rule aislop doctor # check local tool availability What gets installed
This package exposes two commands:
aislop-mcp — the MCP server, for tools that speak Model Context Protocol
The launcher pins aislop@
Node.js available on PATH — aislop runs Node-based engines under the hood
brew install pipx node pipx ensurepath On Debian/Ubuntu:
sudo apt install pipx pipx ensurepath # install Node.js from https://nodejs.org or your distro's nodesource setup Run aislop doctor to confirm every engine can run on your machine.
C# and C/C++ receive built-in text and complexity checks. Optional project-aware tools are documented in the main installation guide.
Hand off to your agent
When auto-fix can't solve an issue, pass the remaining findings to your coding agent with full context:
aislop fix --claude # Claude Code aislop fix --codex # Codex CLI aislop fix --cursor # Cursor (copies to clipboard) aislop fix --gemini # Gemini CLI aislop fix --prompt # print an agent-agnostic prompt Install a hook so feedback flows back after every edit:
aislop hook install --claude # Claude Code aislop hook install # pick agents interactively MCP server
Expose aislop as MCP tools (aislop_scan, aislop_fix, aislop_why, aislop_baseline) for Claude Desktop, Cursor, or Codex:
{ "mcpServers": { "aislop": { "command": "aislop-mcp" } } } CI
aislop scan --staged # staged files before commit aislop ci # JSON output, exits 1 if score < threshold aislop scan --sarif > aislop.sarif # SARIF 2.1.0 for GitHub code scanning Set a minimum score in .aislop/config.yml:
ci: failBelow: 70 More: CI/CD docs.
Run aislop on staged files with pre-commit or prek. pre-commit installs the package into its own environment. Node.js still needs to be on PATH.
repos: - repo: https://github.com/scanaislop/aislop-py rev: vX.Y.Z hooks: - id: aislop Set rev to a release tag, or run pre-commit autoupdate to pin the latest one.
Tune rules, severities, and excluded paths in .aislop/config.yml:
exclude: - "**/*_test.py" - src/generated rules: ai-slop/narrative-comment: warning # error | warning | off Run aislop init to scaffold one. Full reference: configuration docs.
Upgrade the Python package:
pipx upgrade aislop Check whether a newer release is available:
aislop upgrade Examples
aislop scan --changes # only changed files from HEAD aislop scan --staged # staged files before commit aislop scan --sarif > aislop.sarif # SARIF for GitHub code scanning aislop badge # generate a public score badge Troubleshooting
aislop: command not found after install — run pipx ensurepath and reopen your shell so the pipx bin directory is on PATH.
Node.js not found — aislop needs Node on PATH. Install it (brew install node, or from nodejs.org) and re-run aislop doctor.
Command already exists — if another install (npm or Homebrew) already owns aislop, pick one source. To replace it with the pipx copy: pipx install --force aislop.
Other ways to install
The same CLI is also available on npm, Yarn, Bun, and Homebrew:
pipx install aislop # Python (this package) npm install -g aislop # npm yarn dlx aislop scan # Yarn (no install) bunx aislop scan # Bun (no install) bun add -g aislop # Bun brew install scanaislop/tap/aislop # Homebrew See the Homebrew tap and the main project README for the npm-family options.
scanaislop is the hosted platform for teams: PR gates with score thresholds, an org → team → project standards hierarchy, dashboards, and agent attribution. Same engines, same scores. The CLI is MIT-licensed and free.
Discord community: https://discord.gg/Mzz4A6mfj6
Main project: https://github.com/scanaislop/aislop
Docs: https://scanaislop.com/docs
Issues: https://github.com/scanaislop/aislop/issues
PyPI package: https://pypi.org/project/aislop/
Homebrew tap: https://github.com/scanaislop/homebrew-tap
Released: Nov 29, 2026
MIT View SPDX License List
aislop ai-slop cli code-quality cpp csharp dotnet static-analysis
Development Status 4 - Beta
Intended Audience Developers
Programming Language Python :: 3
Topic Software Development :: Quality Assurance
Release files for aislop 0.23.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 14.0 kB
Release files / aislop-0.23.1.tar.gz
Release files / aislop-0.23.1-py3-none-any.whl
Security for aislop 0.23.1
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 29, 2026 2 release files No provenance
Nov 24, 2026 2 release files No provenance
Nov 22, 2026 2 release files No provenance
Nov 20, 2026 2 release files No provenance
Nov 14, 2026 2 release files No provenance
Nov 13, 2026 2 release files No provenance
Nov 1, 2026 2 release files No provenance
Oct 28, 2026 2 release files No provenance
Oct 6, 2026 2 release files No provenance
Oct 5, 2026 2 release files No provenance
Oct 2, 2026 2 release files No provenance
Sep 9, 2026 2 release files No provenance
Aug 31, 2026 2 release files No provenance
Aug 26, 2026 2 release files No provenance
Aug 8, 2026 2 release files No provenance
Jul 23, 2026 2 release files No provenance
Jun 29, 2026 2 release files No provenance
Jun 28, 2026 2 release files No provenance
Jun 20, 2026 2 release files No provenance
Jun 10, 2026 2 release files No provenance
Jun 6, 2026 2 release files No provenance
Jun 5, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from fc0d8e6











