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.
git 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/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.
<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="Reviewed on agentmods" width="80" 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.1 | $0.00022 | $0.02820 |
| Opus 5.5 | $0.00009 | $0.01128 |
| Sonnet 5.5 | $0.00004 | $0.00564 |
| Haiku 4.5 | $0.00002 | $0.00282 |
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 22d 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 — 445 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:
`/prime` (metaswarm knowledge priming) for implementation work on "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.
- 22d ago Changed · -1 lines a074060a9f27
- 23d ago Changed · +6 lines · +22 tokens per session 8548a1d42c75
- 3mo 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 (443 stars, last pushed yesterday), licensed MIT. It adds 22 tokens to every session and 2,820 once invoked, about $0.0001 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-30.
test-automator-agent compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| test-automator-agentdsifry/metaswarm | Agent | 443 | yesterday | MIT | A | 22 | Claude Code |
| test-writerPostHog/posthog | Agent | 41k | today | none | A | 359 | Claude Code |
| test-writerPostHog/posthog-foss | Agent | 733 | today | MIT | A | 359 | Claude Code |
| jasmine-expert0xfurai/claude-code-subagents | Agent | 1.0k | 23d ago | MIT | A | 55 | Claude Code |
| test-engineersoftspark/ai-toolkit | Agent | 180 | 12d ago | Apache-2.0 | A | 51 | Claude Code |
| testerjosstei/maestro-orchestrate | Agent | 493 | 28d ago | Apache-2.0 | A | 66 | Claude Code |
| testRune-kit/rune | Agent | 96 | 2d ago | MIT | A | 35 | Claude Code |