WTStarMark/QAQ--packages-dsh-qaq ↗★ 1
dsh-qaq
QAQ backup plugin: snapshots the profile's startup config to ~/.dsh/.qaq once the host boot settles. Backup-only; does not detect failure, roll back, or alter DSH behavior.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:WTStarMark/QAQ#2d4a5da24ad1b2d33b47ec4dc33b0a8120dc7ec0&path:packages/dsh-qaq说明文档
阅读完整 README ↗QAQ — DeepSeek Harness Launch Resilience Guard
QAQ is a launch resilience guard for DeepSeek Harness (DSH). When a disrupted profile configuration prevents DSH from starting normally — a crashed host or a red-screened Web UI — QAQ automatically restores the configuration snapshot from the last successful boot and restarts, while preserving the broken config for manual recovery.
Author: WTStarMark
Non-invasive: QAQ never edits DSH source. The guard is a standalone executable that supervises the dsh web process and reads the browser's real DOM over CDP; the backup plugin only reads configuration and never changes behavior.
What it solves
DSH's Web surface has a failure mode where the host is alive but the UI red-screens: the host process runs, the port responds, yet the browser renders Failed to load plugins. Such failures are invisible to host-process monitoring and cannot be detected by curl (the server-side HTML ships an empty , rendered client-side). The only reliable non-invasive probe is to open the page in a headless browser and read the actual DOM. QAQ's UI-detection line is exactly that.
Requirements
- Node.js >= 22
- A Chrome/Chromium/Edge binary on the machine (used headlessly via CDP; no Playwright/Puppeteer dependency)
- The
dshcommand onPATH, or an explicitQAQ_DSH_CMD/--cwd
Install / Quick start
One-click (Windows): double-click bin\qaq-install.cmd (installs deps + builds), then double-click bin\qaq-web.cmd to open the interactive guard console — no commands to remember. (Chinese launcher variants: bin\qaq-web.zh.cmd / bin\qaq-install.zh.cmd.)
Or manually:
pnpm install
pnpm build # emits a single-file executable at dist/qaq.mjs
Take over dsh web from a visible CMD window:
bin\qaq-web.cmd [--port 3080] [--yes]