Codex Cleanup

Purge stale state under ~/.codex that is older than a week so parallel codex CLI/TUI sessions stop locking up on a bloated logs SQLite, an unrotated 4 GB+ TUI log, and months of dated session JSONL. Use when ~/.codex is multi-GB, when 12+ parallel codex instances stall on `database is locked`, when the WAL on logs_2.sqlite has grown past 100 MB, or when you want a routine weekly purge. Not for editing live config (auth.json, config.toml, version.json, installation_id, .codex-global-state.json), not for the codex git repo, not for cleaning unrelated caches outside ~/.codex.

aelaguiz Updated

File contents

aelaguiz/arch_skill/tree/main/skills/codex-cleanup commit d60107eb68

Frequently asked questions

npx skillmds@latest add aelaguiz/codex-cleanup