Reference / Developer artifacts
Is it safe to delete ~/.codex/worktrees on a Mac?
Do not delete casually
This does not come back. Treat it as real data.
~/.codex/worktrees
What it is
Codex AI-edit git worktrees — accumulate over time, often stale
If you delete it
Any uncommitted work in stale worktrees is gone. Pressure-test should catch active ones via mtime.
Category
Developer artifacts
Don't guess — let diskspace check it live.
It pressure-tests the path against your live disk state and stages it reversibly, so you never lose anything you needed.
$ brew install tymrtn/diskspace/diskspace
$ diskspace explain ~/.codex/worktrees # verdict + live pressure-test