zoahdev/dsh-disk-audit

Disk-usage audit for DeepSeek Harness (dsh) data directories: total size, per-directory breakdown, largest fil

dsh-disk-audit audits disk usage of DeepSeek Harness data directories: total size, per-directory breakdown, largest directories, oversized files and cleanup suggestions. Session logs are append-only and can silently grow to hundreds of megabytes (the ecosystem has seen the ~512 MB stringify cap), so this plugin tells you where the space went before it becomes a problem. The agent-callable disk_audit tool returns a dsh-disk-audit/v1 report with dir sizes, largest files, warnings (default per-file threshold 100 MB) and suggestions; the standalone CLI exits 0 when clean, 1 with warnings, 2 on usage/IO errors. It never deletes or moves anything.

Coding & Development ★ 0 updated 2026-08-18 ⚠️ needs adapt
View on GitHub ↗

Install

dsh plugin add dsh-disk-audit

npm dsh-disk-audit 0.1.0 verified 2026-09-04 (maintainer 'zoah' prefix-consistent with GitHub owner zoahdev; README EN primary w/ zh section). Install: dsh plugin add dsh-disk-audit, or run standalone: npx dsh-disk-audit ~/.dsh [--json] [--large-file <bytes>] [--skip-node-modules].

Compatibility

DeepSeek Harness (dsh) data directories (sessions, exports, caches); reads *.jsonl session logs and directory trees; zero runtime dependencies, read-only by construction.

Details

Recent updates

Warn threshold configurable with --large-file; --skip-node-modules avoids descending into dependency trees.

FAQ

What does it report?
Total size of the target dsh data directory, per-directory breakdown, largest directories, oversized files (default threshold 100 MB) and cleanup suggestions.
Does it delete anything?
No — it is read-only by construction and never deletes or moves files.
Why is this useful?
Session logs are append-only and can silently eat gigabytes; catching a ~500 MB log before it hits the stringify cap is far cheaper than recovering after.

Alternatives

Xrainsmile/DSH-Plugin-Doctor · coppynight/dsh-doctor

More plugins in Coding & Development

Browse more in Coding & Development

Guides for Coding & Development plugins