model-orchestrator
AGENTS.md21 starsChanged 2 months agoMITView on GitHub
When configuring a project, run npx model-orchestrator --list to inspect supported IDs. Preview a scoped setup with: When the selection and target paths are correct, remove --dry-run. Interactive installs apply the main agent's catalog-supported project rules and settings with backups under the single confirmation; use --no-apply or the edit screen to keep activation manual. Headless --yes applies activation only with --apply-snippets. Every non-dry install runs the local presence health check automatically; live --run canaries stay opt-in. Read the generated README.md…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 1 is common, 1 is distinctive, and 8 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 5
When configuring a project, run npx model-orchestrator --list to inspect supported IDs.
- Very specific: line 15
When aunx is installed, use:
- Distinctive: line 25
When using the Claude Code plugin, follow plugin/README.md.
- Very specific: line 30
Catalog: when adding an AI or companion, edit src/catalog.js.
- Very specific: line 31
Templates: when changing installed instructions, edit templates/.
- Very specific: line 33
Run npm run gen:agensi after template changes.
- Very specific: line 38
Systemd: when touching templates/advanced/vm/jobs/, run test/systemd/run-on-ubuntu.sh by hand on a Linux host with systemd to check …
- Common: line 40
Secrets: use environment-variable names only.
- Very specific: line 42
Verify: before proposing a change, run npm test and report tests, pass, fail, skipped and exit code.
- Very specific: line 43
Style: use short condition-to-action instructions and no em dashes.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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
Agent instructions
Use the model router in a project
When configuring a project, run npx model-orchestrator --list to inspect supported IDs. Preview a scoped setup with:
npx model-orchestrator --yes --level 2 --ais claude-code,codex --project <repo> --dir <repo>/ai-orchestrator --dry-runWhen the selection and target paths are correct, remove --dry-run. Interactive installs apply the main agent's catalog-supported project rules and settings with backups under the single confirmation; use --no-apply or the edit screen to keep activation manual. Headless --yes applies activation only with --apply-snippets. Every non-dry install runs the local presence health check automatically; live --run canaries stay opt-in. Read the generated README.md and the final "What's left for you" list for any remaining sign-in or paste steps. When updating an existing install, use --update-docs to regenerate unchanged managed documents; edited files stay and are named.
When choosing tools, select companions explicitly with --tools. Defaults select none, including with --yes. With activation enabled, supported project MCP configuration is merged with backups; global configuration remains a manual step. The installer runs no third-party installs or login flows. Uninstall removes unchanged recorded activation blocks and the hook or MCP entries it added, preserving surrounding content.
When aunx is installed, use:
- Worker call:
aunx cli-run codex --brief TASK_BRIEF.md --effort high. - Shared facts:
aunx context CONTEXT.md. - Task scope:
aunx brief new TASK_BRIEF.md. - Verification:
aunx checks ACCEPTANCE_CHECKS.json, then fill and run trusted commands withaunx checks run ACCEPTANCE_CHECKS.json. - Routing suggestion:
aunx route "rename this file", then apply the installedROUTING.mdto the actual context. - Class route:
aunx route --class frontier|fast|swarm [--data public|private] [--write]. - Own measurements:
aunx route-metrics --summary; use proof/README.md for package measurements and scripts.
When using the Claude Code plugin, follow plugin/README.md. The installer supplies project-specific routing rules. Use llms.txt for the documentation index.
Change this repository
- Read first:
CONTRIBUTING.md,src/README.md,SECURITY.md(security scope) anddocs/security-review-history.md. - Catalog: when adding an AI or companion, edit
src/catalog.js; keep templates free of logic. - Templates: when changing installed instructions, edit
templates/. Use public terms: task brief, context file, acceptance checks, definition of done and result. - Generated files: run
npm run gen:catalogafter catalog changes andnpm run gen:pluginafter plugin-template changes.plugin/is generated fromtemplates/; onlyplugin/README.md,plugin/hooks/hooks.jsonandplugin/.claude-plugin/icon.svgare hand-owned. Every package run the plugin prints pins the release version (npx model-orchestrator@<version>); bumpplugin/README.mdwith each release, because the directory review refuses floating versions andtest/plugin.test.jschecks it.test/plugin.test.jsfails on drift. Before a release,claude plugin validate --strict pluginmust pass. Runnpm run gen:agensiafter template changes;agensi/is generated, onlytemplates/agensi/is hand-owned. - Plugin safety: hooks may only read and emit context. No network, file writes, subprocesses or credential access.
- Installer safety:
bin/cli.jswrites only inside--dirand--project, refuses home-level agent configuration and runs no third-party installer or vendor script. - Installer ownership: existing documents stay unless
--forcereplaces them or--update-docsverifies their recorded hash. Machine-owned configuration refreshes, unchanged managed runtime files upgrade, and--upgrade-runtimeexplicitly replaces runtime files. Project activation merges supported entries with backups. Preserve these rules;test/install.test.jsandtest/cli.test.jscheck them. - Runner safety: preserve exit codes and the log schema.
bin/cli-run.mjsexits non-zero when a lane produced nothing. Every judge has a red case intest/judges.test.js; add one before changing a judge. - Systemd: when touching
templates/advanced/vm/jobs/, runtest/systemd/run-on-ubuntu.shby hand on a Linux host with systemd to checkTimeoutStartSecandKillMode. This check sits outsidenpm test; followtest/systemd/README.md. - Fixtures:
test/fixtures/is real vendor output. When a vendor upgrade changes a shape, capture again at the new version and updatemanifest.jsonand the README compatibility table together. - Secrets: use environment-variable names only. Never add a credential value to code, examples or tests.
- Proof: measure through
proof/scripts/, store results inproof/results.jsonand regenerate the proof page. An expired entry warns and is re-measured; it never blocks tests or releases. - Verify: before proposing a change, run
npm testand report tests, pass, fail, skipped and exit code. The suite prints current counts. Usenpm pack --dry-runto inspect publication contents. - Style: use short condition-to-action instructions and no em dashes.
test/prose.test.jschecks public vocabulary and examples.
Each rule is the fix for a failure that reached an audit or CI. CHANGELOG.md names the issue behind each.
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.

