Make coding agents earn the green check 💡
Do not end an agent task with "implement this." End it with a command that can fail.
For a .NET repo, that might be dotnet test, a focused test project, a formatter check, or a small reproduction script. Tell the agent which command to run, what output to inspect, and what it should do if the command fails.
A good task contract has three parts:
• Change: the files or behavior to update.
• Proof: the exact command or test case.
• Stop condition: what needs human review instead of another retry.
This also makes PR review faster. You get a diff plus evidence, not a confident paragraph saying the fix should work.
〰〰〰〰〰〰
#AI #dotnet #Testing
@ProgrammingTip
2 · 3.1K · ThreadMake coding agents earn the green check 💡
2 messages · –J Umożliwienie agentom programistycznym uzyskania zielonego znaczka 💡 Nie kończ zadania agenta stwierdzeniem „zaimplementuj to”. Zakończ je poleceniem, które może się nie powieść. W przypadku repozytorium .NET, może to być dotnet test, dedykowany projekt testowy, sprawdzenie formatowania lub mały skrypt odtwarzający problem. Powiedz agentowi, jakie polecenie ma uruchomić, jakie dane wyjściowe ma sprawdzić i co powinien zrobić, jeśli polecenie się nie powiedzie. Dobry kontrakt zadania składa się z trzech części: • Zmiana: pliki lub zachowanie, które należy zaktualizować. • Potwierdzenie: dokładne polecenie lub przypadek testowy. • Warunek zatrzymania: co wymaga przeglądu przez człowieka zamiast kolejnej próby. To również przyspiesza przegląd pull requestów. Otrzymujesz różnicę (diff) oraz dowody, a nie jedynie pewny siebie akapit twierdzący, że poprawka powinna działać. 〰〰〰〰〰〰 #AI #dotnet #Testing @ProgrammingTip