Fast Disk Survey

Use when measuring disk on a shared multi-agent Linux computer with runtime-discovered roots and review-resilient sequential shells; pair with Safe disk clean.

Shixuuu Updated

File contents

Fast disk survey

Measurement subset of Safe disk clean. No deletes.

Discover then measure (sequential)

Resolve HOME, WORKSPACE, TMP, AGENT_DATA as in Safe disk clean. Then:

du -xhd1 "$WORKSPACE"    # if present
du -xhd1 "$TMP"
du -xhd1 --exclude=agent-data --exclude=reference "$HOME"
df -h /
ls -ld "$CANDIDATE"      # ≤6 times, one path each
ls -1 "$AGENT_DATA/agents"   # if present

Never bare du -xhd1 "$HOME" when protected dirs live under it. Never stat. On classifying error: retry identical command once; then mark missing.

No parallel bursts. No multi-line scripts. No deep finds into venvs / browser profile contents.

Shixuuu/grokbot-pi-templates commit 3f81e4504a

Frequently asked questions

npx get-skill add shixuuu/fast-disk-survey