Support

Frequently Asked Questions

Everything you need to know about eliminating AI slop, local-first AST analysis, and supercharging code review velocity.

General

AntiSlop.dev is an AI Slop Detection & Auto-Remediation platform designed specifically for AI-assisted or "vibe-coded" codebases.

It acts as an automated quality-assurance layer that sits between your AI coding assistants (like Cursor, Copilot, or Claude) and your production environment, ensuring that machine-generated code remains clean, maintainable, and mathematically minimal.

In the context of software development, AI slop refers to low-quality patterns introduced during rapid AI-assisted development. Common examples include:

  • Redundant code or unnecessary complexity
  • Hallucinated dependencies or phantom wrappers
  • Leftover debugging code and console logs
  • Contradictory styling or questionable React/Vue patterns
  • Dead code and over-defensive error handling
  • Hardcoded secrets or security mistakes

Note: While these patterns are extremely common in AI-generated output, AntiSlop does not assume every instance was necessarily generated by AI—it just purges the slop regardless of origin.

No. While AntiSlop is meticulously designed around problems commonly encountered in AI-assisted development, its structural rules are universal. Many of its detections will accurately identify logic bloat, redundant abstractions, and security mistakes in human-written code as well.

AntiSlop is built for:

  • Developers using AI coding assistants (Cursor, Copilot, etc.)
  • "Vibe coders" who prototype rapidly and need a cleanup phase
  • Frontend and full-stack developers dealing with complex React/Vue/Tailwind bases
  • Engineering teams standardizing AI adoption
  • Senior developers reviewing AI-generated pull requests

No, AntiSlop is designed to be complementary to traditional linters like ESLint or Biome.

Traditional linters enforce syntactic style (semicolons, spacing, variable naming). AntiSlop operates at a higher semantic level, detecting structural anti-patterns, hallucinated abstractions, and logic bloat that standard linters miss.

No. AntiSlop provides an automated quality layer to strip out obvious boilerplate and architectural cruft before the code is reviewed. Human review remains incredibly valuable for verifying business logic, product requirements, and system design.

No. AntiSlop's normal detection pipeline is based primarily on deterministic static analysis. JavaScript, TypeScript, and CSS are analyzed structurally using Abstract Syntax Trees (ASTs) rather than sending your source code to an AI model.

LLMs are part of the optional Auto-Fix remediation layer, which you explicitly invoke only when you want the AI to rewrite a complex chunk of detected slop.

Installation & Getting Started

You can run the AntiSlop CLI immediately using npx without installing it manually:

$npx antislop

Learn more about installation →

No. While you can install it globally, it is heavily recommended to use npx antislop for one-off scans or install it as a development dependency in your project so your whole team shares the same version.

You should run AntiSlop from the root directory of your project/workspace. The CLI will automatically discover supported files and respect your configuration files relative to where it was executed.

AntiSlop currently focuses entirely on the modern web ecosystem. Currently supported file types include:

  • JavaScript (.js, .mjs, .cjs)
  • TypeScript (.ts)
  • JSX / TSX (.jsx, .tsx)
  • React components

Planned support: Vue, CSS, Tailwind CSS analysis, Python.

Yes. AntiSlop has deep, native support for React. It can detect React-specific slop like needless useMemo wrappers, redundant `useEffect` chains, and hallucinated component props.

Absolutely. Because AntiSlop fundamentally analyzes JavaScript, TypeScript, and React (TSX), it works flawlessly with Next.js projects right out of the box.

Scanning & Detection

The scanning process follows a strict, deterministic pipeline:

  1. Workspace Discovery: AntiSlop identifies your project root.
  2. File Discovery: It traverses your directories, skipping ignored folders.
  3. Parsing: Supported files (JS/TS/TSX) are parsed into Abstract Syntax Trees.
  4. Engine Evaluation: The ASTs are passed through the AntiSlop heuristic rule engine.
  5. Detection: Slop patterns are flagged and logged.
  6. Reporting: Results are presented directly in your CLI or VS Code window.

No. By default, AntiSlop completely ignores node_modules/, .git/, and standard build directories (like dist/ or .next/) to keep scans lightning fast.

AntiSlop groups detected issues into major categories:

  • Logic Slop: Dead code, recursive loops, redundant abstractions.
  • Artifact Slop: Leftover AI comments, hallucinated imports, mock data in production files.
  • React Slop: Over-optimization (trivial memos), prop drilling, hydration risk patterns.
  • Security Slop: Hardcoded keys, blind try/catch swallows.

No. Ordinary scanning is strictly read-only. It analyzes your code and reports issues. Files are only modified if you explicitly invoke the Auto-Fix system.

Yes. AntiSlop can scan from the root of a monorepo, analyzing all workspaces. However, it is currently recommended to run AntiSlop separately inside individual package directories for more targeted reporting.

AST & Detection Engine

AST stands for Abstract Syntax Tree. It is a tree representation of the abstract syntactic structure of source code.

Instead of looking at code as a long string of text like this:

const total = price + tax;

An AST breaks it down structurally:

Variable Declaration
  → identifier: total
  → Binary Expression (+)
      → left: price
      → right: tax

AST analysis allows AntiSlop to reliably understand actual programming constructs rather than just text.

For example, a plain text regex search for console.log might accidentally flag a comment like // Remove console.log or a string variable. An AST-based rule knows the difference between a comment, a string literal, and an actual function call expression, resulting in drastically fewer false positives.

No. While some extremely lightweight checks (like searching for artifact markers like "As an AI language model...") may use pattern matching, the core engine structurally parses JavaScript and TypeScript using ASTs.

Deterministic static analysis is vastly superior for detection because it is:

  • Faster: Scans thousands of files in milliseconds.
  • Local & Private: Zero data leaves your machine.
  • Less Expensive: Costs nothing in API credits.
  • Predictable: Returns the exact same result every time.

LLMs are incredibly powerful, but they are better treated as an optional remediation layer rather than the primary detection engine.

Detection Rules

An AntiSlop rule is a specific programmed heuristic that identifies a single, undesirable code pattern (e.g., "redundant-use-memo" or "hallucinated-package-import").

When a rule triggers, it generates an issue containing:

  • Rule ID: (e.g., react/no-trivial-memo)
  • Severity: (Warning, Error, Notice)
  • File & Line: The exact location in your code
  • Description: Why the code was flagged
  • Suggested Action: How to resolve it

Yes. You can disable specific rules via inline comments in your code (e.g., // antislop-disable-next-line) if you need a quick override. Support for disabling rules globally via configuration is currently planned.

False Positives & Accuracy

Yes. No static-analysis system is completely infallible. While AntiSlop heavily prioritizes high-confidence detections, there will inevitably be edge cases where unconventional (but intentional) architecture is flagged as "slop".

Simply use an inline disable comment above the flagged line, or review the finding and choose to safely ignore it. You are always in control of your codebase.

No. Like any linter, warnings are suggestions. Developers should read the description, understand the flagged issue, and use their engineering judgment to decide if a fix is actually warranted for their specific context.

We keep false positives low through several strict engineering practices:

  • AST-aware analysis: We don't rely on naive pattern matching.
  • Narrowly scoped rules: Rules are designed to only catch extreme violations, defaulting to leniency.
  • Contextual checks: We verify variable scopes and imports before flagging unused logic.

Reports

When you run a scan, AntiSlop can optionally generate a structured report file (often named antislop-report.md or similar) containing all detected issues.

Yes. The report is deliberately structured to be highly readable for both humans and AI agents. It formats issues clearly with file paths, line ranges, and descriptions so you can pass it directly into tools like Cursor Composer or a GitHub Action workflow.

Yes! This is the intended workflow. You can generate a report, open it in Cursor, and prompt the AI with: "Review these findings and fix the issues mentioned in the report." The agent can read the structured markdown and resolve the slop automatically.

VS Code Extension

Currently, the VS Code Extension is in active development and is planned for release soon. Currently, the CLI is the primary way to interface with the detection engine.

Auto-Fix

Auto-Fix is an optional remediation layer for detected issues. When enabled, AntiSlop attempts to automatically rewrite the problematic code to resolve the flagged slop.

No. They are distinct phases.

  • Detection: Local, deterministic static analysis (AST).
  • Auto-Fix: Optional remediation, which may invoke an external LLM for complex refactors.

AntiSlop operates under a strict safety model. Destructive changes are designed to be explicitly reviewable. The Auto-Fix pipeline integrates with Git to ensure that you can easily view a diff of the proposed changes before accepting them.

Yes. Because changes are applied to your working directory or a dedicated branch, you can simply use standard Git commands (git diff, git restore) to review the exact lines changed, and reject or modify anything the Auto-Fix engine did.

AI / LLM Providers

For a normal scan, no. It uses deterministic static analysis.

For Auto-Fix, it may optionally use an LLM to perform complex code remediation that cannot be handled by simple AST transformations.

Keeping detection strictly separate from LLM remediation provides massive benefits:

  • Deterministic Results: No hallucinated errors.
  • Privacy: Code doesn't leave your machine just to be scanned.
  • Speed & Cost: Scanning is instant and free.
  • Reliability: Rules are easy to test and verify.

Privacy & Security

No. Normal static analysis runs entirely locally on your machine. Your source code is never sent to AntiSlop.dev servers for ordinary scanning.

Your code (specifically, only the affected context snippets) leaves your machine only if you explicitly invoke the optional Auto-Fix functionality with a remote LLM provider.

Yes! By using the CLI for scanning and detection, your workflow remains 100% local, air-gapped, and secure.

Git & Code Safety

Git provides the ultimate reviewable and reversible safety boundary. Instead of silently overwriting files and losing history, applying fixes over a Git repository ensures you always have a perfect fallback.

Yes. It is always highly recommended to commit your working tree (or stash changes) before running any automated refactoring tool. This ensures you can easily review the exact diff that AntiSlop generated.

Performance

Yes. The architecture relies on highly efficient AST traversal, avoiding the overhead of booting up expensive language servers or repeated parsing. It is designed to be orders of magnitude faster than a traditional typescript compiler pass.

Our internal design target is to be able to scan and analyze 1,000 files in under 5 seconds.

Note: This is an architectural target, not a guaranteed measured benchmark on all hardware.

Configuration

Yes. Currently, AntiSlop automatically ignores common heavy directories like node_modules/ and build folders.

Troubleshooting

Ensure you have Node.js installed (v18+ recommended). Try running npx clear-npx-cache if the command fails to download the latest binary properly.

Ensure you are running the command from the root of your workspace, and that your project actually contains supported files (.js, .ts, .jsx, .tsx).