Red Green Refactor Is OP With Claude Code
YouTube · YouTube
- TDD’s red-green-refactor cycle produces substantially better results from Claude Code than unconstrained implementation: the failing test is an unambiguous success criterion the agent can verify autonomously.
- AI agents are good at satisfying explicit constraints and bad at inferring implicit ones — TDD externalises the implicit into a test, eliminating a major source of drift.
- The “refactor” phase is where agent output most often degrades; human review at that stage is disproportionately valuable.