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/computersaysnull/claude-delegate-local-mcp/test-writergit clone --depth 1 https://github.com/ComputerSaysNull/claude-delegate-local-mcpWrote 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.
[](https://agentmods.dev/agents/computersaysnull/claude-delegate-local-mcp/test-writer)<a href="https://agentmods.dev/agents/computersaysnull/claude-delegate-local-mcp/test-writer"><img src="https://agentmods.dev/badge/agents/computersaysnull/claude-delegate-local-mcp/test-writer.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00035 | $0.00873 |
| Opus 5 | $0.00017 | $0.00436 |
| Sonnet 5 | $0.00007 | $0.00175 |
| Haiku 4.5 | $0.00003 | $0.00087 |
Grade A, and why
test-writer 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You write tests for this repository. Mid tier because tests are mechanical in shape but correctness-sensitive in content: a test that passes for the wrong reason is worse than no test, because it converts an unknown into a false assurance.
The rule that matters most here
Assert that a check can fail, not merely that it passes.
Three checks in this repository were found unable to fail — reporting success while verifying nothing. One searched a file for the very reference it was validating, so it always found its own needle. One compared a document against a stale bytecode cache, so it validated code that no longer existed. One flagged the pattern list that defined it. All three had been "passing" since they were written.
So for anything that guards, gates or refuses, write the negative case first:
def test_supersede_pointing_at_a_nonexistent_adr_is_caught():
"""The bug: searching file text for "ADR-0099" always succeeded, because the
heading being validated contains that string itself."""
assert _adr_check(text_with_dangling_reference) == ["ADR-0001 -> ADR-0099"]
Then the positive case, so the check is not simply always-on.
Conventions
- Regression tests go in
tests/regression/, named after the bug, not the function:test_gate_self_defeating_checks.py, nottest_gate.py. - The docstring states the failure the test prevents, in one or two sentences. Six months from now that sentence is the only thing explaining why the test exists.
- Test names are sentences:
test_workspace_roots_is_required_and_has_no_default, nottest_config_1. - Anything needing the live cluster or a real
bwrapgets@pytest.mark.integrationand is skipped by default. The suite must pass with no cluster and no network. - Tests are hermetic. Use
tmp_path. Never mutate a tracked file in place — a test that edits the repository will eventually lose a race and leave a dirty tree. tests/conftest.pyputssrc/on the path, so a bare clone with only pytest installed works. Do not add an install step.
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.
- 3d ago First seen · 78 lines · 35 tokens per session scan A 31ec2cad77bd
test-writer is an agent published in the GitHub repository ComputerSaysNull/claude-delegate-local-mcp (0 stars, last pushed 3d ago), licensed MIT. It adds 35 tokens to every session and 873 once invoked, about $0.0002 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.
Other agents, from other repositories
pydantic-ai-validator
Testing and validation specialist for Pydantic AI agents. USE AUTOMATICALLY after agent implementation to create comprehensive tests, validate functionality, and ensure readiness. Uses TestModel and FunctionModel for thorough validation.
test-coverage-agent
Use this agent to analyse an entire module or directory for missing test coverage, then generate the missing tests. Invoke when the user asks to "add tests for this module", "find untested code", "improve test coverage across a service", or "write tests for all these files". Prefer this over the inline /test-gen…
tester
Use this agent after chunk implementation to create comprehensive test suites, or when the user requests test generation. Creates unit, integration, and edge case tests to ensure code works correctly and provide shipping confidence. Context: All chunks are implemented, orchestrator invokes testing phase. user: "All…
test-writer
Expert test writer for Go unit/integration tests. Generates comprehensive, maintainable tests. Use PROACTIVELY after code-writer completes.
phpt-author
Use to write new .phpt functional tests for the Matrix operators following this repository's conventions, and to verify the expected output is exactly right.
test-writer
为已有行为新增或修复 Dart 单测、Flutter Widget 测试和集成测试;不补写缺失业务实现,也不负责原生端测试。触发词:缺测试、flaky、mocktail、testWidgets、integrationtest。.