prune

prune is a command for Claude Code, Codex from mturac/everything-openai-codex. It costs 15 tokens per session (174 once invoked), scanned A, original, MIT.

A cleanup command that removes pending learning notes, called instincts, when they are older than a chosen number of days and were never promoted.

In plain words
What is it for?
Use it to delete instincts older than 30 days, choose a different age limit, or preview what would be removed with a dry run.
Why use it?
It keeps outdated, unreviewed notes from accumulating in the local skill-learning data.

Command for Claude CodeCodex

Written for Codex and Claude Code: reads ~/.codex or $CODEX_HOME, but also a Claude Code command (commands/*.md). Also seen: mentions Codex.

Good fit Use it to delete instincts older than 30 days, choose a different age limit, or preview what would be removed with a dry run.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mturac/everything-openai-codex/prune
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.

Clone the repo
git clone --depth 1 https://github.com/mturac/everything-openai-codex

Made for: Claude Code, 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 prune

README.md
[![agentmods](https://agentmods.dev/badge/commands/mturac/everything-openai-codex/prune/github.svg)](https://agentmods.dev/commands/mturac/everything-openai-codex/prune)
Your own site
<a href="https://agentmods.dev/commands/mturac/everything-openai-codex/prune"><img src="https://agentmods.dev/badge/commands/mturac/everything-openai-codex/prune/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for prune

Your own site · 80×15
<a href="https://agentmods.dev/commands/mturac/everything-openai-codex/prune"><img src="https://agentmods.dev/badge/commands/mturac/everything-openai-codex/prune.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 174 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.00015 $0.00174
Opus 5 $0.00008 $0.00087
Sonnet 5 $0.00003 $0.00035
Haiku 4.5 $0.00002 $0.00017

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

Security

Grade A, and why

prune 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 6d ago.

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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

  • prune — 91% identical, 6 lines differ
  • prune — 91% identical, 6 lines differ
commands/prune.md · 32 lines

What it actually says

Prune Pending Instincts

Remove expired pending instincts that were auto-generated but never reviewed or promoted.

Implementation

Run the instinct CLI using the plugin root path:

python3 "${CODEX_PLUGIN_ROOT}/skills/continuous-learning-v2/scripts/instinct-cli.py" prune

Or if CODEX_PLUGIN_ROOT is not set (manual installation):

python3 ~/.codex/skills/continuous-learning-v2/scripts/instinct-cli.py prune

Usage

/prune                    # Delete instincts older than 30 days
/prune --max-age 60      # Custom age threshold (days)
/prune --dry-run         # Preview without deleting
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. 6d ago First seen · 32 lines · 15 tokens per session scan A 4fc9c7f78e90

Subscribe to this mod's changes

prune is a command published in the GitHub repository mturac/everything-openai-codex (90 stars, last pushed 16d ago), licensed MIT. It adds 15 tokens to every session and 174 once invoked, about $0.0001 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.