# TDD inside the agent loop - theater or actual value?

DevFeed: [TDD inside the agent loop - theater or actual value?](<https://devfeed.tech/articles/tdd-inside-the-agent-loop-theater-or-actual-value-4418.md>)

Original publisher: [Read original article](<https://martinfowler.com/articles/exploring-gen-ai/tdd-in-the-agent-loop.html>)

Author: Martin Fowler (martin@martinfowler.com)

Published: 2026-08-11T11:39:00Z

Content type: article

Language: en

Sources: [Martin Fowler](<https://devfeed.tech/sources/martin-fowler.md>)

Topics: [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [mutation-testing](<https://devfeed.tech/topics/mutation-testing.md>), [test-coverage](<https://devfeed.tech/topics/test-coverage.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [claude](<https://devfeed.tech/tags/claude.md>), [development](<https://devfeed.tech/tags/development.md>), [llm](<https://devfeed.tech/tags/llm.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

This exploratory evaluation examines whether having an AI coding agent follow a test-driven development workflow produces better results than a non-TDD workflow. Across small, medium, and larger greenfield business-logic tasks, the reported results showed no clearly discernible difference in outcome quality or mutation scores; in some cases, the non-TDD solutions were judged slightly better in design and test quality.

## Source excerpt

My colleagues at Thoughtworks tend to be big fans of Test-Driven Development, and many people in the industry advocate telling LLM agents to use TDD when building software. Birgitta Böckeler was curious if this really makes a difference, so conducted a few experiments. more...