test-gap

test-gap is an agent for Claude Code from ALTEN-group/coding-pal. It costs 20 tokens per session (560 once invoked), scanned A, original, MIT.

A test-coverage audit agent that compares source functions, methods, and decision paths with the tests in a project. It records grouped missing-test findings in `audit-findings.json` without editing code or tests.

In plain words
What is it for?
It is for finding missing tests for functions, branches, and edge cases, grouped by source module or test file.
Why use it?
Code may contain error paths and edge cases that existing tests never exercise. This identifies those gaps and skips items already covered by an open issue.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions Codex.

Good fit It is for finding missing tests for functions, branches, and edge cases, grouped by source module or test file.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/alten-group/coding-pal/test-gap"><img src="https://agentmods.dev/badge/agents/alten-group/coding-pal/test-gap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 560 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.00020 $0.00560
Opus 5.5 $0.00008 $0.00224
Sonnet 5.5 $0.00004 $0.00112
Haiku 4.5 $0.00002 $0.00056

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

Security

Grade A, and why

test-gap 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.

agents/test-gap.agent.md · 20 lines

What it actually says

  1. Compare exported functions, methods, and branches in the requested scope against existing test files in tests/.
  2. Consolidate closely related coverage gaps: merge all untested branches, methods, and edge cases belonging to the same source module or paired test file into a single finding rather than creating separate findings per function or branch in the same module. Skip any symbol or file already tracked by an open issue.
  3. Do not modify source, test, or documentation files.
  4. Write audit-findings.json at the repository root as a JSON array where each element represents one consolidated test coverage finding with fields:
    • "title": concise test(<scope>): <summary> issue title
    • "priority": GitHub issue priority ("Urgent", "High", "Medium", or "Low")
    • "model": recommended Copilot model for remediation ("claude-sonnet-5.5", "claude-opus-5.5", "claude-haiku-5.5", "gpt-6.1-sol", "gpt-6.1-terra", "gpt-6-luna", "gpt-5.3-codex", "gemini-4-argon", "gemini-3.8-flash", or "auto") based on finding complexity
    • "effort": recommended thinking effort ("Low", "Medium", "High", or "Max") based on reasoning depth required
    • "quick": boolean (true or false) indicating whether the finding is a simple, self-contained fix with clear affected files and straightforward remediation that should receive the quick fast-path label; adding missing tests is mechanical, so set true unless the tests need design judgment
    • "problem": clear explanation of the untested branches, methods, or edge cases
    • "affectedFiles": array of affected source and test file paths
    • "suggestedFix": concrete unit tests to add
    • "acceptanceCriteria": array of testable AC-<n> criteria strings (e.g. ["- **AC-1:** ..."])
    • "body": multi-line Markdown specification (using \n\n between sections and \n after every ## heading) with ## Problem, ## Affected Files, ## Suggested Fix, and ## Acceptance Criteria (- **AC-1:** ...).
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 Changed · +1 lines 8b3a2eb85886
  2. 23d ago First seen · 19 lines · 20 tokens per session scan A 164905cf22f8

Subscribe to this mod's changes

test-gap is an agent published in the GitHub repository ALTEN-group/coding-pal (6 stars, last pushed 6d ago), licensed MIT. It adds 20 tokens to every session and 560 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-11-09.

Related

test-gap compared with agents from other repositories

test-gap next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-gapALTEN-group/coding-palAgent66d agoMITA20Claude Code
pr-test-analyzeraffaan-m/ECCAgent315kyesterdayMITA24Claude Code
testing-revieweroliver-kriska/claude-elixir-phoenixAgent5792d agoMITA38Claude Code
test-gap-finderHoangNguyen0403/agent-skills-standardAgent598yesterdayMITA37Claude Code
ai-hygiene-auditorathola/claude-night-marketAgent3582d agoMITA48Claude Code
openinference-js-reviewerArize-ai/openinferenceAgent1.3kyesterdayApache-2.0A62Claude Code
openinference-python-reviewerArize-ai/openinferenceAgent1.3kyesterdayApache-2.0A74Claude Code