tdd guard
Basic Information
TDD Guard is a developer tool that enforces Test-Driven Development principles for Claude Code agents by intercepting agent tool actions and validating test-driven workflows. It integrates as a pre-tool hook in Claude Code to block implementations that skip tests or over-implement features and to require the red-green-refactor cycle. The project captures test results via language-specific reporters so the agent can be informed about failing or passing tests. It supports multiple programming languages and test frameworks and can run against a local Claude binary or the Anthropic API. The repository includes configuration options, reporters for common test runners, and guidance for adding the hook to Claude Code projects. Requirements include Node.js 18+, a Claude Code or Anthropic API key, and a supported test framework.