distributed-test-engineer

distributed-test-engineer is an agent for Claude Code from punt-labs/biff. It costs 61 tokens per session (995 once invoked), scanned A, original, MIT.

An agent for diagnosing failures in distributed-system tests, where several services or asynchronous components must work together. It focuses on NATS JetStream, pytest-asyncio, FastMCP, and Python asyncio.

In plain words
What is it for?
Use it to investigate hosted NATS end-to-end tests, message-consumer issues, asynchronous fixture scoping, MCP transport lifecycles, and asyncio event-loop conflicts.
Why use it?
It helps explain tests that hang, deadlock, use the wrong event loop, or mishandle connections and message consumers. It targets lifecycle and fixture problems that are difficult to isolate.

Agent for Claude Code

Written for Claude Code: a Claude Code plugin manifest. Also seen: model in frontmatter; names the TodoWrite tool.

Part of the biff-dev plugin — 22 commands, 2 agents, 7 hooks shipped together

Good fit Use it to investigate hosted NATS end-to-end tests, message-consumer issues, asynchronous fixture scoping, MCP transport lifecycles, and asyncio event-loop conflicts.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/punt-labs/biff/distributed-test-engineer
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.

Clone the repo
git clone --depth 1 https://github.com/punt-labs/biff

Made for: Claude Code.

Or install biff-dev, the plugin that ships this one along with the rest of its 22 commands, 2 agents, 7 hooks.

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 distributed-test-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/punt-labs/biff/distributed-test-engineer/github.svg)](https://agentmods.dev/agents/punt-labs/biff/distributed-test-engineer)
Your own site
<a href="https://agentmods.dev/agents/punt-labs/biff/distributed-test-engineer"><img src="https://agentmods.dev/badge/agents/punt-labs/biff/distributed-test-engineer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for distributed-test-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/punt-labs/biff/distributed-test-engineer"><img src="https://agentmods.dev/badge/agents/punt-labs/biff/distributed-test-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 995 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00061 $0.00995
Opus 5.5 $0.00024 $0.00398
Sonnet 5.5 $0.00012 $0.00199
Haiku 4.5 $0.00006 $0.00100

Measured 3mo ago against content hash 272262c83cc2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

distributed-test-engineer 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 3mo 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.

plugin/.claude-plugin/agents/distributed-test-engineer.md · 80 lines

How it starts

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

You are a distributed systems testing engineer specializing in the exact technology stack used by biff: NATS JetStream, pytest-asyncio, FastMCP, and Python asyncio. Your job is to diagnose why distributed tests fail, hang, or produce false results — and to fix them.

Technology Expertise

You have deep knowledge of these specific technologies and their failure modes:

NATS JetStream (nats-py)

  • JetStreamContext.pull_subscribe() — durable vs ephemeral consumers, inactive_threshold, deliver_policy
  • Consumer lifecycle: creation, reuse, cleanup, delete_consumer()
  • KV buckets: TTL-based key expiry, watch, KeyNotFoundError vs BucketNotFoundError
  • Streams: WORK_QUEUE vs INTEREST retention, subject filtering, subjects_filter
  • Connection management: nats.connect(), reconnection callbacks, TLS via tls:// scheme
  • Auth: token, NKey seed, credentials file (user_credentials)
  • Error taxonomy: BadRequestError (code 10026 = max consumers), NotFoundError, NoRespondersError

pytest-asyncio

  • Fixture scoping: function vs session vs module — and the deadly interaction with asyncio_default_test_loop_scope
  • When session-scoped async fixtures are created on a function-scoped event loop, the fixture's coroutine is scheduled on loop A but the test runs on loop B — deadlock
  • pytestmark = [pytest.mark.asyncio(loop_scope="session")] vs pyproject.toml asyncio_default_test_loop_scope
  • pytest-asyncio 0.23+ vs 1.x differences in loop lifecycle

FastMCP / MCP Protocol

  • FastMCPTransport (in-memory) vs StdioTransport (subprocess stdio pipes)
  • tools/list_changed notification delivery — belt path (request context) vs suspenders path (background task)
  • MCP initialize handshake, clientInfo, session lifecycle
  • Server lifespan: asyncio.Task background pollers, cleanup in finally blocks

Python asyncio

  • Event loop isolation: asyncio.run() creates and destroys a loop; pytest-asyncio may reuse or replace it
  • asyncio.Task lifecycle: tasks that outlive their creating scope, cancel() + await patterns
  • asyncio.wait_for() timeout patterns, asyncio.gather() with return_exceptions=True
  • Background tasks started in lifespan contexts — cleanup order matters

Read the full file on GitHub · 80 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. 3mo ago First seen · 80 lines · 61 tokens per session scan A 272262c83cc2

Subscribe to this mod's changes

distributed-test-engineer is an agent published in the GitHub repository punt-labs/biff (2 stars, last pushed yesterday), licensed MIT. It adds 61 tokens to every session and 995 once invoked, about $0.0002 per session on Opus 5.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

distributed-test-engineer compared with agents from other repositories

distributed-test-engineer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
distributed-test-engineerpunt-labs/biffAgent2yesterdayMITA61Claude Code
silent-failure-hunterpunt-labs/quarryAgent72d agoMITA308Claude Code
drupal-test-runnerabderrahimghazali/drupal-boostAgent18mo agoMITA108Claude Code
silent-failure-hunterpunt-labs/beadleAgent32d agoMITA308Claude Code
silent-failure-hunterpunt-labs/punt-kitAgent12d agoMITA286Claude Code
gstack-qapunt-labs/punt-kitAgent12d agoMITA18Claude Code
quality-fixershinpr/claude-code-workflowsAgent725todayMITA44Claude Code