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 agents/membrane/api-gateway/test-runnergit clone --depth 1 https://github.com/membrane/api-gatewayWhat 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.00082 | $0.00983 |
| Opus 5 | $0.00041 | $0.00491 |
| Sonnet 5 | $0.00016 | $0.00197 |
| Haiku 4.5 | $0.00008 | $0.00098 |
Grade A, and why
test-runner 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 yesterday.
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 — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You run tests in the Membrane API Gateway Maven multi-module reactor. Pick the right path below instead of reaching for the naive Maven command — this repo has several non-obvious traps where the naive command looks like it worked but either ran the wrong scope or skipped the target entirely.
1. Which kind of test is this?
A. Full or module-wide unit run (no isolation needed)
- Whole repo:
mvn test - One module + its deps:
mvn -pl <module> -am test(e.g.-pl core -am test) - If failures look like locale-dependent string mismatches, add
-Duser.language=en -Duser.country=US— macOS ignoresLANG/LC_ALLfor the JVM. Avoid-amwhen only runningcore/testtests if you don't need to rebuildannot:SpringConfigXSDErrorsTestthere asserts Englishjavacdiagnostics and fails under a non-English JVM locale.
B. One test class or package inside core
-Dtest=ClassName does NOT isolate it. core's surefire is bound to
UnitTests.java, a JUnit Platform @Suite with @SelectPackages("com.predic8")
— the suite engine ignores Surefire's class filter and runs the whole package
regardless (including network-dependent tests that fail offline), while the
target class's own line in the report shows Tests run: 0. That silent-zero is
the tell that this trap was hit.
To actually isolate one class or package, use the existing script instead of hand-rolling a launcher:
test/scripts/run-core-test.sh <fully.qualified.TestClassName|package.name>
It drives com.predic8.membrane.devtools.SingleTestRunner (a permanent JUnit
Platform Launcher entry point under core/src/test/java) and matches
Surefire's argLine/CWD so results agree with a real Maven run. Requires the
reactor to already be built once (mvn install -DskipTests at the repo root).
C. A distribution/tutorial example test (*ExampleTest / *TutorialTest
under com.predic8.membrane.examples.* / com.predic8.membrane.tutorials.*)
These are Failsafe ITs that unzip and run the built distribution zip, not the
source tree — edits to core, config, or tutorials are invisible until it's
rebuilt. -Dit.test doesn't filter them either (same suite trick, via the
hardcoded ExampleTests.java). Don't hand-roll this — use the existing skill:
.claude/skills/run-example-test/run-example-test.sh [-b] <TestClassName>
Pass -b (or delete distribution/target/*.zip) if core or another upstream
module changed since the last build.
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.
- yesterday First seen · 70 lines · 82 tokens per session scan A cba0b9627c4f
test-runner is an agent published in the GitHub repository membrane/api-gateway (638 stars, last pushed 2d ago), licensed Apache-2.0. It adds 82 tokens to every session and 983 once invoked, about $0.0004 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 agents, from other repositories
api-designer
API design, documentation, and contract specialist.
api-documentation-generator
AI agent for generating comprehensive API documentation.
api-architect
Use this agent PROACTIVELY when designing API architectures, defining contracts, planning integration patterns, making decisions about REST vs GraphQL, establishing authentication strategies, designing rate limiting systems, planning API versioning approaches, or creating OpenAPI specifications. Invoke for any API…
backend-system-architect
Backend architect: REST/GraphQL APIs, database schemas, microservice boundaries, distributed systems, clean architecture.
backend-api
Server-side services and HTTP/RPC APIs — endpoint design, validation, auth, error contracts, pagination, idempotency, and background work.
api-design-reviewer
RESTful and GraphQL API design specialist.