zoahdev/dsh-disk-audit0

dsh-disk-audit

Disk-usage audit for DeepSeek Harness (dsh) data directories: total size, per-directory breakdown, largest files, and oversized-file warnings (session logs can hit hundreds of MB). Zero runtime dependencies, read-only. CLI + agent-callable disk_audit tool.

包名
dsh-disk-audit
版本
0.1.0
许可证
MIT
最近更新
2026年8月18日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zoahdev/dsh-disk-audit

In-harness usage (agent-callable)

Ask your dsh agent:

看看我的 dsh 数据目录占了多少磁盘,最大的文件是哪些。 Audit disk usage of my dsh data directory: disk_audit.

The tool returns a dsh-disk-audit/v1 report:

{
  "schema": "dsh-disk-audit/v1",
  "target": "~/.dsh",
  "ok": false,
  "totalBytes": 157286400,
  "totalFiles": 1842,
  "dirs": [ { "dir": "~/.dsh/sessions", "sizeBytes": 146800640, "files": 42 } ],
  "largestFiles": [ { "path": "~/.dsh/sessions/big.jsonl", "sizeBytes": 134217728 } ],
  "warnings": ["1 file(s) at or above 100 MB"],
  "suggestions": ["Export/compress the largest session logs before they hit the stringify cap"]
}

在 harness 内使用(agent 可调用)

对 agent 说:

看看我的 dsh 数据目录占了多少磁盘,最大的文件是哪些。

工具返回 dsh-disk-audit/v1 报告(结构见英文版 JSON 示例)。