TDD-Gate Hook
The TDD Gate hook blocks writing implementation files as long as no test files exist in the worktree. Tests must be written BEFORE implementation - no exceptions.
Why it matters
AI agents tend to write code directly and forget about tests. The TDD gate enforces the correct order: tests first, then implementation. Even empty or failing tests are sufficient - the gate only checks for existence.
Broad language support
The TDD gate recognizes test files in Go, Python, TypeScript, JavaScript, Rust, C/C++,
Java, C#, PHP, Ruby, Swift, and more. Configuration files like .md,
.json, or .toml are never blocked. Since v6.9.6, scripts
under scripts/ (any code extension) and translation data under a folder
named i18n or locales are free as well. Only folders below
the worktree count.
Full documentation included with purchase
The detailed configuration reference, troubleshooting guide, and hook documentation are included as PDF in the download.
Buy now →