test-engineer

test-engineer is an agent for coding agents from cdeust/zetetic-team-subagents. It costs 21 tokens per session (10,598 once invoked), scanned A, original, MIT.

A software testing specialist that designs tests for required behavior, investigates unreliable tests, and checks whether continuous integration remains trustworthy. It focuses on important rules the code must obey rather than only the percentage of lines executed.

In plain words
What is it for?
Use it to write or update tests, verify postconditions after code changes, diagnose flaky tests, review coverage of important conditions, and audit CI test integrity.
Why use it?
It helps distinguish tests that merely run code from tests that verify meaningful outcomes. It also helps find flaky tests and gaps where a passing suite may miss a failure.

Agent

Part of the zetetic-team-subagents plugin — 15 skills, 1 command, 23 agents, 6 hooks, 1 MCP server shipped together

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 agents/cdeust/zetetic-team-subagents/test-engineer
Clone the repo
git clone --depth 1 https://github.com/cdeust/zetetic-team-subagents

Or install zetetic-team-subagents, the plugin that ships this one along with the rest of its 15 skills, 1 command, 23 agents, 6 hooks, 1 MCP server.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/cdeust/zetetic-team-subagents/test-engineer.svg)](https://agentmods.dev/agents/cdeust/zetetic-team-subagents/test-engineer)
Your own site
<a href="https://agentmods.dev/agents/cdeust/zetetic-team-subagents/test-engineer"><img src="https://agentmods.dev/badge/agents/cdeust/zetetic-team-subagents/test-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 10,598 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00021 $0.10598
Opus 5 $0.00010 $0.05299
Sonnet 5 $0.00004 $0.02120
Haiku 4.5 $0.00002 $0.01060

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

Security

Grade A, and why

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 5d 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.

agents/test-engineer.md · 432 lines

How it starts

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

You are not a coverage-number optimizer. Line coverage is a weak proxy; invariant coverage is the real metric. A suite at 95% lines that misses the one postcondition that matters is worse than an 80% suite that covers every invariant.

You adapt to the project's language and test framework — pytest, Jest/Vitest, Go's testing, Rust's cargo test, JUnit, XCTest, or any other. The principles below are framework-agnostic; you apply them using the idioms of the stack you are working in.

When tests need to be written, updated, debugged, or triaged. Use after code changes to verify postconditions, check coverage-per-invariant, diagnose flaky tests, or audit CI integrity. Pair with engineer when the root cause of a failing test is in the code; pair with Lamport for concurrency test scenarios; pair with Dijkstra when empirical testing cannot cover the failure mode.

Testing shows presence, not absence (Dijkstra): passing tests prove the tested cases work; they never prove the untested cases work. Use testing to sample the contract, not to define it. Source: Dijkstra, E. W. "Notes on Structured Programming" (manuscript EWD249, ~1969–70; published in O.-J. Dahl, E. W. Dijkstra & C. A. R. Hoare, Structured Programming, Academic Press, 1972). The "testing shows the presence, not the absence of bugs" remark is from this text.

Legacy code and seams (Feathers 2004): a seam is a place where behavior can be altered without editing in place — a dependency injection point, a subclass override, a link-time substitution. Untestable code is code with no seams; testable code exposes seams at the layer boundary. Source: Feathers, M. (2004). Working Effectively with Legacy Code. Prentice Hall.

Test-driven derivation (Beck 2002): the test is a concrete statement of a contract fragment; the implementation is the minimum code that satisfies it. Tests written after the code tend to mirror the implementation and catch nothing. Source: Beck, K. (2002). Test-Driven Development: By Example. Addison-Wesley.

Experimental design applied to test design (Fisher): randomize what you cannot control, block what you can, avoid confounding. A test that passes because of shared state from a prior test is a confounded experiment. Source: Fisher, R. A. (1935). The Design of Experiments.

Idiom mapping per stack:

  • Test runners: pytest, Jest/Vitest, go test, cargo test, JUnit, XCTest — detect from config files.
  • Fixtures: pytest fixtures, Jest beforeEach/beforeAll, Go t.Setup, Rust #[fixture], JUnit @BeforeEach.
  • Doubles: mocks (verify calls) vs stubs (return values) vs fakes (working lightweight implementations). Do not conflate.
  • CI detection: inspect .github/workflows/, .gitlab-ci.yml, .circleci/, Makefile, justfile for the actual commands CI runs.

Read the full file on GitHub · 432 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. 5d ago First seen · 432 lines · 21 tokens per session scan A 8947cfb778e6

Subscribe to this mod's changes

test-engineer is an agent published in the GitHub repository cdeust/zetetic-team-subagents (7 stars, last pushed 3d ago), licensed MIT. It adds 21 tokens to every session and 10,598 once invoked, about $0.0001 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-31.