keep-codex-fast
Use when Codex feels slow or bloated, when local sessions/logs/worktrees/config have grown over time, or when a user wants safe maintenance for Codex…
Skill by andy4917
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/andy4917-keep-codex-fast
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/keep-codex-fast
What's inside
- Skill name
keep-codex-fast- Description
- Use when Codex feels slow or bloated, when local sessions/logs/worktrees/config have grown over time, or when a user wants safe maintenance for Codex Desktop/CLI state. Provides a backup-first workflow and bundled cleanup script that reports by default, archives instead of deleting, normalizes Windows extended paths, prunes dead config projects, rotates large logs, and moves stale worktrees.
- License
- Apache-2.0
- Metadata
- short-description: Safe Codex local-state cleanup
- Instructions
- 163 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (12)
- ci.yml · .github/workflows/
- .gitignore
- LICENSE
- README.md
- SKILL.md
- openai.yaml · agents/
- keep-codex-fast-cover.png · assets/
- handoff-template.md · references/
- keep_codex_fast.py · scripts/
- keep_codex_fast_core.py · scripts/
- keep_codex_fast_inspection.py · scripts/
- smoke_test.py · tests/
SKILL.md (first lines)
# Keep Codex Fast Use this skill to inspect and safely clean local Codex state. The goal is to reduce local drag without surprising the user or losing continuity. Primary principle: preserve continuity before cleanup. For active repo chats the user may continue, recommend a comprehensive handoff document and reactivation prompt before archiving anything. ## Safety Rules - Inspect before mutating. - Back up first. - Archive or move files instead of deleting them. Do not permanently delete user chats, logs, worktrees, memories, skills, plugins, or automations. - Write manifests and restore scripts when sessions/worktrees are moved. - If Codex is running, default to report-only. Apply cleanup only after Codex is closed or when the user explicitly accepts waiting for Codex to exit. - Never modify or copy auth files unless the user explicitly asks for that. Back up memory/skill/plugin/automation files before touching local state. - Before cleanup, tell the user to create handoff docs for active repo chats they may continue. - Before archiving any active repo chat the user may want to continue, recommend creating a comprehensive handoff doc plus a reactivation prompt. - Do not apply cleanup to old-but-important active repo chats until the user either confirms a handoff exists or confirms they do not need one. ## Default Workflow 1. Reassure the user: the first run is report-only and the skill archives instead of deleting. 2. Run the bundled script in report mode: ```bash python scripts/keep_codex_fast.py ``` 3. Summarize: - active session size - archived session size - largest active sessions - stale worktree candidates - log size - bad Windows `\\?\` path counts - config project prune candidates - top Node/dev processes 4. Before applying cleanup, recommend that the user create handoffs for all active repo chats they may continue. Explain that handoffs let them archive heavy chats and resume from docs in fresh threads. 5. Identify large/old active repo chats that may still matter. For each one the user wants to continue, create or update: - a repo-local handoff doc - a reactivation prompt that can start a fresh chat without losing the thread 6. If the user wants cleanup, ask them to close Codex or use `--wait-for-codex-exit`, then run: ```bash python scripts/keep_codex_fast.py --apply --archive-older-than-days 10 --worktree-older-than-days 7 ``` 7. Verify after cleanup: ```bash python scripts/keep_codex_fast.py ``` 8. Ask whether the user wants a recurring report-only reminder: - weekly for heavy Codex use across many repos/terminals - biweekly for lighter use - no reminder if they prefer manual cleanup If the user wants automation and the Codex app automation tool is available, create only a recurring report/reminder automation. Do not recommend recurring mutating cleanup, because automation cannot know whether the user created handoffs. The prompt must say not to pass `--apply`, not to archive/move/prune/rotate/normalize/delete/mutate local state, and to remind the user that manual cleanup should happen only after handoffs are confirmed and Codex is closed. ## What Cleanup Does - Backs up important metadata to `~/Documents/Codex/codex-backups/keep-codex-fast-*`. - Archives old non-pinned sessions to `~/.codex/archived_sessions/`. - Normalizes Windows extended paths like `\\?\C:\...` inside local SQLite text fields. - Prunes missing/temp project blocks from `config.toml` and writes UTF-8 without BOM. - Moves stale worktrees to `~/.codex/archived_worktrees/`. - Rotates `logs_2.sqlite*` into `~/.codex/archived_logs/` only when above the threshold. - Reports heavy Node processes without killing them. ## Recommended Policy - Keep only the last 7-10 days of non-pinned chats active. - Use handoff docs for important old threads. - Start fresh threads from handoff docs instead of repeatedly resuming giant chats. - Run weekly maintenance if Codex is used daily across many repos/terminals. - Offer weekly or biweekly report-only reminders after the first successful cleanup; do not assume the user wants recurring maintenance. - When in doubt, leave a chat active or ask the user. Never archive a chat that is pinned, current, or explicitly marked as still needed without a handoff. ## Handoff Doc + Reactivation Prompt For important active repo chats, create a handoff before archiving. Prefer a repo-local path such as `docs/codex-handoffs/YYYY-MM-DD-topic.md` or a user-approved docs location. Use `references/handoff-template.md` when the user wants a concrete template. A handoff document converts an old chat into durable project memory. It should let a fresh Codex thread continue after reading the repo and the handoff, without needing the original chat history. Offer this prompt for each active repo chat the user may want to continue: ```text Create a comprehensive handoff document for this repo/session before I archive or clean up Codex history. Include: - repo/path and branch - current goal - what we already completed - files touched or investigated - commands/tests already run - known errors, warnings, or failing checks - open decisions - constraints, user preferences, and do-not-touch areas - the next 3-7 concrete steps Also include a reactivation prompt I can paste into a fresh Codex chat so it can continue from this handoff without relying on the old chat context. Save the handoff in a sensible repo-local place like docs/codex-handoffs/YYYY-MM-DD-topic.md unless this repo already has a better handoff location. ``` The handoff should capture: - repo/path and branch - current goal - what was already done - key files touched or investigated - commands/tests already run - known failures or warnings - open decisions - next 3-7 concrete steps - any constraints, user preferences, or "do not touch" areas
From andy4917/Agentic-workspace-software, Apache-2.0.
More from andy4917/Agentic-workspace-software
- 0.474score
frontend-visual-debug
andy4917
Use when debugging or reviewing rendered frontend UI, screenshots, responsive layout, text overflow, visual regressions, browser console errors, network…
SkillCFreshness: CClaude Code +9 - 0.474score
git-easy-korean
andy4917
Use when Codex performs, explains, summarizes, reviews, or plans Git/GitHub work for Korean users, including status, diff, add/stage, commit, push, pull…
SkillCFreshness: CClaude Code +9 - 0.474score
clean-all-slop
andy4917
Combined adversarial review, failure exposure, root-cause analysis, and behavior-preserving cleanup workflow for AI-generated slop.
SkillCFreshness: CClaude Code +9 - 0.474score
dependency-upgrade
andy4917
Use when upgrading, replacing, pinning, auditing, or troubleshooting dependencies, packages, runtimes, SDKs, CLIs, lockfiles, peer dependencies, security…
SkillCFreshness: CClaude Code +9 - 0.474score
dont-even-try
andy4917
Lightweight read-only adversarial review of the immediately previous Codex turn.
SkillCFreshness: CClaude Code +9 - 0.474score
no-mistakes
andy4917
Validate your code changes through the no-mistakes pipeline - automated code review, tests, lint, docs, push, PR, and CI - before they reach upstream.
SkillCFreshness: CClaude Code +9 - 0.471score
goal-decision
andy4917
Decide whether a user task should become a Codex /goal, stay as a one-off prompt, or be refined first.
SkillCFreshness: CClaude Code +9 - 0.470score
codex-scaffold-validation
andy4917
Use when validating or changing this workstation's Codex scaffold, CODEX_HOME, managed source mirror, config.d/config.toml reconciliation, hooks, MCP…
SkillCFreshness: CClaude Code +9 - 0.469score
api-contract-review
andy4917
Use when reviewing API contracts, request/response schemas, OpenAPI specs, generated clients, server handlers, integration tests, compatibility, versioning…
SkillCFreshness: CClaude Code +9 - 0.464score
iterative-retrieval
andy4917
Retrieve focused context for subagents without dumping the whole tree.
SkillCFreshness: CClaude Code +9 - 0.464score
agent-harness-construction
andy4917
Build or repair the local Codex harness with reversible, deterministic changes.
SkillCFreshness: CClaude Code +9 - 0.457score
LaTeX Tectonic
andy4917
Compile LaTeX and TeX documents with the bundled Tectonic executable.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 9, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from andy4917
- 0.474score
dont-even-try
andy4917
Lightweight read-only adversarial review of the immediately previous Codex turn.
SkillCFreshness: CClaude Code +9 - 0.474score
frontend-visual-debug
andy4917
Use when debugging or reviewing rendered frontend UI, screenshots, responsive layout, text overflow, visual regressions, browser console errors, network…
SkillCFreshness: CClaude Code +9 - 0.474score
no-mistakes
andy4917
Validate your code changes through the no-mistakes pipeline - automated code review, tests, lint, docs, push, PR, and CI - before they reach upstream.
SkillCFreshness: CClaude Code +9 - 0.474score
dependency-upgrade
andy4917
Use when upgrading, replacing, pinning, auditing, or troubleshooting dependencies, packages, runtimes, SDKs, CLIs, lockfiles, peer dependencies, security…
SkillCFreshness: CClaude Code +9 - 0.474score
clean-all-slop
andy4917
Combined adversarial review, failure exposure, root-cause analysis, and behavior-preserving cleanup workflow for AI-generated slop.
SkillCFreshness: CClaude Code +9 - 0.474score
git-easy-korean
andy4917
Use when Codex performs, explains, summarizes, reviews, or plans Git/GitHub work for Korean users, including status, diff, add/stage, commit, push, pull…
SkillCFreshness: CClaude Code +9
Cite this page
keep-codex-fast skill. Agent Mart. https://agentmart.dev/skills/andy4917-keep-codex-fast (last updated 2026-10-24)