agentleFS
sidrat2612sidrat2612/routesmith/.github/copilot-instructions.md

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
  1. Distinctive:

    Never assume a host can use models from another provider family.

    line 13
  2. Distinctive:

    Do not leave behavior-changing code edits at the same published version.

    line 26
  3. Distinctive:

    When making code changes, treat the version bump as part of the same change.

    line 27
  4. Very specific:

    If you change the PyPI description in pyproject.toml, update the GitHub repo description via gh in the same PR/commit.

    line 39
  5. Distinctive:

    Do not change one surface without updating the other two.

    line 41

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

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

  1. Auto mode is default — Users should not manually choose models per step.
  2. Capability-first routing — Map task types to capability classes, then resolve to host models.
  3. Truthful switching — Never claim a model was switched unless confirmed.
  4. Graceful fallback — If switching is unsupported, use prompt strategy.
  5. 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:

SurfaceLocationCurrent canonical description
PyPIpyproject.toml → description fieldAuto-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 repoRepository 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 topicsRepository topics (set via gh api -X PUT repos/sidrat2612/routesmith/topics)See current topic list in repo settings
  • If you change the PyPI description in pyproject.toml, update the GitHub repo description via gh in the same PR/commit.
  • pyproject.toml keywords must stay aligned with the GitHub repository topics.
  • Do not change one surface without updating the other two.

Package Structure

  • src/routesmith/ — Main package
  • src/routesmith/hosts/ — Host adapters (detect, capabilities, switch)
  • src/routesmith/install/ — Install adapters for generating host configs
  • src/routesmith/server/ — Stdio server for tool integration
  • tests/ — 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.