test-discoverer

test-discoverer is an agent for Claude Code from theogbrand/yoink. It costs 36 tokens per session (563 once invoked), scanned A, original, MIT.

An agent that finds existing tests for a particular function in a package's reference test suite. It copies relevant test files for later use without running them.

In plain words
What is it for?
Use it during test curation to locate roughly 10–15 useful tests for a target function, rename them with a disc_ prefix, and pass them to the next testing step.
Why use it?
It avoids searching a large test collection by hand and helps preserve tests that check the original library's real behavior. It also skips tests needing network access, API keys, or complicated fixtures.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the yoink plugin — 4 skills, 4 agents, 3 hooks shipped together

Install

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.

agentmods
npx agentmods add agents/theogbrand/yoink/test-discoverer
Clone the repo
git clone --depth 1 https://github.com/theogbrand/yoink

Made for: Claude Code.

Or install yoink, the plugin that ships this one along with the rest of its 4 skills, 4 agents, 3 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-discoverer

README.md
[![agentmods](https://agentmods.dev/badge/agents/theogbrand/yoink/test-discoverer.svg)](https://agentmods.dev/agents/theogbrand/yoink/test-discoverer)
Your own site
<a href="https://agentmods.dev/agents/theogbrand/yoink/test-discoverer"><img src="https://agentmods.dev/badge/agents/theogbrand/yoink/test-discoverer.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 563 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00036 $0.00563
Opus 5 $0.00018 $0.00282
Sonnet 5 $0.00007 $0.00113
Haiku 4.5 $0.00004 $0.00056

Measured 6d ago against content hash f3e2aac4c8f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

test-discoverer 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 6d 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/yoink/agents/test-discoverer.md · 67 lines

How it starts

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

Test Discoverer

You are a test discoverer. Your job is to search the reference test suite for tests relevant to a specific function from a package.

Input

Note: This schema is for reference only — input may arrive in varying formats.

{
  "package_name": { "type": "string", "description": "The target package" },
  "target_function": { "type": "string", "description": "The function or feature to find tests for" }
}

Naming convention: yoink_<package>/ where <package> has hyphens replaced by underscores (e.g., package litellm -> yoink_litellm/).

Rules

  • Do NOT rewrite imports -- keep them importing from the real library
  • Skip tests that require API keys, network access, or complex fixtures
  • Prefer tests that exercise the library's real behavior over tests that only exercise mock/test-mode scaffolding
  • Skip tests for unrelated features
  • IMPORTANT: Prefix ALL discovered test filenames with disc_ (e.g., test_foo.py -> disc_test_foo.py) to avoid name collisions with generated tests
  • Cap at ~10-15 most relevant test files
  • Do NOT run or execute any discovered tests, only copy them

Steps

1. Search for test files

Glob for test file names containing the function name in .yoink/reference/tests/.

2. Find references

Grep for imports/calls of the target function across all test files.

3. Confirm relevance

Read candidate files to confirm relevance.

  • If only part of a file is relevant then extract just those test functions.

4. Copy relevant tests

Copy ONLY relevant files to yoink_<PACKAGE>/tests/discovered/ (preserve directory structure).

  • If no relevant tests found then skip, generated tests are sufficient.

Output

Emit your output as a JSON code block matching this schema:

{
  "files_found": { "type": "integer", "description": "How many test files were found" },
  "files_copied": { "type": "array", "items": { "type": "string" }, "description": "Which files were copied (list paths)" },
  "summary": { "type": "string", "description": "Brief summary of what the tests cover" }
}

Read the full file on GitHub · 67 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. 6d ago First seen · 67 lines · 36 tokens per session scan A f3e2aac4c8f6

Subscribe to this mod's changes

test-discoverer is an agent published in the GitHub repository theogbrand/yoink (35 stars, last pushed 5mo ago), licensed MIT. It adds 36 tokens to every session and 563 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-30.

Related

Other agents, from other repositories

data-model-architect

Use when an orchestrator needs a Dataverse data model proposed (existing-table reuse, new tables in dependency-tier order, Mermaid ER diagram) for embedding in native-app-plan.md. Read-only — proposes, never mutates. Called by native-app-planner and /edit-app; not invoked directly by users.

microsoft/power-platform-skills · 67 tokens

webapi-integration

Use this agent when the user needs to integrate Power Pages Web API for a specific Dataverse table into their frontend code. Trigger examples: "integrate web api for products table", "add api calls for orders", "connect my site to the blog posts table", "implement crud for categories", "set up web api client", "create…

microsoft/power-platform-skills · 182 tokens

genpage-edit-planner

Plans edits to an existing generative page. Reads the downloaded page artifacts (source, original prompt, config), analyzes the current implementation against the user's edit intent, presents an edit plan via plan mode, and writes genpage-edit-plan.md for the orchestrator to execute. Called by the genpage skill — not…

microsoft/power-platform-skills · 73 tokens

catchup-runner

Does the catch-up fan-out, impact analysis, and brief assembly for /catchup on Sonnet (cheaper/faster than the caller's session). Spawned by the /catchup and /ketchup skills with a pre-resolved time window. Not user-invoked directly.

oliver-kriska/claude-elixir-phoenix · 63 tokens

otp-advisor

OTP patterns specialist - GenServer, Supervisor, Agent, Task, Registry, ETS. Use proactively when deciding if you need OTP abstractions or simpler solutions.

oliver-kriska/claude-elixir-phoenix · 35 tokens

verification-runner

Run project-aware verification loop. Reads mix.exs to discover tools (credo, dialyzer, sobelow, excheck), test commands, and custom aliases. Use proactively after code changes.

oliver-kriska/claude-elixir-phoenix · 44 tokens