Discover and explore top open-source AI tools and projects—updated daily.
scanaislopScanner for AI coding agent anti-patterns
Top 77.4% on SourcePulse
This project addresses the "slop" or suboptimal patterns introduced by AI coding agents, such as narrative comments, swallowed exceptions, and dead code. It provides a deterministic, sub-second scanner and auto-fix tool for developers seeking to maintain code quality, especially when integrating AI-generated code. The primary benefit is a quantifiable score and automated cleanup, ensuring code remains robust and maintainable.
How It Works
aislop employs a suite of deterministic engines (regex, AST, and standard formatters/linters like Biome, ruff, golangci-lint) across seven languages. This approach avoids runtime LLM calls, ensuring consistent, sub-second performance and predictable scoring. It identifies specific AI-generated code patterns alongside traditional code quality, linting, and security issues, assigning a 0-100 score. Mechanical fixes are automated, while complex issues are contextually passed back to AI agents.
Quick Start & Requirements
npx aislop scan (no installation required). Alternative installs: npm install --save-dev aislop, yarn add --dev aislop, pnpm add -D aislop, or global npm install -g aislop.npx execution. No specific hardware or OS dependencies beyond Node.js.aislop --help and specific docs linked within the README (e.g., CI/CD, Hooks).Highlighted Details
npx aislop fix) and integrates with AI agents for complex fixes.Maintenance & Community
The project lists contributors @heavykenny, @myke-awoniran, and @yashrajoria, with an automated system for updating contributor lists. Community interaction is facilitated through GitHub Discussions for questions and rule requests, and GitHub Issues for bug reporting.
Licensing & Compatibility
The CLI tool is MIT-licensed, allowing for broad use, modification, and distribution, including within commercial projects. No specific compatibility restrictions for commercial use or closed-source linking are noted beyond standard MIT license terms.
Limitations & Caveats
While comprehensive, aislop's core focus is identifying patterns specific to AI-generated code, though it also catches general code quality issues. Auto-fixing is limited to mechanical fixes; more complex problems require human or AI agent intervention. The effectiveness of AI-specific rules depends on the patterns generated by the agents being scanned.
1 day ago
Inactive