guo6x/dsh-housekeeper
DeepSeek Harness 的环境管家:工具链清单、安全缓存清理以及 Web GUI 设置中的机器规则编辑器。
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH), and it adds environment management tools directly into the DSH Web GUI settings panel. To install it, you can run a single command: dsh plugin --profile web add github:guo6x/dsh-housekeeper, then restart your running dsh web process to complete installation. It comes with four core capabilities: automatic toolchain inventory detection, two-step safe cache cleanup, whitelist-protected file deletion, and a backed-up editor for DSH global machine rules stored in AGENTS.md. It has zero extra runtime dependencies, and all operations run locally on your machine without any external network calls.
This plugin is intended for all developers that use DSH for their daily coding workflow, and it helps keep your local development environment clean and organized. A typical non-destructive first run takes less than 60 seconds: after installation, open Settings → Plugins → 环境管家, then inspect the detected toolchain versions and cache candidates without making any changes to your machine. You can click any row to preview the contents of the cache directory, mark the directories you want to delete, generate a cleanup plan, and only confirm deletion after you review all approved and rejected paths. To test it via chat instead, you can run housekeeper_report to get a summary without any file changes.
This plugin is released under the open source MIT license, so it is free to use, modify, and distribute without any cost. It requires Node.js version 22 or newer and a DSH web profile to run, and does not need any user account, API key, or external third-party service to work. It has several built-in safety limits: cache scans are truncated at 4000 files, AGENTS.md edits are capped at 64KB, and cleanup confirmation tokens are single-use and expire after five minutes. All delete operations are re-checked against a strict whitelist that blocks system paths, symlink escapes, and traversal escapes to prevent accidental data loss.
这是一款专为 DeepSeek Harness (DSH) 开发的原生插件,可在 DSH 网页端 GUI 设置界面内提供环境管理能力,核心功能包括自动工具链清单检测、代理缓存清理、全局 AGENTS.md 机器规则编辑等。它仅需一条命令即可完成安装,无额外运行时依赖,清理操作遵循严格的安全白名单规则,避免误删系统文件或非目标路径。
这款插件面向所有使用 DSH 的开发人员,可帮助开发者清理代理运行残留的临时缓存,整理本地工具链信息,安全编辑全局代理规则。常规使用流程为,安装重启 DSH web 进程后打开设置的插件面板,先查看检测到的工具链信息和缓存候选列表,可点击预览每个目录的内容,确认待删除项后生成清理计划,二次确认后再执行删除操作。
该插件遵循 MIT 许可开源,免费使用,无账号、API 密钥或额外第三方服务要求,依赖 DSH web 配置和 Node.js 22 及以上版本。它自带安全限制:缓存扫描最多截断 4000 个文件,规则文件大小上限为 64KB,清理令牌单次使用且 5 分钟后过期,不收集遥测数据,无外部网络调用。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-housekeeper(guo6x/dsh-housekeeper)
仓库:https://github.com/guo6x/dsh-housekeeper
本站详情页:https://www.yhbd.top/plugins/guo6x-dsh-housekeeper/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 5 · 最近提交 2026-08-26 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:guo6x/dsh-housekeeper
把 guo6x/dsh-housekeeper 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
🧹 dsh-housekeeper — Environment Housekeeper
中文说明 · DeepSeek Harness plugin
Keep your agent's hands clean: toolchain inventory, two-step cache cleanup, and machine rules (AGENTS.md) editing — all inside the DSH Web GUI settings. Zero runtime dependencies, one command install.
- 📋 Toolchain inventory — auto-detects node/pnpm/git/gh/ffmpeg/Edge/Chrome locations and versions
- 🗑️ Honest cache cleanup — scans the
.tmpand cache directories agents leave behind: size / file count / mtime, 4000-file truncation markers, 30-day-untouched highlighting, click-to-expand content preview; create a plan, then confirm deletion - 🛡️ Whitelist protection — only project
.tmpdirs and cache-root children are deletable;..escapes, symlink escapes, and system paths are rejected, with a realpath re-check before every delete - 📝 Machine rules editor with a safety net — read/write
~/.dsh/AGENTS.md(the global rules every agent session loads), auto-backup of the previous version on every save, one-click restore, live on save - 🌍 Configurable — scan roots default per platform (Windows:
D:\github/D:\environment\cache), editable in the panel, overridable via env vars - 🤖 Agent tools —
housekeeper_report(inventory + disk report),housekeeper_plan(review only), andhousekeeper_clean(executes a single-use token)
Install — copy, paste, confirm
# Install from GitHub — this is the supported release channel.
dsh plugin --profile web add github:guo6x/dsh-housekeeper
Restart a running dsh web process, then open Settings → Plugins → 环境管家. Seeing the Toolchain inventory section means installation is complete.
Requirements: the DSH web profile and Node ≥ 22. The plugin needs no account, API key, or extra service.
Developing from a checkout instead? Run dsh plugin --profile web add . from the repository directory. The committed lib/ files mean GitHub installs do not run a build script.
First safe pass in 60 seconds
Nothing in this walkthrough deletes files or writes rules.
- Open Settings → Plugins → 环境管家.
- Inspect the detected toolchain and cache candidates; click a row to preview its contents.
- Do not select anything yet. You have verified the inventory and the candidate list without changing the machine.
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
jigjoy-ai/baro
PlutoKeating/dsh-lark-bot
zimzaza4/dsh-bash-win
AI-Galaxy-GPU/dsh-sound
HuanLinOTO/dsh-plugin-sleep