keep-codex-fast

keep-codex-fast is a skill for Codex from jscraik/Agent-Skills. It costs 47 tokens per session (2,189 once invoked), scanned A, original, Apache-2.0.

A guide for inspecting and safely reducing local Codex storage, including old sessions, logs, worktrees, and configuration.

In plain words
What is it for?
Use it to produce reports, create backups, plan archival, prepare handoffs, and set up report-only maintenance reminders.
Why use it?
It helps investigate whether accumulated local data is slowing Codex while preserving chat history and recovery options.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex; $skill-name invocation.

Good fit Use it to produce reports, create backups, plan archival, prepare handoffs, and…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jscraik/agent-skills/keep-codex-fast
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jscraik/Agent-Skills --skill keep-codex-fast
Clone the repo
git clone --depth 1 https://github.com/jscraik/Agent-Skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for keep-codex-fast

README.md
[![agentmods](https://agentmods.dev/badge/skills/jscraik/agent-skills/keep-codex-fast.svg)](https://agentmods.dev/skills/jscraik/agent-skills/keep-codex-fast)
Your own site
<a href="https://agentmods.dev/skills/jscraik/agent-skills/keep-codex-fast"><img src="https://agentmods.dev/badge/skills/jscraik/agent-skills/keep-codex-fast.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,189 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.02189
Opus 5 $0.00023 $0.01094
Sonnet 5 $0.00009 $0.00438
Haiku 4.5 $0.00005 $0.00219

Measured 3d ago against content hash 6e8794ead19e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

keep-codex-fast scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/keep_codex_fast_classify.py, scripts/keep_codex_fast_report.py, scripts/keep_codex_fast_scan_model.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Skills/agent-ops/keep-codex-fast/SKILL.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Keep Codex Fast

Philosophy

  • Diagnose before cleanup; the first pass is evidence, not mutation.
  • Preserve continuity before reclaiming space; old chats are work history until a handoff exists.
  • Treat ~/.codex as live control-plane state: backup first, require explicit mutation confirmation, and leave restore evidence behind.
  • Use Harness Engineering language: current state, evidence, decision, action, verification, handoff.

When To Use

  • Codex Desktop or CLI feels slower after many long-running chats.
  • The user wants safe inspection, backup, archival planning, or handoff-first chat retirement for Codex local state.
  • A recurring Codex maintenance reminder is requested, with report-only behavior.

Avoid

  • Automatic cleanup without a fresh report.
  • Mutation while Codex is running or process detection cannot prove it is safe.
  • Deleting chats, worktrees, logs, skills, plugins, memories, rules, or automations.
  • Rewriting config.toml from broad heuristics without explicit prune confirmation.

Inputs

  • Codex home, defaulting to CODEX_HOME or ~/.codex.
  • Intent: report, backup-only, apply archive actions, create a handoff, or create a report-only reminder.
  • Age thresholds, exact apply confirmation, and optional details mode for raw IDs, titles, paths, and process paths.

Outputs

  • Local-state report with candidate counts and sizes.
  • Backup path when artifacts are written.
  • Mutation plan before apply.
  • Validation evidence after apply.
  • Restore manifest paths when sessions or worktrees move.
  • Schema-bound outputs include schema_version.

Decision Gates

  • Fail fast: stop at the first failed gate and do not proceed.
  • 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.

Read the full file on GitHub · 167 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 167 lines · 47 tokens per session scan A 6e8794ead19e

Subscribe to this mod's changes

keep-codex-fast is a skill published in the GitHub repository jscraik/Agent-Skills (8 stars, last pushed 5d ago), licensed Apache-2.0. It adds 47 tokens to every session and 2,189 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.