ctxwise

A local auditing and reporting toolkit for the context available to OpenAI Codex, including instructions, skills, agents, and connected tools. It can also inspect prompts, model profiles, configuration changes, and usage limits.

In plain words
What is it for?
Run context health checks, inventory configuration, inspect prompt structure, map context, check for drift, review quotas, and create local usage receipts.
Why use it?
It helps reveal what information and capabilities Codex can see, distinguish measured results from estimates, and detect changes that could affect reproducibility or cost.

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/framy2/ctxwise/ctxwise
Any agent
npx skills add FramY2/ctxwise --skill ctxwise
Clone the repo
git clone --depth 1 https://github.com/FramY2/ctxwise

Made for: Claude Code, Codex.

Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 585 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.00084 $0.00585
Opus 5 $0.00042 $0.00293
Sonnet 5 $0.00017 $0.00117
Haiku 4.5 $0.00008 $0.00059

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

Security

Grade A, and why

ctxwise 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/ctxwise/skills/ctxwise/SKILL.md · 49 lines

How it starts

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

CtxWise

Use the installed ctxwise CLI. Keep diagnostics local and distinguish exact, estimated, and unknown measurements.

Workflow

  1. Run ctxwise doctor when availability is uncertain.
  2. Select the narrowest command:
    • ctxwise snapshot for an immediate ranked context health check and safe next actions.
    • ctxwise audit --json for config, guidance, skills, agents, and MCP inventory.
    • ctxwise map --out ctxwise-context.mmd for a local visual context map.
    • ctxwise xray <prompt-input.json> --json for a privacy-safe prompt breakdown.
    • ctxwise profile <policy.yaml> --dry-run before staging or installing profiles.
    • ctxwise lock for a redacted, hash-based reproducibility manifest.
    • ctxwise drift --fail-on-drift to detect unreviewed context changes locally or in CI.
    • ctxwise quota --json for the current local plan and rate-limit snapshot.
    • ctxwise run --receipt --prompt-xray "<prompt>" for a final-answer receipt with an estimated pre-turn prompt size.
  3. Explain findings before changing configuration.
  4. Use ctxwise profile ... --install only when the user explicitly requests the install; report the backup path.

Cost rules

  • API-key mode may show a dated token-based charge estimate.
  • ChatGPT subscription mode shows tokens, credit equivalent, and quota when available. Do not call included usage a dollar charge.
  • Add --api-equivalent only when the user asks for the comparison. Preserve the label comparison only; not charged.
  • Keep missing values as unknown; never replace them with zero.
  • Keep aggregate turn input separate from prompt-window occupancy.
  • Do not claim savings without a comparable, quality-passing baseline.

Safety and privacy

  • Do not read Codex session transcripts unless the user supplies a specific file.
  • Do not print config values, credentials, cookies, or environment secrets.
  • Do not relay authentication or attempt to bypass ChatGPT limits.
  • Prefer dry-run and staged output. Inspect generated TOML before installation.

Read the full file on GitHub · 49 lines

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 · 49 lines · 84 tokens per session scan A 0752483c2ecf

Subscribe to this mod's changes

ctxwise is a skill published in the GitHub repository FramY2/ctxwise (4 stars, last pushed 3d ago), licensed Apache-2.0. It adds 84 tokens to every session and 585 once invoked, about $0.0004 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

loop

Use only when user explicitly invokes $loop.

breezewish/CodexPotter · 11 tokens

boss-advanced

Advanced Boss orchestration patterns — Agent Teams leadership, 6-section delegation template, Skill vs Agent conflict resolution, Guardian pattern, and AI-slop detection.

sehoon787/my-codex · 35 tokens

vc-agent-teams

Coordinate durable or cross-process work with local JSON mailboxes and vc teams commands. Use when messages must persist beyond one Codex session; prefer built-in Codex subagents for normal in-session delegation.

kks0488/vibe-codex · 45 tokens

orchestrate-engineering

Coordinate complex engineering work across bounded subagents while protecting the main context, preventing edit conflicts, and measuring whether delegation was worthwhile. Use when the user asks to delegate, parallelize, orchestrate, use subagents, fan out a review, or handle a large task with independent workstreams…

Phelan164/codex-howto · 78 tokens

choose-engineering-flow

Select the smallest useful Codex engineering workflow from this repository's existing skills. Use when a task spans multiple engineering concerns, the user is unsure which skill to invoke, or loading every specialist would waste context; return a recommendation only and do not execute the engineering task.

Phelan164/codex-howto · 58 tokens

skill-installer

Install Codex skills into $CODEXHOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).

chenrui333/codex-docs · 54 tokens