Index of every page on this site: llms.txt
All skills
weave-os avatar

/router-models

@14dcf15
by Weaveweave-os/router5.6k stars
169
Run it yourself

List the models the Weave Router may route to, and turn them on or off.

  • 1 file
  • 2.1 KB
  • Updated 2 weeks ago
  • GitHub
Use this Skill: https://skilld.dev/gh/weave-os/router/router-models

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈22 tokens for metadata: the name and description. ≈510 when used: this file.

Description uses 1.1% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈87 characters, or 1.1%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

<!-- weave-router managed router-models skill -->

Weave Router model selection

When the user invokes $router-models, show which models this installation lets the router pick from, and change that selection when asked. This is the same list — and the same stored setting — as the checkboxes on the router dashboard's settings page.

Start by running:

npx --package @weave-os/router -y -- weave-router models --codex{{SCOPE}}

That prints every deployed model grouped by provider, with [x] for models the router may pick and [ ] for models it may not. Present it back as a compact checklist in that same [x] / [ ] form, keeping the provider grouping and the exact model ids — the user selects models by id.

Then:

  • If the user named models or providers, work out whether they want them on or off from how they phrased it, and apply it with weave-router models enable <id>... --codex{{SCOPE}} or weave-router models disable <id>... --codex{{SCOPE}} (add providers before enable/disable to switch a whole provider). Several ids can go in one call. Then re-run the list and show the result.
  • If they named nothing, stop after the list and ask which ones to change. Never change anything they did not ask for.

Other things they might ask for:

  • Rank models by preference: weave-router models prefer <id> <id>... --codex{{SCOPE}} (order matters), or weave-router models prefer clear --codex{{SCOPE}} to drop the ranking.
  • Providers only: weave-router models providers --codex{{SCOPE}}.

If the command reports that this router doesn't expose model selection, that's a Weave-hosted router: model selection belongs to the whole organization there, so tell the user to change it at https://app.weaveos.com/organization/settings/weave-router/models — don't try to work around it. Its listing carries no on/off state, so present it as a plain list; don't infer which models are enabled.

Disabling a model takes effect on the router's next routing decision; no restart is needed.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 14dcf15. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 weeks ago

README badge

README badge for weave-os/router/router-models