AI 代码垃圾监控器
实时检测跨开源仓库的 AI 生成代码
由 SynthScan — 合成代码指纹引擎驱动
## 🔍 这是什么?
**AI 代码垃圾监控器** 会自动扫描数百个热门的 GitHub 仓库,寻找 AI 生成(“垃圾”)代码的典型特征 —— 重复的模式、过多的样板代码、装饰性分隔符、过度注释的逻辑等等。
每天,扫描器都会:
1. 从 GitHub 的热门趋势中获取最受欢迎的仓库
2. 克隆每个 repo 并运行 **SynthScan** 模式分析
3. 为每个仓库计算出一个 **Synth Score**(0–10 分)
4. 发布包含完整下钻细节的交互式仪表板
## 📊 仪表板预览

KPI cards, score distribution, and category breakdown at a glance

Sortable table with scores, deltas, and drill-down links for every repository

Per-repository findings with file-level detail and severity indicators
## 🏗️ 工作原理
```
┌─────────────────────┐ ┌───────────────┐ ┌──────────────────────┐
│ fetch_trending.py │────▶│ repos.txt │────▶│ slop_monitor.py │
│ GitHub Search API │ │ 700+ repos │ │ Clone → Scan → │
│ daily auto-update │ └───────────────┘ │ Score → Report │
└─────────────────────┘ └──────────┬───────────┘
│
┌────────────────────┼──────────────┐
▼ ▼ ▼
index.html reports/ images/
detail_*.html logo + shots
```
| 组件 | 用途 |
|---|---|
| **SynthScan** | 模式引擎 —— 匹配 50 多种带有严重性评分的合成代码指纹 |
| **slop_monitor.py** | 协调器 —— 并行克隆、扫描、聚合和 HTML 生成 |
| **fetch_trending.py** | 供给器 —— 通过 GitHub Search API 发现热门 repo |
| **deploy.sh** | 发布器 —— 构建结构并将站点推送到 GitHub Pages |
## 📈 评分模型
每个仓库都会获得一个 0 到 10 分的 **Synth Score**:
| 分数 | 标签 | 含义 |
|:---:|---|---|
| **8.0 – 10.0** | 🔴 严重 | 具有强烈的 AI 生成指纹 |
| **5.0 – 7.9** | 🟠 较高 | 检测到显著的合成模式 |
| **2.0 – 4.9** | 🟡 中等 | 存在一些 AI 风格的模式 |
| **0.0 – 1.9** | 🟢 较低 | 可能是人类编写的 |
分数会根据代码行数进行标准化,因此大型代码库不会受到不公平的惩罚。
## 🚀 实时仪表板
👉 **[访问 slopcodemonitor.ai →](https://slopcodemonitor.ai)**
仪表板每天都会重新构建,具有以下特点:
- **暗色翠绿玻璃质感 UI**,带有平滑的渐变效果
- **交互式 Chart.js 图表** —— 直方图、类别细分、前 30 名排名
- **可排序表格**,显示与上次扫描相比的分数变化(↑↓)
- 在分数 ≥ 7.5 的 repo 上显示 **SLOP 警报徽章**
- 为每个仓库提供 **详细下钻** 功能 —— 可查看每一个发现、文件和行号
## 🤝 建议一个仓库
认为某个 repo 应该被扫描?提一个 issue:
## 🔗 相关项目
| 项目 | 描述 |
|---|---|
| [**SynthScan**](https://github.com/marcoramilli/SynthScan) | 为此监控器提供动力的模式匹配引擎 |
| [**SLOP-Code-Calculator**](https://github.com/marcoramilli/SLOP-Code-Calculator) | 扫描器、获取器和报告生成器的源代码 |

Built by Marco Ramilli · Updated daily · Powered by SynthScan