doctor

A diagnostic command for codex-compressor, a tool that manages Codex settings and hooks. It checks Python, platform support, permissions, hook support, and buffer settings.

In plain words
What is it for?
Checking whether the environment is supported, whether settings can be read or written, and whether existing buffer values need migration.
Why use it?
It helps identify setup problems before installation or use, including settings that may need review.

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/doctor
Any agent
npx skills add hehee9/codex-compressor --skill doctor
Clone the repo
git clone --depth 1 https://github.com/hehee9/codex-compressor

Made for: Claude Code, Codex.

Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 265 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.00023 $0.00265
Opus 5 $0.00012 $0.00133
Sonnet 5 $0.00005 $0.00053
Haiku 4.5 $0.00002 $0.00026

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

Security

Grade A, and why

doctor 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.

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/doctor/SKILL.md · 26 lines

What it actually says

진단

# macOS/Linux
PYTHONPATH="${PLUGIN_ROOT}/runtime" python3 -m codex_compressor doctor

# Windows PowerShell
$env:PYTHONPATH = Join-Path $env:PLUGIN_ROOT "runtime"
py -3 -m codex_compressor doctor

진단은 다음을 확인합니다.

  1. Python이 3.11 이상인지 확인합니다.
  2. 현재 플랫폼과 Codex 버전이 지원 범위인지 확인하고, 알 수 없는 버전은 경고로 표시합니다.
  3. Codex 설정 파일을 읽고 쓸 권한이 있는지 확인합니다.
  4. 후크를 사용하는 모드라면 후크 기능과 /hooks 신뢰 승인이 가능한지 확인합니다.
  5. 새 설치 기본값 16384, 인식 가능한 기존 값 155200, 기타 값에 대한 마이그레이션 확인을 구분합니다.

진단에서 WARN이 나오면 이유를 확인한 뒤 진행합니다. FAIL이나 BLOCKED를 무시하고 설정 파일을 직접 덮어쓰지 않습니다.

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. 3d ago First seen · 26 lines · 23 tokens per session scan A a998b16bb9a9

Subscribe to this mod's changes

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