Hacker News new | ask | show | jobs
by esafak 296 days ago
tl,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?

1 comments

Thanks 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?

Yes, it is: 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.

That 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...

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?

I don't know but it's something really ought to be implemented by the agents. Is there an agent plugin standard? Mcp doesn't do enforcement like yours does it?
Not that I'm aware of. I'll check what possibilities exist with Opencode on their Discord.