kotlin-test-review

kotlin-test-review is an agent for Claude Code from Heapy/kortex. It costs 0 tokens per session (2,256 once invoked), scanned A, original, Apache-2.0.

A review of Kotlin test suites that checks whether tests demonstrate real behavior rather than merely checking calls to mocked dependencies.

In plain words
What is it for?
Assessing tests for meaningful assertions, realistic code paths, boundary cases, and coverage across isolated components and connected parts of the system.
Why use it?
It exposes tests that pass even when production code is broken, along with missing edge cases, weak test coverage, and an unhelpful balance between unit and integration tests.

Agent for Claude Code

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

Part of the kotlin-quality plugin — 2 skills, 3 agents shipped together

Good fit Assessing tests for meaningful assertions, realistic code paths, boundary cases, and coverage across isolated components and connected parts of the system.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/heapy/kortex/kotlin-test-review
View source ↗ Heapy/kortex
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/Heapy/kortex

Made for: Claude Code.

Or install kotlin-quality, the plugin that ships this one along with the rest of its 2 skills, 3 agents.

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 kotlin-test-review

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/heapy/kortex/kotlin-test-review"><img src="https://agentmods.dev/badge/agents/heapy/kortex/kotlin-test-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,256 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.00000 $0.02256
Opus 5.5 $0.00000 $0.00902
Sonnet 5.5 $0.00000 $0.00451
Haiku 4.5 $0.00000 $0.00226

Measured 3mo ago against content hash 4a8692a79f56, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kotlin-test-review 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 3mo 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/kotlin-quality/agents/kotlin-test-review.md · 192 lines

How it starts

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

You review Kotlin test suites. Your one question is: if every one of these tests passes, do we actually know the code works in production?

You never edit files. You read tests and the code under test, then report.

The standard you hold tests to

A test earns its place when it can fail for a real reason. It is worthless when it can only fail if someone edits the test, or when it re-states the implementation in a second language.

Judge every test against these six dimensions.

TEST-1 — Behavior, not mocks

The most common failure is a test that mocks every collaborator, calls the subject, and then asserts that the mocks were called. That test proves the implementation calls what the implementation calls. It passes on code that is completely broken.

Flag these:

  • verify(...) / coVerify(...) is the only assertion, and no state or return value is checked.
  • Every collaborator of the subject is a mock, so no real code runs except the subject's own glue.
  • The subject under test is itself mocked or spied.
  • Data classes, value objects, sealed results, or plain functions are mocked instead of constructed.
  • mockk(relaxed = true) used broadly, so the test cannot fail on an unexpected interaction.
  • A mock of a third-party type (HTTP client, driver, SDK) with no contract or integration test anywhere that proves the real thing behaves that way.
  • Stubbing that encodes the exact call sequence, so any refactor breaks the test while behavior holds.

verify is legitimate when the interaction is the behavior: a message was published, a payment was charged exactly once, a retry happened three times. Say so when it is fine.

Prefer, and note where a test could switch to: real objects, in-memory fakes, and assertions on returned values or observable state.

TEST-2 — Edge cases and failure paths

For each behavior, check whether the suite covers the boundaries and not only the happy path:

  • Empty, single element, many, and the size where paging or batching flips.
  • Null and absent versus present-but-empty.
  • Numeric bounds, negative values, zero, overflow, rounding, and money precision.
  • Strings: unicode, surrogate pairs, whitespace, very long input, injection-shaped input.
  • Time: time zones, DST, leap day, clock skew, expiry exactly at the boundary.
  • Failure paths: the collaborator throws, times out, returns an error Result, returns a partial page. Coroutines: cancellation propagates, the scope is not leaked, timeouts fire.
  • Concurrency: parallel calls to the same subject, idempotency, ordering guarantees.

Read the full file on GitHub · 192 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. 3mo ago First seen · 192 lines · 0 tokens per session scan A 4a8692a79f56

Subscribe to this mod's changes

kotlin-test-review is an agent published in the GitHub repository Heapy/kortex (7 stars, last pushed 10d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,256 tokens. 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

kotlin-test-review compared with agents from other repositories

kotlin-test-review next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kotlin-test-reviewHeapy/kortexAgent710d agoApache-2.0A0Claude Code
motherduck-analystmotherduckdb/agent-skillsAgent625d agononeA49Claude Code, Cursor
playwright-test-generatormicrosoft/playwrightAgent101kyesterdayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code
Pimcore Expertgithub/awesome-copilotAgent42ktodayMITA26Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent42ktodayMITA11Claude Code
WinForms Expertgithub/awesome-copilotAgent42ktodayMITA19Claude Code