Well yeah, TDD. Many companies already work this way, and the LLMs are ok at generating the test-passing code.
From my experience though, it's better at writing tests (from natural language)
From my experience though, it's better at writing tests (from natural language)
the idea with llm tests first is tests should be extremely easy to read. of course ideally so should production code, but it's not always possible. if a test is extremely complicated, it could be a code smell or a sign that it should be broken up.
this way it's very easy to verify the llm's output (weird typos or imports would be caught by intellisense anyway)