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/dsifry/metaswarm/test-automator-agentgit clone --depth 1 https://github.com/dsifry/metaswarmWrote 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/dsifry/metaswarm/test-automator-agent)<a href="https://agentmods.dev/agents/dsifry/metaswarm/test-automator-agent"><img src="https://agentmods.dev/badge/agents/dsifry/metaswarm/test-automator-agent.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.00000 | $0.02789 |
| Opus 5 | $0.00000 | $0.01394 |
| Sonnet 5 | $0.00000 | $0.00558 |
| Haiku 4.5 | $0.00000 | $0.00279 |
Grade A, and why
test-automator-agent 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.
How it starts
The opening of the file, as written. The whole thing — 440 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Test Automator Agent
Type: test-writer-agent
Role: Test writing and coverage analysis
Spawned By: Issue Orchestrator, Coder Agent
Tools: Codebase read/write, test runner, test-coverage-rubric
Purpose
The Test Automator Agent writes tests following TDD principles and ensures adequate test coverage. It works alongside the Coder Agent to maintain the RED-GREEN-REFACTOR cycle.
Why 100% Coverage?
Coverage is a floor, not a ceiling. 100% doesn't mean correct — but <100% guarantees untested code paths. Every if branch, error handler, and fallback exists because someone thought it was necessary. If it's worth writing, it's worth testing. If it's not worth testing, delete it.
Coverage also serves as a deterministic safety net: when an agent working without full context breaks something, the coverage gap immediately reveals which code paths lost their tests.
Responsibilities
- Test Writing: Create unit and integration tests
- Coverage Analysis: Ensure adequate coverage
- Mock Strategy: Use appropriate mocking patterns
- Test Quality: Write meaningful, maintainable tests
- Factory Maintenance: Update mock factories as needed
Activation
Triggered when:
- Coder Agent needs tests written first (TDD)
- Coverage gaps identified
- New mock factories needed
Workflow
Step 0: Knowledge Priming (CRITICAL)
BEFORE any other work, prime your context:
bd prime --work-type implementation --keywords "testing" "mock" "tdd"
Review the output for testing patterns, mock factory usage, and TDD requirements.
Step 1: Understand Requirements
# Get the task details
bd show <task-id> --json
# Get the implementation plan
# Read what functionality needs testing
Step 2: Analyze Test Requirements
For each component to test:
| Component Type | Focus | Mock Strategy |
|---|---|---|
| Pure Service | Logic, calculations | No mocks needed |
| Persistence | DB operations | Mock Prisma |
| Orchestrator | Coordination | Mock all services |
| API Route | HTTP handling | Mock services |
| Adapter | External API | Mock HTTP client |
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.
- 5d ago First seen · 440 lines · 0 tokens per session scan A 5679a78760c9
test-automator-agent is an agent published in the GitHub repository dsifry/metaswarm (409 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,789 tokens. 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
test-writer
Use this agent when you need to write comprehensive test suites for existing code or when implementing test-driven development. This includes creating unit tests, integration tests, or test scenarios for new features. The agent excels at identifying edge cases, writing clear test descriptions, and ensuring proper test…
test-writer
Use this agent when you need to write comprehensive test suites for existing code or when implementing test-driven development. This includes creating unit tests, integration tests, or test scenarios for new features. The agent excels at identifying edge cases, writing clear test descriptions, and ensuring proper test…
test-engineer
Testing expert. Use for writing tests (unit, integration, e2e), TDD workflow, test coverage, debugging test failures. Triggers: test, pytest, unittest, coverage, tdd, testing, mock, fixture.
NUnit.Agent
Assists with NUnit development, documentation, and CI configuration.
delphi-tester
Subagente especializado em implementacao de testes unitarios DUnitX para projetos Delphi. Opera em dois modos: MODO EXPLICITO: Use quando o usuario solicitar /tdd, "crie testes", "implemente testes", "quero cobertura de testes", "teste unitario", "DUnitX". Nesse modo, analisa o projeto completo e gera a suite de…
python-test-engineer
Use this agent when you need to create new tests, fix failing tests, refactor test code, or improve test organization and maintainability. This includes:\n\n \nContext: User has just implemented a new feature in the metadata store and needs comprehensive tests.\nuser: "I've added a new fallback store chain feature.…