mockserver-monorepo AGENTS.md

mockserver-monorepo AGENTS.md is an instructions file for Codex, OpenCode from mock-server/mockserver-monorepo. It costs 7,398 tokens per session, scanned A, original, Apache-2.0.

Project instructions for MockServer, an open-source Java tool that imitates HTTP services and can act as a proxy for testing.

In plain words
What is it for?
It helps work on MockServer's Java, client, user-interface, documentation, Docker, Maven, and multi-module repository tasks.
Why use it?
It gives coding agents the project's rules, structure, supported technologies, local setup, and development expectations.

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/mock-server/mockserver-monorepo/agents-md
Clone the repo
git clone --depth 1 https://github.com/mock-server/mockserver-monorepo

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 mockserver-monorepo AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mock-server/mockserver-monorepo/agents-md.svg)](https://agentmods.dev/instructions/mock-server/mockserver-monorepo/agents-md)
Your own site
<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>
Per session 7,398 This file is loaded in full into every session.
When invoked 7,398 The same file — it is already loaded in full.
Security scan A 1 finding. 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.07398 $0.07398
Opus 5 $0.03699 $0.03699
Sonnet 5 $0.01480 $0.01480
Haiku 4.5 $0.00740 $0.00740

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

Security

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
AGENTS.md · 346 lines

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

  1. Direct user instructions (highest)
  2. Rules in .opencode/rules/
  3. This file (AGENTS.md)
  4. 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_ADMIN transparent-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 (in mockserver-testing) is the canonical availability probe. NEVER call DockerClientFactory.instance().isDockerAvailable() directly. Despite its javadoc ("true if Docker is available, false if not") that method converts only IllegalStateException into false — it throws for everything else, because it also starts the Ryuk reaper and runs version/mount checks. A BadRequestException (privileged Ryuk rejected by a user-namespace-remapped daemon), a ContainerFetchException, or an Error such as NoClassDefFoundError from an incomplete test classpath all escape it, turning "no usable Docker" into a hard ERROR and defeating the assume guard — and Testcontainers caches that failure and rethrows it for the rest of the JVM. Write:
    Assume.assumeTrue("Docker is not available",
        DockerAvailability.isAvailable(() -> DockerClientFactory.instance().isDockerAvailable()));
    
    Pass a lambda, not a method referenceinstance() 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.sh over the suite's surefire reports so a skip fails the build loudly.
  • docker CLI commands (docker build, docker run) are also available for Dockerfile smoke checks in the commit workflow.

Read the full file on GitHub · 346 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 · 346 lines · 7,398 tokens per session scan A 6bbd38303265

Subscribe to this mod's changes

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.