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.
npx agentmods add instructions/axa-group/oauth2-mock-server/agents-mdgit clone --depth 1 https://github.com/axa-group/oauth2-mock-serverWrote 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.
[](https://agentmods.dev/instructions/axa-group/oauth2-mock-server/agents-md)<a href="https://agentmods.dev/instructions/axa-group/oauth2-mock-server/agents-md"><img src="https://agentmods.dev/badge/instructions/axa-group/oauth2-mock-server/agents-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02175 | $0.02175 |
| Opus 5 | $0.01087 | $0.01087 |
| Sonnet 5 | $0.00435 | $0.00435 |
| Haiku 4.5 | $0.00217 | $0.00217 |
Grade A, and why
oauth2-mock-server 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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Guidelines
This file contains instructions for AI coding agents working in this repository.
Project overview
oauth2-mock-server is a TypeScript library and CLI tool that provides a configurable OAuth2/OpenID Connect mock server for automated testing.
Tech stack: TypeScript (ultra-strict) · Node.js · ESM-only · Vitest · ESLint + Prettier
Module map
| File | Role |
|---|---|
src/index.ts |
Public barrel — all library exports originate here |
src/oauth2-mock-server.ts |
Binary shim — calls cli() from src/cli.ts with process.argv.slice(2); contains no logic |
src/cli.ts |
CLI logic — cli(args) parses argv and starts the server; also exports readJsonFromFile() and shift(); not part of the public API |
src/lib/http-server.ts |
HttpServer — restartable wrapper around node:http/node:https |
src/lib/jwk-store.ts |
JWKStore — manages JWK key pairs; uses jose for key generation/export |
src/lib/jwk-store.keys.ts |
JWK algorithm registry: supportedAlgs list and privateToPublicKeyTransformer; used by JWKStore and test helpers — not exported publicly |
src/lib/oauth2-issuer.ts |
OAuth2Issuer — holds the issuer URL + key store; signs JWTs with jose (SignJWT) |
src/lib/oauth2-service.ts |
OAuth2Service — HTTP request handler; owns all OAuth2/OIDC endpoint logic; composes OAuth2Issuer |
src/lib/oauth2-service.http.ts |
HTTP plumbing for OAuth2Service: body/query-param parsing, route matching — not exported publicly |
src/lib/oauth2-service.pkce.ts |
PKCE utilities: isValidPkceCodeVerifier, createPKCEVerifier, createPKCECodeChallenge — not exported publicly |
src/lib/oauth2-service.jwt-assertion.ts |
JWT Bearer assertion parsing: parseJwtBearerAssertionPayload — decodes the payload segment without verifying the signature; not exported publicly |
src/lib/oauth2-server.ts |
OAuth2Server — convenience façade; combines HttpServer + OAuth2Service + OAuth2Issuer |
src/lib/assertions.ts |
Internal assertion helpers: assertIsString, assertIsStringOrUndefined, assertIsAddressInfo, assertIsPlainObject — not exported publicly |
src/lib/types.ts |
Public types and interfaces (exported via barrel) |
src/lib/types-internals.ts |
Internal types (JWKWithKid, AugmentedRequest, RouteHandler, InternalEvents, supportedPkceAlgorithms) — not re-exported |
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.
- 6d ago First seen · 136 lines · 2,175 tokens per session scan A 48ec1a653c63
oauth2-mock-server AGENTS.md is an instructions file published in the GitHub repository axa-group/oauth2-mock-server (258 stars, last pushed yesterday), licensed MIT. It adds 2,175 tokens to every session, about $0.0109 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.
Other instructions, from other repositories
platform AGENTS.md
AGENTS.md instructions for doka-guide/platform, covering agents.md — как работать с платформой доки, 1. правила работы, сначала подумай, потом пиши, минимум кода and правки хирургические.
codex-multi-auth AGENTS.md
AGENTS.md instructions for ndycode/codex-multi-auth, covering project knowledge base, structure, where to look, conventions and anti-patterns.
maui uitests.instructions.md
Instructions for dotnet/maui, covering ui testing guidelines for .net maui, ui test structure, two-project requirement, base class and infrastructure and naming conventions.
maui performance-hotpaths.instructions.md
Instructions for dotnet/maui, covering performance-critical path rules, hot paths in maui, allocation avoidance, caching and invalidation and collection iteration.
maui collectionview-windows.instructions.md
Instructions for dotnet/maui, covering collectionview — windows (items/ handler), winui listview/itemsrepeater patterns, data source and change notifications, layout configuration and cross-platform consistency.
mockserver-monorepo AGENTS.md
AGENTS.md instructions for mock-server/mockserver-monorepo, covering mockserver — agent instructions, instruction priority, project overview, local development environment and project documentation.