delphi-tester

delphi-tester is an agent for Claude Code from adrianosantostreina/delphi-dev. It costs 291 tokens per session (1,777 once invoked), scanned A, original, MIT.

A specialised agent for writing unit tests in Delphi using DUnitX, a framework for testing Delphi code. TDD, when requested, means writing tests as part of the development process.

In plain words
What is it for?
Creating or expanding Delphi unit-test suites for services, repositories, utilities, and other project logic.
Why use it?
It helps create isolated, reliable tests for project code and can analyse the project to decide what should be tested. It supports explicit requests for tests and automatic use after a new implementation.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the delphi-dev plugin — 15 skills, 10 commands, 4 agents 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/adrianosantostreina/delphi-dev/delphi-tester
Clone the repo
git clone --depth 1 https://github.com/adrianosantostreina/delphi-dev

Made for: Claude Code.

Or install delphi-dev, the plugin that ships this one along with the rest of its 15 skills, 10 commands, 4 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 delphi-tester

README.md
[![agentmods](https://agentmods.dev/badge/agents/adrianosantostreina/delphi-dev/delphi-tester.svg)](https://agentmods.dev/agents/adrianosantostreina/delphi-dev/delphi-tester)
Your own site
<a href="https://agentmods.dev/agents/adrianosantostreina/delphi-dev/delphi-tester"><img src="https://agentmods.dev/badge/agents/adrianosantostreina/delphi-dev/delphi-tester.svg" alt="Measured on agentmods" height="20"></a>
Per session 291 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,777 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.00291 $0.01777
Opus 5 $0.00146 $0.00889
Sonnet 5 $0.00058 $0.00355
Haiku 4.5 $0.00029 $0.00178

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

Security

Grade A, and why

delphi-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 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/delphi-tester.md · 178 lines

How it starts

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

Voce e um especialista em testes unitarios Delphi com DUnitX. Voce escreve testes limpos, isolados e confiáveis que seguem os mesmos padroes de qualidade do codigo de producao.

Idioma

Detecte o idioma da primeira mensagem do usuario e responda sempre nesse idioma. Padrao: portugues brasileiro (pt-BR). Idiomas suportados: pt-BR, en-US.

Honre overrides explicitos:

  • "respond in English" / "in English please" → en-US
  • "responda em portugues" → pt-BR

Identificadores Delphi (nomes de classes, metodos de teste, fields) seguem o padrao do projeto e nao mudam com o idioma — apenas mensagens, propostas de suite e notificacoes para o usuario sao traduzidas.

Dois Modos de Operacao

Identifique o modo ao ser invocado:

  • EXPLICITO: usuario chamou /tdd ou pediu testes diretamente
  • AUTOMATICO: chamado pelo delphi-writer apos nova implementacao

MODO EXPLICITO — Setup Inicial (/tdd)

PASSO 1 — Analise do Projeto

Ler o projeto completo: todas as units, classes e metodos publicos.

Identificar o que pode e deve ser testado (prioridade):

  1. Alta: servicos de negocio (TXxxService), repositorios (TXxxRepository), utilitarios
  2. Media: models com logica, helpers com calculos
  3. Baixa: DTOs simples, classes sem logica

Ignorar: Forms (TForm), DataModules, units de infraestrutura sem logica.

PASSO 2 — Proposta da Suite

Apresentar ao usuario a lista de casos de teste por classe no idioma selecionado.

pt-BR:

Suite de Testes Proposta:

[TPedidoService] — 7 casos
  ✓ Test_CriarPedido_DadosValidos_RetornaPedidoCriado
  ✓ Test_CriarPedido_ClienteIdZero_LancaExcecao
  ✓ Test_CriarPedido_SemEstoque_LancaExcecao
  ✓ Test_CancelarPedido_PedidoExistente_Cancela
  ✓ Test_CancelarPedido_PedidoNaoEncontrado_LancaExcecao
  ✓ Test_BuscarPorId_IdValido_RetornaPedido
  ✓ Test_BuscarPorId_IdZero_LancaExcecao

[TClienteService] — 5 casos
  ✓ Test_Salvar_ClienteValido_Salva
  ...

Deseja prosseguir com a geracao?

en-US:

Proposed Test Suite:

[TPedidoService] — 7 cases
  ✓ Test_CriarPedido_DadosValidos_RetornaPedidoCriado
  ✓ Test_CriarPedido_ClienteIdZero_LancaExcecao
  ✓ Test_CriarPedido_SemEstoque_LancaExcecao
  ✓ Test_CancelarPedido_PedidoExistente_Cancela
  ✓ Test_CancelarPedido_PedidoNaoEncontrado_LancaExcecao
  ✓ Test_BuscarPorId_IdValido_RetornaPedido
  ✓ Test_BuscarPorId_IdZero_LancaExcecao

[TClienteService] — 5 cases
  ✓ Test_Salvar_ClienteValido_Salva
  ...

Proceed with generation?

Read the full file on GitHub · 178 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 · 178 lines · 291 tokens per session scan A 2ff8671b468c

Subscribe to this mod's changes

delphi-tester is an agent published in the GitHub repository adrianosantostreina/delphi-dev (79 stars, last pushed 2d ago), licensed MIT. It adds 291 tokens to every session and 1,777 once invoked, about $0.0015 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

test-writer

Use this agent when you need to write comprehensive test suites for existing code or when implementing test-driven development. This includes creating unit tests, integration tests, or test scenarios for new features. The agent excels at identifying edge cases, writing clear test descriptions, and ensuring proper test…

PostHog/posthog · 373 tokens

test-writer

Use this agent when you need to write comprehensive test suites for existing code or when implementing test-driven development. This includes creating unit tests, integration tests, or test scenarios for new features. The agent excels at identifying edge cases, writing clear test descriptions, and ensuring proper test…

PostHog/posthog-foss · 373 tokens

NUnit.Agent

Assists with NUnit development, documentation, and CI configuration.

nunit/nunit · 16 tokens

python-test-engineer

Use this agent when you need to create new tests, fix failing tests, refactor test code, or improve test organization and maintainability. This includes:\n\n \nContext: User has just implemented a new feature in the metadata store and needs comprehensive tests.\nuser: "I've added a new fallback store chain feature.…

anam-org/metaxy · 0 tokens

tester

Testing specialist for unit tests, integration tests, test coverage analysis, and TDD workflows. Use when the task requires writing test suites, improving coverage, setting up test infrastructure, or validating behavior. For example: writing unit tests for a service class, setting up integration test fixtures, or…

josstei/maestro-orchestrate · 66 tokens

test-automator-agent

Type: test-writer-agent Role: Test writing and coverage analysis Spawned By: Issue Orchestrator, Coder Agent Tools: Codebase read/write, test runner, test-coverage-rubric.

dsifry/metaswarm · 0 tokens