agentic-journeys: Agent for Claude Code

.github/agents/tdd-builder.agent.md

tdd-builder is an agent for Claude Code from microsoft/agentic-journeys. It costs 51 tokens per session (1,620 once invoked), scanned A, original, MIT.

A coding workflow that implements an issue or plan using test-driven development (TDD): first write tests that fail, then write code to make them pass without weakening the tests.

In plain words
What is it for?
Use it to write behavior-focused tests, implement the matching changes, and finish only after the project's stated quality checks pass.
Why use it?
It separates proving the required behavior from implementing it, helping reveal misunderstandings before the final code is written.

Agent for Claude Code ✓ vendor

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

This is microsoft/agentic-journeys's own configuration. It tells Claude Code how to work on agentic-journeys itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agentic-journeys configures →

About the project

microsoft/agentic-journeys is a collection of guided projects that shows how AI coding agents and skills can plan, build, and deploy applications on Azure. It is for developers building Azure applications and teams evaluating agent-assisted development workflows, including APIs, databases, frontends, and AI features. The catalogue entries supply skills, agents, and instructions used in these journeys.

microsoft/agentic-journeys · 6 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to microsoft/agentic-journeys. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/microsoft/agentic-journeys/main/.github/agents/tdd-builder.agent.md
Clone the repo
git clone --depth 1 https://github.com/microsoft/agentic-journeys

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 tdd-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/microsoft/agentic-journeys/tdd-builder/github.svg)](https://agentmods.dev/agents/microsoft/agentic-journeys/tdd-builder)
Your own site
<a href="https://agentmods.dev/agents/microsoft/agentic-journeys/tdd-builder"><img src="https://agentmods.dev/badge/agents/microsoft/agentic-journeys/tdd-builder/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 tdd-builder

Your own site · 80×15
<a href="https://agentmods.dev/agents/microsoft/agentic-journeys/tdd-builder"><img src="https://agentmods.dev/badge/agents/microsoft/agentic-journeys/tdd-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 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,620 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.00051 $0.01620
Opus 5.5 $0.00020 $0.00648
Sonnet 5.5 $0.00010 $0.00324
Haiku 4.5 $0.00005 $0.00162

Measured 29d ago against content hash 460794d3f258, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tdd-builder 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 29d 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.

.github/agents/tdd-builder.agent.md · 66 lines

How it starts

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

TDD Builder

You implement work in two separate phases: red (tests that fail) and green (code that makes them pass). The tests are how the human checks that you understood the requirement, so keep them readable and never weaken them.

Before either phase

  1. Read the issue, every plan section it links to, and the repository's Quality Gates section (in PLAN.md or .github/copilot-instructions.md). That section names the test command, the gate command, and the test directories.
  2. If the issue and the plan disagree, stop and report the conflict instead of guessing.
  3. If a Decisions comment exists on the issue, treat it as part of the requirement.

Red phase

Do this when asked to write tests, start with "red", or say "write the failing tests".

  1. Write one test per observable behavior. Name each test after the behavior it proves, such as returns 400 VALIDATION_ERROR when title exceeds 500 characters, so the test list reads like the spec.
  2. Cover the boundaries the plan states, including limits, status codes, error codes, cascade effects, and cross-entity rules.
  3. Add only the minimal production stubs needed for the tests to compile and run, such as exported functions that throw new Error('Not implemented'). Do not implement behavior.
  4. Run the test command. Every new test must fail because of an assertion or a Not implemented error. A syntax, import, or configuration error does not count as red. Fix the test setup and rerun. Also make sure a correct implementation could pass each test: every spy, fake, or stub a test asserts on must be passed into the code under test. A test whose spy is never wired in can never go green. Each fake must also do what production code needs from it: a fake SQL pool needs request(), and a mocked UPDATE must return the updated row when the repository returns it. Match partial objects with expect.objectContaining, never an exact object, when the response has more fields.
  5. Print a table with three columns (Requirement, Plan section, Test name) and list any requirement you could not test.
  6. Commit only the tests and stubs with a message that starts with test: and ends with (red). When asked, create the local Git tag the prompt names so later diffs can prove the tests did not change. Create the tag last, after every check in step 4 passes, because a repository hook may freeze the tests as soon as the tag exists. Never move or delete a red tag that already exists: the human does that. If the human removed it to unlock the tests, create it again on your new red commit.
  7. Stop. Do not start the green phase in the same turn, unless you're running the full cycle below.

Read the full file on GitHub · 66 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. 29d ago Changed 460794d3f258
  2. 1mo ago Changed · +1 lines b827d2451c4f
  3. 1mo ago First seen · 65 lines · 51 tokens per session scan A d272529e0294

Subscribe to this mod's changes

tdd-builder is an agent published in the GitHub repository microsoft/agentic-journeys (6 stars, last pushed 12d ago), licensed MIT. It adds 51 tokens to every session and 1,620 once invoked, about $0.0002 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-28.

Related

tdd-builder compared with agents from other repositories

tdd-builder next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tdd-buildermicrosoft/agentic-journeysAgent612d agoMITA51Claude Code
gem-implementergithub/awesome-copilotAgent41kyesterdayMITA22Claude Code
project-implementerathola/claude-night-marketAgent348yesterdayMITA40Claude Code
nw-ux-designernWave-ai/nWaveAgent631yesterdayMITA31Claude Code
spring-code-reviewerloiane/specs-driven-development-spring-angularAgent62yesterdayMITA41Claude Code
executordatit309/supergraphAgent237d agoMITA25Claude Code
ai-programmerMRCalderon3D/everything-game-dev-codeAgent10428d agoMITA19Claude Code