GenAI PM
concept3 mentions· Updated Feb 23, 2026

red/green TDD

A test-driven development pattern adapted for coding agents. It emphasizes an iterative failure/success loop that can make agentic coding more reliable.

Key Highlights

  • Red/green TDD adapts traditional test-driven development into a structured workflow for coding agents.
  • The pattern instructs agents to write tests first, confirm failure, implement code, and then confirm success.
  • For AI PMs, it creates clearer acceptance criteria and improves reliability in AI-assisted software delivery.
  • Simon Willison’s agentic engineering patterns helped establish red/green TDD as a repeatable approach for autonomous coding.
  • The concept gained traction alongside stronger coding agents such as Claude Code and GPT-5.4.

red/green TDD

Overview

red/green TDD is a test-driven development loop adapted for coding agents: first generate tests, run them to confirm failure (red), implement code to satisfy those tests, and then rerun to confirm success (green). In the agentic coding context, this pattern turns a vague implementation request into a structured workflow with explicit checkpoints, making autonomous code generation more reliable and easier to validate.

For AI Product Managers, red/green TDD matters because it offers a practical control mechanism for AI-assisted software delivery. Instead of asking an agent to "build the feature" end-to-end, teams can constrain work into small verifiable iterations. That improves traceability, reduces silent failures, and creates clearer acceptance criteria for agent-generated output—especially as tools like Claude Code and GPT-5.4 make autonomous coding more common in product development workflows.

Key Developments

  • 2026-02-23: Simon Willison’s Agentic Engineering Patterns was referenced as a hub for building and operating agentic systems, including red/green TDD as a specific pattern for coding agents.
  • 2026-04-03: A detailed description of the prompt pattern appeared: invoking “red/green TDD” tells agents to write tests first, run them to verify failure, implement code, and rerun tests to verify success.
  • 2026-04-04: Lenny Rachitsky shared Simon Willison’s view that late 2025 marked an inflection point for AI coding, with autonomous coding agents, benchmark progress, and “thin templates” helping drive adoption of red/green TDD.

Relevance to AI PMs

  • Define measurable agent workflows: PMs can translate feature requirements into test-first tasks, giving coding agents explicit success criteria and reducing ambiguity in implementation.
  • Improve reliability in AI-assisted delivery: By requiring a red-to-green loop, teams can catch failures earlier and prevent agents from producing plausible but unverified code changes.
  • Operationalize agent governance: Red/green TDD can be built into product engineering processes, CI pipelines, and acceptance reviews so AI-generated code is evaluated against observable outcomes rather than narrative confidence.

Related

  • Simon Willison: A key advocate for agentic engineering patterns and an early source framing red/green TDD for coding agents.
  • Lenny Rachitsky: Amplified the idea through commentary on the AI coding inflection point and its implications for software teams.
  • Claude Code: An example of a coding agent environment where red/green TDD can structure autonomous implementation work.
  • GPT-5.4: Cited as part of the model progress that made instruction-following strong enough for these coding workflows to become more dependable.
  • agentic-engineering-patterns: The broader pattern library in which red/green TDD is positioned as one tactic for reliable agent operation.
  • test-driven development / red green test-driven development / red-green TDD: Common aliases and adjacent terminology connecting this concept back to traditional TDD practices.

Newsletter Mentions (3)

2026-04-04
#8 𝕏 Lenny Rachitsky shares Simon Willison’s insight that November 2025 was the inflection point for AI coding, unleashing autonomous coding agents benchmarked by Pelican Benchmark and driving red/green TDD with “thin templates.

GenAI PM Daily April 04, 2026 GenAI PM Daily 🎧 Listen to this brief 3 min listen Today's top 17 insights for PM Builders, ranked by relevance from X, Blogs, and LinkedIn. Claude subscriptions will no longer cover usage on third-party tools like OpenClaw. #8 𝕏 Lenny Rachitsky shares Simon Willison’s insight that November 2025 was the inflection point for AI coding, unleashing autonomous coding agents benchmarked by Pelican Benchmark and driving red/green TDD with “thin templates.

2026-04-03
Invoking the prompt “red/green TDD” directs agents to write tests first, run them to confirm failure, implement the code, then rerun tests to confirm success.

▶️ Why AI came for coders first, automation timelines, and how we’re inside the AI inflection Lennys Podcast Simon Willison details agentic engineering patterns—using coding agents like Claude Code and GPT-5.4 for red/green TDD, thin project templates, and public GitHub hoarding—to boost software productivity and reliability. GPT-5.1 and Claude Opus 4.5 released in November 2025 advanced coding agents from “mostly working” to “almost always following instructions,” enabling engineers to churn out up to 10,000 lines of code per day. Invoking the prompt “red/green TDD” directs agents to write tests first, run them to confirm failure, implement the code, then rerun tests to confirm success. Willison’s GitHub repositories include simonw/tools with 193 HTML/JavaScript client-side utilities and simonw/ressearch with 75 AI-driven research projects to hoard reusable code experiments.

2026-02-23
#3 📝 Simon Willison Agentic Engineering Patterns - A guide collecting patterns for building and operating agentic systems. It serves as a hub for specific patterns such as red/green TDD for coding agents.

#3 📝 Simon Willison Agentic Engineering Patterns - A guide collecting patterns for building and operating agentic systems. It serves as a hub for specific patterns such as red/green TDD for coding agents. #5 📝 Simon Willison Research WebMCP + Chrome DevTools Protocol Demo - Demo of WebMCP, a proposed browser API for exposing structured, callable tools to AI agents, showing how to register and interact with WebMCP tools from a Python client over the Chrome DevTools Protocol.

Stay updated on red/green TDD

Get curated AI PM insights delivered daily — covering this and 1,000+ other sources.

Subscribe Free