@rh666666/dsh-plugin-debug-mode avatar

@rh666666/dsh-plugin-debug-mode

完全由 DSH 写的 DSH 插件,用于复刻 Cursor 中的 Debug 模式。

PluginDeveloperFile
Verification
L5 · Run tested
Verified
Risk
LowRisk
Health
Active
Trust
Gold

Install verification: runtime verified (L5) · tested on dsh 0.2.1-rc.2 · last checked Install verification details →

Install verification badge dsh 0.2.1-rc.2

What it doesAI

A DSH plugin that recreates Cursor's Debug mode: the agent plants probes in your code so you reproduce once and pick a fix.

  • Agent instruments your code with debug probes instead of guessing root causes
  • No shell commands needed — only injects and removes debug instrumentation
  • You reproduce the issue once, then choose between candidate fixes
developerAIfileAI

Capability tags are AI-inferred or rule-extracted from the README (see badge) — vocabulary-limited, not install-verified. AI = inferred; README = literal keyword from the readme.

Installation

dsh plugin --profile web add github:rh666666/dsh-plugin-debug-mode
verified

Install method: GitHub · runtime verified (L5)

Verification & Compatibility

Grouped by plugin version: each card lists the dsh versions actually tested against that artifact version and their install verdicts (L5 wins). Untested combinations are omitted — absence means untested, never assumed compatible. L1–L3 are a plugin-level static archive (independent of the dsh version — the same verdict on every dsh row): they sit in each row's level grid next to L4/L5, marked "static", while their evidence is stored once per plugin inside that row's "checks & evidence" instead of being duplicated per version.

External credentials (plugin-level): none detected

Declared DSH compatibilityfrom package.json · peerDependencies
author declared no dsh version requirement

○ The author declares no dsh version requirement — install is not blocked by version.

Install compatibility matrix (rows = plugin versions〔latest 5〕, columns = dsh versions〔latest 5〕)
At-a-glance → evidence in the cards below
plugin \ dshdsh 0.2.1-rc.2dsh 0.2.1-alpha.4dsh 0.2.1-alpha.2
v0.22.1···
Install compatibility (by plugin version, dsh versions within)
Legend:✓ L5 runtime verified○ ecosystem plugin◼ ecosystem app✗ failed
v0.22.1github2026-10-21

https://github.com/rh666666/dsh-plugin-debug-mode

No runtime install test for this version (static scan only) — compatibility unknown, never assumed.

Only the latest 3 published versions are shown; source-snapshot (commit hash) groups, unstated groups and older versions are omitted — the full archive stays in the data layer (snapshot/unstated groups appear only when a plugin has no published version).

Author badges

Embed the official badges in your README to showcase security & install-test status:

dsh.so risk
`[![dsh.so risk](https://www.dsh.so/badge/dsh-plugin-debug-mode.svg)](https://www.dsh.so/artifact/dsh-plugin-debug-mode/)`
dsh 0.2.1-rc.2 install verified
`[![dsh.so install · dsh 0.2.1-rc.2](https://www.dsh.so/badge/install/dsh-plugin-debug-mode@0.2.1-rc.2.svg)](https://www.dsh.so/artifact/dsh-plugin-debug-mode/)`

Security Report

Two automated layers, neither a manual review: a static scan (per-plugin rule checks) and a model-driven dynamic security audit that covers only the subset static-flagged at warn or above and never executes plugin code.

dsh-plugin-debug-modeAutomated review · daily

Static low, dynamic medium — stricter wins → overall medium.

static low→dynamic medium→overall medium
0 critical·0 high
mediumoverall · medium
1static scan · vet primaryvet AST static analysis (npm artifact or git source)
plugin versionv0.22.1dsh manifest
scanned versionv0.22.1git2026-10-21
current versionv0.22.1same version
vet verdictclean · npm

Vet is an AST static scan (npm artifact or git source).

show static findings (3)
  • warningnetIp · networklib/prompt.js:99

    ' "DeepSeek Harness Web GUI at http://127.0.0.1:<端口>" 里的那一段。)',

  • warningnetIp · networkscripts/probe-selfcheck.mjs:96

    --endpoint <url> 打活的 DSH(形如 http://127.0.0.1:<端口>/dsh-debug-mode/probe?h=<hash>)

  • warningnetIp · networkscripts/probe-selfcheck.mjs:363

    const source = await renderBrowserStub({ hash, endpoint: 'http://127.0.0.1:1/probe?h=' + hash })

2model reads redacted source context · never executes plugin code
highest grademedium
merged intooverall medium
audited at2026-10-17
findings0 critical·0 high1 medium / 1 low hidden
show 2 audit findings
  • mediumLocal HTTP routes use wildcard CORS and no Origin/Host check, letting any web page write into the probe log the Agent readslib/routes.js:33

    Any page the developer visits can POST text/plain NDJSON to /dsh-debug-mode/probe?h=<hash> (and, if DNS rebinding bypasses the browser's origin separation, read /board and /state to learn the hash). The text is written verbatim into the task log, which lib/summary.js then renders into dsh_debug_read output that the Agent consumes as evidence, giving an off-machine attacker an indirect prompt-injection / evidence-poisoning channel. The only capability required is the 8-hex task hash, which is never checked against Origin, Referer or Host, and the same routes (stub.js, resolve, reproduce) are eq

  • low/resolve and /reproduce accept JSON bodies regardless of Content-Type, so cross-site text/plain POSTs skip preflightlib/routes.js:81

    Because readBody parses the raw text as JSON irrespective of Content-Type, a cross-origin fetch with the CORS-safelisted text/plain type (no preflight, no readable response needed) reaches the /resolve and /reproduce handlers and can transition task state and trigger a sessionController.prompt turn, provided the attacker knows the task hash.

Legitimate local debug plugin; its unauthenticated /dsh-debug-mode/* routes use wildcard CORS with no Origin/Host check, allowing cross-origin writes into the probe log the Agent later reads.

Rule: the dynamic audit can only raise risk, never lower it (raise-only, never an exemption); a wrong raise is withdrawn by human review and the tier falls back to the static verdict. Overall verdict = the stricter of the two layers.

Disclaimer: the static scan and the dynamic security audit are both automated analysis, not a security guarantee. Always review what you install.

Activity

Last commit 2026-10-21 · activity: Active

• Repo created: 2026-10-10

• Stars: ★ 1 · Forks: 0

• Health: Active — committed within last 30 days

Source

GitHub: github.com/rh666666/dsh-plugin-debug-mode

Was this page helpful?