rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:guyue55/dsh-disk-panel
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A left sidebar disk panel for the DeepSeek Harness (DSH) Web UI: see free space per volume, measure what each Workspace is using, move build artifacts to the macOS Trash with an audit log and restore, hand a scan to an agent, and get a low-space warning from a host-side watchdog.
English | 中文
/, the home
directory and every registered Workspace; volumes backed by the same container
are merged into one card. Warning at 20 GB / 10% free, critical at 5 GB / 5%
(multi-terabyte volumes need half the ratio).du -kx -d 1 on the Workspace root (after realpath, so migrated projects
that are symlinks work) and the panel lists the largest top-level folders,
with a 60 second cache, a 30 second timeout and a busy error instead of
queueing unbounded scans.node_modules, dist,
build, out, target, .next, .nuxt, .svelte-kit, .turbo,
.parcel-cache, .cache, coverage, __pycache__, .pytest_cache,
.mypy_cache, .ruff_cache, .nyc_output, .eslintcache, .vite) can be
moved to the macOS Trash. A dry-run validates the paths first, the panel shows
an inline confirmation with the exact paths and sizes, and the Host re-validates
before running /usr/bin/trash -v. Nothing is ever removed with rm.rename while the Trashed copy is still there.statfs every 60 seconds even when
the page is closed, with hysteresis, a per-volume cooldown and per-volume
mute. The sidebar icon shows a warning dot, and a new alert raises a Web
Notification when the window is unfocused.engines.dsh)./usr/bin/trash). On Linux the
panel, scan, trend and watchdog work, but the cleanup action is disabled
because moving to the system Trash is only implemented on macOS. Scanning
uses du, so Windows is not supported.Inside the DSH desktop app: Settings → Plugins, install dsh-disk-panel
(or pass the same spec to the plugin_manager tool).
For a dsh web profile with the CLI:
dsh plugin --profile web add dsh-disk-panel
Replace web with your host's profile name, then restart the host (or let the
desktop app reload its plugins). Other install forms:
# straight from GitHub (no build step in this package)
dsh plugin --profile web add github:guyue55/dsh-disk-panel
# prebuilt tarball attached to a GitHub release
dsh plugin --profile web add https://github.com/guyue55/dsh-disk-panel/releases/latest/download/dsh-disk-panel.tgz
Open the Disk & workspaces entry in the left sidebar. Expand a Workspace and
choose Measure usage to see its largest folders. Use the trash button next
to an allow-listed folder, confirm, then find the action under Recent
cleanups and restore it if needed. Send to agent starts a new session with
the scan already described in the prompt.
The panel's Panel settings card writes
$DSH_HOME/dev-panel/settings.json:
| Field | Default | Meaning |
|---|---|---|
monitor |
true |
Run the watchdog and raise alerts |
notify |
true |
Raise Web Notifications |
warnRatio / warnFreeGB |
0.10 / 20 |
Warning thresholds (ratio or absolute free space) |
critRatio / critFreeGB |
0.05 / 5 |
Critical thresholds |
cooldownHours |
6 |
Per-volume, per-level alert cooldown |
ignoredVolumes |
[] |
Volume keys whose alerts are muted |
The client also reads localStorage['sidebar-panel.options'] for
onlyWhenUnfocused (default true) and monitor (a client-side mute).
Data written by the plugin, all under $DSH_HOME/dev-panel/:
settings.json — watchdog settings.cleanup-audit.jsonl — cleanup and restore audit (append-only JSONL, pruned to the most recent 2000 entries over 512 KiB).history.jsonl — free-space samples, one per minute (pruned to the most recent 5000 samples over 2 MiB).Multiple profiles or DSH instances that share the same DSH_HOME share these
files.
This plugin reads disk statistics and directory sizes and can move allow-listed
directories to the Trash. Its Host half registers routes under
/dev-panel/api:
overview, scan, watch;config, audit, history, cleanup, restore.Mutating routes require a per-process capability token from the overview, pass
ctx.connection.requestRejection(), and also check same-origin headers. Cleanup
only accepts direct children of registered Workspaces, matching the allow-list,
that are not symlinks; the Host re-validates them before moving anything. The
routes are served by the local DSH Host; if you bind the webserver to a
non-loopback address, add your own access control.
du scans of very large or external-disk folders may hit the 30 second
timeout; the panel reports it instead of a wrong size.No build step: the Host half is index.js and the browser half is client.js
(the window.__ModuleLoader__ format). The package is plain JavaScript.
node --check index.js
node --check client.js
npm test # manifest checks + headless client behaviour tests
| Path | Purpose |
|---|---|
index.js |
Host half: routes, du, Trash cleanup/restore, audit, watchdog |
client.js |
Browser half: sidebar icon, panel, notifications |
cordis.patch.yml |
Bundle patch inserting the plugin row |
locale/ |
Plugin Manager title/description in English and Chinese |
test/ |
Manifest checks and headless client tests (no browser required) |
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。