codex-adapter

codex-adapter is a skill for Claude Code from kunchenguid/compact-adviser. It costs 25 tokens per session (279 once invoked), scanned A, original, MIT.

A guide for changing or testing the Codex integration and its /compact behavior. Codex is a coding assistant, and /compact reduces the amount of earlier conversation kept in its working context.

In plain words
What is it for?
Use it when modifying the Codex plugin, its hooks, rollout handling, validation script, or behavior around /compact.
Why use it?
It documents platform limits and implementation constraints, including that this integration can only suggest compaction and supports macOS and Linux.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: installed under .agents/ (shared by several agents); mentions Codex.

Good fit Use it when modifying the Codex plugin, its hooks, rollout handling, validation script, or behavior around /compact.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kunchenguid/compact-adviser/codex-adapter
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 kunchenguid/compact-adviser --skill codex-adapter
Clone the repo
git clone --depth 1 https://github.com/kunchenguid/compact-adviser

Made for: Claude Code.

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 codex-adapter

README.md
[![agentmods](https://agentmods.dev/badge/skills/kunchenguid/compact-adviser/codex-adapter/github.svg)](https://agentmods.dev/skills/kunchenguid/compact-adviser/codex-adapter)
Your own site
<a href="https://agentmods.dev/skills/kunchenguid/compact-adviser/codex-adapter"><img src="https://agentmods.dev/badge/skills/kunchenguid/compact-adviser/codex-adapter/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 codex-adapter

Your own site · 80×15
<a href="https://agentmods.dev/skills/kunchenguid/compact-adviser/codex-adapter"><img src="https://agentmods.dev/badge/skills/kunchenguid/compact-adviser/codex-adapter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 279 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.00025 $0.00279
Opus 5.5 $0.00010 $0.00112
Sonnet 5.5 $0.00005 $0.00056
Haiku 4.5 $0.00003 $0.00028

Measured 15d ago against content hash 126f904f67aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codex-adapter 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 15d 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.

.agents/skills/codex-adapter/SKILL.md · 10 lines

What it actually says

  • Codex adapter (packages/codex-plugin, hint-only: nothing outside a Codex session can run /compact). Its sources are TypeScript that plain node type-strips, so they must stay erasable - no parameter properties, no enums. Codex rebuilds a hook's PATH from a shell snapshot and may have no node on it, so hooks go through hooks/run.sh, which is silent when it finds none. Judging is gated to the interactive TUI by the rollout's originator. The rollout transcript format is explicitly unstable upstream: src/rollout.ts never throws and degrades to the strictest floor. scripts/validate.mjs checks the package is loadable exactly as shipped. Snooze/dismiss are a known gap and follow-up: suppressing advice safely needs a reliable current-session identity that Codex gives neither the hook nor the CLI, so the CLI could only mutate the most recently written session record. Windows support is a possible follow-up: this ship is macOS and Linux only because the hooks run through POSIX sh and have no commandWindows entries.
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. 15d ago First seen · 10 lines · 25 tokens per session scan A 126f904f67aa

Subscribe to this mod's changes

codex-adapter is a skill published in the GitHub repository kunchenguid/compact-adviser (235 stars, last pushed 2d ago), licensed MIT. It adds 25 tokens to every session and 279 once invoked, about $0.0001 per session on Opus 5.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-11-15.

Related

codex-adapter compared with skills from other repositories

codex-adapter next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codex-adapterkunchenguid/compact-adviserSkill2352d agoMITA25Claude Code
agy-session-askw-winter/dot314Skill1442d agoMITA46Claude Code, Codex
maintaining-session-continuitybetmoar/cc-reload-pluginSkill12mo agoMITA110Claude Code
mulchnormful/picadilloSkill102mo agoMITA42Claude Code, Codex
memory-recallzilliztech/memsearchSkill3.0k3d agoMITA152Claude Code
wenlan-handoffwenlan-app/wenlanSkill502todayApache-2.0A46Claude Code, Codex
recallAgentToolkit/altk-evolveSkill1434d agoApache-2.0A42Claude Code