Skip to content

Read disk measurements

Disk size helps prioritize a review. It does not contribute to cleanup verdicts.

Add --disk-usage to scan or review. By default, all inventoried worktree roots and shared Git directories are requested. --worktree and presentation filters do not narrow this disk collection.

Use repeated --disk-root EXACT_ABSOLUTE_PATH to choose recorded roots. Include the shared Git directory explicitly if you want it measured. Unknown paths are refused.

--disk-budget standard|thorough is separate from the Git/local --budget. Start with standard; higher limits can still leave gaps. plan --inventory retains captured sizes and observation dates without recounting them.

The console recap uses decimal KB/MB/GB and lists the five largest selected worktrees by observed size. Partial measurements may under-rank them; rows without a size remain explicit.

ValueMeaning
LogicalRegular-file and symlink lengths. Sparse files can be much longer than their allocation.
AllocatedFilesystem-reported blocks multiplied by 512, including directory blocks.
Shared GitCommon Git administration, measured separately.
Deduplicated totalEach observed device/inode pair counted once. Row totals can overlap.
CompleteThis root finished without a detected gap. Not an atomic snapshot.
PartialOnly accumulated observations are available.
Not requestedRecorded root outside the explicit disk selection.
Not measuredNo available size, not zero.

Hidden and ignored files remain in scope. Symlink targets are not followed. Nested registered roots have their own rows.

Allocated size is not recoverable space. APFS clones, snapshots and shared extents can change what a deletion would free. External alternates and dependencies outside measured roots are not counted.

The current collector reads metadata one entry at a time. The 11 October evaluation keeps this scalar product collector. The corrected native prototype matches fixture totals and is faster on three fixed corpora, but its product protections and system boundaries remain unqualified. These are experimental C measurements, not a shipped Rust speedup. getattrlistbulk is not integrated. There is no cache-category breakdown or automatic cache deletion.

Choose a focused review and preserve each run’s scope and dates.

Starting with v0.1.0-alpha.2, builds capture volume statistics on verified directory descriptors during --disk-usage. HTML shows per-volume capacity, available space and measured allocation, with separate coverage for working directories and shared Git storage. Capacity is never summed across APFS volumes. The optional disk_usage.storage data survives offline replay; older inventories retain sizes with no invented percentage. Older strict readers may reject these enriched artifacts. No cleanup verdict changes.

Canonical source