refresh-model-catalog

refresh-model-catalog is a skill for Claude Code, Codex from patlux/pi-commandcode-provider. It costs 44 tokens per session (817 once invoked), scanned A, original, MIT.

A workflow for updating a repository's catalog of Command Code models, including their supported settings, limits, and display pricing.

In plain words
What is it for?
Use it when Command Code models are added, removed, or their metadata changes.
Why use it?
It keeps the checked-in catalog and test fixtures aligned with the published model package while requiring pricing 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/patlux/pi-commandcode-provider/refresh-model-catalog
Any agent
npx skills add patlux/pi-commandcode-provider --skill refresh-model-catalog
Clone the repo
git clone --depth 1 https://github.com/patlux/pi-commandcode-provider

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 refresh-model-catalog

README.md
[![agentmods](https://agentmods.dev/badge/skills/patlux/pi-commandcode-provider/refresh-model-catalog.svg)](https://agentmods.dev/skills/patlux/pi-commandcode-provider/refresh-model-catalog)
Your own site
<a href="https://agentmods.dev/skills/patlux/pi-commandcode-provider/refresh-model-catalog"><img src="https://agentmods.dev/badge/skills/patlux/pi-commandcode-provider/refresh-model-catalog.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 817 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.00044 $0.00817
Opus 5 $0.00022 $0.00409
Sonnet 5 $0.00009 $0.00163
Haiku 4.5 $0.00004 $0.00082

Measured today against content hash 76c47e3258c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

refresh-model-catalog 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.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/refresh-model-ids.mjs, scripts/sync-pricing-fixture.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/refresh-model-catalog/SKILL.md · 79 lines

How it starts

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

Refresh Model Catalog

Use this skill whenever the Command Code model catalog changes: new or retired models, changed reasoning efforts, output limits, or pricing. All commands run from the repository root and work on Windows and Linux.

Core rules

  • Do not commit, tag, push, or publish unless the user explicitly asks in the current conversation.
  • Pricing is manually reviewed: temporary promotions and long-context tiers require explicit review of the official pricing page. Never copy prices blindly from the API.
  • Keep the change focused: one refresh per PR, no unrelated refactors.
  • Follow CONTRIBUTING.md for commit message rules.

Workflow

1. Detect drift

npm run check:commandcode-catalog

This compares the repository snapshot against the latest published command-code npm package and reports added/removed models, changed efforts, and version drift. Use the report to scope the work.

2. Sync static model metadata

npm run sync:commandcode-catalog

Regenerates src/commandcode-catalog.ts and bumps the documented CLI version in README.md. Review the diff; the catalog also lists reasoning models without selectable efforts.

Never add efforts to the generated file by hand. Manual effort policy for reasoning models that upstream ships without levels lives in src/commandcode-catalog-overrides.ts and is merged at load time. When the sync report lists a model from that file under "New effort metadata", remove its override; tests/test-models.ts fails until you do.

3. Update display pricing (manual review)

Fetch https://commandcode.ai/docs/resources/pricing-limits and compare against src/pricing.ts:

  • Add entries for new models and remove entries for retired models. Missing models silently display zero cost, so MODEL_COSTS must cover the full catalog.
  • The pricing page's "Cache Read"/"Cache Write" columns map to cacheRead/cacheWrite; a "—" column means 0.
  • Update PRICING_LAST_VERIFIED to today's date.
  • Add or update TEMPORARY_PRICING entries for promotions with an end date, so tests fail when they expire.

Read the full file on GitHub · 79 lines

Files

What ships with it

2 files 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. today First seen · 79 lines · 44 tokens per session scan A 76c47e3258c8

Subscribe to this mod's changes

refresh-model-catalog is a skill published in the GitHub repository patlux/pi-commandcode-provider (138 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 817 once invoked, about $0.0002 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-03.

Related

Other skills, from other repositories

surf

Control Chrome browser via CLI for testing, automation, and debugging. Use when the user needs browser automation, screenshots, form filling, page inspection, network/CPU emulation, DevTools streaming, or AI queries via ChatGPT/Gemini/Perplexity/Grok/AI Studio.

w-winter/dot314 · 60 tokens

prose-review

Review prose written for others -- user-facing docs, prompts for other LLMs, inline comments, docstrings, and other-facing messages -- for local jargon leakage, orphaned references, missing grounding, and audience or genre misfit.

w-winter/dot314 · 50 tokens

text-search

Search indexed text corpora with qmd. For indexed content, prefer qmd over grep.

w-winter/dot314 · 22 tokens

repoprompt-tool-guidance-refresh

Refresh RepoPrompt tool guidance when the CLI/MCP surface changes. Tracks RepoPrompt CE (rpce-cli, the maintained target) across versions, and can diff the frozen Classic CLI (rp-cli) against CE. Uses /.pi/agent/skills/repoprompt-tool-guidance-refresh/scripts/track-rp-version.sh to capture/diff --help and -l (tool…

w-winter/dot314 · 115 tokens

xcodebuildmcp

Build/test Xcode projects via the XcodeBuildMCP MCP server using a local CLI wrapper for pi (no MCP support). Use when the user mentions Xcode, xcodebuild, iOS builds/tests, or XcodeBuildMCP.

w-winter/dot314 · 56 tokens

pi-review-gated-delivery

Use when coordinating review-gated delivery of discrete GitHub issues between one implementation peer and a review-only lead, with user-owned Changesets and approval-gated commits.

spences10/my-pi · 40 tokens