Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

keep-codex-fast-maintenance

БесплатноБез исполняемых скриптовНе проверен

Backup-first skill for inspecting, archiving, and maintaining local Codex state to keep it fast, clean, and recoverable.

reason-machinesот reason-machines★ 99 звёзд на GitHub

Об этом скилле

Keep Codex Fast

Skill by ara.so — Daily 2026 Skills collection.

A backup-first maintenance skill for local Codex state. When Codex starts feeling heavy after weeks of chats, terminals, logs, worktrees, and project history, this skill gives you a safe, inspectable workflow to reduce drag without losing context.

Core rule: Make handoffs first. Archive, don't delete. Apply changes only when you are ready.


Installation

Ask Codex directly:

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

Or clone manually into your Codex skills directory:

git clone https://github.com/vibeforge1111/keep-codex-fast keep-codex-fast

Mental Model

Layer Purpose
Chats Execution context
Handoff docs Memory and continuity
Archives History, not deletion
Fresh threads Speed

Never delete. Always archive. The script moves state into archive folders and writes backup/restore artifacts before applying any change.


CLI — Key Commands

All commands run from the project root. The script is read-only by default.

1. Inspect Only (Safe, No Writes)

python scripts/keep_codex_fast.py

Reports: active session size, archived session size, extended path candidates, old session candidates, worktree candidates, log size, top Node/dev processes. Nothing is mutated.

2. Detailed Report (Raw IDs, Titles, Paths)

python scripts/keep_codex_fast.py --details

Shows thread IDs, chat titles, file paths, and process paths. Use when you need to identify specific sessions or worktrees before archiving.

3. Backup Only (No Move/Archive)

python scripts/keep_codex_fast.py --backup-only

Creates backup artifacts of current Codex state without moving or modifying anything. Run this before any apply step as an extra safety net.

⚠️ Backup folders contain private local Codex metadata. Keep them on your machine. Do not publish or share without reviewing contents.

4. Apply Maintenance

python scripts/keep_codex_fast.py --apply --archive-older-than-days 10 --worktree-older-than-days 7

Archives old non-pinned sessions, moves stale worktrees, rotates large logs_2.sqlite* files, prunes dead/temp project references in config.toml, and normalizes Windows \\?\C:\... path mismatches in SQLite text fields.

5. Wait for Codex to Exit Before Applying

python scripts/keep_codex_fast.py --apply --wait-for-codex-exit

Holds until no Codex process is detected, then applies maintenance. Use this when you want to queue a cleanup but need Codex to close first.


Workflow: Step-by-Step

Step 1 — Inspect First

Use $keep-codex-fast to inspect my Codex local state and recommend a safe maintenance plan.

Review the report. Note which sessions are large, which worktrees are stale, and which logs are heavy.

Step 2 — Create Handoff Docs for Active Chats

For every active repo chat you may want to continue later, run this inside that chat:

Create a comprehensive handoff document for this repo/session before I archive 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.

A handoff captures: what you were doing, what changed, what files matter, what commands ran, what is still broken or undecided, and what to do next.

Step 3 — Apply Safe Maintenance

After handoffs exist for all chats you care about:

Use $keep-codex-fast to apply safe Codex maintenance.

Before changing anything, confirm that important active repo chats have handoff docs or do not need them.

Then back up first, archive instead of deleting, move stale worktrees, rotate large logs, prune dead config references, and verify the result.

If Codex is currently running, do not mutate local state. Tell me to close Codex first.

What the Script Can Change

Target Action
Old non-pinned active sessions Archived, not deleted
Stale worktrees Moved out of hot path
Large logs_2.sqlite* files Rotated
Dead/temp project entries in config.toml Pruned
Windows \\?\C:\... path mismatches in SQLite Normalized

Recurring Maintenance Reminder

Set up a weekly or biweekly reminder that reports only — never auto-applies:

Use $keep-codex-fast to create a recurring Codex maintenance reminder.

Schedule it weekly if I use Codex heavi
Полный SKILL.md на GitHub

Установить keep-codex-fast-maintenance в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл keep-codex-fast-maintenance?

Backup-first skill for inspecting, archiving, and maintaining local Codex state to keep it fast, clean, and recoverable.

Как установить скилл keep-codex-fast-maintenance?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл keep-codex-fast-maintenance запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить keep-codex-fast-maintenance с