dsh-web-search-ddg
aooyoo
Zero-token DuckDuckGo search provider for the DeepSeek Harness (DSH) web seam — local headless browser, no API key, no m…
PROJECT TOPICS
PROJECT README
中文说明 · DeepSeek Harness plugin
Keep your agent's hands clean: toolchain inventory, safe one-click cache cleanup, and machine rules (AGENTS.md) editing — all inside the DSH Web GUI settings. Zero runtime dependencies, one command install.
.tmp and cache directories agents leave behind: size / file count / mtime, 4000-file truncation markers, 30-day-untouched highlighting, click-to-expand content preview, check and delete.tmp dirs and cache-root children are deletable; .. escapes, symlink escapes, and system paths are rejected, with a realpath re-check before every delete~/.dsh/AGENTS.md (the global rules every agent session loads), auto-backup of the previous version on every save, one-click restore, live on saveD:\github / D:\environment\cache), editable in the panel, overridable via env varshousekeeper_report (inventory + disk report) and housekeeper_clean (same whitelist, max 10 paths per call)dsh plugin --profile web add dsh-housekeeper
Restart dsh web, then Settings → Plugins → 环境管家.
Requirements: DSH web profile, Node ≥ 22.
<projects-root>\<repo>\ .tmp\, or a direct child of <cache-root>\..)realpath still lands inside the whitelist root (no symlink escapes)$DSH_HOME/AGENTS.md only; the path is fixedGUI settings ──fetch──▶ /housekeeper/state|clean|rules (loopback) ──▶ host plugin
├─ probe: candidate paths + PATH lookup + versions
├─ scan: rule-driven walk with sizes (4000-file cap)
├─ clean: whitelist + realpath check, then rm
└─ rules: read/write $DSH_HOME/AGENTS.md (64KB cap)
pnpm install
node build.mjs # esbuild → lib/index.js (host ESM) + lib/client.js (ModuleLoader bundle)
node tests/core.mjs # 21 whitelist/scan/clean sandbox tests, no real environment needed
MIT licensed. Issues and ideas welcome.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。