multi-agent-tdd

multi-agent-tdd is a command for Claude Code from Kastalien-Research/thoughtbox. It costs 28 tokens per session (1,097 once invoked), scanned A, original, MIT.

TDD workflow for multi-agent hardening. Agent attribution, content hashing, conflict detection, and structural diffs.

Command for Claude Code

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 commands/kastalien-research/thoughtbox/multi-agent-tdd
Clone the repo
git clone --depth 1 https://github.com/Kastalien-Research/thoughtbox

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 multi-agent-tdd

README.md
[![agentmods](https://agentmods.dev/badge/commands/kastalien-research/thoughtbox/multi-agent-tdd.svg)](https://agentmods.dev/commands/kastalien-research/thoughtbox/multi-agent-tdd)
Your own site
<a href="https://agentmods.dev/commands/kastalien-research/thoughtbox/multi-agent-tdd"><img src="https://agentmods.dev/badge/commands/kastalien-research/thoughtbox/multi-agent-tdd.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 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,097 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00028 $0.01097
Opus 5 $0.00014 $0.00549
Sonnet 5 $0.00006 $0.00219
Haiku 4.5 $0.00003 $0.00110

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

Security

Grade A, and why

multi-agent-tdd 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/commands/development/multi-agent-tdd.md · 110 lines

How it starts

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

/multi-agent-tdd

Strict TDD workflow for hardening Thoughtbox as "Git for reasoning" — content-addressable thought hashing (SHA-256 Merkle chain), agent attribution on all thought operations, formal logic notation for conflict detection, and structural branch diffs with human-legible views.

Variables

RESUME: $ARGUMENTS (default: auto-detected from .multi-agent-tdd/state.json)

Module Order (dependency-driven)

# Module Test Count Type Depends On
1 thought-attribution 10 Hybrid
2 content-hash 10 New (TDD) M1
3 cipher-logic-extension 5 New (TDD)
4 claim-parser 9 New (TDD) M3
5 conflict-detection 8 New (TDD) M4, M1
6 thought-diff 10 New (TDD) M1, M4, M5
7 identity-resilience 6 Validate
8 multi-client-demo 9 Integration M1–M7
Total 67

Execution Order

M3 + M7 (parallel, no deps) → M1 → M2 + M4 (parallel) → M5 → M6 → M8

Anti-Drift Rules

  1. Red gate for new code: Every new module (M2-M6, M8) must have tests verified failing before implementation
  2. Hypothesis gate for existing code: M1, M7 tests should pass immediately against existing code
  3. Backward compatibility: Adding optional fields to ThoughtData must not break existing tests
  4. Regression after each module: All prior tests still pass
  5. Commit at every gate: Atomic commits for bisection
  6. State before code: Update .multi-agent-tdd/state.json before and after each step

State File

Path: .multi-agent-tdd/state.json (gitignored)

Workflow

On Start

  1. Read .multi-agent-tdd/state.json — if exists and status != completed, resume from last step
  2. If no state file, initialize fresh state and begin at Phase 1

Per Module (New Code — M2-M6, M8)

  1. pending → Write tests → tests_written
  2. Run tests → Verify red → tests_red_verified
  3. Implement → implemented
  4. Run tests → Verify green → tests_green
  5. Run regression → complete
  6. Commit

Read the full file on GitHub · 110 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 · 110 lines · 28 tokens per session scan A b2d6c9f0020b

Subscribe to this mod's changes

multi-agent-tdd is a command published in the GitHub repository Kastalien-Research/thoughtbox (64 stars, last pushed 1mo ago), licensed MIT. It adds 28 tokens to every session and 1,097 once invoked, about $0.0001 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-03.