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.

Full documentation included with purchase

The detailed configuration reference, troubleshooting guide, and hook documentation are included as PDF in the download.

Buy now →