<?xml version="1.0" encoding="UTF-8"?><oembed><type>video</type><version>1.0</version><html>&lt;iframe src=&quot;https://www.loom.com/embed/d442996affe14bdea81014183f633988&quot; frameborder=&quot;0&quot; width=&quot;2128&quot; height=&quot;1596&quot; webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt;</html><height>1596</height><width>2128</width><provider_name>Loom</provider_name><provider_url>https://www.loom.com</provider_url><thumbnail_height>1596</thumbnail_height><thumbnail_width>2128</thumbnail_width><thumbnail_url>https://cdn.loom.com/sessions/thumbnails/d442996affe14bdea81014183f633988-ab4c83feeea0cb8c.gif</thumbnail_url><duration>1701.846</duration><title>TDD with Github Copilot Agent</title><description>In this video, Wesley demonstrates how to use GitHub Copilot Agent in Agent Mode to build a complex business logic function using a test-driven development (TDD) workflow. The example focuses on calculating an invoice total with tax rules, discounts, and edge cases. Wesley starts by prompting the AI to create a TDD plan in a markdown checklist, which outlines one task per test and implementation step. He emphasizes the importance of small batch sizes and structured prompting to achieve better AI results. The Copilot Agent iterates through each checklist item, creating tests and implementation code step by step, with Wesley confirming commands for safety. As tasks are completed, the markdown file is updated in real-time. Once the full logic is implemented and passing all tests, Wesley prompts the AI to refactor the main function to reduce complexity. The AI successfully splits the logic into smaller functions, improving readability while maintaining test coverage. Wesley notes that while the result isn’t perfect, it’s a strong foundation and demonstrates how TDD supports clean iteration, validation, and safe refactoring with AI. He concludes by encouraging developers to explore this approach for business-heavy logic where clarity and accuracy are critical.</description></oembed>