live-run
Skill1 starsChanged 8 days agoMITView on GitHub
Use when the maintainer asked for a live run of a harness with a model-router plugin, or when you are about to tell the maintainer that a fact about a harness needs one. Not for an ordinary fix, a failing test or a build.
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- add-providerSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
43 rules. About 0 are common, 21 are distinctive, and 22 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈21
Distinctive · estimate
This author's own choices. Worth a look.
22
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Follow the steps in order.
- Distinctive: line 14
Search the tests for the fact with git grep.
- Distinctive: line 16
Read only the sections whose headings match.
- Very specific: line 18
Search the client's page in that clone as "Before a run" in its Home.md says.
- Distinctive: line 19
Stop when a test, a section or an entry records the fact on the client version in use, and say where.
- Distinctive: line 20
When the maintainer asked for the run and the fact is recorded, ask whether to run it anyway.
- Distinctive: line 28
Run a harness that has no turn cap under a time limit.
- Very specific: line 32
Add -f omp=minimum to test the minimum omp pin.
- Distinctive: line 37
No live run starts without the maintainer's word, paid or free, the evals workflow included.
- Distinctive: line 43
Ask the maintainer, and state the harness and its version, the model, the cap and the question the run answers.
- Distinctive: line 49
Never restore a settings file whole.
- Distinctive: line 51
Use the installed harness, and note its version for the entry.
- Distinctive: line 52
Ask the maintainer when the harness is absent or the question needs another version.
- Distinctive: line 54
Stop at a login prompt, and hand the run to the maintainer.
- Distinctive: line 55
When isolation cannot serve the run, stop and ask the maintainer.
- Distinctive: line 59
Never print or log a key, and never put one into a brief, a commit or a wiki entry.
- Distinctive: line 63
Write a key only where the harness reads it, inside the isolated copy.
- Distinctive: line 64
Delete the copy after the run.
- Very specific: line 79
Start claude from an empty folder, so that no project settings load, and give --plugin-dir an absolute path.
- Distinctive: line 80
Ask the maintainer's word for this form, and say that the run reads the real folder and writes its session history there.
- Very specific: line 82
Run: claude -p "<prompt>" --model haiku --max-turns <n> --output-format stream-json --verbose --debug-file <log>, as the Subagent events …
- Very specific: line 84
After such an error read the debug log anyway, because the turn has loaded the hooks module and run session.start, as Hooks module says.
- Distinctive: line 85
When the check needs more than that load and that hook, run it again isolated for a model turn.
- Very specific: line 86
Read the line: the debug log at <log> holds the routing line, as the Subagent events run and
- Very specific: line 92
Add PI_NATIVES_DIR=<absolute path in scratch> when the real configuration folder must stay untouched, because a start can touch its …
- Very specific: line 93
Run: omp -p --model <provider/model-id> "<prompt>", as the omp tool_call cost and timeout run ran it, with the planned model, because [omp …
- Distinctive: line 94
Read the line: with no UI, omp prints it to standard error, as The batch line says.
- Very specific: line 102
Start that run's Gateway with --bind loopback --auth token and the token in OPENCLAW_GATEWAY_TOKEN, as OpenClaw project skills and the …
- Very specific: line 103
Run: start the Gateway with openclaw gateway run, with gateway.tools.allow naming sessions_spawn, then send POST /tools/invoke with tool …
- Very specific: line 104
Read the line: openclaw logs --follow --plain, as The log line says.
- Very specific: line 105
After the run: send SIGINT or SIGTERM to the Gateway process this run started, and wait for it to exit before you delete the copy, as …
- Distinctive: line 106
Stop no Gateway the run did not start.
- Very specific: line 114
Run no hermes --version or hermes --help command as the first one under the fresh home: each skips the build of the home's dependency …
- Very specific: line 115
Run no hermes pm command there either: it skips that build too, and it manages the install, which a live run leaves alone.
- Very specific: line 117
Remove HERMES_DISABLE_LAZY_INSTALLS from the environment of the commands, because with it a command skips the build and exits with the same …
- Very specific: line 118
Run: hermes -z "<prompt>" -m <model> --provider <provider> -t delegation --ignore-rules --usage-file <file>, as the Hermes task parameters …
- Very specific: line 119
Read the line: agent.log in the logs folder of the home, unless the plugin host drops INFO lines, as Hermes runtime, logs and environment …
- Very specific: line 121
After the run: hermes gateway stop with the same HERMES_HOME, because a hermes -z turn starts a gateway, as Hermes runtime, logs and …
- Very specific: line 137
Write the entry in the wiki clone from the template under "Adding an entry" in its Home.md.
- Distinctive: line 139
Put the entry at the top of the client's page.
- Very specific: line 140
Check the entry against "What an entry never holds" in Home.md.
- Very specific: line 141
Add a harness fact the run shows to docs/clients.md as one plain sentence, by the rules of Adding evidence.
- Very specific: line 142
Put its evidence on the client's evidence page in the wiki clone, as "Adding evidence" in its Home.md says.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
Live run
A live run starts a real harness with a model-router plugin and reads what it does.
Follow the steps in order.
The bans of Live runs in AGENTS.md hold at every step.
Look for the fact first
- Search the tests for the fact with
git grep. - List the headings of
docs/clients.mdwithgrep -n '^#' docs/clients.md. - Read only the sections whose headings match.
- Clone the wiki outside the repository:
wiki="$(mktemp -d)/wiki" && git clone https://github.com/Akurganow/model-router.wiki.git "$wiki". - Search the client's page in that clone as "Before a run" in its
Home.mdsays. - Stop when a test, a section or an entry records the fact on the client version in use, and say where.
- When the maintainer asked for the run and the fact is recorded, ask whether to run it anyway.
Plan the cost
- Plan one case.
- Pick the model:
haikuin Claude Code, the omp case's model inevals/cases.json. - For OpenClaw and Hermes, pick the models of that client's latest recorded run, unless the maintainer names others.
- Cap the turns, for example with
--max-turnsin Claude Code. - Run a harness that has no turn cap under a time limit.
- For Hermes under a fresh home, plan 20 minutes for the first command, because it builds the home's dependency environment, as Hermes project skills and home says.
- For Claude Code and omp, when the question is whether the first spawn routes after a change to
src/, a plugin folder or a pinned client version, plan the evals workflow instead of a local run. - Plan it for the clients the change touches:
gh workflow run evals.yml --ref <branch> -f clients=omp. - Add
-f omp=minimumto test the minimum omp pin. - For any other question, plan a local run.
Ask first
No live run starts without the maintainer's word, paid or free, the evals workflow included. A request that already names the harness and its version, the model, the cap and the question is that word. The word covers the run and its entry on the wiki. For a Claude Code model turn, the word also names the real configuration folder, as the Claude Code recipe below says. Paid runs says what needs no clearance.
- Ask the maintainer, and state the harness and its version, the model, the cap and the question the run answers.
- For Hermes under a fresh home, state that dependency build and its time limit too.
Isolate the harness
Install or update no harness. Never restore a settings file whole; when a run changed one by mistake, revert only the entries it set, after checking each.
- Use the installed harness, and note its version for the entry.
- Ask the maintainer when the harness is absent or the question needs another version.
- Point the harness at a copy of its configuration folder or a fresh home, as its recipe below says.
- Stop at a login prompt, and hand the run to the maintainer.
- When isolation cannot serve the run, stop and ask the maintainer.
Keep keys secret
Never print or log a key, and never put one into a brief, a commit or a wiki entry.
- Take each key from the environment by the variable name its plugin README gives: Claude Code, omp, OpenClaw, Hermes.
- Take the harness's own provider key from the environment the same way.
- Write a key only where the harness reads it, inside the isolated copy.
- Delete the copy after the run.
Run the harness
- Fill the four slots of the harness in order: load, isolate, run, read the line.
Claude Code
- Load:
--plugin-dir plugins/model-router, as the Subagent events run loaded it. - Isolate a check with no model turn:
CLAUDE_CONFIG_DIR=<copy>, as Claude Code project skills and configuration says. A model turn under a copy ends in a sign-in error, as the same section says. - Isolate a check with a model turn: keep the real configuration folder, and add
--setting-sources project --strict-mcp-config. With these flags the run reads no user settings and no MCP server of the user, and it is signed in, as the same section says. The plugin's stored options stay out with the user settings, so each option takes its default, as Manifest says. A check of an option other than its default is outside this form: ask the maintainer. Startclaudefrom an empty folder, so that no project settings load, and give--plugin-diran absolute path. Ask the maintainer's word for this form, and say that the run reads the real folder and writes its session history there. Change no file in that folder. - Run:
claude -p "<prompt>" --model haiku --max-turns <n> --output-format stream-json --verbose --debug-file <log>, as the Subagent events run ran it without the cap and the log. A sign-in error that ends a turn is not the login prompt of the step "Stop at a login prompt": the turn has ended, and nothing waits for input. After such an error read the debug log anyway, because the turn has loaded the hooks module and runsession.start, as Hooks module says. When the check needs more than that load and that hook, run it again isolated for a model turn. - Read the line: the debug log at
<log>holds the routing line, as the Subagent events run and--debug-fileshow.
omp
- Load:
omp plugin marketplace add <checkout>, thenomp plugin install model-router@model-router, as the omp install and update run did. - Isolate:
PI_CONFIG_DIR=<folder relative to home>andPI_CODING_AGENT_DIR=<copy>/agent, as omp project skills and folders says. AddPI_NATIVES_DIR=<absolute path in scratch>when the real configuration folder must stay untouched, because a start can touch itsnatives/<version>entry, as the same section says. - Run:
omp -p --model <provider/model-id> "<prompt>", as the omp tool_call cost and timeout run ran it, with the planned model, because omp project skills and folders puts an explicit model before the saved default. - Read the line: with no UI, omp prints it to standard error, as The batch line says.
OpenClaw
- Load: link the plugin as Try the OpenClaw plugin from a checkout says, then set it up as Set up says.
- Isolate:
OPENCLAW_HOME,OPENCLAW_STATE_DIRandOPENCLAW_CONFIG_PATHon the copy, as OpenClaw project skills and the Gateway says. Setlogging.fileto a path inside the home before the other commands, because the default file log lies outside it, as OpenClaw runtime, logs and environment says. For a run with no channel and no model, setOPENCLAW_DISABLE_BONJOUR=1,OPENCLAW_NO_RESPAWN=1,OPENCLAW_SKIP_CHANNELS=1,OPENCLAW_SKIP_CRON=1andOPENCLAW_NO_AUTO_UPDATE=1; OpenClaw runtime, logs and environment says what each switches off. Start that run's Gateway with--bind loopback --auth tokenand the token inOPENCLAW_GATEWAY_TOKEN, as OpenClaw project skills and the Gateway says. - Run: start the Gateway with
openclaw gateway run, withgateway.tools.allownamingsessions_spawn, then sendPOST /tools/invokewithtoolsessions_spawnand itsargs, as OpenClaw project skills and the Gateway says and the OpenClaw hook and spawn runs ran it. - Read the line:
openclaw logs --follow --plain, as The log line says. - After the run: send
SIGINTorSIGTERMto the Gateway process this run started, and wait for it to exit before you delete the copy, as OpenClaw project skills and the Gateway says. Stop no Gateway the run did not start.
Hermes
- Load: commit the change, then run
hermes plugins install "file://<checkout>#plugins/model-router-hermes" --enable, because the install takes the committedHEAD, as Hermes project skills and home says. - Then set
hermes config set delegation.backend model-router, as Install says, and the slot models, as Set up says. - Isolate:
HERMES_HOME=<fresh home>for every command after the version check, as Hermes project skills and home says. Take the version fromhermes --versionwith noHERMES_HOME. Run nohermes --versionorhermes --helpcommand as the first one under the fresh home: each skips the build of the home's dependency environment and exits withno dependency environment is committed for this install, as the same section says. Run nohermes pmcommand there either: it skips that build too, and it manages the install, which a live run leaves alone. Give the first command under the fresh home the 20 minutes the plan holds. RemoveHERMES_DISABLE_LAZY_INSTALLSfrom the environment of the commands, because with it a command skips the build and exits with the same message. - Run:
hermes -z "<prompt>" -m <model> --provider <provider> -t delegation --ignore-rules --usage-file <file>, as the Hermes task parameters run ran it. - Read the line:
agent.login thelogsfolder of the home, unless the plugin host drops INFO lines, as Hermes runtime, logs and environment says. The task'sroute.labelcarries it too, as Hermes routing and refusals shows; where ahermes -zrun shows it is not documented. - After the run:
hermes gateway stopwith the sameHERMES_HOME, because ahermes -zturn starts a gateway, as Hermes runtime, logs and environment says.
Drive a check by a script
A script may run the harness's commands and read what they print, with or without a model turn. These steps add to the recipe of the script's harness.
- Name the script's option for a file of keys anything but
--env-file: Node reads that option even after the script's name, and exits when the file is missing. - Make the script's pass or fail line name each known harmless diagnostic it passes over, so that an expected warning prints no
FAIL. - In OpenClaw, when the script puts the plugin into
plugins.load.pathswith no install, pass over the trust warning and fail on any other diagnostic, as OpenClaw entry and registration says. - In OpenClaw, run a control that writes an undeclared key into the config file only after the Gateway has stopped, because such a file stops the Gateway from starting, as OpenClaw package files says.
- In Hermes, run a Python step that imports Hermes on the interpreter that the home's
facts.jsonnames, as Hermes project skills and home says. - In Hermes, give a check that needs
registera turn or a load of its own, because the install does not callregister, as Hermes install and update says.
Record the run
- Write the entry in the wiki clone from the template under "Adding an entry" in its
Home.md. - Give a run of the evals workflow the kind
evals, and link no run. - Put the entry at the top of the client's page.
- Check the entry against "What an entry never holds" in
Home.md. - Add a harness fact the run shows to
docs/clients.mdas one plain sentence, by the rules of Adding evidence. - Put its evidence on the client's evidence page in the wiki clone, as "Adding evidence" in its
Home.mdsays. Set the clone's author to the one its history holds, because the wiki is public and the commit must not carry the machine's identity:
git -C "$wiki" config user.name "$(git -C "$wiki" log -1 --format=%an)" git -C "$wiki" config user.email "$(git -C "$wiki" log -1 --format=%ae)"- Make one commit with the entry and the evidence, and push once.
- Without push rights, put the text of the entry and the evidence into your report.
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
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.

