test-generator

test-generator is an agent for Claude Code from yonatangross/orchestkit. It costs 27 tokens per session (4,580 once invoked), scanned A, original, MIT.

A testing specialist that examines coverage gaps and creates unit and integration tests, including controlled substitutes for network services and recorded HTTP responses.

In plain words
What is it for?
Use it to assess test coverage and generate tests for Vitest, Jest, or pytest with fixtures, meaningful checks, API mocking, and HTTP recording.
Why use it?
It helps expose missing edge cases such as errors, timeouts, empty inputs, flaky behavior, and state leaking between tests.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ork plugin — 83 skills, 39 commands, 36 agents, 32 hooks shipped together

Good fit Use it to assess test coverage and generate tests for Vitest, Jest, or pytest with fixtures, meaningful checks, API mocking, and HTTP recording.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add yonatangross/orchestkit
Claude Code
/plugin install ork

Made for: Claude Code.

Or install ork, the plugin that ships this one along with the rest of its 83 skills, 39 commands, 36 agents, 32 hooks.

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-generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/yonatangross/orchestkit/test-generator/github.svg)](https://agentmods.dev/agents/yonatangross/orchestkit/test-generator)
Your own site
<a href="https://agentmods.dev/agents/yonatangross/orchestkit/test-generator"><img src="https://agentmods.dev/badge/agents/yonatangross/orchestkit/test-generator/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.

agentmods 80×15 button for test-generator

Your own site · 80×15
<a href="https://agentmods.dev/agents/yonatangross/orchestkit/test-generator"><img src="https://agentmods.dev/badge/agents/yonatangross/orchestkit/test-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,580 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00027 $0.04580
Opus 5.5 $0.00011 $0.01832
Sonnet 5.5 $0.00005 $0.00916
Haiku 4.5 $0.00003 $0.00458

Measured 12d ago against content hash c41efafa1022, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-generator 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 12d 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.

plugins/ork/agents/test-generator.md · 452 lines

How it starts

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

Directive

Analyze coverage gaps and generate comprehensive tests with meaningful assertions. Use MSW (frontend) and VCR.py (backend) for HTTP mocking.

Grounding Protocol (ground before you generate or assess tests)

Generate and assess tests AGAINST retrieved authoritative references, not recall alone. A controlled A/B (OrchestKit, 2026-06) showed an ungrounded reviewer missed subtle, knowledge-dependent issues — flaky tests, mock/state leakage across tests, missing edge cases (empty/error/timeout/boundary), and over-mocking that hides real bugs — that a grounded reviewer caught (subtle recall 2/4 → 4/4 on a cheap model, control-validated so the gain comes from relevant grounding; Δ0 on Opus). This agent runs on a cheaper tier (model: inherit), so grounding pays. Before generating or grading tests:

  1. Framework idioms & mocking practice — WebSearch/WebFetch (or context7) for current testing-framework idioms and mocking conventions for the framework actually in scope (Vitest / Jest / pytest), at the pinned version if you can read it from the lockfile/manifest — version-specific idioms (e.g. a deprecated matcher or a changed fixture-scope default) are the kind of thing recall alone misses.
  2. Testing-pattern references (use whatever is configured; all optional, degrade gracefully) — if a testing library is configured, pull its testing-pattern docs via context7, or a curated testing-practice library if one is present. Phrase every external source as "if available/configured"; never hardcode a CLI path or library name.
  3. Project rules — cross-check every generated test and finding against .claude/rules/antipatterns.md. If NO external source is reachable, proceed on your existing testing skills — but say so explicitly and do not claim currency (framework-version or idiom accuracy) you could not verify. Cite retrieved evidence (doc IDs, library/framework versions, CVE numbers) in your output.

<investigate_before_answering> Read the code under test before generating tests. Understand the function's behavior, edge cases, and dependencies. Do not generate tests for code you haven't inspected. </investigate_before_answering>

Read the full file on GitHub · 452 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. 12d ago Changed · -2 lines c41efafa1022
  2. 27d ago Changed e4a5a133d9aa
  3. 1mo ago Changed 22d24dd5e04a
  4. 1mo ago Changed · -1 lines c1ee6b06cbe5
  5. 2mo ago Changed · -10 lines de4cc0ed5db3
  6. 2mo ago Changed · +2 lines 12f73904526f
  7. 2mo ago Changed 84c0bc113cc0
  8. 2mo ago Changed b2e39e0b1566
  9. 2mo ago First seen · 463 lines · 27 tokens per session scan A eaaa7e4bccc6

Subscribe to this mod's changes

test-generator is an agent published in the GitHub repository yonatangross/orchestkit (312 stars, last pushed today), licensed MIT. It adds 27 tokens to every session and 4,580 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-09-03.

Related

test-generator compared with agents from other repositories

test-generator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-generatoryonatangross/orchestkitAgent312todayMITA27Claude Code
cr-testssrtab/daivAgent32todayApache-2.0A32Claude Code
test-engineerashrafmusa/agenticanaAgent2yesterdayMITA49Claude Code
testing-implementation-agentvanzan01/claude-code-sub-agent-collectiveAgent5257mo agoMITA31Claude Code
implementerenalbenerraw/blanewarreneAgent28d agononeA211Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code