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 分钟后过期,不收集遥测数据,无外部网络调用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 .tmp and 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 .tmp dirs 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), and housekeeper_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.

  1. Open Settings → Plugins → 环境管家.
  2. Inspect the detected toolchain and cache candidates; click a row to preview its contents.
  3. 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 →

← 上一个 Prev dsh-github-connect 下一个 Next dsh-model-search →