openclaw-migration
Import an OpenClaw setup (memories, skills) into Hermes.
Route subagent tasks to the cheapest model that passes.
Claude Code
$ npx -y skills add NousResearch/hermes-official-plugins --skill model-routing --agent claude-code
Codex
$ npx skills add NousResearch/hermes-official-plugins --skill model-routing -a codex -y
Cursor
$ npx skills add NousResearch/hermes-official-plugins --skill model-routing -a cursor -y
Gemini CLI
$ npx skills add NousResearch/hermes-official-plugins --skill model-routing -a gemini-cli -y
GitHub Copilot
$ npx skills add NousResearch/hermes-official-plugins --skill model-routing -a github-copilot -y
OpenCode
$ npx skills add NousResearch/hermes-official-plugins --skill model-routing -a opencode -y
Windsurf
$ npx skills add NousResearch/hermes-official-plugins --skill model-routing -a windsurf -y
name: model-routing
description: Route subagent tasks to the cheapest model that passes.
version: 0.1.0
author: Ziad Osama El-Boshy (ziadelboshy)
license: MIT
platforms: [linux, macos, windows]
metadata:
hermes:
tags: [delegation, model-routing, subagents, cost, ledger]Split big work into subagent tasks and send each one to the cheapest of your advanced-delegation model routes that reliably passes it, escalating only when the model itself was the problem. A stdlib helper script keeps a local ledger of outcomes, so route suggestions learn from real test results. The skill adds no tools; it uses `delegate_task` with the routes you defined in Model routes mode (`delegation.backend: model_map`).
research, or an implement -> test -> fix loop with mechanical parts.
Don't use for: small work (roughly under 15 minutes or 1-2 files), tightly coupled changes, work that needs the user's back-and-forth, or a split whose handoff costs more than the cheaper route saves. Subagents start blank and re-read files.
-> strongest**, each with a one-line description. The order is the ladder this skill climbs. Set them up with `hermes delegation config`, or by hand:
delegation:
backend: model_map
backends:
model_map:
options:
- name: fast
description: "Fully specified, verifiable work: renames, reformatting."
provider: <provider-a>
model: <small-model>
- name: standard
description: "Specified feature slice or bug fix with tests."
provider: <provider-b>
model: <mid-model>
reasoning_effort: medium
- name: deep
description: "Cross-module work, hard debugging, final review."
provider: <provider-b>
model: <strong-model>
reasoning_effort: high
default: standardRun every command through the `terminal` tool, in the profile that delegates:
terminal(command='python "${HERMES_SKILL_DIR}/scripts/route_ledger.py" sync-routes', timeout=240)Hermes fills in `${HERMES_SKILL_DIR}` (this skill's folder inside the plugin) when it loads this file; if `skills.template_vars` is off, use the `skill_dir` that `skill_view` reports.
`sync-routes` reads your routes in config order with `hermes config get delegation.backends.model_map.options --json` (falling back to parsing `hermes delegation config --show`), spending at most 200 seconds on those calls, and stores names, descriptions and `provider:model@effort[+tier][+daybreak]` (never keys or URL credentials) in `routes.json` beside the ledger. Use `--from FILE` to read saved output of either command (UTF-8, or UTF-16 with a BOM), `--hermes PATH` when `hermes` is not on PATH. Malformed routes are skipped with a warning.
python "${HERMES_SKILL_DIR}/scripts/route_ledger.py" sync-routes [--from FILE|-] [--hermes PATH]
python "${HERMES_SKILL_DIR}/scripts/route_ledger.py" ladder
python "${HERMES_SKILL_DIR}/scripts/route_ledger.py" classes
python "${HERMES_SKILL_DIR}/scripts/route_ledger.py" suggest --class <class> --difficulty <1-5> [--risk high]
python "${HERMES_SKILL_DIR}/scripts/route_ledger.py" add --class <class> --difficulty <n> [--risk high] --route <route> --outcome pass|fail --attempt <n> [--cause <cause>] --task "<what>" --evidence "<test command + result>" [--project <name>]
python "${HERMES_SKILL_DIR}/scripts/route_ledger.py" stats [--class <class>]Causes (required for a failure): `model`, `spec`, `context`, `env`, `flaky`. Files: ledger `<HERMES_HOME>/plugin-data/advanced-delegation/routing-ledger.jsonl`, ladder `routes.json` in the same folder.
1. **Sync the ladder.** Run `sync-routes`, then `ladder`. Done when the printed order runs cheapest -> strongest; if not, reorder the routes with `hermes delegation config` and sync again. 2. **Decide whether to split** (When to Use above). Done when you either do the work in the main session or have a list of independent tasks. 3. **Plan so nothing is left to guess**: files, data shapes, edge cases, acceptance tests. For multi-module work write a contract doc first (see `references/workflow.md`). Done when every task has an acceptance check you can run. 4. **Build the task table**: task, class (`classes`), difficulty 1-5, risk low/high, owned files (no overlap between parallel tasks), acceptance check. Route each with `suggest`. Done when every row has a suggested route. 5. **Dispatch** independent tasks in parallel with `delegate_task`, each task's `option` set to its route and a self-contained brief: owned files, the contract, "do not commit", "do not edit skills; put proposed skill text in your final reply". Dependent tasks wait for their inputs. Done when every task is running or queued behind a named dependency. 6. **Verify yourself** with real tests (`terminal`, `read_file`, `search_files`); a subagent's "done" is not a pass. Check its chosen defaults and limits against the spec. Done when each task has a test result you ran. 7. **Record every result**, passes included, with `add` and the real test evidence. Done when the ledger has one row per attempt. 8. **Handle failures by cause**: `model` -> rerun on `escalate_on_model_failure_to`; `spec`/`context` -> fix the brief, same route; `env`/`flaky` -> fix or retry, same route. Done when every failed
☤ The official plugins for Hermes Agent, built and maintained by Nous Research: Home Assistant, Spotify, Claude Subscription DirectSDK and more, one install away from the Hermes plugin catalog.
Import an OpenClaw setup (memories, skills) into Hermes.
Use when inspecting or editing Blender scenes through the official Blender Lab MCP server. Check the add-on connection, read the…
Write, edit, extend and split songs with ElevenLabs Music.
Write ElevenLabs sound effect prompts, loops and packs.
Use when defining or reviewing repository security policy.
Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki,…
Query and invoke tools on MCP servers using fastmcp list and fastmcp call. Use when you need to discover what tools a server…
Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain,…
小红书内容发布技能。支持两种发布模式:(1) 上传图文模式 - 图片+短文;(2) 写长文模式 - 长篇文章+排版模板。 支持两种输入方式:用户提供完整内容和图片/图片URL,直接发布;或提供网页URL,自动提取内容和图片。…