AI Slop Code Risk Monitor

kingcharleslzy-ai/dsh-purge

SlopCodeMonitor badge for kingcharleslzy-ai/dsh-purge Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

dsh-purge Community · DeepSeek Harness 社区维护版:宿主兼容、状态诊断、提示词管理、更新与本机备份回滚。基于小杨 / YuJunZhiXue 的 dsh-purge。

1.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for kingcharleslzy-ai/dsh-purge, a JavaScript project with 8,873 GitHub stars. SynthScan examined 97,960 lines of code across 329 source files, recording 119 pattern matches distributed across 6 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-16
Last Push
8.9K
Stars
JavaScript
Language
98.0K
Lines of Code
329
Files
119
Pattern Hits
2026-11-16
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-16.

Cognitive Ownership Risk 3.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.3/100 · LOW

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

Agent Over-Engineering Ratio 7.8/100 · LOW

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

PR Review Velocity Impact 8.9/100 · LOW

Which changes need focused human review? 119 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 32LOW 87

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 119 distinct pattern matches across 6 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 Separators30 hits · 90 pts
SeverityFileLineSnippetContext
MEDIUMscripts/redteam-setup.sh2# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/redteam-setup.sh20# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/redteam-setup.sh44# ── 输出工具 ────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/redteam-setup.sh84# ── 工具函数 ────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/redteam-setup.sh181# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/redteam-setup.sh186# ═══ ① 工具安装 ════════════════════════════════════════════════════════════COMMENT
MEDIUMscripts/redteam-setup.sh302# ═══ ② nuclei 模板 ═════════════════════════════════════════════════════════COMMENT
MEDIUMscripts/redteam-setup.sh320# ═══ ③ 配置:FOFA_KEY 与 VPS ══════════════════════════════════════════════COMMENT
MEDIUMscripts/redteam-setup.sh435# ═══ ④ 体检表 ══════════════════════════════════════════════════════════════COMMENT
MEDIUMscripts/redteam-setup.sh456# ═══ ⑤ 完成标记 ════════════════════════════════════════════════════════════COMMENT
MEDIUMpresets/redteam/agent.cordis.yml25# ── identity ────────────────────────────────────────────────────────────────COMMENT
MEDIUMpresets/redteam/agent.cordis.yml135# ── shell ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMpresets/redteam/agent.cordis.yml152# ── filesystem ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpresets/redteam/agent.cordis.yml164# ── background jobs ────────────────────────────────────────────────────────COMMENT
MEDIUMpresets/redteam/agent.cordis.yml176# ── skills ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMpresets/redteam/agent.cordis.yml205# ── goals ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMpresets/redteam/agent.cordis.yml216# ── plan mode ───────────────────────────────────────────────────────────────COMMENT
MEDIUMpresets/redteam/agent.cordis.yml242# ── compaction ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpresets/redteam/agent.cordis.yml273# ── delegation and workflows ────────────────────────────────────────────────COMMENT
MEDIUMpresets/redteam/agent.cordis.yml369# ── remaining model-facing rows ─────────────────────────────────────────────COMMENT
MEDIUMpresets/unrestricted/agent.cordis.yml11# ── identity ────────────────────────────────────────────────────────────────COMMENT
MEDIUMpresets/unrestricted/agent.cordis.yml35# ── shell ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMpresets/unrestricted/agent.cordis.yml55# ── filesystem ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpresets/unrestricted/agent.cordis.yml67# ── background jobs ────────────────────────────────────────────────────────COMMENT
MEDIUMpresets/unrestricted/agent.cordis.yml79# ── skills ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMpresets/unrestricted/agent.cordis.yml104# ── goals ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMpresets/unrestricted/agent.cordis.yml115# ── plan mode ───────────────────────────────────────────────────────────────COMMENT
MEDIUMpresets/unrestricted/agent.cordis.yml141# ── compaction ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpresets/unrestricted/agent.cordis.yml172# ── delegation and workflows ────────────────────────────────────────────────COMMENT
MEDIUMpresets/unrestricted/agent.cordis.yml273# ── remaining model-facing rows ─────────────────────────────────────────────COMMENT
Hyper-Verbose Identifiers70 hits · 64 pts
SeverityFileLineSnippetContext
LOWlib/preset-compat.js341export async function registerPresetDefinitions(registry, definitions) {CODE
LOWlib/core.js254function findAiBaseFromRunningProcess() {CODE
LOWlib/core.js290export function isDesktopCommandRuntimeDir(dir) {CODE
LOWlib/core.js294export function listDesktopCommandRuntimeDirs() {CODE
LOWlib/core.js514export function silenceSubprocessLocalFlash(dshHome = findDshHome()) {CODE
LOWlib/core.js617export function silenceLiangshenCustomBashFlash(dshHome = findDshHome()) {CODE
LOWlib/core.js664function listLiangshenCustomBashFiles(dshHome) {CODE
LOWlib/core.js852export function liangshenPromptFilterText(text) {CODE
LOWlib/core.js861function listLiangshenMinimalPromptFiles(dshHome) {CODE
LOWlib/core.js888export function keepLiangshenOperatorPrompt(dshHome = findDshHome()) {CODE
LOWlib/core.js965function listLiangshenBootstrapFiles(dshHome) {CODE
LOWlib/core.js1284export function silenceDshmarketRestartFlash(dshHome = findDshHome()) {CODE
LOWlib/core.js1371function listDshmarketRestartFiles(dshHome) {CODE
LOWlib/core.js2087export function repairOfficialCliAfterUnpack(exe) {CODE
LOWlib/core.js2100export function scheduleSealedDesktopRestart(handoff) {CODE
LOWlib/core.js2206export function restartSealedDesktopIfNeeded(input = {}) {CODE
LOWlib/core.js2229export function rememberDesktopInstallForHandoff(handoff) {CODE
LOWlib/core.js2252export function sealedDesktopHandoffAnySurface(input = {}) {CODE
LOWlib/core.js2340export function rememberCommittedOverride(dshHome, text) {CODE
LOWlib/core.js2491export async function dropStaleUserProfilePatchBackups(dshHome = findDshHome()) {CODE
LOWlib/core.js2540export function restoreMissingOriginalsFromBak(aiBase, options = {}) {CODE
LOWlib/core.js2588export function restoreMissingOriginalsAllHosts(options = {}) {CODE
LOWlib/core.js2624export function patchedTargetStillPatched(original, content, aiBase = _patchTargetAiBase || "", baseline = "") {CODE
LOWlib/core.js2658export function refreshStaleBaksForUpgrade(aiBase) {CODE
LOWlib/core.js3166function isDisposableYamlFoldParagraph(para) {CODE
LOWlib/core.js3207function yamlStripDisposableFoldParas(bodyLines) {CODE
LOWlib/core.js3223function yamlHasDisposableFoldParagraph(bodyLines) {CODE
LOWlib/core.js3231function emptyDisposableFoldedYaml(text) {CODE
LOWlib/core.js3263function stripOrphanYamlAfterEmptyScalars(text) {CODE
LOWlib/core.js3278export function sanitizeYamlPersonaScalars(text) {CODE
LOWlib/core.js3605export function patchWatchedClientBundlesSync(aiBase = findAiBase()) {CODE
LOWlib/core.js4151export function sanitizeDesktopCommandRuntimes() {CODE
LOWlib/core.js4417export function isUserCustomizedOverrideSync(dshHome) {CODE
LOWlib/core.js4461export function syncPromptInjectOnDiskSync(dshHome) {CODE
LOWlib/reapply.js68function refreshStaleApplyPlaceholder(sha) {CODE
LOWlib/reapply.js120export function hostStillHasAppliedPatches() {CODE
LOWlib/reapply.js164export async function patchesMatchInstallStrict() {CODE
LOWlib/reapply.js189export function patchesLostAfterHostReset() {CODE
LOWlib/installed-package.js8export function installedCommunityPackage(profile, {dependencyName} = {}) {CODE
LOWlib/skills.js93function assertImportSourceOutsideSkills(dshHome, srcPath) {CODE
LOWlib/index.js514export function installMnemonMessageStrip(ctx, config = {}) {CODE
LOWlib/index.js689function installRewindDeriveFilter(ctx) {CODE
LOWlib/hide-console.js75export function installChildProcessImportHook() {CODE
LOWlib/hide-console.js235export function installHideConsoleIntoBin(aiBase, { fs, path: nodePath } = {}) {CODE
LOWlib/restart-desktop.js262function killOtherDesktopProcesses(keepPid, exe = info.execPath) {CODE
LOWlib/desktop.js38export function cleanupLegacyRestartScripts() {CODE
LOWlib/desktop.js178export function isOfficialHarnessExecutable(fp) {CODE
LOWlib/desktop.js204export function resourcesDirForExecutable(exe) {CODE
LOWlib/desktop.js393function runningOfficialExecutables() {CODE
LOWlib/desktop.js452function shortcutOfficialExecutables() {CODE
LOWlib/desktop.js490function extraDiscoveredInstallDirs(env = process.env, input = {}) {CODE
LOWlib/desktop.js851export function scheduleAsarRenameWhenIdle({ exe, asar } = {}) {CODE
LOWlib/desktop.js1459export function repairOfficialCliAfterUnpack(exe = findDesktopAppExecutable()) {CODE
LOWlib/windows-asar-handoff.js173export function scheduleWindowsAsarHandoff({ exe, asar }, io = {}) {CODE
LOWlib/surface.js58function resourcesLookLikeDesktopInstall(resourcesPath) {CODE
LOWlib/identity.js218function looksLikeOfficialIdentity(text) {CODE
LOWlib/identity.js403export function withoutRedteamLeadIdentity(text) {CODE
LOWlib/identity.js554function rewriteClaudeHostToolLines(text) {CODE
LOWlib/identity.js596export function adaptInjectForMinimalPreset(text, context) {CODE
LOWlib/identity.js726export function isWorkspaceBaselineSection(section) {CODE
10 more matches not shown…
Over-Commented Block8 hits · 8 pts
SeverityFileLineSnippetContext
LOWscripts/redteam-setup.sh1#!/usr/bin/env bashCOMMENT
LOWlib/index.js81 hooksDenyBypass: true,COMMENT
LOWskills/redteam/frp-tunnel.md81# name = "rdp"COMMENT
LOWpresets/redteam/agent.cordis.yml1# The `redteam` agent preset: 攻防演练红队指挥智能体(由 standard 复制改造)。COMMENT
LOWpresets/redteam/agent.cordis.yml161 config:COMMENT
LOWpresets/redteam/agent.cordis.yml181# `tool-skill` gives them the catalog and loader; the merged catalog alsoCOMMENT
LOWpresets/unrestricted/agent.cordis.yml1# managed-by: dsh-purge(模板来源;已有用户文件仅在明确要求重置时覆盖)COMMENT
LOWpresets/unrestricted/agent.cordis.yml81# The skill REGISTRY lives in the host composition and is layered per scope:COMMENT
Excessive Try-Catch Wrapping5 hits · 6 pts
SeverityFileLineSnippetContext
LOWscripts/redteam-setup.sh106except Exception: sys.exit(1)CODE
LOWscripts/redteam-setup.sh118except Exception: sys.exit(0)CODE
LOWskills/redteam/cn-proxy-pool.md68 except Exception:CODE
MEDIUMskills/redteam/cn-proxy-pool.md63def ok(proxy):CODE
LOWskills/redteam/fofa-recon.md73 except Exception:CODE
Fake / Example Data5 hits · 6 pts
SeverityFileLineSnippetContext
LOWlib/redteam/skill-availability.js316 addIssue('placeholder', p + '还是占位符(技能里写的是占位符,说明本机/本环境还没配)', { placeholder: p })CODE
LOWlib/redteam/skill-fixes.js446 * `kind` ∈ `'file-missing' | 'content-missing' | 'env-missing' | 'path-missing' | 'placeholder' | 'shadowed'`。COMMENT
LOWlib/redteam/skill-fixes.js492 } else if (kind === 'placeholder') {CODE
LOWlib/redteam/index.js135 return { text: text.split(SKILLS_PLACEHOLDER).join(BUNDLED_SKILLS_EXPR), changed: true, reason: 'placeholder' }CODE
LOWlib/redteam/index.js402 ? (rendered.reason === 'placeholder'CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpresets/redteam/agent.cordis.yml3# This file is an AGENT-PLANE composition. The roster mounts it ONCE under aCOMMENT