5 ms·
I have been using Claude Code with TDD through hooks, which significantly improved my workflow for production code. Watching the ChatGPT 5 demo yesterday, I no
by Nizoss 1y ago
I have been using Claude Code with TDD through hooks, which significantly improved my workflow for production code.
Watching the ChatGPT 5 demo yesterday, I noticed most of the code seemed oriented towards one-off scripts rather than maintainable codebases which limits its value for me.
Does anyone know if ChatGPT 5 or Copilot have similar extensibility to enforce practices like TDD?
For context on the approach: https://github.com/nizos/tdd-guard https://github.com/nizos/tdd-guard
I use pre/post operation commands to enforce TDD rules.
- deleted 1y ago[deleted]
- MrGreenTea 1y agoI just recently stumbled upon your tdd-guard when looking for inspiration for Claude hooks. I've been so impressed with what it allowed me to improve the workflow and quality. Then I was somewhat disappointed that almost no one seems to talk about this potential and how they're using hooks. Yours was the only interesting project I found in this regard and hope to give it a spin this weekend . You don't happen to have a short video where you go into a bit more detail on how you use it though?
- Nizoss 1y agoThank you for the kind words, it means a lot! I spent my summer holiday on this because I truly believe in the potential of hooks in agentic coding. I'm equally surprised that this space hasn't been explored more. I'm currently working on making the validation faster and more customizable, plus adding reporters to support more languages. I think there is an Amazon backed vscode forked that is also exploring this space. I think they market it as spec driven development. Edit: I found it, its called Kiro: https://kiro.dev/ https://kiro.dev/
- Nizoss 1y agoSorry, I missed the second part of your comment! I don't have a detailed video beyond the short demo on the repo, but I'll look into recording something more comprehensive or cover it in a blog post. Happy to ping you when it's ready! In the meantime: I simply set it up and go about my work. The only thing I really do is just nudge the agent into making architectural simplifications and make sure that it follows the testing strategies that I like: dependency injection, test helpers, test data factories and such. Things that I would do regardless of the hook. I like to give my tests the same attention and care that I give production code. They should be meaningful and resilient. The code base contains plenty of examples but I will look into putting something together.
- ethan_smith 1y agoGPT-5 supports custom function calling which you could use to build similar TDD hooks via the API, though nothing as streamlined as your Claude Code implementation exists out-of-the-box yet.
- Nizoss 1y agoInteresting! So is it the agent that is responsible for triggering them? That is, they are not executed deterministically. Is that correct?