Diagnose Codex Desktop or CLI local-state bloat and safe recovery options. Use when sessions, archived history, logs, worktrees, or stale Codex config may be making Codex feel slow.
65
79%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./Skills/agent-ops/keep-codex-fast/SKILL.md~/.codex as live control-plane state: backup first, require explicit mutation confirmation, and leave restore evidence behind.config.toml from broad heuristics without explicit prune confirmation.CODEX_HOME or ~/.codex.schema_version.report: read-only default; safe without confirmation; no writes.backup: writes backup artifacts only; no moves, log rotation, or config rewrite.apply: allowed only after this thread reviews a report and the user confirms the exact Codex home.handoff: create durable notes before archiving chats that may still carry active work.automation: report-only reminder; never schedule apply, backup, config pruning, moves, or log rotation.When refusing or deferring unsafe cleanup, say blocked, name the blocker, and give the next safe command or confirmation needed. When proceeding, include schema_version, requested mode, Codex home privacy level, exact command, pass/fail/blocked outcome, created artifact paths, residual risk, and next smallest safe action.
python3 Skills/agent-ops/keep-codex-fast/scripts/keep_codex_fast.py reportFor large Codex homes, prefer the bounded JSON form:
python3 Skills/agent-ops/keep-codex-fast/scripts/keep_codex_fast.py report --json --top-n 5 --max-seconds-per-target 2 --max-files-per-target 50000sqlite/ database directory; live Codex Desktop builds may use ~/.codex/sqlite/state_5.sqlite and ~/.codex/sqlite/logs_2.sqlite* while small legacy root files also exist.references/handoff-template.md when the user wants a template.python3 Skills/agent-ops/keep-codex-fast/scripts/keep_codex_fast.py backuppython3 Skills/agent-ops/keep-codex-fast/scripts/keep_codex_fast.py apply --confirm-codex-home ~/.codexapply, backup, config pruning, moves, and log rotation.~/Documents/Codex/codex-backups/keep-codex-fast-* or ~/.codex/backups/....~/.codex/archived_sessions/... and update state_5.sqlite.~/.codex/archived_worktrees/....logs_2.sqlite* from both ~/.codex/ and ~/.codex/sqlite/ into ~/.codex/archived_logs/... when above threshold.Config pruning is report-only by default. Run the dedicated config prune command only after reviewing the exact candidate list.
apply must fail if Codex appears to be running.apply must fail if process detection is unavailable unless the user passes an explicit unsafe override.apply must require --confirm-codex-home <path> matching the resolved Codex home.~/.codex, rotate logs, archive sessions, prune config, move worktrees, or create automations without mode-specific confirmation.blocked with the exact error.apply.~/.codex/sqlite/ databases even when legacy root SQLite files still exist.scripts/keep_codex_fast.py; the full implementation lives at Infrastructure/scripts/agent-ops/keep_codex_fast.py to keep the skill package light.references/contract.yaml for the machine-readable contract.references/evals.yaml for quality and benchmark expectations.references/handoff-template.md when old chats need durable continuity before archival.references/source-review.md for the external repo review that informed this version.| Skill | When to use together |
|---|---|
| [[verification-before-completion]] | Confirm report, backup, apply, and restore evidence before closeout |
| [[project-brain]] | Preserve durable cleanup decisions and handoffs before archiving active work history |
f1f2f21
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.