routesmith: Instructions file for GitHub Copilot

.github/copilot-instructions.md

routesmith copilot-instructions.md is an instructions file for GitHub Copilot from sidrat2612/routesmith. It costs 634 tokens per session, scanned A, original, MIT.

Repository instructions for Routesmith, a library that helps coding tools choose suitable models and prompts for different tasks. They explain how model selection depends on the host, such as Claude Code, Codex, Gemini CLI, or Copilot.

In plain words
What is it for?
Use them when changing routing logic, fallback behavior, planning, model handling, package versions, or project descriptions.
Why use it?
They prevent incorrect cross-provider model assumptions and require version and description updates when behavior changes.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file. Also seen: mentions Claude Code; mentions Codex; built for aider.

This is sidrat2612/routesmith's own configuration. It tells GitHub Copilot how to work on routesmith itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything routesmith configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sidrat2612/routesmith. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sidrat2612/routesmith/main/.github/copilot-instructions.md
Clone the repo
git clone --depth 1 https://github.com/sidrat2612/routesmith

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for routesmith copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sidrat2612/routesmith/copilot-instructions/github.svg)](https://agentmods.dev/instructions/sidrat2612/routesmith/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/sidrat2612/routesmith/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/sidrat2612/routesmith/copilot-instructions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for routesmith copilot-instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sidrat2612/routesmith/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/sidrat2612/routesmith/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 634 This file is loaded in full into every session.
When invoked 634 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00634 $0.00634
Opus 5.5 $0.00254 $0.00254
Sonnet 5.5 $0.00127 $0.00127
Haiku 4.5 $0.00063 $0.00063

Measured 1mo ago against content hash f5eda38b05da, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

routesmith copilot-instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/copilot-instructions.md · 55 lines

How it starts

The opening of the file, as written. The whole thing — 55 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

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

Read the full file on GitHub · 55 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 55 lines · 634 tokens per session scan A f5eda38b05da

Subscribe to this mod's changes

routesmith copilot-instructions.md is an instructions file published in the GitHub repository sidrat2612/routesmith (4 stars, last pushed 5mo ago), licensed MIT. It adds 634 tokens to every session, about $0.0025 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories