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/mock-server/mockserver-monorepo/agents-mdgit clone --depth 1 https://github.com/mock-server/mockserver-monorepoWrote 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/mock-server/mockserver-monorepo/agents-md)<a href="https://agentmods.dev/instructions/mock-server/mockserver-monorepo/agents-md"><img src="https://agentmods.dev/badge/instructions/mock-server/mockserver-monorepo/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 | $0.07398 | $0.07398 |
| Opus 5 | $0.03699 | $0.03699 |
| Sonnet 5 | $0.01480 | $0.01480 |
| Haiku 4.5 | $0.00740 | $0.00740 |
Grade A, and why
mockserver-monorepo AGENTS.md scanned grade A with 1 finding 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
Use the API token (via `aws secretsmanager get-secret-value` + `curl`) only for build state, creating builds, and retrying jobs. Driving the Buildkite UI through the `chrome-devtools` MCP does **not** work for logs: that How it starts
The opening of the file, as written. The whole thing — 346 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MockServer — Agent Instructions
Instruction Priority
- Direct user instructions (highest)
- Rules in
.opencode/rules/ - This file (
AGENTS.md) - Skills in
.opencode/skills/
Project Overview
MockServer is an open-source HTTP(S) mock server and proxy for testing, written in Java. It uses Netty as the HTTP server framework, Maven for builds, and is deployed as Docker containers, JARs, and WARs.
Tech stack: Java 17+ (minimum supported), Netty 4.2, Jackson 2.22, Maven (multi-module), Node.js/TypeScript (UI + client), Python 3.9+ (client), Ruby 3.0+ (client), Docker, Helm, Jekyll (documentation site) CI/CD: Buildkite (primary CI — including all Docker image builds), GitHub Actions (CodeQL, scheduled hygiene jobs such as certificate-expiry, and issue/label automation) Infrastructure: AWS (Buildkite build agents, documentation site hosting), Docker Hub (container images) Repository: GitHub (github.com)
Local Development Environment
Docker is available locally. Docker Desktop runs on the developer Mac, so Docker is available to agents in this environment (not only in CI). This means:
- Docker-gated tests CAN and SHOULD be run locally, not just in CI. Tests that guard on
Assume.assumeTrue(DockerAvailability.isAvailable(...))(Testcontainers live-broker tests,NET_ADMINtransparent-proxy e2e, QUIC/HTTP-3 client tests, etc.) will actually execute here — validate them by running and passing them, not merely by confirming they skip. - Keep the Docker-gating in place anyway. The
assumeTrue(...)guard is still the correct design so the suite degrades gracefully on any CI agent or machine without Docker. Docker being present locally changes how we validate, not how we write the tests. org.mockserver.test.DockerAvailability(inmockserver-testing) is the canonical availability probe. NEVER callDockerClientFactory.instance().isDockerAvailable()directly. Despite its javadoc ("true if Docker is available, false if not") that method converts onlyIllegalStateExceptionintofalse— it throws for everything else, because it also starts the Ryuk reaper and runs version/mount checks. ABadRequestException(privileged Ryuk rejected by a user-namespace-remapped daemon), aContainerFetchException, or anErrorsuch asNoClassDefFoundErrorfrom an incomplete test classpath all escape it, turning "no usable Docker" into a hard ERROR and defeating theassumeguard — and Testcontainers caches that failure and rethrows it for the rest of the JVM. Write:
Pass a lambda, not a method reference —Assume.assumeTrue("Docker is not available", DockerAvailability.isAvailable(() -> DockerClientFactory.instance().isDockerAvailable()));instance()must be evaluated inside the wrapper's try/catch. Testcontainers is the preferred harness, and works with Testcontainers 1.21.4+ (docker-java 3.4.2) on Docker Desktop 4.67 / Engine 29.x / API 1.54. (Earlier versions — Testcontainers 1.20.6 / docker-java 3.4.1 — got a 400 on the info endpoint and the probe returned false even though Docker worked.)- A Docker-gated suite that runs in CI needs a fail-closed assertion too. A fail-safe probe means an unusable Docker SKIPS rather than errors, which is right off-CI but is a silent false positive in CI. Pair it with
.buildkite/scripts/steps/assert-suite-ran.shover the suite's surefire reports so a skip fails the build loudly. dockerCLI commands (docker build,docker run) are also available for Dockerfile smoke checks in the commit workflow.
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.
- 4d ago First seen · 346 lines · 7,398 tokens per session scan A 6bbd38303265
mockserver-monorepo AGENTS.md is an instructions file published in the GitHub repository mock-server/mockserver-monorepo (4,964 stars, last pushed today), licensed Apache-2.0. It adds 7,398 tokens to every session, about $0.0370 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
quotio AGENTS.md
AGENTS.md instructions for nguyenphutrong/quotio, covering agents.md, project, project map, build, test, and run and architecture and coding conventions.
GoModel CLAUDE.md
Claude Code instructions for ENTERPILOT/GoModel, covering core principles, follow postel’s law, follow the twelve-factor app, keep it simple and use good defaults.
aimock CLAUDE.md
Claude Code instructions for CopilotKit/aimock, covering aimock, before every commit, project structure, testing and drift remediation.
GoModel AGENTS.md
AGENTS.md instructions for ENTERPILOT/GoModel, covering core principles, commit format — use conventional commits, code review and pr suggestion for the official repository.
bifrost AGENTS.md
Instructions for bifrost-proxy/bifrost, covering bifrost 项目开发规则, 执行心法, 执行模式与完成定义, 任务模式判定 and 变更类型与验证路由(先判定,后执行).
wyoming_openai AGENTS.md
Instructions for roryeckel/wyoming_openai, covering agents.md, project overview, development commands, testing and install development dependencies.