Keep Codex Fast

A Codex skill for safe local-state maintenance: a report-only default, backup and archive instead of deletion, log and worktree cleanup

Skill

Medium risk

We rate an entry medium when the tool runs code, makes network calls or reads project files. Check what exactly it does before installing.

Why this level

  • Runs a script that moves and archives local Codex files and rotates logs
  • The repair option edits title metadata in the SQLite file
All reasons and checks

vibeforge1111/keep-codex-fast

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add skills/keep-codex-fast

Detects the agents on your machine, checks the risk and pins the version.

Other ways to install

Run in a terminal in the project folder

npx skills add vibeforge1111/keep-codex-fast --skill keep-codex-fast -a claude-code -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Run in a terminal in the project folder

npx skills add vibeforge1111/keep-codex-fast --skill keep-codex-fast -a cursor -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Run in a terminal in the project folder

npx skills add vibeforge1111/keep-codex-fast --skill keep-codex-fast -a github-copilot -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Run in a terminal in the project folder

npx skills add vibeforge1111/keep-codex-fast --skill keep-codex-fast -a codex -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Run in a terminal in the project folder

npx skills add vibeforge1111/keep-codex-fast --skill keep-codex-fast -a gemini-cli -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Run in a terminal in the project folder

npx skills add vibeforge1111/keep-codex-fast --skill keep-codex-fast -a cline -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Run in a terminal in the project folder

npx skills add vibeforge1111/keep-codex-fast --skill keep-codex-fast -a roo -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

A fork of Roo Code, same .roo folders.

Run in a terminal in the project folder

npx skills add vibeforge1111/keep-codex-fast --skill keep-codex-fast -a opencode -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

You will need: Node.js

Checked against the repository on Sep 25, 2026, commit e74c449.

Text for your agent

Install the skill from https://github.com/vibeforge1111/keep-codex-fast or copy the folder into the Codex skills directory as keep-codex-fast. Start with the report: python scripts/keep_codex_fast.py.

Other ways from the author
Text for your agent

Install the keep-codex-fast skill from https://github.com/vibeforge1111/keep-codex-fast

Ask Codex to install the skill from the repository link.

This is third-party code. Review the repository files before installing.

What it does

The skill helps Codex figure out why local state has grown and clean it up carefully without losing context. By default it only builds a report: active and archived session size, large chats, bloated title and preview metadata, stale worktrees, log size and heavy Node processes. Before changing anything it recommends handoff documents for active chats, then it backs up and archives rather than deletes. When run explicitly with flags it moves stale worktrees, rotates large logs, prunes dead entries in config.toml and normalizes Windows paths. A separate repair option shortens oversized SQLite title and preview metadata after a backup, leaving the transcript intact.

Who it is for. For heavy Codex Desktop or CLI users who notice the interface has slowed down.

Good fit when

  • Codex has slowed down after heavy use and you need to see what grew
  • You want to safely trim old sessions, worktrees and logs with backup and archive
  • You want to preserve active chat context via handoff documents before cleanup

Not a fit when

  • You need to clean another tool's state, not Codex
  • You are fine deleting data without backups or archives to save maximum space

Example request

Inspect my local Codex state and suggest a safe maintenance plan

Limitations

The skill targets local Codex Desktop and CLI state. Running the script needs Python. Mutating actions apply only when run explicitly with flags and when Codex is closed. The repair option touches title and preview metadata only behind a separate flag. Backup folders hold local Codex metadata and should not be published without reviewing what is inside.

How to disable. Remove the keep-codex-fast folder from the Codex skills directory. Previously created backups and archives stay on disk; delete them manually if needed.

Security check

  • Runs a script that moves and archives local Codex files and rotates logs
  • The repair option edits title metadata in the SQLite file

README in short

The README describes three modes: report-only inspect, normal apply with backup and archive, and a separate repair of bloated title metadata. It stresses the principle: handoffs first, archive instead of delete, apply only when ready. The skill installs via Codex from the repository link or by copying the folder into the skills directory, and the script can also run manually with the details, backup-only, apply and repair-thread-metadata-bloat flags. It notes that backups hold private local data. MIT licensed.

SKILL.md

---
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 read-only report by default, backs up before applying changes, archives instead of deleting, normalizes Windows extended paths, prunes dead config projects, rotates large logs, and moves stale worktrees."
metadata:
  short-description: "Safe Codex local-state maintenance"
---

# Keep Codex Fast

Use this skill to inspect and safely maintain local Codex state. The goal is to reduce local drag without surprising the user or losing continuity.

Primary principle: preserve continuity before applying changes. For active repo chats the user may continue, recommend a comprehensive handoff document and reactivation prompt before archiving anything.

## Safety Rules

- Inspect before mutating.
- The first run must be report-only. Report mode must not write files, create backups, move folders, or change local Codex state.
- Back up before applying changes. Use `--backup-only` when the user wants backups without moving or changing local state.
- 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 changes only after Codex is closed or when the user explicitly accepts waiting for Codex to exit.

FAQ

Does the skill delete my chats?

No. It archives and moves files rather than deleting, and writes manifests and restore scripts. The first run is always report only.

Can I run it while Codex is open?

The report runs either way, but mutating actions apply only after Codex is closed or with the wait-for-exit flag.

Official

A self-hosted knowledge base with block-level references and a built-in MCP server for connecting AI agents to your notes

MCP serverMedium risk46.5KRepository stars
Editors’ pick

A CLI for every Google Workspace API with JSON output and agent skills: Drive, Gmail, Calendar, Sheets and more

CLIHigh risk31.2KRepository stars
Editors’ pick

Local search over Markdown notes, docs and meeting transcripts: keywords, semantic search and reranking, with an MCP server

CLIMedium riskNo VPN needed30.1KRepository stars
Editors’ pick

A task manager for AI-driven development: breaks a PRD into dependent tasks and guides the agent through them via MCP or CLI

MCP serverMedium risk28.1KRepository stars
Foxx AIKeep Codex Fast

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.