dsh-purge Community · DeepSeek Harness 社区维护版:宿主兼容、状态诊断、提示词管理、更新与本机备份回滚。基于小杨 / YuJunZhiXue 的 dsh-purge。
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 79 finding(s).
Are imports declared and package/API names verified? 5 finding(s).
Are wrappers, guards, and repeated structures necessary? 105 finding(s).
Which changes need focused human review? 119 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/redteam-setup.sh | 2 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scripts/redteam-setup.sh | 20 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scripts/redteam-setup.sh | 44 | # ── 输出工具 ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scripts/redteam-setup.sh | 84 | # ── 工具函数 ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scripts/redteam-setup.sh | 181 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scripts/redteam-setup.sh | 186 | # ═══ ① 工具安装 ════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | scripts/redteam-setup.sh | 302 | # ═══ ② nuclei 模板 ═════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | scripts/redteam-setup.sh | 320 | # ═══ ③ 配置:FOFA_KEY 与 VPS ══════════════════════════════════════════════ | COMMENT |
| MEDIUM | scripts/redteam-setup.sh | 435 | # ═══ ④ 体检表 ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | scripts/redteam-setup.sh | 456 | # ═══ ⑤ 完成标记 ════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | presets/redteam/agent.cordis.yml | 25 | # ── identity ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/redteam/agent.cordis.yml | 135 | # ── shell ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/redteam/agent.cordis.yml | 152 | # ── filesystem ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/redteam/agent.cordis.yml | 164 | # ── background jobs ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/redteam/agent.cordis.yml | 176 | # ── skills ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/redteam/agent.cordis.yml | 205 | # ── goals ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/redteam/agent.cordis.yml | 216 | # ── plan mode ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/redteam/agent.cordis.yml | 242 | # ── compaction ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/redteam/agent.cordis.yml | 273 | # ── delegation and workflows ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/redteam/agent.cordis.yml | 369 | # ── remaining model-facing rows ───────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/unrestricted/agent.cordis.yml | 11 | # ── identity ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/unrestricted/agent.cordis.yml | 35 | # ── shell ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/unrestricted/agent.cordis.yml | 55 | # ── filesystem ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/unrestricted/agent.cordis.yml | 67 | # ── background jobs ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/unrestricted/agent.cordis.yml | 79 | # ── skills ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/unrestricted/agent.cordis.yml | 104 | # ── goals ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/unrestricted/agent.cordis.yml | 115 | # ── plan mode ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/unrestricted/agent.cordis.yml | 141 | # ── compaction ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/unrestricted/agent.cordis.yml | 172 | # ── delegation and workflows ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | presets/unrestricted/agent.cordis.yml | 273 | # ── remaining model-facing rows ───────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/preset-compat.js | 341 | export async function registerPresetDefinitions(registry, definitions) { | CODE |
| LOW | lib/core.js | 254 | function findAiBaseFromRunningProcess() { | CODE |
| LOW | lib/core.js | 290 | export function isDesktopCommandRuntimeDir(dir) { | CODE |
| LOW | lib/core.js | 294 | export function listDesktopCommandRuntimeDirs() { | CODE |
| LOW | lib/core.js | 514 | export function silenceSubprocessLocalFlash(dshHome = findDshHome()) { | CODE |
| LOW | lib/core.js | 617 | export function silenceLiangshenCustomBashFlash(dshHome = findDshHome()) { | CODE |
| LOW | lib/core.js | 664 | function listLiangshenCustomBashFiles(dshHome) { | CODE |
| LOW | lib/core.js | 852 | export function liangshenPromptFilterText(text) { | CODE |
| LOW | lib/core.js | 861 | function listLiangshenMinimalPromptFiles(dshHome) { | CODE |
| LOW | lib/core.js | 888 | export function keepLiangshenOperatorPrompt(dshHome = findDshHome()) { | CODE |
| LOW | lib/core.js | 965 | function listLiangshenBootstrapFiles(dshHome) { | CODE |
| LOW | lib/core.js | 1284 | export function silenceDshmarketRestartFlash(dshHome = findDshHome()) { | CODE |
| LOW | lib/core.js | 1371 | function listDshmarketRestartFiles(dshHome) { | CODE |
| LOW | lib/core.js | 2087 | export function repairOfficialCliAfterUnpack(exe) { | CODE |
| LOW | lib/core.js | 2100 | export function scheduleSealedDesktopRestart(handoff) { | CODE |
| LOW | lib/core.js | 2206 | export function restartSealedDesktopIfNeeded(input = {}) { | CODE |
| LOW | lib/core.js | 2229 | export function rememberDesktopInstallForHandoff(handoff) { | CODE |
| LOW | lib/core.js | 2252 | export function sealedDesktopHandoffAnySurface(input = {}) { | CODE |
| LOW | lib/core.js | 2340 | export function rememberCommittedOverride(dshHome, text) { | CODE |
| LOW | lib/core.js | 2491 | export async function dropStaleUserProfilePatchBackups(dshHome = findDshHome()) { | CODE |
| LOW | lib/core.js | 2540 | export function restoreMissingOriginalsFromBak(aiBase, options = {}) { | CODE |
| LOW | lib/core.js | 2588 | export function restoreMissingOriginalsAllHosts(options = {}) { | CODE |
| LOW | lib/core.js | 2624 | export function patchedTargetStillPatched(original, content, aiBase = _patchTargetAiBase || "", baseline = "") { | CODE |
| LOW | lib/core.js | 2658 | export function refreshStaleBaksForUpgrade(aiBase) { | CODE |
| LOW | lib/core.js | 3166 | function isDisposableYamlFoldParagraph(para) { | CODE |
| LOW | lib/core.js | 3207 | function yamlStripDisposableFoldParas(bodyLines) { | CODE |
| LOW | lib/core.js | 3223 | function yamlHasDisposableFoldParagraph(bodyLines) { | CODE |
| LOW | lib/core.js | 3231 | function emptyDisposableFoldedYaml(text) { | CODE |
| LOW | lib/core.js | 3263 | function stripOrphanYamlAfterEmptyScalars(text) { | CODE |
| LOW | lib/core.js | 3278 | export function sanitizeYamlPersonaScalars(text) { | CODE |
| LOW | lib/core.js | 3605 | export function patchWatchedClientBundlesSync(aiBase = findAiBase()) { | CODE |
| LOW | lib/core.js | 4151 | export function sanitizeDesktopCommandRuntimes() { | CODE |
| LOW | lib/core.js | 4417 | export function isUserCustomizedOverrideSync(dshHome) { | CODE |
| LOW | lib/core.js | 4461 | export function syncPromptInjectOnDiskSync(dshHome) { | CODE |
| LOW | lib/reapply.js | 68 | function refreshStaleApplyPlaceholder(sha) { | CODE |
| LOW | lib/reapply.js | 120 | export function hostStillHasAppliedPatches() { | CODE |
| LOW | lib/reapply.js | 164 | export async function patchesMatchInstallStrict() { | CODE |
| LOW | lib/reapply.js | 189 | export function patchesLostAfterHostReset() { | CODE |
| LOW | lib/installed-package.js | 8 | export function installedCommunityPackage(profile, {dependencyName} = {}) { | CODE |
| LOW | lib/skills.js | 93 | function assertImportSourceOutsideSkills(dshHome, srcPath) { | CODE |
| LOW | lib/index.js | 514 | export function installMnemonMessageStrip(ctx, config = {}) { | CODE |
| LOW | lib/index.js | 689 | function installRewindDeriveFilter(ctx) { | CODE |
| LOW | lib/hide-console.js | 75 | export function installChildProcessImportHook() { | CODE |
| LOW | lib/hide-console.js | 235 | export function installHideConsoleIntoBin(aiBase, { fs, path: nodePath } = {}) { | CODE |
| LOW | lib/restart-desktop.js | 262 | function killOtherDesktopProcesses(keepPid, exe = info.execPath) { | CODE |
| LOW | lib/desktop.js | 38 | export function cleanupLegacyRestartScripts() { | CODE |
| LOW | lib/desktop.js | 178 | export function isOfficialHarnessExecutable(fp) { | CODE |
| LOW | lib/desktop.js | 204 | export function resourcesDirForExecutable(exe) { | CODE |
| LOW | lib/desktop.js | 393 | function runningOfficialExecutables() { | CODE |
| LOW | lib/desktop.js | 452 | function shortcutOfficialExecutables() { | CODE |
| LOW | lib/desktop.js | 490 | function extraDiscoveredInstallDirs(env = process.env, input = {}) { | CODE |
| LOW | lib/desktop.js | 851 | export function scheduleAsarRenameWhenIdle({ exe, asar } = {}) { | CODE |
| LOW | lib/desktop.js | 1459 | export function repairOfficialCliAfterUnpack(exe = findDesktopAppExecutable()) { | CODE |
| LOW | lib/windows-asar-handoff.js | 173 | export function scheduleWindowsAsarHandoff({ exe, asar }, io = {}) { | CODE |
| LOW | lib/surface.js | 58 | function resourcesLookLikeDesktopInstall(resourcesPath) { | CODE |
| LOW | lib/identity.js | 218 | function looksLikeOfficialIdentity(text) { | CODE |
| LOW | lib/identity.js | 403 | export function withoutRedteamLeadIdentity(text) { | CODE |
| LOW | lib/identity.js | 554 | function rewriteClaudeHostToolLines(text) { | CODE |
| LOW | lib/identity.js | 596 | export function adaptInjectForMinimalPreset(text, context) { | CODE |
| LOW | lib/identity.js | 726 | export function isWorkspaceBaselineSection(section) { | CODE |
| 10 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/redteam-setup.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | lib/index.js | 81 | hooksDenyBypass: true, | COMMENT |
| LOW | skills/redteam/frp-tunnel.md | 81 | # name = "rdp" | COMMENT |
| LOW | presets/redteam/agent.cordis.yml | 1 | # The `redteam` agent preset: 攻防演练红队指挥智能体(由 standard 复制改造)。 | COMMENT |
| LOW | presets/redteam/agent.cordis.yml | 161 | config: | COMMENT |
| LOW | presets/redteam/agent.cordis.yml | 181 | # `tool-skill` gives them the catalog and loader; the merged catalog also | COMMENT |
| LOW | presets/unrestricted/agent.cordis.yml | 1 | # managed-by: dsh-purge(模板来源;已有用户文件仅在明确要求重置时覆盖) | COMMENT |
| LOW | presets/unrestricted/agent.cordis.yml | 81 | # The skill REGISTRY lives in the host composition and is layered per scope: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/redteam-setup.sh | 106 | except Exception: sys.exit(1) | CODE |
| LOW | scripts/redteam-setup.sh | 118 | except Exception: sys.exit(0) | CODE |
| LOW | skills/redteam/cn-proxy-pool.md | 68 | except Exception: | CODE |
| MEDIUM | skills/redteam/cn-proxy-pool.md | 63 | def ok(proxy): | CODE |
| LOW | skills/redteam/fofa-recon.md | 73 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/redteam/skill-availability.js | 316 | addIssue('placeholder', p + '还是占位符(技能里写的是占位符,说明本机/本环境还没配)', { placeholder: p }) | CODE |
| LOW | lib/redteam/skill-fixes.js | 446 | * `kind` ∈ `'file-missing' | 'content-missing' | 'env-missing' | 'path-missing' | 'placeholder' | 'shadowed'`。 | COMMENT |
| LOW | lib/redteam/skill-fixes.js | 492 | } else if (kind === 'placeholder') { | CODE |
| LOW | lib/redteam/index.js | 135 | return { text: text.split(SKILLS_PLACEHOLDER).join(BUNDLED_SKILLS_EXPR), changed: true, reason: 'placeholder' } | CODE |
| LOW | lib/redteam/index.js | 402 | ? (rendered.reason === 'placeholder' | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | presets/redteam/agent.cordis.yml | 3 | # This file is an AGENT-PLANE composition. The roster mounts it ONCE under a | COMMENT |