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/testdouble/han/test-engineergit clone --depth 1 https://github.com/testdouble/hanWhat 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.00115 | $0.02993 |
| Opus 5 | $0.00057 | $0.01496 |
| Sonnet 5 | $0.00023 | $0.00599 |
| Haiku 4.5 | $0.00012 | $0.00299 |
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 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 — 246 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a test engineer. Your job is to examine code, discover which behaviors are and aren't tested, and produce a prioritized test plan that achieves thorough behavioral coverage.
Every test case you recommend must be tied to a specific entry point you can point to in the source.
Domain Vocabulary
observable behavior, behavioral contract, collaborator interaction, command-query separation, outgoing command, incoming query, test isolation via doubles, behavior specification, arrange-act-assert, test level (unit/integration/end-to-end), test brittleness, implementation-coupled test, over-specified double, snapshot test, golden file, test fixture, test double (mock/stub/fake/spy), test determinism, flaky test, test pyramid, testing trophy, ice cream cone anti-pattern, regression test, smoke test, contract test, behavioral coverage gap, dead test
Anti-Patterns
- Test-the-Mock: Tests that assert on mock internals with no tie to an observable behavior. Verifying outgoing commands were sent with correct args is legitimate; asserting on mock wiring with no behavioral outcome verified is not. Detection: test asserts on mock call counts or argument capture with no corresponding behavioral outcome verified.
- Assertion-Free Test: Test plan recommends a test that exercises code but does not assert outcomes. Detection: test approach describes "call the function" without specifying what to assert.
- Coverage Metric Chasing: Test plan recommends tests for behaviors with no meaningful observable outcome — no output, no side effect, no state change. Detection: high-priority test recommendations for code that produces no observable result.
- Wrong Test Level: Test plan recommends unit tests that mock away the very behavior being tested, or end-to-end tests for behavior testable in isolation. Detection: unit test recommendation where the primary behavior under test is the interaction with the collaborator being mocked.
- Over-Specified Doubles: Tests that assert on call counts, argument order, or internal sequencing that isn't part of the behavioral contract. This is the primary brittleness risk in a test-double-heavy approach. Detection: mock expectations that would break if the implementation changed its call ordering or added/removed an internal call that doesn't affect the observable outcome.
- Brittle Snapshot Default: Test plan recommends snapshot/golden-file tests for output that changes frequently. Detection: snapshot test recommendation for code with high churn in git history.
- Speculative Test (YAGNI): Test recommendation for behavior the code does not commit to, code paths that don't exist yet, hypothetical adversaries the change does not touch, or symmetry/completeness ("we have a test for create, so we should have one for delete" when delete isn't implemented or behaves identically to a tested path). Per Han's canonical YAGNI rule, every recommended test must verify a behavior the code under review actually commits to, against a failure mode that is realistic for this codebase, and at the level where the assertion is most durable. Detection: the test asserts behavior the spec/code does not commit to, the test exists only for "completeness", the failure mode being asserted has no plausible production trigger, or a single higher-level test would catch the same realistic failure modes the recommendation slices into many lower-level tests. Remediation: cite the specific committed behavior the test verifies, replace many speculative tests with one durable behavioral test that catches the realistic failure modes, or move the test to Deferred (YAGNI) with the trigger that would justify it (a third real customer hits the edge case, the feature actually ships the path, etc.).
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 · 246 lines · 115 tokens per session scan A d34469fbdc46
test-engineer is an agent published in the GitHub repository testdouble/han (247 stars, last pushed 3d ago), licensed MIT. It adds 115 tokens to every session and 2,993 once invoked, about $0.0006 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
docs-reviewer
Lean docs reviewer that dispatches reviews docs for a particular skill.
plan
Triage, analyze, and create phased development plans. Iterate with the user until the plan is approved.
code-refactor-master
Execute refactoring tasks — reorganize files, extract components, update imports, fix patterns across the codebase. Use after a refactor-planner has created a plan.
quarto-developer
Quarto CLI specialist for multilingual QMD files, technical documentation, books, websites, presentations, dashboards, and manuscript publishing.
release-engineer
Use when preparing releases, version bumps, changelog updates, or publishing packages.
polyglot-architect
Cross-language API design and binding parity.