2 min lesson
Run one red to green Agent loop
Commit one intended failing test, then make it pass without changing its assertions.
Step 1 of 2
Give Agent one behavior with exact inputs and outputs. Ask for tests only, run the smallest target and confirm the intended assertion fails. Review the test for weak or missing cases, then commit it. Ask Agent to implement the behavior without modifying the tests. Keep iterating until the target test passes, then run the relevant broader checks, review the implementation and commit the code separately.
Learn more
Optional practice
Test yourself on Run one red to green Agent loop
QWhich result proves the test-first Agent loop is complete?