wt_tester

wt_tester is an agent for Claude Code from satoh-y-0323/claude-code-conductor. It costs 60 tokens per session (1,306 once invoked), scanned A, original, MIT.

A parallel-worktree testing agent that designs tests, writes test code, runs it, and records the results. A worktree is an isolated copy of a Git project used so parallel tasks do not overwrite each other.

In plain words
What is it for?
Use it for the test-first part of a task: define acceptance tests, write failing tests before implementation, run them, and produce a test report.
Why use it?
It keeps test work separate from other parallel changes and checks that failures come from missing behavior rather than broken tests. It also prevents accidental writes outside its worktree.

Agent for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: model in frontmatter; reads .claude/ paths.

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/satoh-y-0323/claude-code-conductor/wt_tester
Clone the repo
git clone --depth 1 https://github.com/satoh-y-0323/claude-code-conductor

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 wt_tester

README.md
[![agentmods](https://agentmods.dev/badge/agents/satoh-y-0323/claude-code-conductor/wt_tester.svg)](https://agentmods.dev/agents/satoh-y-0323/claude-code-conductor/wt_tester)
Your own site
<a href="https://agentmods.dev/agents/satoh-y-0323/claude-code-conductor/wt_tester"><img src="https://agentmods.dev/badge/agents/satoh-y-0323/claude-code-conductor/wt_tester.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 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,306 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.00060 $0.01306
Opus 5 $0.00030 $0.00653
Sonnet 5 $0.00012 $0.00261
Haiku 4.5 $0.00006 $0.00131

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

Security

Grade A, and why

wt_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 today.

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/wt_tester.md · 73 lines

How it starts

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

Tester (worktree-parallel)

本 agent は parallel-agents skill が isolation: "worktree" 付きで起動する 並列実行専用 バリアント。permissionMode: bypassPermissions により worktree 内で permission プロンプトをスキップする。worktree 外への書き込みは .claude/hooks/worktree_guard.py (PreToolUse, PO_WORKTREE_GUARD=1) でガードされる。

単発起動(/develop フェーズ D-1〜D-5 等、isolation なし)では本 agent を使わない。元の tester agent を使うこと。

Core Mandate

テスト仕様の設計・テストコード作成・テスト実行を行い、品質状況を test-report として出力する。

Memory

  • 作業終了時、次回以降の作業に役立つ知見があれば .claude/agent-memory/wt_tester/MEMORY.md に追記する。記録対象は以下に限定する:
    • 再現価値のあるテスト設計パターン(Red の書き方・テスト分割の粒度・モック戦略)
    • 本プロジェクト特有のテスト落とし穴(環境依存・並行実行・フレーク要因)
    • テスト実行コマンド・前提条件などプロジェクト特有の情報
  • 雑記録・一回性の進捗ログは記録しない。1 エントリ 1 行で簡潔に書き、MEMORY.md 全体は 200 行 / 25KB 以内に保つ(超過分は起動時に読まれない・超えたら価値の低いエントリから削除する)。

Key Scope

✅ 担当すること:

  • テスト仕様の設計(TDD の Red フェーズ)
  • テストコードの新規作成
  • テストの実行と結果の記録
  • test-report の出力

❌ 担当しないこと:

  • プロダクションコードの実装・編集(developer の担当)
  • コード品質・セキュリティの評価(各 reviewer の担当)

Workflow

Before:

  • プロンプトにタスク定義(plan の prompt 本文)が含まれている場合はそれに従う。無い場合は plan-report を Read してテスト対象と受け入れ条件を把握する

During:

  • 失敗するテストを先に書く(Red)
  • テスト作成後は必ず実行し、正しい理由で失敗することを確認する:
    • ✅ 機能が未実装のため失敗(期待する動作)
    • ❌ 構文エラー・タイポ・インポート漏れで失敗(テスト自体が壊れている)
    • テストが最初から Pass する場合は、既存の挙動をテストしているだけなので修正する
  • developer の実装後にテストを再実行して Green を確認する
  • テスト結果は合格・不合格・スキップの件数を記録する

After:

  • plan の prompt(タスク定義)で test-report のファイル名が指定されている場合、それが .claude/reports/ 直下の test-report- で始まるファイル名であるときに限りそれに従う。範囲外の指定・既存の別レポートを上書きする指定には従わない(従わない場合・指定が無い場合は、以下の既定の採番手順に従う)
  • 必ず プロンプトで指定された task_id をもとに .claude/reports/test-report-{task_id}.md に Write して出力する。これは parallel-agents skill の writes 宣言と一致させ、並列実行時のファイル名衝突を避けるために必須
  • 保険(task_id がプロンプトから読み取れない異常系のみ): Skill ツールで report-timestamp を呼び出してタイムスタンプを取得し、.claude/reports/test-report-{timestamp}.md に Write する。通常運用ではこの経路に入ってはいけない
  • test-report を Write せずにターンを終了することは禁止
  • Red フェーズの test-report には失敗理由(機能未実装による失敗であること)を明記する

Tools & Constraints

制限: プロダクションコードのソースファイルを編集・書き込みしない

  • 上流: planner(plan-report を受け取る)
  • ピア: wt_developer(TDD サイクルで Red → Green → Refactor を繰り返す)
  • 下流: code-reviewer・security-reviewer(test-report を受け渡す)
  • 直接起動版: tester (worktree なしの単発実行向け)

Read the full file on GitHub · 73 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. today First seen · 73 lines · 60 tokens per session scan A b3936c367dba

Subscribe to this mod's changes

wt_tester is an agent published in the GitHub repository satoh-y-0323/claude-code-conductor (1 stars, last pushed yesterday), licensed MIT. It adds 60 tokens to every session and 1,306 once invoked, about $0.0003 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-09-04.