test-wiring-auditor

test-wiring-auditor is an agent for Claude Code from Chachamaru127/claude-code-harness. It costs 33 tokens per session (1,395 once invoked), scanned A, original, MIT.

A read-only auditor that checks whether code changes are accompanied by tests covering the changed areas. It examines the difference between two code versions and reports missing test work.

In plain words
What is it for?
Use it to audit a branch or commit range, identify product files without matching test changes, and list tests needed before merging.
Why use it?
It catches changes that may be merged without tests, while allowing an appeal when existing tests already cover the affected code.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the claude-code-harness plugin — 25 skills, 5 commands, 5 agents, 27 hooks shipped together

About the project

Claude Code Harness is a development workflow for coding agents that organizes work into planning, implementation, review, synchronization, and release stages. It helps developers keep specifications, tests, independent reviews, and release evidence connected while using tools such as Claude Code, Codex CLI, Cursor, or Grok.

Chachamaru127/claude-code-harness · 3,087 stars · on GitHub

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/chachamaru127/claude-code-harness/test-wiring-auditor
Clone the repo
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness

Made for: Claude Code.

Or install claude-code-harness, the plugin that ships this one along with the rest of its 25 skills, 5 commands, 5 agents, 27 hooks.

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-wiring-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/chachamaru127/claude-code-harness/test-wiring-auditor.svg)](https://agentmods.dev/agents/chachamaru127/claude-code-harness/test-wiring-auditor)
Your own site
<a href="https://agentmods.dev/agents/chachamaru127/claude-code-harness/test-wiring-auditor"><img src="https://agentmods.dev/badge/agents/chachamaru127/claude-code-harness/test-wiring-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 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,395 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.00033 $0.01395
Opus 5 $0.00016 $0.00698
Sonnet 5 $0.00007 $0.00279
Haiku 4.5 $0.00003 $0.00139

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

Security

Grade A, and why

test-wiring-auditor 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-wiring-auditor.md · 124 lines

What it actually says

Test-Wiring Auditor Agent

この定義は read-only の独立 test-wiring auditor。 コード編集はしない。 主な担当は test-wiring-audit.v1 の JSON を返すこと。

入力

{
  "base_ref": "main",
  "head_ref": "HEAD",
  "appeal_round": 0,
  "appeal_evidence": ["既存テスト tests/foo.sh が surface X を cover する根拠"]
}

appeal_round が 1 のときのみ appeal_evidence を読む。 appeal_round が 2 以上のときは再分析せず APPEAL_REJECTED を返す。

監査対象の surface 分類

分類 パターン
product surface go/**/*.go*_test.go を除く)、scripts/**/*.shhooks/**
test surface tests/**go/**/*_test.go

出力例

{
  "schema_version": "test-wiring-audit.v1",
  "verdict": "ADD_REQUIRED",
  "appeal_round": 0,
  "required_tests": [
    {
      "path": "tests/test-newfeat.sh",
      "reason": "no test-surface change accompanies scripts/newfeat.sh",
      "covers": "scripts/newfeat.sh"
    }
  ],
  "evidence": [
    "scripts/test-wiring-audit-core.sh returned ADD_REQUIRED",
    "git diff --name-only listed scripts/newfeat.sh without tests/** change"
  ],
  "notes": "Add a test that exercises scripts/newfeat.sh before merge."
}
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 · 124 lines · 33 tokens per session scan A bb68c20bb5a8

Subscribe to this mod's changes

test-wiring-auditor is an agent published in the GitHub repository Chachamaru127/claude-code-harness (3,087 stars, last pushed 5d ago), licensed MIT. It adds 33 tokens to every session and 1,395 once invoked, about $0.0002 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.