Programming Throwdown · Hands-On Engineering Podcasts · November 2026
Jason Gauci explains why asking a coding agent to write tests gives high coverage but little meaning. It is the core argument of the episode on testing agent-written code.
…discussions and we build plans, and sometimes they come back with questions, 'How do I want to do this?' It's like choose your own adventure now instead of writing Python or whatever. That's kind of what's happened with me. What's the situation with you? Is it similar? How is it different? I think.
…people have started pruning out comments, and I actually think that AI letting the AI put in really long comments for future turns and cycles seems to be effective. It seems to be good that the agent leaves notes for itself, so but that makes it harder for me to read or use, but I've become okay.
…at this point, really thirsty. Second day, this form comes. You check the second box, and then food shows up. They put food. Third day, you check the second box, more food shows up, right? So you start learning associations, but this page full of glyphs, you're not really understanding the language; you're just starting to learn the causal nature of those actions, right? And so I think that when you ask the AI to just test something, what you get are things that go through the code and make sure that that line of code is executed and the test passes, but it's not really understanding what's going on and testing semantically, deeply understanding that. And so if you then change that code, the test will just break because it wasn't testing the meaning of that code. And so then the tests now just get updated when the code gets updated, but because it's this sort of memorization that your app still has problems. It's like to just explain, like an extreme example. You have an addition function…
Exactly, I mean, you pointed out with the first one, which, you know, just trying to come up with the artificial structure, I'm sort of saying is like closing the loop, right? So, like, you ask for some code, it's going to do some stuff, and then you know you want it to test. And the first level…
Totally agree, you can't.
Write good code in the first place. It probably can't write a good