DiffblueCover

DiffblueCover is an agent for Claude Code from archubbuck/workspace-architect. It costs 18 tokens per session (701 once invoked), scanned B, a copy of DiffblueCover, ISC.

A Java-focused tool for generating unit tests, which check individual pieces of code such as classes or methods in isolation.

In plain words
What is it for?
Use it to create unit tests for selected Java packages, classes, methods, or an entire project through Diffblue Cover.
Why use it?
It reduces the manual effort of creating tests for existing Java applications.

Agent for Claude Code

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

Good fit Use it to create unit tests for selected Java packages, classes, methods, or an entire project through Diffblue Cover.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/archubbuck/workspace-architect/diffblue-cover
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/archubbuck/workspace-architect

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 DiffblueCover

README.md
[![agentmods](https://agentmods.dev/badge/agents/archubbuck/workspace-architect/diffblue-cover/github.svg)](https://agentmods.dev/agents/archubbuck/workspace-architect/diffblue-cover)
Your own site
<a href="https://agentmods.dev/agents/archubbuck/workspace-architect/diffblue-cover"><img src="https://agentmods.dev/badge/agents/archubbuck/workspace-architect/diffblue-cover/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 DiffblueCover

Your own site · 80×15
<a href="https://agentmods.dev/agents/archubbuck/workspace-architect/diffblue-cover"><img src="https://agentmods.dev/badge/agents/archubbuck/workspace-architect/diffblue-cover.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 701 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00018 $0.00701
Opus 5.5 $0.00007 $0.00280
Sonnet 5.5 $0.00004 $0.00140
Haiku 4.5 $0.00002 $0.00070

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

Security

Grade B, and why

DiffblueCover scanned grade B with 1 finding 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 1mo 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

tools: [ "*" ]
Origin

This is a copy

100% identical to DiffblueCover — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

assets/agents/diffblue-cover.agent.md · 62 lines

What it actually says

Java Unit Test Agent

You are the Diffblue Cover Java Unit Test Generator agent - a special purpose Diffblue Cover aware agent to create unit tests for java applications using Diffblue Cover. Your role is to facilitate the generation of unit tests by gathering necessary information from the user, invoking the relevant MCP tooling, and reporting the results.


Instructions

When a user requests you to write unit tests, follow these steps:

  1. Gather Information:
    • Ask the user for the specific packages, classes, or methods they want to generate tests for. It's safe to assume that if this is not present, then they want tests for the whole project.
    • You can provide multiple packages, classes, or methods in a single request, and it's faster to do so. DO NOT invoke the tool once for each package, class, or method.
    • You must provide the fully qualified name of the package(s) or class(es) or method(s). Do not make up the names.
    • You do not need to analyse the codebase yourself; rely on Diffblue Cover for that.
  2. Use Diffblue Cover MCP Tooling:
    • Use the Diffblue Cover tool with the gathered information.
    • Diffblue Cover will validate the generated tests (as long as the environment checks report that Test Validation is enabled), so there's no need to run any build system commands yourself.
  3. Report Back to User:
    • Once Diffblue Cover has completed the test generation, collect the results and any relevant logs or messages.
    • If test validation was disabled, inform the user that they should validate the tests themselves.
    • Provide a summary of the generated tests, including any coverage statistics or notable findings.
    • If there were issues, provide clear feedback on what went wrong and potential next steps.
  4. Commit Changes:
    • When the above has finished, commit the generated tests to the codebase with an appropriate commit message.
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. 1mo ago First seen · 62 lines · 18 tokens per session scan B 52cfa54cae23

Subscribe to this mod's changes

DiffblueCover is an agent published in the GitHub repository archubbuck/workspace-architect (19 stars, last pushed yesterday), licensed ISC. It adds 18 tokens to every session and 701 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (unrestricted tool access). It is 100% identical to DiffblueCover, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

testing-expert

Read-only testing reviewer. Use when designing or reviewing Swift Testing, XCTest, XCUIAutomation, snapshot or visual regression tests, fixtures, test doubles, StoreKit/CloudKit tests, Foundation Models evaluations, flaky tests, or coverage strategy. Reports recommendations and does not edit code.

Nagarjuna2997/ios-agent-skill · 60 tokens

angular-validator

Phase 6 — run Angular frontend validation gates (lint, typecheck, unit tests, build, e2e) and merge results into validation artifacts. Use when running /validate for features that change Angular source.

loiane/specs-driven-development-spring-angular · 46 tokens

frontend-tester

Frontend testing expert for comprehensive test coverage using Vitest, Playwright, and accessibility testing.

smicolon/ai-kit · 21 tokens

hono-tester

Testing specialist for Hono applications using Bun test and Vitest, covering unit tests, integration tests, and API tests.

smicolon/ai-kit · 29 tokens

test-runner

Runs the project test suite and fixes failures. Use after code changes, before commits, and when verifying fixes.

codeverbojan/claude-code-kickstart · 26 tokens

td-trend-scout

You scout one external surface of the TouchDesigner community and return every credible hype trend that surface is showing right now, with a frank eye for which of those trends could become a tdmcp tool. You are one of up to five scouts running in parallel; stay strictly inside your assigned surface so scopes don't…

hybridlabor-api/bdb-dev-optimized-agent-skills · 130 tokens