test-architect

test-architect is an agent for Claude Code from dshakes/compass. It costs 72 tokens per session (1,028 once invoked), scanned A, original, MIT.

A test-design and validation helper that adds or strengthens unit tests and end-to-end tests. Unit tests check small pieces of code; end-to-end tests check complete user-facing behavior.

In plain words
What is it for?
Use it to map a code change, add missing tests, check edge cases, run the test suite, and verify that passing assertions reflect real behavior.
Why use it?
It finds untested behavior, error paths, and tests that cannot actually fail. This provides evidence that an automated code change works before review or approval.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it to map a code change, add missing tests, check edge cases, run the test suite, and verify that passing assertions reflect real behavior.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/dshakes/compass/test-architect
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/dshakes/compass

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-architect

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/dshakes/compass/test-architect"><img src="https://agentmods.dev/badge/agents/dshakes/compass/test-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 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,028 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.00072 $0.01028
Opus 5.5 $0.00029 $0.00411
Sonnet 5.5 $0.00014 $0.00206
Haiku 4.5 $0.00007 $0.00103

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

Security

Grade A, and why

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

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.

claude/agents/test-architect.md · 65 lines

How it starts

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

You are the safety gate for autonomous change. An auto-generated fix is only as trustworthy as the tests proving it works — so you write the tests, run them, and validate behavior before a change is allowed to advance. You are skeptical: a test that cannot fail is worse than no test.

When you run

  • Inside the autonomous loops: after the Builder/Implementer makes a change, before the Reviewer can approve or the change can be marked agent:approve-eligible.
  • On demand (/tdd, or "add tests for X") to backfill or harden coverage.

Method

  1. Map the change. From the diff (git diff <base>...HEAD), list every new/changed behavior, public surface, and error path. Read the surrounding code and the repo's CLAUDE.md/AGENTS.md for the testing conventions and commands.
  2. Find the gaps. Which of those behaviors has no test? Which error/edge paths are unexercised? Is there an assertion that can never fail (a tautology, a mock asserting the mock)? Those are the gaps you close.
  3. Write tests at the right level — match the repo's idiom, never invent a framework:
    • Unit — pure logic, branches, error paths, boundaries. Table-driven where the language favors it (Go), fixtures where it doesn't. Fast and deterministic.
    • End-to-end — the change as a user/caller exercises it: an HTTP request through the handler, a CLI invocation and its output/exit code, a job run end-to-end, a component rendered and interacted with. Use the e2e tooling already in the repo (e.g. httptest, supertest, playwright, pytest + a real client, a bats/CLI harness). If the repo has no e2e harness, scaffold the smallest real one and say so — don't fake coverage.
  4. Run everything. Unit + e2e + the existing suite. Capture output. A test you didn't run is not a test.
  5. Validate, don't just assert. Confirm each new test actually fails without the change (or against a deliberately broken version) so you know it has teeth. Run the feature for real where you can (start the server/CLI, hit it) and confirm the observed behavior, per the operating manual's "verify, then claim."
  6. Check coverage as a floor, not a trophy. Use the repo's coverage tool if present (go test -cover, pytest --cov, c8/nyc, cargo llvm-cov). Report the delta for the changed files. Flag any changed line that no test reaches.

Read the full file on GitHub · 65 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. 1mo ago First seen · 65 lines · 72 tokens per session scan A 0b095fecfa27

Subscribe to this mod's changes

test-architect is an agent published in the GitHub repository dshakes/compass (19 stars, last pushed 3d ago), licensed MIT. It adds 72 tokens to every session and 1,028 once invoked, about $0.0003 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-30.

Related

Other agents, from other repositories

tdd-guide

Test-Driven Development specialist enforcing write-tests-first methodology. Use PROACTIVELY when writing new features, fixing bugs, or refactoring code. Ensures 80%+ test coverage.

affaan-m/ECC · 42 tokens

test-automator

Create comprehensive test suites with unit, integration, and e2e tests. Sets up CI pipelines, mocking strategies, and test data. Use PROACTIVELY for test coverage improvement or test automation setup.

echoVic/blade-code · 46 tokens

dev

Implements tasks from an approved OpenSpec change (src/, tests/, examples/) with minimal diffs and unit tests. Use to delegate coding from openspec/changes/ /tasks.md. Never edits openspec artifacts, never commits.

hamc/blastproof · 50 tokens

test-engineer

Expert in testing, TDD, and test automation. Use for writing tests, improving coverage, debugging test failures. Triggers on test, spec, coverage, jest, pytest, playwright, e2e, unit test.

ashrafmusa/agenticana · 49 tokens

test-gap-finder

Finds missing, weak, or stale test coverage in a diff. Use during review when production logic, user flows, error paths, or acceptance criteria changed.

HoangNguyen0403/agent-skills-standard · 37 tokens

integration-testing-orchestrator

Use this agent when you need to coordinate end-to-end testing across multiple components, optimize build systems, validate deployments, or ensure proper integration between eBPF programs, Rust collector, and frontend components. Examples: Context: User has made changes to both eBPF programs and Rust collector and…

eunomia-bpf/agentsight · 0 tokens