agentleFS
anorthanorth/agent-skills/skills/model-tiers/SKILL.md

model-tiers

Skill1 starsChanged 11 days agoMITView on GitHub

Resolves which model a subagent runs on from three tiers (cheap, standard, strong), listed in this skill's defaults or the user's ~/.agents/model-tiers.md, and matched to what the harness offers. Use when a skill says to spawn a subagent on a tier, when choosing models for reviewers or verifiers, or when the user asks to set up or change model tiers.

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 12 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If ~/.agents/model-tiers.md exists, it is the config, and replaces the defaults entirely.

    line 25
  2. Distinctive:

    Not every harness offers every model.

    line 31
  3. Distinctive:

    If the harness has no subagent tool, tell the user and stop.

    line 37
  4. Distinctive:

    If that version isn't offered, take the nearest newer one in the same family.

    line 47
  5. Distinctive:

    Never substitute a different family.

    line 48
  6. Distinctive:

    Read the config once per session, as Config describes, and take the tier's line.

    line 53
  7. Distinctive:

    If the tool rejects a model, try the next.

    line 57
  8. Distinctive:

    If the line runs out, omit the model so the subagent inherits the parent's, and say so.

    line 58
  9. Very specific:

    If the tier's line is missing: ask the user once which model to use for that tier this session, and offer to add it to …

    line 59
  10. Distinctive:

    When the user gives a count larger than the models they name, resolve the rest from the tier the calling skill uses.

    line 63
  11. Distinctive:

    If you don't know, say so.

    line 72
  12. Distinctive:

    Prefer a different model family (Claude, GPT, Gemini, …).

    line 73
  13. Distinctive:

    If the tier's line has no qualifying model, look in higher tiers, then lower tiers.

    line 77
  14. Distinctive:

    If none qualify at all, use the implementer's model.

    line 78
  15. Very specific:

    If it doesn't exist yet, copy defaults.md there.

    line 84

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Model tiers

Skills name a tier, not a model. This skill turns a tier, or a model the user names, into a model the current harness accepts.

Tiers

  • cheap: high-volume, narrow work. One theme of a themed review, scanning, summarising.
  • standard: routine implementation and review.
  • strong: judgment. Design, coordination, triage, reviewing or verifying others' work, the hardest changes.

Config

The tiers are one list for all harnesses. If ~/.agents/model-tiers.md exists, it is the config, and replaces the defaults entirely. Otherwise the config is defaults.md, in this skill's directory.

Each tier line names models in preference order, by family and version as a person would write them. An optional effort in parentheses applies where the harness supports it.

Not every harness offers every model. Entries the harness can't run are skipped.

Spawning

Spawn a fresh general-purpose subagent, not a fork of this conversation. A fork may ignore the model and carries the implementer's context. If the harness has no subagent tool, tell the user and stop; don't do the subagent's work inline.

Match a model name

To turn a config entry or a name the user gives ("Opus", "GPT") into a model, match it against the values the subagent tool accepts: its schema, or the list in a rejection message.

  • Cursor-style tools take full slugs, which encode effort: pick the slug for that model and effort.
  • Claude Code-style tools take an alias (opus, sonnet, …) and a separate effort parameter.
  • Match family and version. If that version isn't offered, take the nearest newer one in the same family. Never substitute a different family.
  • An entry with no match is unavailable here; skip it.

Resolve a tier

  1. Read the config once per session, as Config describes, and take the tier's line.
  2. Drop entries that don't match an available model.
  3. For a reviewer or verifier, take the first remaining entry that passes Reviewers differ from the implementer. For anything else, take the first.
  4. If the tool rejects a model, try the next. If the line runs out, omit the model so the subagent inherits the parent's, and say so.
  5. If the tier's line is missing: ask the user once which model to use for that tier this session, and offer to add it to ~/.agents/model-tiers.md. If you can't ask, omit the model and say so.

A model the user names explicitly wins over the config. If it has no match, or the match is ambiguous, ask. When the user gives a count larger than the models they name, resolve the rest from the tier the calling skill uses.

Reviewers differ from the implementer

A reviewer or verifier of work runs on a different model from the one that wrote it, so it doesn't share the author's blind spots.

  • The implementer is whichever model wrote the change: this session's model if you wrote it, or the model given to the implementing subagent. If you don't know, say so.
  • Prefer a different model family (Claude, GPT, Gemini, …). Where the harness offers one family, a different model in it.
  • Several reviewers doing the same thing each get a distinct model, all different from the implementer. Reviewers with different lenses can share a model.
  • If the tier's line has no qualifying model, look in higher tiers, then lower tiers. If none qualify at all, use the implementer's model. Say which in the report.
  • Flag a user-named model that matches the implementer.

Set up or change tiers

Changes for one environment go in ~/.agents/model-tiers.md. If it doesn't exist yet, copy defaults.md there. Then ask the user how they'd like it changed, and edit it.

Changes meant for every environment go in defaults.md instead.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.