uninstall

Removal and restoration instructions for codex-compressor, including how to uninstall it and restore a saved settings backup.

In plain words
What is it for?
Uninstalling the tool, checking its state, removing trusted hooks and the plugin, and restoring a selected backup when needed.
Why use it?
They help clean up the tool while preserving backups and avoid automatically overwriting settings that the user changed after installation.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/hehee9/codex-compressor/uninstall
Any agent
npx skills add hehee9/codex-compressor --skill uninstall
Clone the repo
git clone --depth 1 https://github.com/hehee9/codex-compressor

Made for: Claude Code, Codex.

Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 367 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00020 $0.00367
Opus 5 $0.00010 $0.00183
Sonnet 5 $0.00004 $0.00073
Haiku 4.5 $0.00002 $0.00037

Measured 2d ago against content hash 1f5f647541a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

uninstall 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 2d 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.

plugins/codex-compressor/skills/uninstall/SKILL.md · 29 lines

What it actually says

제거와 복원

# macOS/Linux
PYTHONPATH="${PLUGIN_ROOT}/runtime" python3 -m codex_compressor uninstall
PYTHONPATH="${PLUGIN_ROOT}/runtime" python3 -m codex_compressor restore --backup <backup-id>

# Windows PowerShell
$env:PYTHONPATH = Join-Path $env:PLUGIN_ROOT "runtime"
py -3 -m codex_compressor uninstall
py -3 -m codex_compressor restore --backup <backup-id>

제거는 새로 추가한 설정과 플러그인 연결을 정리하되, 원본 설정과 사용자 편집 내용이 들어 있는 백업을 삭제하지 않습니다. --purge-state를 사용해도 백업은 별도로 보존됩니다. 복원이 필요한 경우 상태를 먼저 확인하고 restore --backup <backup-id>로 백업에서 복원합니다.

플러그인 후크를 사용했다면 다음 순서로 처리합니다.

  1. 설치된 플러그인 런타임으로 uninstall을 실행해 설정을 정리합니다.
  2. Codex의 /hooks에서 codex-compressor 후크 신뢰를 해제합니다.
  3. codex plugin remove codex-compressor@codex-compressor-local로 플러그인을 제거합니다.
  4. 백업을 확인한 뒤 필요할 때만 restore 절차를 실행합니다.

자동 복원은 원본 파일이 사용자의 제거 이후 변경된 경우 실행하지 않습니다. 그런 경우 백업과 현재 파일의 차이를 확인하고 사용자가 복원을 결정해야 합니다.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 29 lines · 20 tokens per session scan A 1f5f647541a9

Subscribe to this mod's changes

uninstall is a skill published in the GitHub repository hehee9/codex-compressor (10 stars, last pushed 8d ago), licensed Apache-2.0. It adds 20 tokens to every session and 367 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-08-31.

Related

Other skills, from other repositories

writing-skills

Use this whenever the user asks to write, author, or scaffold a new SecureContext skill (Anthropic-style filesystem skill at /.claude/skills/ / or /.claude/skills/ /). The skill walks the agent through the four-invariant checklist, generates a SKILL.md from a template, and runs the bundled linter + admission preview…

iampantherr/SecureContext · 102 tokens

publish-github-release

Use this whenever the user asks to ship, publish, release, tag, or cut a new version of the project — OR when CHANGELOG.md has an "Unreleased" / in-progress section ready to be shipped. The skill bumps the version across all version-bearing files, regenerates the CHANGELOG entry from git log since the last tag…

iampantherr/SecureContext · 99 tokens

ctxwise

Audit and optimize OpenAI Codex context locally, compile model and subagent profiles, detect capability drift, create redacted lockfiles, inspect model-visible prompt structure, and render honest token, credit, quota, or API-cost receipts. Use when the user explicitly invokes CtxWise or asks to run its installed CLI…

FramY2/ctxwise · 84 tokens

pf-handoff

Чекпоинт или закрытие сессии — зафиксировать состояние, ничего не потеряв. Checkpoint or close a session — reconcile what is proven, rewrite the live HANDOFF state file (§13), statuses and journal. NOT for handing work to another agent or worktree (that is orca-cli/orchestration). Use when the context window is…

turvodnik/pf-handoff · 116 tokens

pf-resume

Подхватить работу прошлой сессии — продолжить как в том же чате. Picking up work from the live HANDOFF file (§13) — continue in a new chat or after /clear as if it were the same chat. Use when «/pf-resume», «продолжи с прошлой сессии», «подхвати работу», «восстанови состояние», resume previous session state.

turvodnik/pf-handoff · 92 tokens

minimize-token-usage

Reduce Codex context and token use while preserving evidence and correctness. Use for long coding, research, debugging, repository exploration, noisy logs, large command or MCP outputs, repeated file reads, cost-sensitive work, or when the user asks for concise, cheap, low-token, or context-efficient execution. Also…

Kolikkii/token-razor · 82 tokens