update-cli-models

update-cli-models is a skill for Claude Code from richfrem/agent-plugins-skills. It costs 111 tokens per session (1,737 once invoked), scanned A, original, MIT.

A maintenance workflow for keeping command-line model catalogs and cheapest-model references up to date. It checks official model names and prices, updates the main records, and synchronizes their copies.

In plain words
What is it for?
Use it to refresh model metadata for Copilot, Agy, Claude, Codex, and Llama command-line tools, including the shared cheapest-model files.
Why use it?
It removes the need to manually compare model listings and pricing across several command-line backends. It also helps prevent stale model IDs and cheapest-model choices.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument; mentions Codex.

Part of the cli-agents plugin — 14 skills, 13 agents shipped together

Good fit Use it to refresh model metadata for Copilot, Agy, Claude, Codex, and…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/richfrem/agent-plugins-skills/update-cli-models
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 richfrem/agent-plugins-skills --skill update-cli-models
Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills

Made for: Claude Code.

Or install cli-agents, the plugin that ships this one along with the rest of its 14 skills, 13 agents.

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 update-cli-models

README.md
[![agentmods](https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/update-cli-models.svg)](https://agentmods.dev/skills/richfrem/agent-plugins-skills/update-cli-models)
Your own site
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/update-cli-models"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/update-cli-models.svg" alt="Measured on agentmods" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,737 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.00111 $0.01737
Opus 5 $0.00056 $0.00869
Sonnet 5 $0.00022 $0.00347
Haiku 4.5 $0.00011 $0.00174

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

Security

Grade A, and why

update-cli-models 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/sync_cheapest_models.py), 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.

plugins/cli-agents/skills/update-cli-models/SKILL.md · 147 lines

How it starts

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

update-cli-models: Model Catalog Update Protocol

When triggered, execute all steps below in order. This is an active update run — not a reference. Fetch live data, diff against current JSON files, write changes, and sync at the end.


Reference Files (master copies — only these are ever edited directly)

File CLI Key field
plugins/cli-agents/references/copilot-models.json copilot cli_id uses dot notation e.g. claude-sonnet-4.6
plugins/cli-agents/references/agy-models.json agy Gemini models with thinking levels
plugins/cli-agents/references/claude-models.json claude cli_id uses dash notation e.g. claude-sonnet-5 — more models than Copilot
plugins/cli-agents/references/codex-models.json codex OpenAI models via codex CLI
plugins/cli-agents/references/cheapest_models.json all Master cheapest pick per backend
plugins/cli-agents/references/cheapest_models.md all Master human-readable cheapest + Copilot tier table

Copies under individual skills are never edited directly — the sync script handles them.


Step 1 — Fetch current data from official sources

Fetch each source using read_url_content. Use the markdown API endpoints where available — do NOT scrape raw HTML.

CLI Fetch URL
copilot pricing https://docs.github.com/api/article/body?pathname=/en/copilot/reference/copilot-billing/models-and-pricing
copilot model IDs https://docs.github.com/api/article/body?pathname=/en/copilot/reference/ai-models/supported-models
agy (Gemini) https://ai.google.dev/pricing
claude https://platform.claude.com/docs/en/about-claude/models/overview
codex (OpenAI) Try https://openai.com/api/pricing/ — if 403, use search_web for "OpenAI API pricing [current year] per million tokens"

For each source extract:

  • Exact CLI identifier (not display name)
  • Input / output price per 1M tokens
  • Cached input price
  • Cache write cost (Anthropic only)
  • Context window (if available)
  • Long context pricing tiers and thresholds
  • Status: GA / preview / withdrawn / deprecated

Read the full file on GitHub · 147 lines

Files

What ships with it

9 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. 3d ago First seen · 147 lines · 111 tokens per session scan A c2a3cdc7caf4

Subscribe to this mod's changes

update-cli-models is a skill published in the GitHub repository richfrem/agent-plugins-skills (6 stars, last pushed today), licensed MIT. It adds 111 tokens to every session and 1,737 once invoked, about $0.0006 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

swarm-scripts

Bulk, repeat, fan-out, or data-heavy work: write and run swarm scripts (inline script-run, named script-upsert, durable launch-script-run). Covers the script-vs-tool rubric, the authoring contract (args first, ctx second), the seed catalog, connections and secrets, dbquery, and exposing a script as an API.

desplega-ai/agent-swarm · 82 tokens

todos

Handle the agent personal todos.md file.

desplega-ai/agent-swarm · 9 tokens

mcp-builder

Scaffolds and ships MCP servers in Python (FastMCP) or TypeScript (@modelcontextprotocol/sdk) — tools designed around workflows rather than raw endpoints, with model-guiding schemas and error messages, pagination, a direct-call test harness, and wiring into .mcp.json or claude mcp add. Use when the user says "build an…

alebgl77/claude-inc · 108 tokens

Prompt Version Control Workflow

Sets up a prompt versioning system with naming conventions, diff tracking, A/B evaluation gates before promotion, and rollback triggers.

Notysoty/openagentskills · 30 tokens

slip

Send AI-written text to a HUMAN outside this chat via a one-tap Slip note and reply with a single URL. Default: toss — a one-shot note (Markdown rendered, readable on open, tear-to-delete, auto-expires in 24 hours) for one-way delivery like checklists, summaries, code snippets. Use push only when the human is expected…

sudo5zzb/slip-skill · 200 tokens

situate-what

Use when the user asks what is going on and needs a five-line summary of the session, branch, pull request, and ticket.

tony/skills · 32 tokens