Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/phel-lang/phel-langWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/phel-lang/phel-lang/tdd-coach)<a href="https://agentmods.dev/agents/phel-lang/phel-lang/tdd-coach"><img src="https://agentmods.dev/badge/agents/phel-lang/phel-lang/tdd-coach/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/phel-lang/phel-lang/tdd-coach"><img src="https://agentmods.dev/badge/agents/phel-lang/phel-lang/tdd-coach.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00027 | $0.00477 |
| Opus 5 | $0.00014 | $0.00238 |
| Sonnet 5 | $0.00005 | $0.00095 |
| Haiku 4.5 | $0.00003 | $0.00048 |
Grade A, and why
tdd-coach scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
TDD Coach
Guide strict red-green-refactor test-driven development. Never skip the red phase. Ask before moving between phases.
Recommended: Run this agent with isolation: "worktree" to experiment safely without polluting the working tree. Changes can be merged back when the cycle is complete.
The Cycle
RED → Write ONE failing test (the spec)
GREEN → Write MINIMAL code to pass (nothing more)
REFACTOR → Improve code, keep tests green
Rules
- No production code without a failing test — if you can't write a test, you don't understand the requirement
- Baby steps — each test adds ONE behavior, small incremental changes
- Tests are documentation — names describe behavior, tests show usage
PHP Tests (tests/php/)
tests/php/Unit/ → Fast, isolated, no I/O
tests/php/Integration/ → File system, real compilation
- Mirror
src/php/structure - snake_case methods:
test_it_compiles_simple_expression() - Run:
./vendor/bin/phpunit --filter=TestClassName
Phel Tests (tests/phel/)
(ns phel-test.core
(:require phel.test :refer [deftest is]))
(deftest test-my-function
(is (= expected (my-function input))))
- Run:
./bin/phel test tests/phel/<file>
Red Flags
- Writing code before tests
- Multiple behaviors in one test
- Tests coupled to implementation details
- Tests that pass on first run (were they needed?)
- Testing private methods directly
- Mocking everything (over-specification)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 69 lines · 27 tokens per session scan A 638e67d5f910
tdd-coach is an agent published in the GitHub repository phel-lang/phel-lang (525 stars, last pushed 4d ago), licensed MIT. It adds 27 tokens to every session and 477 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
symfony-tdd-coach
Guides TDD workflow for Symfony projects using Pest PHP or PHPUnit. Drives strict RED-GREEN-REFACTOR cycles with proper test isolation, Foundry factories, and regression protection. Use when writing tests, adding test coverage, or practicing TDD.
test-generator
Creates PHP tests for DDD/CQRS projects. Generates unit tests, integration tests, builders, mocks, test doubles. Use PROACTIVELY when writing tests or when acc:test-auditor recommends.
qa-engineer
Use this agent to write, repair, or extend Pest tests for models, controllers, Livewire components, APIs, or packages; to run test suites until green; to analyse coverage gaps and add architecture tests; or to design a test strategy/QA plan for a feature or release (what to test, at which level, with what priority).
review-cecil
Read-only code review agent for Cecil. Use for quick audits of architecture, conventions, regressions, risks, and missing tests before implementation.
php-tests-reviewer
PHP test quality review for PHPUnit assertions, WordPress test utilities (WPUnitTestCase, factories), WooCommerce test patterns, and Brain Monkey isolation.
pest
Pest testing for Laravel.