AI Slop Code Risk Monitor

PC2005-cloud/dsh-pet

SlopCodeMonitor badge for PC2005-cloud/dsh-pet Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

DSH 桌面宠物:一行命令装好即用的透明动画小桌宠,支持多开、大小位置随心配置;还内置 DIY 素材链,能用 AI 视频自造专属宠物

1.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for PC2005-cloud/dsh-pet, a TypeScript project with 6,293 GitHub stars. SynthScan examined 123,311 lines of code across 731 source files, recording 107 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 1.8 (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.

1.8
Adjusted Signal
1.8
Raw Pattern Score
100%
Time Factor
2026-11-15
Last Push
6.3K
Stars
TypeScript
Language
123.3K
Lines of Code
731
Files
107
Pattern Hits
2026-11-15
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-15.

Cognitive Ownership Risk 1.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.5/100 · LOW

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

Agent Over-Engineering Ratio 7.5/100 · LOW

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

PR Review Velocity Impact 9.6/100 · LOW

Which changes need focused human review? 107 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 71LOW 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 107 distinct pattern matches across 8 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.

Decorative Section Separators70 hits · 180 pts
SeverityFileLineSnippetContext
MEDIUMtools/api-tester.html1858 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html1862 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2007 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2009 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2128 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2130 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2179 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2181 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2205 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2207 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2294 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2296 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2359 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2361 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2452 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2454 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2586 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2588 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2846 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2848 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html2863 // ── AI 模型(碎碎念 / 对话)────────────────────────────────────COMMENT
MEDIUMtools/api-tester.html2972 // ── 物理(拖拽抛掷手感)────────────────────────────────────────COMMENT
MEDIUMtools/api-tester.html3309 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html3311 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html3332 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html3334 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html3448 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html3450 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html3768 // ── 播放回执轮询(issue #122 第 3 项)────────────────────────────────COMMENT
MEDIUMtools/api-tester.html3768 // ── 播放回执轮询(issue #122 第 3 项)────────────────────────────────COMMENT
MEDIUMtools/api-tester.html3796 // ── 直观显示:状态阶梯 + 每轮一行 ──────────────────────────────COMMENT
MEDIUMtools/api-tester.html3899 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html3901 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html4025 // ── 抛掷:角度拨盘 + 力度 ────────────────────────────────────────COMMENT
MEDIUMtools/api-tester.html4136 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html4138 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html4483 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html4485 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html4628 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html4630 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html4721 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/api-tester.html4723 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMtools/cordis-probe/cordis.patch.yml1# ============================================================================COMMENT
MEDIUMtools/cordis-probe/cordis.patch.yml3# ============================================================================COMMENT
MEDIUMtools/cordis-probe/cordis.patch.yml19# ============================================================================COMMENT
MEDIUMdsh-pet/cordis.patch.yml1# ============================================================================COMMENT
MEDIUMdsh-pet/cordis.patch.yml3# ============================================================================COMMENT
MEDIUMdsh-pet/cordis.patch.yml21# ============================================================================COMMENT
MEDIUMscripts/encode_hevc_alpha.sh2# ============================================================================COMMENT
MEDIUMscripts/encode_hevc_alpha.sh21# ============================================================================COMMENT
MEDIUM.github/workflows/hevc-alpha.yml1# ============================================================================COMMENT
MEDIUM.github/workflows/hevc-alpha.yml25# ============================================================================COMMENT
MEDIUM.github/workflows/release-app.yml1# ============================================================================COMMENT
MEDIUM.github/workflows/release-app.yml18# ============================================================================COMMENT
MEDIUMsite/fetch_metrics.py79# --------------------------------------------------------------------------COMMENT
MEDIUMsite/fetch_metrics.py81# --------------------------------------------------------------------------COMMENT
MEDIUMsite/fetch_metrics.py111# --------------------------------------------------------------------------COMMENT
MEDIUMsite/fetch_metrics.py113# --------------------------------------------------------------------------COMMENT
MEDIUMsite/fetch_metrics.py176# --------------------------------------------------------------------------COMMENT
MEDIUMsite/fetch_metrics.py178# --------------------------------------------------------------------------COMMENT
10 more matches not shown…
Over-Commented Block10 hits · 10 pts
SeverityFileLineSnippetContext
LOWtools/cordis-probe/cordis.patch.yml1# ============================================================================COMMENT
LOWdsh-pet/cordis.patch.yml1# ============================================================================COMMENT
LOWdsh-pet/runtime/electron-helper/sprite/menu.js41 // 「配图」:与浏览器端同一份分支(纳入对话的配图 / 其他),点一张就用它说一句;没有可用图时COMMENT
LOWdsh-pet/src/host/config/save.ts141 // 传了就整段校验后进白名单,没传则走下面的透传保留。校验复用读取侧的 topFieldValidCOMMENT
LOWdsh-pet/src/host/plugin/session-watch.ts261 // 系统通知:监听 DSH 宿主事件生成通知帧入队,浏览器轮询 /state 读到后弹 toast(帧契约与COMMENT
LOWdsh-pet/src/host/routes/assets.ts21COMMENT
LOWdsh-pet/src/host/routes/config/display.ts61 } catch (e) {COMMENT
LOWscripts/encode_hevc_alpha.sh1#!/bin/zshCOMMENT
LOW.github/workflows/hevc-alpha.yml1# ============================================================================COMMENT
LOW.github/workflows/release-app.yml1# ============================================================================COMMENT
Hyper-Verbose Identifiers10 hits · 10 pts
SeverityFileLineSnippetContext
LOWdsh-pet/runtime/electron-helper/taskbar-watchdog.js34function taskbarWatchdogEnabledFromEnv(raw) {CODE
LOWdsh-pet/src/host/broadcast.ts46export function normalizeBroadcastDuration(duration: unknown): number | null {CODE
LOWdsh-pet/src/host/chat-memory-provider.ts78export function registerChatMemoryProvider(def: ChatMemoryProvider): () => void {CODE
LOWdsh-pet/src/host/config/save.ts247export function syncUserConfigFromDefault(paths: ConfigPaths): void {CODE
LOWdsh-pet/src/host/voice/builtin-deepseek-tts.ts30export function createDeepseekTtsProvider(deps: { resolveKey: ResolveKey }): VoiceProvider {CODE
LOWdsh-pet/src/host/voice/builtin-deepseek-tts.ts58export function ensureDeepseekTtsProvider(deps: { resolveKey: ResolveKey }): void {CODE
LOWdsh-pet/src/host/voice/builtin-deepseek-asr.ts25export function createDeepseekAsrProvider(deps: { resolveKey: ResolveKey }): SpeechProvider {CODE
LOWdsh-pet/src/host/voice/builtin-deepseek-asr.ts57export function ensureDeepseekAsrProvider(deps: { resolveKey: ResolveKey }): void {CODE
LOWdsh-pet/src/host/helper/restart.ts119export function shouldFallbackToNoSandbox(input: {CODE
LOWdsh-pet/src/client/notify.ts186export async function requestNotificationPermission(): Promise<PermissionResult> {CODE
Unused Imports9 hits · 9 pts
SeverityFileLineSnippetContext
LOWscripts/encode_thumbs.py24CODE
LOWscripts/watermark_step01.py14CODE
LOWscripts/normalize_step03.py10CODE
LOWscripts/make_mask_black.py5CODE
LOWscripts/fill_nn.py10CODE
LOWscripts/encode_preview_gifs.py24CODE
LOWscripts/chroma_step02.py3CODE
LOWscripts/pr_import_step02.py20CODE
LOWsite/fetch_metrics.py39CODE
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOWdsh-pet/src/standalone/context-ai.test.ts28 balanceAuth: () => ({ provider: 'deepseek-official', apiKey: 'fake-key' }),CODE
LOWdsh-pet/src/standalone/settings.test.ts349 page.element('apiKey').value = 'write-only-fake-key';CODE
LOWdsh-pet/src/standalone/settings.test.ts358 assert.deepEqual(body.keys, { DEEPSEEK_API_KEY: 'write-only-fake-key' });CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.agents/skills/task-guardrails/SKILL.md12# 任务流程与操作边界(task-guardrails)COMMENT
Excessive Try-Catch Wrapping2 hits · 2 pts
SeverityFileLineSnippetContext
LOWscripts/encode_preview_gifs.py198 except Exception as exc: # noqa: BLE001CODE
LOW⚡site/fetch_metrics.py192 except Exception as exc: # noqa: BLE001 - 网络层什么都可能抛,统一重试CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWscripts/make_mask_black.py20CODE
LOWscripts/chroma_step02.py61CODE