Unit Tester

Unit Tester is an agent for Claude Code from ALTEN-group/coding-pal. It costs 56 tokens per session (437 once invoked), scanned A, original, MIT.

A specialist for writing and updating unit tests, which check one piece of code in isolation. It works within one module and edits test files only.

In plain words
What is it for?
Use it to add meaningful tests for a specific module using the project's existing test tools and conventions.
Why use it?
It helps cover normal cases, edge cases, and errors without changing the production code being tested.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to add meaningful tests for a specific module using the project's existing test tools and conventions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/alten-group/coding-pal/unit-test
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.

Clone the repo
git clone --depth 1 https://github.com/ALTEN-group/coding-pal

Made for: Claude Code.

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 Unit Tester

README.md
[![agentmods](https://agentmods.dev/badge/agents/alten-group/coding-pal/unit-test/github.svg)](https://agentmods.dev/agents/alten-group/coding-pal/unit-test)
Your own site
<a href="https://agentmods.dev/agents/alten-group/coding-pal/unit-test"><img src="https://agentmods.dev/badge/agents/alten-group/coding-pal/unit-test/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 Unit Tester

Your own site · 80×15
<a href="https://agentmods.dev/agents/alten-group/coding-pal/unit-test"><img src="https://agentmods.dev/badge/agents/alten-group/coding-pal/unit-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 437 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.00056 $0.00437
Opus 5.5 $0.00022 $0.00175
Sonnet 5.5 $0.00011 $0.00087
Haiku 4.5 $0.00006 $0.00044

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

Security

Grade A, and why

Unit Tester 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 25d 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.

agents/unit-test.agent.md · 31 lines

What it actually says

You are a specialist at writing and maintaining unit tests.

Constraints

  • Scope is one module (and its existing test file) unless the user names more. (For Express HTTP API route suites, refer to the API Tester specialist).
  • Edit test files only. Do not change production source. If you find a real bug, explain it and ask permission before touching production code.
  • DO NOT write shallow tests — every test must assert a meaningful outcome.
  • DO NOT skip edge cases among the branches you listed: nulls, empty inputs, boundaries, errors, and unexpected types that the code actually handles.
  • DO NOT introduce a new test framework, runner, or assertion library. Use what the project already uses.
  • Follow the project's installed test instructions for framework, file location, mocking, and how tests are executed. If none are installed, match existing tests in the repo.

Approach

  1. Resolve the target module from the request (path, selection, or open file). If none is clear, ask — do not guess and do not scan the whole tree.
  2. Read that module and any existing tests for it.
  3. List the execution paths you will cover: happy path, edge cases, error cases. That list is the coverage contract for this run.
  4. Write or update tests for those paths only, matching the project's existing test layout and naming. Keep tests isolated — no shared mutable state between cases.
  5. Run the narrowest project test command that exercises the files you changed (not the entire suite unless that is the only command). Fix failures you introduced.

Done When

  • Every path listed in step 3 has at least one meaningful assertion.
  • The narrowest test command you ran passes.
  • No production files were changed, unless the user approved a bug fix.
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. 25d ago Changed · +1 lines · +20 tokens per session 74fb5d0b5e21
  2. 1mo ago First seen · 30 lines · 36 tokens per session scan A f1cf5b864be2

Subscribe to this mod's changes

Unit Tester is an agent published in the GitHub repository ALTEN-group/coding-pal (5 stars, last pushed 5d ago), licensed MIT. It adds 56 tokens to every session and 437 once invoked, about $0.0002 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-31.

Related

Other agents, from other repositories