Scientific AI Systems Architect | BioAI & Physics-ML | Deploying Regulated AI Models to Production
Detects "Convincingly Empty" AI-Generated Code.
Stop merging code that looks correct but does nothing.
🛑 The Problem: "AI Slop"
AI coding assistants are powerful, but they often generate code that passes linting but fails at logic. We call this "AI Slop":
Hollow shims: Functions with types and docstrings but pass or TODO bodies.
Hallucinated dependencies: Imports that look real but aren't used.
Fluff: 100 lines of code with only 5 lines of actual logic logic.
🔥 The Solution: Sovereign Static Analysis
AI Slop Detector is a high-fidelity static analysis tool designed for engineers who value structural integrity over generated volume. It doesn't just check syntax; it measures implementation depth.
Key Features
Feature
Description
Real-time Entropy Scan
Analyzes your code as you type, flagging low-information blocks instantly.
Logic Density Ratio (LDR)
Measures actual logic vs. boilerplate. Flags code with LDR < 0.3.
Drift Detection
Identifies "hallucinated" imports and unused dependencies that bloat your codebase.
Sovereign Gate
Integrated status bar indicator showing the real-time health of your current file.
One-Click Pre-Commit
Instantly install a Git hook to block "Slop" from ever entering your repo.
🚀 Quick Start
Installation
Open VS Code Quick Open (Ctrl+P) and run:
ext install flamehaven.vscode-slop-detector
Usage
The extension works automatically.
Inline Warnings: Low-quality code is underlined in yellow/red based on severity.
Status Bar: check the "Slop: 0%" indicator in the bottom right.
Commands: Press Ctrl+Shift+P and type SLOP to access advanced commands like Workspace Analysis.
⚙️ Configuration
Customize the strictness of your sovereignty.
Setting
Default
Description
slopDetector.enable
true
Enable/Disable the extension globally.
slopDetector.failThreshold
50.0
Slop Score (0-100) that triggers an ERROR.
slopDetector.warnThreshold
30.0
Slop Score (0-100) that triggers a WARNING.
slopDetector.lintOnType
false
Run analysis while typing (performance intensive).
slopDetector.pythonPath
python
Path to the Python interpreter with ai-slop-detector installed.
Pro Tip: Set failThreshold to 40.0 for production-grade "Drift-Free" enforcement.
📦 Requirements
Python 3.8+
Core Core: The analysis engine must be installed in your environment:
pip install ai-slop-detector
Built by Flamehaven. We build high-fidelity developer tools for the AI era. GitHub • Marketplace