pricing-refresh

pricing-refresh is a skill for Claude Code, Codex from gtapps/claude-code-hermit. It costs 76 tokens per session (605 once invoked), scanned A, original, MIT.

A maintainer-only procedure for checking a code project's Claude model cost table against Anthropic's current pricing pages. It can update the table only after explicit confirmation.

In plain words
What is it for?
It helps verify model rates, cache pricing, fast-mode rates, and unknown model IDs found in the project's recent cost log.
Why use it?
Pricing changes can make cost calculations wrong, while changing the table without review could also introduce errors.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions Codex.

Good fit It helps verify model rates, cache pricing, fast-mode rates, and unknown model IDs found in the project's recent cost log.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gtapps/claude-code-hermit/pricing-refresh
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 gtapps/claude-code-hermit --skill pricing-refresh
Clone the repo
git clone --depth 1 https://github.com/gtapps/claude-code-hermit

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 pricing-refresh

README.md
[![agentmods](https://agentmods.dev/badge/skills/gtapps/claude-code-hermit/pricing-refresh.svg)](https://agentmods.dev/skills/gtapps/claude-code-hermit/pricing-refresh)
Your own site
<a href="https://agentmods.dev/skills/gtapps/claude-code-hermit/pricing-refresh"><img src="https://agentmods.dev/badge/skills/gtapps/claude-code-hermit/pricing-refresh.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 605 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00076 $0.00605
Opus 5 $0.00038 $0.00302
Sonnet 5 $0.00015 $0.00121
Haiku 4.5 $0.00008 $0.00060

Measured today against content hash 251fcdbede59, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

pricing-refresh 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 today.

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/pricing-refresh/SKILL.md · 56 lines

What it actually says

Pricing refresh

Compare plugins/Codex-hermit/scripts/lib/pricing.ts to Anthropic's live docs and, only after explicit confirmation, edit the table. Do not run this on a schedule. Do not write anything under an operator's .Codex-hermit/.

Step 1 — Read the table

Read plugins/Codex-hermit/scripts/lib/pricing.ts. Record every PRICING key, its { input, output, cacheRead?, fast? } rates, the CACHE_WRITE_5M / CACHE_WRITE_1H / CACHE_READ multipliers, and PRICING_VERIFIED.

Step 2 — Fetch live sources

Load the bundled Codex-api skill. From its shared/live-sources.md, WebFetch these three URLs:

  • Models Overview
  • Pricing
  • Prompt Caching

Extract current model ids, per-MTok input/output, cache write (5m and 1h) and read multipliers, any per-model cacheRead absolute rate, and fast-mode rates.

Step 3 — Unknown ids in the log

From .Codex-hermit/cost-log.jsonl (this repo's own hermit dir, last 30 days of timestamp), list distinct model values that are not exact PRICING keys (dated <key>-YYYYMMDD snapshots of an existing key count as exact). Print them. Do not edit operator installs.

Step 4 — Diff

Print a rate-diff table: id, live input/output/cache/fast vs the file. Flag missing ids, stale rates, and a PRICING_VERIFIED date that is not today.

Stop here unless the operator confirms an edit.

Step 5 — Edit on confirmation only

If the operator explicitly confirms:

  1. Edit plugins/Codex-hermit/scripts/lib/pricing.ts rates and keys to match the live table. Set PRICING_VERIFIED to today's date (YYYY-MM-DD).
  2. Add a ### Fixed bullet under plugins/Codex-hermit/CHANGELOG.md [Unreleased]: rate table refreshed for the current generations.
  3. Run cd plugins/Codex-hermit && bun test tests/pricing.test.ts.

Do not commit. Do not bump min_claude_code_version. Do not add a hook, a routine, or a config.json entry.

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. today Changed · +1 tokens per session 251fcdbede59
  2. yesterday First seen · 56 lines · 75 tokens per session scan A cb84526a338f

Subscribe to this mod's changes

pricing-refresh is a skill published in the GitHub repository gtapps/claude-code-hermit (74 stars, last pushed today), licensed MIT. It adds 76 tokens to every session and 605 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-09-06.