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 · 9h 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?
Nizoss · 9h ago
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?
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?
esafak · 9h ago
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?
Nizoss · 8h ago
Not that I'm aware of. I'll check what possibilities exist with Opencode on their Discord.
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!
Is it still golang only? Does it work with opencode?
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?
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.
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?