AI Slop Code Risk Monitor

songquanpeng/one-api

SlopCodeMonitor badge for songquanpeng/one-api Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

LLM API 管理 & 分发系统,支持 OpenAI、Azure、Anthropic Claude、Google Gemini、DeepSeek、字节豆包、ChatGLM、文心一言、讯飞星火、通义千问、360 智脑、腾讯混元等主流模型,统一 API 适配,可用于 key 管理与二次分发。单可执行文件,提供 Docker 镜像,一键部署,开箱即用。LLM API management & key redistribution system, unifying multiple providers under a single API. Single binary, Docker-ready, with an English UI.

0.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for songquanpeng/one-api, a JavaScript project with 37,487 GitHub stars. SynthScan examined 60,391 lines of code across 520 source files, recording 36 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.7 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

0.7
Adjusted Signal
0.7
Raw Pattern Score
100%
Time Factor
2026-01-09
Last Push
37.5K
Stars
JavaScript
Language
60.4K
Lines of Code
520
Files
36
Pattern Hits
2026-11-27
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-27.

Cognitive Ownership Risk 1.7/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 19 finding(s).

Hallucinated Dependency & Supply Chain Risk 1.8/100 · LOW

Are imports declared and package/API names verified? 17 finding(s).

Agent Over-Engineering Ratio 0.1/100 · LOW

Are wrappers, guards, and repeated structures necessary? 1 finding(s).

PR Review Velocity Impact 2.9/100 · LOW

Which changes need focused human review? 36 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 0MEDIUM 0LOW 36

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 36 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Fake / Example Data17 hits · 22 pts
SeverityFileLineSnippetContext
LOWweb/default/src/locales/zh/translation.json27 "placeholder": "请输入兑换码",CODE
LOWweb/default/src/locales/zh/translation.json235 "placeholder": "排序方式",CODE
LOW⚡web/default/src/locales/zh/translation.json623 "placeholder": "为一个 JSON 文本,键为模型名称,值为倍率"CODE
LOW⚡web/default/src/locales/zh/translation.json627 "placeholder": "为一个 JSON 文本,键为模型名称,值为倍率,此处的倍率设置是模型补全倍率相较于提示倍率的比例,使用该设置可强制覆盖 One API 的内部比例"CODE
LOW⚡web/default/src/locales/zh/translation.json631 "placeholder": "为一个 JSON 文本,键为分组名称,值为倍率"CODE
LOWweb/default/src/locales/zh/translation.json693 "placeholder": "请输入主题名称"CODE
LOW⚡web/default/src/locales/zh/translation.json705 "placeholder": "在此输入首页内容,支持 Markdown & HTML 代码,设置后首页的状态信息将不再显示。如果输入的是一个链接,则会使用该链接作为 iframe 的 src 属性,这允许你设置任意网页CODE
LOW⚡web/default/src/locales/zh/translation.json709 "placeholder": "在此输入新的关于内容,支持 Markdown & HTML 代码。如果输入的是一个链接,则会使用该链接作为 iframe 的 src 属性,这允许你设置任意网页作为关于页面。"CODE
LOW⚡web/default/src/locales/zh/translation.json713 "placeholder": "在此输入新的页脚,留空则使用默认页脚,支持 HTML 代码"CODE
LOWweb/default/src/locales/en/translation.json27 "placeholder": "Please enter redemption code",CODE
LOWweb/default/src/locales/en/translation.json235 "placeholder": "Sort By",CODE
LOW⚡web/default/src/locales/en/translation.json625 "placeholder": "A JSON text where keys are model names and values are ratios"CODE
LOW⚡web/default/src/locales/en/translation.json629 "placeholder": "A JSON text where keys are model names and values are ratios. These ratios are the proportion CODE
LOW⚡web/default/src/locales/en/translation.json633 "placeholder": "A JSON text where keys are group names and values are ratios"CODE
LOWweb/default/src/locales/en/translation.json695 "placeholder": "Please enter theme name"CODE
LOWweb/default/src/locales/en/translation.json707 "placeholder": "Enter homepage content here, supports Markdown & HTML code. Status information will not be shoCODE
LOWweb/default/src/locales/en/translation.json717 "placeholder": "Enter new footer here, leave empty to use default footer, supports HTML code"CODE
Over-Commented Block15 hits · 15 pts
SeverityFileLineSnippetContext
LOWweb/air/src/components/RedemptionsTable.js161 const [showEdit, setShowEdit] = useState(false);COMMENT
LOWweb/air/src/components/UsersTable.js41 <Tag color="white" size="large">{renderQuota(record.used_quota)}</Tag>COMMENT
LOWweb/air/src/components/ChannelsTable.js61 // dataIndex: 'group',COMMENT
LOWweb/air/src/components/ChannelsTable.js141 keepFocus={true}COMMENT
LOWweb/air/src/pages/Token/EditToken.js61COMMENT
LOWweb/berry/src/serviceWorker.js1// This optional code is used to register a service worker.COMMENT
LOW…/berry/src/layout/MainLayout/Sidebar/MenuCard/index.js21COMMENT
LOW…/berry/src/layout/MainLayout/Sidebar/MenuCard/index.js61// <Grid container direction="column" spacing={1} sx={{ mt: 1.5 }}>COMMENT
LOW.github/workflows/ci.yml1name: CICOMMENT
LOWrelay/adaptor/xunfei/domain.go1package xunfeiCOMMENT
LOWrelay/adaptor/replicate/image.go21 "golang.org/x/image/webp"COMMENT
LOWrelay/adaptor/tencent/model.go1package tencentCOMMENT
LOWrelay/adaptor/tencent/model.go21 Messages []*Message `json:"Messages"`COMMENT
LOWrelay/adaptor/openai/token.go141 gpt4oMiniLowDetailCost = 2833COMMENT
LOWrelay/adaptor/openai/token.go161 // return 0, errCOMMENT
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
LOW.github/workflows/ci.yml32 # When you execute your unit tests, make sure to use the "-coverprofile" flag to write aCOMMENT
LOWmodel/user.go32// User if you add sensitive fields, don't forget to clean them in setupLogin function.COMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWrelay/adaptor/replicate/constant.go57 // "minimax/video-01", // TODO: implement the adaptorCOMMENT
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWweb/air/src/helpers/render.js45export function renderQuotaNumberWithDigit(num, digits = 2) {CODE