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.

AI 分析

审计 DSH 数据目录(如会话日志)的磁盘占用。适合需要清理磁盘空间、排查超大日志文件以防系统卡顿的用户。

パッケージ
dsh-disk-audit
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/18

インストール

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

ドキュメント

README 全文を読む ↗

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 示例)。