rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:noname-iii/dsh-code-checker
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A plugin for DeepSeek Harness. After the AI writes code / builds a project, this plugin runs a three-step comprehensive check and reports every problem straight back to the AI so it can fix them, until it returns "没有问题" (No problems). Optional GUI dashboard included, plus a standalone CLI and an MCP server for Trae, Qoder, Cursor, Claude Desktop and any other platform.
See README.zh.md for the full documentation (中文).
pnpm test; non-Node projects: the equivalent test command such as cargo test/go test ./.../pytest/mvn test/dotnet test), recording any test failure as an error; then operate the software like a real user (keyboard, mouse clicks/drags): web apps (and any GUI project such as a DSH plugin panel) via HTTP probes + Playwright, Windows desktop apps via UIA with real input events, CLIs via driven commands — following the user's described features (or README.md). For web/GUI projects the simulator also audits every page it reaches (detecting pages stuck on a URL or stuck on a "loading" indicator) and clicks every button on each page (recording the state/any anomaly after each click). Any project with a GUI (user interface) MUST run the GUI simulation when steps 1–2 pass — a GUI project never falls back to CLI simulation. Freezes, unresponsiveness, errors and crashes are recorded and reported to the AI. If clean → return "没有问题" and let the AI continue.Triggers (inside Harness) — two methods, both active:
Plus the /check slash command, the check_project model tool, the GUI dashboard at http://127.0.0.1:3080/code-checker/ (with a top "状态/Status + 画面/Screen" tab bar — Status lists historical reports, Screen shows the per-project command line / GUI / log testing view), and OS-level approval notifications: when a session needs user action (e.g. deciding whether to run a command), the plugin pops a system notification on Windows/macOS/Linux showing which session, the specific command, and the run/don't-run options — while always handing the actual decision back to the Harness approval UI (notifyApprovals: false to disable).
The plugin runs inside DeepSeek Harness (dsh). Before installing, set up these four things in order (each step gives Windows / macOS / Linux options — pick one per step).
^22.19.0 || >=24.0.0; this plugin requires >=20, so 22 LTS is the safe choice.node -v and npm -v.| OS | Install (pick one) |
|---|---|
| Windows | Download the LTS .msi from https://nodejs.org/ → run it → keep Add to PATH checked → reopen the terminal → node -v. Or: winget install OpenJS.NodeJS.LTS |
| macOS | Download the LTS .pkg from https://nodejs.org/ and run it. Or Homebrew: brew install node@22 |
| Linux (Debian/Ubuntu) | curl -fsSL https://deb.nodesource.com/setup_22.x \| sudo -E bash - && sudo apt-get install -y nodejs |
Universal alternative (any OS): nvm —
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash, reopen the terminal, thennvm install 22 && nvm use 22.
dsh plugin --profile web add/remove/... forwards its arguments to pnpm inside the profile directory, so pnpm must be on PATH.npm install -g pnpm
# or
corepack enable && corepack prepare pnpm@latest --activate
pnpm -v.| OS | Install |
|---|---|
| Windows | https://git-scm.com/download/win |
| macOS | brew install git (or xcode-select --install) |
| Linux (Debian/Ubuntu) | sudo apt install git |
| Linux (Fedora) | sudo dnf install git |
git --version.dsh command)# A) global install (recommended) — gives you the `dsh` command
npm install -g @deepseek-ai/dsh
dsh web # starts the Web UI at http://127.0.0.1:3080
# B) no global install — prefix every command with npx
npx @deepseek-ai/dsh web
npx @deepseek-ai/dsh plugin --profile web add ...
# C) from source (developers)
git clone https://github.com/deepseek-ai/deepseek-harness.git
cd deepseek-harness
pnpm install
pnpm run build
pnpm dsh web
The
web/headlessprofiles auto-initialize on first use (web= base + web-app template), so you don't need to create a profile before runningdsh plugin --profile web add .... After startingdsh web, open Settings → Models and enter your API key, or AI sessions won't run.
Latest release: v0.5.0 — GitHub Releases, with an offline tarball asset
dsh-code-checker-0.5.0.tgz: https://github.com/noname-iii/dsh-code-checker/releases/latest
Pick one of these four methods (2 / 3 / 4 need dsh and pnpm; method 1 needs only git). Method 2 (npm) is the recommended default — it needs no git, no SSH key, and no local path.
⚠️ Local-path pitfall (read first): when passing a local directory to
dsh plugin add, write a full absolute path (e.g./Users/yang/dsh-code-checker) — never a~shorthand, and especially not a quoted one. Inside quotes~is not expanded by the shell, and pnpm treats a string that "contains/but is not a real path" asgit+ssh://git@github.com/..., then fails withPermission denied (publickey). Use$HOME/dsh-code-checker, an unquoted~/dsh-code-checker, or just Method 2 (npm) to avoid this entirely.
git clone https://github.com/noname-iii/dsh-code-checker dsh-code-checker
cd dsh-code-checker
The repo ships prebuilt
lib/artifacts — nonpm install, no TypeScript needed; it works from any directory.
dsh plugin --profile web add dsh-code-checker
dsh plugin --profile web add github:noname-iii/dsh-code-checker
On first git/github install, pnpm ≥10 asks you to allow the
preparebuild script — add the package toallowBuildsin the profile'spnpm-workspace.yamlwhen prompted, then re-install. This project'sprepareis safe: it only rebuildslib/when missing or stale.
dsh-code-checker-0.5.0.tgz from https://github.com/noname-iii/dsh-code-checker/releases/latest.cd to that file's directory, then:dsh plugin --profile web add ./dsh-code-checker-0.5.0.tgz
To build the tarball yourself (equivalent): run
pnpm packinside the plugin dir, thendsh plugin --profile web add ./dsh-code-checker-0.5.0.tgz.
After a bundle install/update you must restart
dsh web— the plugin list is read at boot only.
# git-clone installs (download method 1) — use a FULL absolute path, never ~ (see pitfall above):
dsh plugin --profile web add "<plugin-dir>"
# Windows: dsh plugin --profile web add "D:\tools\dsh-code-checker"
# macOS/Linux: dsh plugin --profile web add "$HOME/dsh-code-checker"
# dsh plugin --profile web add /Users/you/dsh-code-checker
# npm / github / tarball installs (download methods 2/3/4) are already installed — just start:
dsh web
Why does
"~/dsh-code-checker"fail withPermission denied (publickey)? The~inside quotes is not expanded, so pnpm receives the literal~/dsh-code-checker, parses it asgit+ssh://git@github.com/~/dsh-code-checker.git, and tries SSH. Write/Users/you/...,$HOME/..., or an unquoted~/...; or just use Method 2 (npm).
No further configuration is needed. On boot you should see [dsh-code-checker] dsh-code-checker loaded… and the dashboard at http://127.0.0.1:3080/code-checker/.
Edit examples/web-overlay.yml and replace <插件绝对路径> with this plugin's absolute path:
Windows — file:/// form is required (the loader imports a non-relative name, which must be a valid URL):
name: 'file:///D:/your-dir/dsh-code-checker/lib/src/index.js'
macOS / Linux — plain absolute path:
name: '/home/you/dsh-code-checker/lib/src/index.js'
Then:
dsh web --patch "<plugin-dir>/examples/web-overlay.yml"
# from-source harness (developers):
pnpm dsh web --patch "<plugin-dir>/examples/web-overlay.yml"
Any of these confirm the plugin works (none needs an API key):
# 1) try_it_out — runs the checker against 5 sample projects
powershell -ExecutionPolicy Bypass -File try_it_out/run-tests.ps1 # Windows
bash try_it_out/run-tests.sh # macOS / Linux
# 2) portability check — "downloads to any dir and works" + no local paths/secrets
node scripts/portable-check.mjs
# 3) CLI smoke test — should print "没有问题" and exit 0
node lib/cli/index.js check try_it_out/healthy-cli --no-install --no-llm
Expected: the healthy sample returns "没有问题", the broken build reports errors, and the missing-feature sample lists every missing feature at once. All green means the download, extraction and execution are correct.
| How | Action |
|---|---|
| Automatic | Just let the AI write code / run commands — the check runs when the turn stops |
| Slash command | Type /check in the chat (optionally /check |
| Model tool | Ask the AI to call check_project |
| GUI | Open http://127.0.0.1:3080/code-checker/ |
Override by row id in your profile's cordis.patch.yml (all fields have defaults, see src/config.ts):
- id: code-checker
config:
autoCheck: true
maxAutoChecksPerPrompt: 6
installDeps: true
buildTimeoutMs: 180000
runProbeMs: 8000
simulate: true
useLlm: true
reportToAi: steer # steer | inject | none
gui: true
language: zh
cleanMessage: 没有问题
notifyApprovals: true # OS notification when a session needs user action
node:* builtins) — minimal supply-chain surface.approval/request and delegates with next() — it never auto-approves a command.Standalone CLI:
node <plugin-dir>/lib/cli/index.js check <project-dir> --requirements requirements.txt --json
# exit code 0 = no problems, 1 = problems found, 2 = usage error
MCP server (native IDE integration — replace
{
"mcpServers": {
"code-checker": {
"command": "node",
"args": ["<plugin-dir>/lib/cli/index.js", "mcp"]
}
}
}
Tools exposed: check_project, detect_project.
powershell -ExecutionPolicy Bypass -File try_it_out/run-tests.ps1 # Windows
bash try_it_out/run-tests.sh # macOS / Linux
Runs the checker against 5 sample projects (healthy / broken build with multiple errors / missing features / step-3 simulation failure / static web) and reports pass/fail. Details: try_it_out/README.md.
See the 中文 README for the annotated tree, or browse the repository: every source file carries a header comment (文件作用) explaining its role and per-line Chinese comments explaining each statement.
Short version:
Users do NOT need this — lib/ ships prebuilt. Developers only:
node scripts/gen-tsconfig.mjs # generate local type paths (needs a deepseek-harness checkout nearby; do not commit the generated file)
node scripts/build.mjs --typecheck # typecheck
node scripts/build.mjs # build lib/ (skipped when fresh; --force to rebuild)
node scripts/selfcheck.mjs # full self-check (typecheck + build + tests + requirement audit + sample simulations)
As requested, the plugin verifies itself: tsc typecheck + build (step 1), feature-by-feature verification against 需求.txt (step 2), and real simulations over the try_it_out samples plus a live "AI writes code → auto check → report back to AI" round-trip in a real Harness headless session (step 3). The session log shows the steered message: source plugin: dsh-code-checker, content "没有问题".
The LLM is the plugin's optional deep-analysis layer (steps 2 & 3 only; step 1 and the actual simulation execution never use it):
API key by usage scenario:
With useLlm enabled (default), each auto-check consumes a small amount of session-model tokens (one verdict request, possibly one plan request).
dsh web start (the plugin layer list is read at boot — a running instance never hot-loads a newly installed bundle). After restart you should see [dsh-code-checker] dsh-code-checker loaded… in the console and the dashboard at /code-checker/. Then all conditions must hold: the turn contained coding tool calls (write/edit/bash/pwsh/run_code, …) reaching minCodingCalls; the session is a top-level agent; autoCheck is true; auto-checks since the last user message are below maxAutoChecksPerPrompt. Check dsh --profile web --dump-config for the code-checker row and watch for [dsh-code-checker] logs.dsh plugin add with the new version updates in place; the release tarball is only for offline machines. Compare package.json's version against https://github.com/noname-iii/dsh-code-checker/releases/latest, and restart dsh web after updating.dsh plugin add "~/dsh-code-checker" fails with Permission denied (publickey) / treated as a GitHub URL? The ~ inside quotes isn't expanded, so pnpm parses the literal ~/dsh-code-checker as git+ssh://git@github.com/... and tries SSH. Fix: use a full absolute path ($HOME/dsh-code-checker or /Users/you/dsh-code-checker), or an unquoted ~/..., or just dsh plugin add dsh-code-checker (npm — no path, no git, no SSH).MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。