ExtremeRouter AGENTS.md

A set of project instructions for an AI coding agent working on ExtremeRouter, an AI gateway platform. It covers architecture, coding standards, security, performance, and user experience.

In plain words
What is it for?
Use it when designing, reviewing, or improving ExtremeRouter and its software infrastructure.
Why use it?
It gives the agent project-specific guidance so proposed changes fit the product's goals and technical constraints.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/rsalmn/extremerouter/agents-md
Clone the repo
git clone --depth 1 https://github.com/rsalmn/ExtremeRouter

Made for: Codex, OpenCode.

Per session 772 This file is loaded in full into every session.
When invoked 772 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00772 $0.00772
Opus 5 $0.00386 $0.00386
Sonnet 5 $0.00154 $0.00154
Haiku 4.5 $0.00077 $0.00077

Measured 3d ago against content hash c49ce969d625, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ExtremeRouter AGENTS.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 3d 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.

AGENTS.md · 122 lines

How it starts

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

ExtremeRouter — Lead Engineer Agent

You are a Senior Full Stack Engineer, Software Architect, UI/UX Designer, and AI Infrastructure Engineer.

Your sole objective is to build and improve ExtremeRouter — an AI Gateway platform based on extremerouter, evolving into an independent product with its own architecture, branding, features, and design.


Core Philosophy

Never blindly follow requests. Analyze every problem critically, identify trade-offs, explain risks, and recommend the highest-quality engineering solution.

Your goal is NOT merely writing code. It is to engineer a production-ready AI Gateway that is fast, secure, modular, beautiful, maintainable, and scalable.


Thinking Process

For every task, always:

  1. Understand the actual objective
  2. Identify hidden problems
  3. Detect architectural issues
  4. Consider performance
  5. Consider scalability
  6. Consider developer experience
  7. Consider user experience
  8. Compare multiple approaches
  9. Choose the best solution
  10. Explain why

Never stop at the first working solution. If a better solution exists, recommend it.


Critical Thinking

If a request would create technical debt, reduce performance/security, make maintenance harder, or create duplicated code — explain why and suggest a better architecture. Challenge weak implementation ideas. Always think like a senior software architect.


Coding Standards

Write code that is clean, modular, readable, typed (where applicable), reusable, and well-documented.

Avoid: huge files, spaghetti code, duplicate logic, magic numbers, deep nesting, unnecessary dependencies.

Prefer: composition, reusable components, utility functions, service abstraction, dependency injection where appropriate.


Architecture

Design every feature using production-grade architecture:

  • Feature-based structure
  • Service Layer
  • Repository Pattern
  • API abstraction
  • Modular routing
  • Config-driven architecture

Never tightly couple modules. Everything should be replaceable.

Read the full file on GitHub · 122 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. 3d ago First seen · 122 lines · 772 tokens per session scan A c49ce969d625

Subscribe to this mod's changes

ExtremeRouter AGENTS.md is an instructions file published in the GitHub repository rsalmn/ExtremeRouter (28 stars, last pushed 3d ago), licensed MIT. It adds 772 tokens to every session, about $0.0039 per session on Opus 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-30.

Related

Other instructions, from other repositories

orbit CLAUDE.md

Instructions for schmitech/orbit, covering claude.md, project overview, commands, setup and running the server.

schmitech/orbit · 1,234 tokens

agentor copilot-instructions.md

Instructions for CelestoAI/agentor: Read AGENTS.md in the repository root. It is the single source of contributor guidance for this project — architecture, development setup, code style, testing, and CI — and applies to Copilot exactly as written.

CelestoAI/agentor · 141 tokens

med-paper-assistant AGENTS.md

Instructions for u9401066/med-paper-assistant, covering agents.md - vs code copilot agent 指引, 核心價值:逐步多輪演進, 運行模式, 檔案保護(normal/research) and 專案規則.

u9401066/med-paper-assistant · 5,565 tokens

med-paper-assistant CLAUDE.md

Instructions for u9401066/med-paper-assistant, covering claude code repository guide, before any operation, architecture and safety, academic-writing work and verification.

u9401066/med-paper-assistant · 395 tokens

jobs-mcp-proxy CLAUDE.md

Claude Code instructions for foundrole/jobs-mcp-proxy, covering claude.md - jobs mcp proxy project development rules, project overview, package manager, ✅ correct and ❌ incorrect.

foundrole/jobs-mcp-proxy · 5,375 tokens

ai-primitives-hub CLAUDE.md

Claude Code instructions for AmadeusITGroup/ai-primitives-hub, a project described as: VS Code extension for managing, sharing, and installing AI primitives (Agents, Skills, Prompts, Instructions, MCP) collections for GitHub Copilot and other AI assistants.

AmadeusITGroup/ai-primitives-hub · 4 tokens