routesmith
Copilot instructions4 starsChanged 7 months agoMITView on GitHub
This repository contains routesmith, a host-aware auto-routing skill library for IDEs and coding agents. routesmith is a HOST-AWARE skill layer, NOT a universal cross-provider broker. The package description must stay in sync across all three surfaces when releasing: Tests must run without live API calls. Use mocked behavior for provider-dependent flows. Host detection, planning, and routing must work without any API keys.
The file
We split this copilot-instructions.md into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Never assume a host can use models from another provider family.
- Distinctive: line 26
Do not leave behavior-changing code edits at the same published version.
- Distinctive: line 27
When making code changes, treat the version bump as part of the same change.
- Very specific: line 39
If you change the PyPI description in pyproject.toml, update the GitHub repo description via gh in the same PR/commit.
- Distinctive: line 41
Do not change one surface without updating the other two.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
routesmith - Copilot Instructions
This repository contains routesmith, a host-aware auto-routing skill library for IDEs and coding agents.
Core Architecture Rule
routesmith is a HOST-AWARE skill layer, NOT a universal cross-provider broker.
- In Claude Code: only Claude-family models are managed.
- In Codex/OpenAI: only OpenAI-family models are managed.
- In Gemini CLI: only Gemini-family models are managed.
- In Copilot: model switching is host-controlled; use prompt optimization.
- Never assume a host can use models from another provider family.
Key Design Principles
- Auto mode is default — Users should not manually choose models per step.
- Capability-first routing — Map task types to capability classes, then resolve to host models.
- Truthful switching — Never claim a model was switched unless confirmed.
- Graceful fallback — If switching is unsupported, use prompt strategy.
- Deterministic planning — Planner works without API calls.
Versioning Rule
- Any code change must also update the package version in
pyproject.toml. - Do not leave behavior-changing code edits at the same published version.
- When making code changes, treat the version bump as part of the same change.
Description Alignment Rule
The package description must stay in sync across all three surfaces when releasing:
| Surface | Location | Current canonical description |
| PyPI | pyproject.toml → description field | Auto-route coding agent tasks to the best model in your IDE. Python library + MCP server for Claude Code, Codex, Gemini CLI, Copilot, Cursor, and Aider. |
| GitHub repo | Repository description (set via gh api -X PATCH repos/sidrat2612/routesmith -f description='…') | Host-aware model routing for coding agents. Python library + MCP server for Claude Code, Codex, Gemini CLI, Copilot, Cursor, and Aider. |
| GitHub topics | Repository topics (set via gh api -X PUT repos/sidrat2612/routesmith/topics) | See current topic list in repo settings |
- If you change the PyPI
descriptioninpyproject.toml, update the GitHub repo description viaghin the same PR/commit. pyproject.tomlkeywords must stay aligned with the GitHub repository topics.- Do not change one surface without updating the other two.
Package Structure
src/routesmith/— Main packagesrc/routesmith/hosts/— Host adapters (detect, capabilities, switch)src/routesmith/install/— Install adapters for generating host configssrc/routesmith/server/— Stdio server for tool integrationtests/— Test suite (no live API calls required)
Testing
Tests must run without live API calls. Use mocked behavior for provider-dependent flows. Host detection, planning, and routing must work without any API keys.
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.

