SlopBuster
Surgical AI-slop removal for Python code.
You know that "vibe-coded" Python file that works but reads like ChatGPT threw up in your editor? Bloated comments, redundant docstrings, meaningless variable names (result, data, item), and a cognitive load score that makes your eyes bleed.
SlopBuster fixes that. One right-click and your file goes from "definitely AI-generated" to "professional-grade Python."
One-Click Clean
Right-click any .py file → SlopBuster: Clean This File
SlopBuster will:
- Strip AI-boilerplate comments ("Initialize the result container", "Iterate through each item", etc.)
- Remove redundant docstrings that just repeat the function name
- Rename vague variables (
result → output, data → payload, item → record)
- Normalize spacing and trailing whitespace
- Run
ruff format automatically
- Score the file's cognitive load
The result is Python that doesn't scream "I was generated by an LLM."
What You Get
| Command |
Where |
What it does |
| SlopBuster: Clean This File |
Right-click .py, Editor context menu, Command Palette |
Scrub one file |
| SlopBuster: Clean Directory |
Right-click any folder |
Batch-clean an entire directory |
| SlopBuster: Show Vibe Report |
Command Palette |
See the cognitive load score + what it'd clean (no changes made) |
Keyboard shortcut: Ctrl+Alt+V / Cmd+Alt+V when editing Python.
The "Before & After" Nobody Asked For
Before — the classic AI-slop special:
# Initialize the result container
result = {}
# Iterate through each item in the input data
for idx, item in enumerate(input_data):
try:
# Transform the item using our advanced algorithm
transformed = _process(item)
if transformed:
result["data"].append(transformed)
except Exception as e:
# Log any errors
result["errors"].append(str(e))
After one click:
output = {}
for idx, record in enumerate(input_data):
try:
transformed = _process(record)
if transformed:
output['data'].append(transformed)
except Exception as e:
output['errors'].append(str(e))
No more "we need to utilize our robust scalable solution to leverage best practices." Just clean code.
Setup
pip install slopbuster
# CLI command is: vibecheck
That's it. The extension auto-detects the CLI from PATH.
Settings
| Setting |
Default |
What it controls |
slopbuster.cliPath |
vibecheck |
Path to CLI (only change if you compiled from source) |
slopbuster.fixNames |
true |
Rename suspicious variables/functions automatically |
slopbuster.aggressive |
false |
Pro feature: enable aggressive pattern detection |
Pro
The free version handles single files and small directories (10-file batch limit). The Pro binary (vibecheck-pro) unlocks aggressive patterns, unlimited batch processing, and JSON reports. Drop vibecheck-pro in your PATH and the extension picks it up automatically.
Built by a dev who got tired of cleaning up AI slop manually.