READER EDITION / ISSUE 003 / Revised 2026-11-30
Creative Agentic Computing
CodeFarmer / Issue 003
CODEX DISK WORKSHOP

Find the biggest
folder first.

By Alvin

Start with a number you can compare after cleanup. Open Terminal on the Mac that did the work and paste the commands below. Look for the space available on the disk and the largest Codex folder.

df -h "$HOME"
base="${CODEX_HOME:-$HOME/.codex}"
du -sh "$base"
for folder in sessions archived_sessions worktrees; do
  [ ! -d "$base/$folder" ] || du -sh "$base/$folder"
done

Start with Available from df, then compare the three folder rows. The Codex home total already includes those rows. For a custom worktree root, measure the location shown under Worktrees in Settings. The pack includes a read-only Terminal script at lab/disk/MEASURE-ON-MAC.sh. [25] [35]

Follow the largest bucket

A large sessions or archives row points you to chat retention. A large worktree row points you to separate project copies. If the Codex home is much smaller than the space you expected, check project build output, models and other caches on the same volume. A macOS Storage category groups many kinds of data. [37]

Terminal’s human-readable numbers use binary units in this example. Finder and reports may display decimal GB. Use the same command before and after.

A storage audit distinguishes active work from disposable data.
A storage audit distinguishes active work from disposable data.