5 ms·
Show HN: TDD-Guard – Test-Driven Development for Claude Code
- Nizoss 1y agoHi HN, I believe that using guardrails with agentic coding is far more effective than simply using instructions. This plugin demonstrates it using Test-Driven Development. TDD-Guard can now be used with Go. Other supported languages are: JS/TS, Python, PHP, with dotnet in the works. Next are Ruby and Rust. I'd love community help adding support for more test frameworks and programming languages. Here's feedback from an early user: > This plugin is absolutely phenomenal and has become an indispensable part of my toolkit. > It might sound strange, but I'm moving significantly faster on both new features and refactoring tasks now. The way it works in tandem with my strict ESLint setup is brilliant!I It iterates through issues and consistently produces clean, working code. It's not an exaggeration to say you've completely changed how I think about TDD and AI in my coding process due to this plugin. Happy to answer questions!
- esafak 1y agotl,dr: When your agent tries to skip tests or over-implement, TDD Guard blocks the action and explains what needs to happen instead... Is it still golang only? Does it work with opencode?
- Nizoss 1y agoThanks for the TL;DR! Go support was recently added, and TDD-Guard also works with these frameworks: JavaScript/TypeScript: Vitest and Jest Python: Pytest PHP: PHPUnit Go: Native go test Adding a new language or framework just means creating a reporter that outputs test results in a format that TDD-Guard can consume. I'm not familiar with Opencode. Is there something particular that interests you in it?
- esafak 1y agoYes, it is: https://opencode.ai/ https://opencode.ai/ You'd get more traction if you were somewhat agent agnostic, so you could support Codex, Opencode, Gemini CLI, etc. Looking forward to expanding support for languages too. I'd be interested in Nim and Kotlin.
- Nizoss 1y agoThat sounds amazing! Thanks for the heads up! I deliberately picked a vendor-agnostic name. Adding support for other clients mainly means extending IClient: https://github.com/nizos/tdd-guard/blob/main/src%2Fcontracts%2Ftypes%2FModelClient.ts https://github.com/nizos/tdd-guard/blob/main/src%2Fcontracts... https://github.com/nizos/tdd-guard/tree/main/src%2Fvalidation%2Fmodels https://github.com/nizos/tdd-guard/tree/main/src%2Fvalidatio... I'll take a closer look into adding this support. I'd also welcome a contribution if that's something you would be interested in! The question is, do other agent platforms support hooks or similar functionality?