openrouter-mcp AGENTS.md

openrouter-mcp AGENTS.md is an instructions file for Codex, OpenCode from physics91/openrouter-mcp. It costs 1,088 tokens per session, scanned A, original, MIT.

A project guide for coding agents working on openrouter-mcp, with rules for language, commits, local skills, configuration, security, testing, deployment, and teamwork between agents. MCP is a way for AI assistants to connect to external tools.

In plain words
What is it for?
Use it when changing openrouter-mcp, managing its MCP setup, handling keys, running checks, preparing releases, or deciding whether to split work between agents.
Why use it?
It explains project-specific behavior and safety rules, reducing mistakes in communication, configuration, security work, and coordinated development.

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/physics91/openrouter-mcp/agents-md
Clone the repo
git clone --depth 1 https://github.com/physics91/openrouter-mcp

Made for: Codex, OpenCode.

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 openrouter-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/physics91/openrouter-mcp/agents-md.svg)](https://agentmods.dev/instructions/physics91/openrouter-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/physics91/openrouter-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/physics91/openrouter-mcp/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,088 This file is loaded in full into every session.
When invoked 1,088 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.01088 $0.01088
Opus 5 $0.00544 $0.00544
Sonnet 5 $0.00218 $0.00218
Haiku 4.5 $0.00109 $0.00109

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

Security

Grade A, and why

openrouter-mcp 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 4d 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 · 40 lines

How it starts

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

AGENTS

에이전트 한국어 응답 규칙

  • 기본 응답은 한국어로 작성한다.
  • 사용자가 명시적으로 다른 언어를 요청하면 해당 언어로 응답한다.
  • 코드, 파일 경로, 명령어, 옵션명, 고유명사는 원문 표기를 유지한다.
  • 기술 용어는 가능한 한 한국어로 설명하되, 필요 시 괄호로 영문 용어를 병기한다.
  • 길고 장황한 표현은 피하고, 간결하고 명확하게 답한다.

커밋 메시지 작성 규칙

  • 모든 커밋 메시지는 영어로 작성한다.
  • Conventional Commits 형식을 유지한다.

로컬 스킬 트리거

  • build: 코드 품질 게이트(ruff/black/isort 점검 또는 자동 수정)가 필요할 때 사용한다.
  • test: 테스트 스위트 실행, assurance 게이트 재현, 실패 분석, 커버리지 점검이 필요할 때 사용한다.
  • deploy: npm 배포 준비/실행, 릴리스 확인, 패키지 메타데이터/placeholder 검증이 필요할 때 사용한다.
  • git-worktree: 병렬 작업용 worktree 생성/정리/복구가 필요할 때 사용한다.
  • security-ops: API key 저장/회전/삭제, security-audit, 보안 문서 placeholder 점검이 필요할 때 사용한다.
  • mcp-config-ops: Claude Desktop/Code 설치, MCP 설정 백업/복원, config drift 점검이 필요할 때 사용한다.
  • resilience-policy: 집단지성 계층의 동시성/쿼터/회로차단/cleanup 정책 변경이나 검증이 필요할 때 사용한다.
  • 상세 절차는 각 스킬 문서(.agents/skills/{build,test,deploy,git-worktree,security-ops,mcp-config-ops,resilience-policy}/SKILL.md)를 단일 기준으로 따른다.

멀티에이전트 운영 지침

  • 기본 원칙: 단일 에이전트+도구 구성을 먼저 극대화한다. 복잡도/성능 이득이 명확할 때만 멀티에이전트로 확장한다.
  • 전환 기준 1: 프롬프트의 조건 분기가 많아져 단일 에이전트 유지보수가 어려울 때 분리한다.
  • 전환 기준 2: 유사/중복 도구로 오호출이 반복될 때 역할별 에이전트로 분리한다.
  • 전환 기준 3: 서로 독립적인 하위 작업을 병렬 실행해 지연 시간을 줄일 수 있을 때 확장한다.
  • 패턴 선택: 중앙 통제·최종 합성·공통 guardrail/rate-limit이 필요하면 Manager 패턴을 사용하고, 메인 에이전트가 spawn_agent/send_input/wait로 서브에이전트를 조율한다.
  • 패턴 선택: 트리아지 후 담당 전환이 유리하면 handoff를 사용하되, 현재 환경에서는 send_input 기반 이관(요약 포함)으로 구현한다.
  • 역할 설계: 각 서브에이전트는 단일 책임으로 정의하고, 이름/설명에 호출 조건과 비호출 조건을 함께 명시한다.
  • 인터페이스 설계: 가능한 경우 JSON 구조 출력으로 고정한다. spawn_agents_on_csv 사용 시 output_schema를 필수로 두고, 일반 spawn_agent 흐름은 호출 측 검증으로 계약을 강제한다.
  • 컨텍스트 설계: handoff 시 전체 이력을 무조건 전달하지 말고, 요약/필터로 필요한 문맥만 전달한다.
  • 규모 설계: 고정 소수 에이전트(권장 3~7, 최대 10)는 명시 열거한다. 필요 이상 동적 증식은 금지하고, 추가 풀은 목적/종료 조건을 함께 선언한다.
  • 실행 설계: 의존 작업은 순차(sync), 독립 작업은 병렬(async)로 실행한다. 비동기 작업은 spawn -> wait(timeout_ms) -> 결과 병합/실패 처리 순서를 표준으로 한다.
  • 품질 기준: 멀티에이전트 변경 시 eval을 선행 갱신하고 다회 실행으로 회귀를 확인한 뒤 적용한다.
  • 관측 가능성: 모든 tool call/handoff는 trace 가능해야 하며, 실패 원인과 책임 에이전트를 식별할 수 있어야 한다.
  • 종료/안전: wait timeout_ms, 재시도 횟수, 실패 시 human escalation 조건을 명시하지 않은 워크플로는 배포하지 않는다.
  • 비용 가드: 토론형 다중 에이전트(MAD)는 기본값으로 사용하지 않고, 단순 투표/앙상블 대비 실측 이득이 있을 때만 선택적으로 활성화한다.

Read the full file on GitHub · 40 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. 4d ago First seen · 40 lines · 1,088 tokens per session scan A bbef84b5df17

Subscribe to this mod's changes

openrouter-mcp AGENTS.md is an instructions file published in the GitHub repository physics91/openrouter-mcp (9 stars, last pushed 21d ago), licensed MIT. It adds 1,088 tokens to every session, about $0.0054 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-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

next.js AGENTS.md

Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens