<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/the-last-year-has-changed-everything-i-knew-about-tdd-after-20-years-hfz96tkev" -->

---
title: The Last Year Has Changed Everything I Knew About TDD...
description: A veteran TDD practitioner responds to a Martin Fowler site article by Beitta arguing that prompting AI coding agents to do TDD is 'theater' with no measurable...
canonical: https://daily.dev/posts/the-last-year-has-changed-everything-i-knew-about-tdd-after-20-years-hfz96tkev
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The Last Year Has Changed Everything I Knew About TDD After 20 Years | daily.dev
og:description: A veteran TDD practitioner responds to a Martin Fowler site article by Beitta arguing that prompting AI coding agents to do TDD is 'theater' with no measurable...
og:url: https://daily.dev/posts/the-last-year-has-changed-everything-i-knew-about-tdd-after-20-years-hfz96tkev
og:image: https://api.daily.dev/og/posts/HFz96Tkev.png
og:image:alt: The Last Year Has Changed Everything I Knew About TDD After 20 Years
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The Last Year Has Changed Everything I Knew About TDD After 20 Years

**[Continuous Delivery](https://daily.dev/sources/continuousdelivery)** · 10 min read · 5 upvotes · 0 comments

## Summary

A veteran TDD practitioner responds to a Martin Fowler site article by Beitta arguing that prompting AI coding agents to do TDD is 'theater' with no measurable benefit over not doing it. The presenter argues the study's TDD prompt was too weak: it omitted Kent Beck's test-list step and lacked strong refactoring guidance (like deterministic 'habit hooks' that detect code smells), which likely explains the disappointing results. She believes stronger, more realistic TDD harnesses used by practitioners could still deliver TDD's benefits with agentic AI, and calls for further research with better prompts and harnesses.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=wK5WgbqtI50>

## Questions this post answers

### Does using test-driven development prompts actually improve results when AI coding agents implement features autonomously?

A study by Beitta found no discernible difference in code quality or spec compliance between agents prompted to do TDD versus those not, and TDD prompting cost more tokens. However, critics argue the TDD prompt tested was too shallow, missing Kent Beck's test-list step and lacking strong refactoring guidance, so the result may reflect a weak TDD setup rather than TDD itself being ineffective.

_Developers refining agentic coding workflows can follow debates like this TDD-versus-agent-loop question on daily.dev._

### What is missing from typical TDD prompts given to AI coding agents compared to Kent Beck's original Canon TDD process?

Most agent TDD prompts skip Kent Beck's test-list step, where a running list of needed tests is created and updated after every TDD loop iteration. Without it, agents may write tests before code and work in small increments but fail to track the full scope of required behavior, causing unlisted but necessary functionality to go unimplemented, as seen in one underperforming study case.

_Teams designing agent coding harnesses can track evolving TDD-for-agents practices on daily.dev._

### What are habit hooks in an AI coding agent harness?

Habit hooks are deterministic sensors built into an agent's harness, similar to a linter, that detect specific code smells during coding and then inject targeted guidance into the prompt on how to fix that exact issue. This differs from generic prompt instructions listing code smells to avoid, and stronger refactoring outcomes were observed once such targeted guidance was added to a TDD prompt.

_Engineers building smarter agent harnesses can follow techniques like habit hooks on daily.dev._

## Similar posts on daily.dev

- [Test-driven development ideal for AI, says Agile workshop](https://daily.dev/posts/test-driven-development-ideal-for-ai-says-agile-workshop-lp2mddokm) · The Register · 1 upvotes · 0 comments
- [From Agile to AI: Anniversary workshop says test-driven development ideal for AI coding](https://daily.dev/posts/from-agile-to-ai-anniversary-workshop-says-test-driven-development-ideal-for-ai-coding-evrozww0i) · DEVCLASS · 0 upvotes · 0 comments
- [TDD is more important than ever](https://daily.dev/posts/tdd-is-more-important-than-ever-hoeecbmpk) · Justin Searls · 118 upvotes · 8 comments
- [TDD inside the agent loop - theater or actual value?](https://daily.dev/posts/tdd-inside-the-agent-loop---theater-or-actual-value--mytwhkuys) · Martin Fowler · 1 upvotes · 1 comments

---

Tags: [#testing](https://daily.dev/tags/testing), [#ai-agents](https://daily.dev/tags/ai-agents), [#agentic-ai](https://daily.dev/tags/agentic-ai), [#tdd](https://daily.dev/tags/tdd)

[View this post on daily.dev](https://daily.dev/posts/the-last-year-has-changed-everything-i-knew-about-tdd-after-20-years-hfz96tkev)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"The Last Year Has Changed Everything I Knew About TDD After 20 Years","url":"https://daily.dev/posts/the-last-year-has-changed-everything-i-knew-about-tdd-after-20-years-hfz96tkev","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-last-year-has-changed-everything-i-knew-about-tdd-after-20-years-hfz96tkev"},"datePublished":"2026-09-23T18:19:05.924Z","dateModified":"2026-09-23T18:19:30.206Z","description":"A veteran TDD practitioner responds to a Martin Fowler site article by Beitta arguing that prompting AI coding agents to do TDD is 'theater' with no measurable...","image":"https://i.ytimg.com/vi/wK5WgbqtI50/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/wK5WgbqtI50/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Continuous Delivery","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Continuous Delivery","logo":"https://media.daily.dev/image/upload/s---b6TAqpH--/f_auto/v1730404995/logos/continuousdelivery","url":"https://daily.dev/sources/continuousdelivery"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/the-last-year-has-changed-everything-i-knew-about-tdd-after-20-years-hfz96tkev","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"testing,ai-agents,agentic-ai,tdd","timeRequired":"PT10M","video":{"@type":"VideoObject","name":"The Last Year Has Changed Everything I Knew About TDD After 20 Years","description":"A veteran TDD practitioner responds to a Martin Fowler site article by Beitta arguing that prompting AI coding agents to do TDD is 'theater' with no measurable...","thumbnailUrl":"https://i.ytimg.com/vi/wK5WgbqtI50/sddefault.jpg","uploadDate":"2026-09-23T18:19:05.924Z","duration":"PT10M","url":"https://api.daily.dev/r/HFz96Tkev","embedUrl":"https://www.youtube.com/embed/wK5WgbqtI50"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Continuous Delivery","item":"https://daily.dev/sources/continuousdelivery"},{"@type":"ListItem","position":3,"name":"The Last Year Has Changed Everything I Knew About TDD After 20 Years"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/the-last-year-has-changed-everything-i-knew-about-tdd-after-20-years-hfz96tkev#faq","mainEntity":[{"@type":"Question","name":"Does using test-driven development prompts actually improve results when AI coding agents implement features autonomously?","acceptedAnswer":{"@type":"Answer","text":"A study by Beitta found no discernible difference in code quality or spec compliance between agents prompted to do TDD versus those not, and TDD prompting cost more tokens. However, critics argue the TDD prompt tested was too shallow, missing Kent Beck's test-list step and lacking strong refactoring guidance, so the result may reflect a weak TDD setup rather than TDD itself being ineffective. Developers refining agentic coding workflows can follow debates like this TDD-versus-agent-loop question on daily.dev."}},{"@type":"Question","name":"What is missing from typical TDD prompts given to AI coding agents compared to Kent Beck's original Canon TDD process?","acceptedAnswer":{"@type":"Answer","text":"Most agent TDD prompts skip Kent Beck's test-list step, where a running list of needed tests is created and updated after every TDD loop iteration. Without it, agents may write tests before code and work in small increments but fail to track the full scope of required behavior, causing unlisted but necessary functionality to go unimplemented, as seen in one underperforming study case. Teams designing agent coding harnesses can track evolving TDD-for-agents practices on daily.dev."}},{"@type":"Question","name":"What are habit hooks in an AI coding agent harness?","acceptedAnswer":{"@type":"Answer","text":"Habit hooks are deterministic sensors built into an agent's harness, similar to a linter, that detect specific code smells during coding and then inject targeted guidance into the prompt on how to fix that exact issue. This differs from generic prompt instructions listing code smells to avoid, and stronger refactoring outcomes were observed once such targeted guidance was added to a TDD prompt. Engineers building smarter agent harnesses can follow techniques like habit hooks on daily.dev."}}]}
```

