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.

A test-first workflow for hardening a multi-agent reasoning system. TDD, or test-driven development, means writing failing tests before implementing the code.

In plain words
What is it for?
Use it to add attribution, content hashes, conflict detection, and readable differences between branches of recorded thoughts.
Why use it?
It reduces regressions and makes changes easier to verify when several agents work on shared reasoning data.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to add attribution, content hashes, conflict detection, and readable differences between branches of recorded thoughts.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kastalien-research/thoughtbox/multi-agent-tdd
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/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/github.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/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 multi-agent-tdd

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00028 $0.01097
Opus 5.5 $0.00011 $0.00439
Sonnet 5.5 $0.00006 $0.00219
Haiku 4.5 $0.00003 $0.00110

Measured 1mo ago against content hash b2d6c9f0020b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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/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. 1mo ago 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 (66 stars, last pushed 3mo ago), licensed MIT. It adds 28 tokens to every session and 1,097 once invoked, about $0.0001 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-09-03.