agent-models

agent-models is a skill for Codex from yzhao062/anywhere-agents. It costs 95 tokens per session (4,077 once invoked), scanned B, original, Apache-2.0.

A skill for managing the AI model and work setting assigned to each agent role through one registry. It supports roles used by interactive sessions, reviewers, audits, and other agents.

In plain words
What is it for?
Use it to view, check, or change role assignments through the supplied resolver and configuration files.
Why use it?
A single registry avoids conflicting model settings in different tools and repositories.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Good fit Use it to view, check, or change role assignments through the supplied resolver and configuration files.

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

Made for: 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 agent-models

README.md
[![agentmods](https://agentmods.dev/badge/skills/yzhao062/anywhere-agents/agent-models/github.svg)](https://agentmods.dev/skills/yzhao062/anywhere-agents/agent-models)
Your own site
<a href="https://agentmods.dev/skills/yzhao062/anywhere-agents/agent-models"><img src="https://agentmods.dev/badge/skills/yzhao062/anywhere-agents/agent-models/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 agent-models

Your own site · 80×15
<a href="https://agentmods.dev/skills/yzhao062/anywhere-agents/agent-models"><img src="https://agentmods.dev/badge/skills/yzhao062/anywhere-agents/agent-models.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,077 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00095 $0.04077
Opus 5.5 $0.00038 $0.01631
Sonnet 5.5 $0.00019 $0.00815
Haiku 4.5 $0.00010 $0.00408

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

Security

Grade B, and why

agent-models scanned grade B with 1 finding 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 6d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

| Claude interactive | `user/settings.json` carries `model`, `effortLevel`, and the env entry `CLAUDE_CODE_EFFORT_LEVEL`; `agent_models.py render` keeps them equal to the registry, and bootstrap merges the file into `~/.
packages/pypi/anywhere_agents/composer/skills/agent-models/SKILL.md · 122 lines

How it starts

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

agent-models

Overview

One file names the model and effort of every agent: user/agent-models.json, the registry. One script reads it: scripts/agent_models.py, the resolver. Nothing else in a source repository or a consumer names a concrete model or effort. A dispatcher asks the resolver at run time, and bootstrap writes the interactive values into each tool's own config.

This skill does not repeat the values. Run show to see them.

Find the resolver at scripts/agent_models.py in a source repository (agent-config, anywhere-agents) and at .agent-config/repo/scripts/agent_models.py in a consumer. Run it with the project's Python (.agent-config/repo/scripts/_python or ~/.claude/hooks/_python finds one). The commands are the same under Claude Code, Codex, and any other agent, on macOS, Linux, and Windows.

The rules

  1. One row per family. The registry has a row for claude, codex, and agy, and an optional row for grok. Every role of a family runs on that row unless the registry lists an override for the role. The advisor is the one role that never inherits it.
  2. Roles. interactive is the session a person types into. reviewer covers every review: a /vet reviewer, a venue or proposal review panel, an internal-review audit. worker is a Claude subagent or Workflow agent that does fan-out work. prun-worker is a unit prun runs. premium is optional: a model whose plan allowance is small, for a writing task or another task the user decides is worth it. Nothing dispatches to it automatically, and every task works without it. advisor is the model Claude Code's advisor tool consults. It is optional, lists claude only, and carries a model with no effort. See "Use the advisor row". A role other than the advisor with no override equals the family row, so a review runs on the same model and effort as the interactive session by default.
  3. Exceptions are listed, never implied. An override exists only as an entry under roles in the registry. If a role should differ from its family, add the entry there; do not put a value in a script, a skill, or a rule file.
  4. No literal outside the registry. Code resolves at run time. Prose states the rule and points here. tests/test_agent_models.py scans the tracked files and fails on a concrete model name or effort value outside the registry, the changelog, archived records, and test fixtures. A line that must quote one (a past measurement, a parser example) carries the marker agent-models: allow.
  5. Per-run overrides stay possible. CODEX_DISPATCH_MODEL, CODEX_DISPATCH_REASONING, ANTIGRAVITY_DISPATCH_MODEL, ANTIGRAVITY_DISPATCH_EFFORT, GROK_DISPATCH_MODEL, and GROK_DISPATCH_EFFORT change one run and outrank the registry. They are for a single run, not a place to keep a default. The Antigravity and Grok variables are read by both /vet and prun.
  6. Effective, not configured. A value counts only when the CLI reports it ran on that value. Every dispatcher records the requested and the actual model and effort, and prints MODEL-MISMATCH when they differ. See "Check that it took effect".

Read the full file on GitHub · 122 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. 6d ago Changed 80e87bc2ffab
  2. 13d ago Changed 198bd19e55c7
  3. 15d ago Changed · +13 lines · +4 tokens per session 2be917976d9b
  4. 17d ago Changed · +1 lines 89be9deb8323
  5. 18d ago First seen · 108 lines · 91 tokens per session scan B a327639b1c4c

Subscribe to this mod's changes

agent-models is a skill published in the GitHub repository yzhao062/anywhere-agents (264 stars, last pushed today), licensed Apache-2.0. It adds 95 tokens to every session and 4,077 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-12.

Related

agent-models compared with skills from other repositories

agent-models next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-modelsyzhao062/anywhere-agentsSkill264todayApache-2.0B95Codex
detecting-typosquatting-packages-in-npm-pypiadriannoes/awesome-agentic-aiSkill1082d agoMITA132Claude Code, Codex
detecting-typosquatting-packagesadriannoes/awesome-agentic-aiSkill1082d agoMITA66Claude Code, Codex
detecting-dependency-confusionadriannoes/awesome-agentic-aiSkill1082d agoMITA24Claude Code, Codex
bumblebeeaboalrejal-ai/skillsSkill13mo agoMITB29Claude Code, Codex
performing-supply-chain-attack-simulationxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A54Claude Code, Codex
pi-ralph-wiggumtmustier/pi-extensionsSkill5063d agoMITA49Claude Code, Codex