| ▲ | kaydub 4 hours ago | |
Yeah, it sounds like "you're holding it wrong" Like, why are you manually tidying and fixing things? The first pass is never perfect. Maybe the functionality is there but the code is spaghetti or untestable. Have another agent review and feed that review back into the original agent that built out the code. Keep iterating like that. My usual workflow: Agent 1 - Build feature Agent 2 - Review these parts of the code, see if you find any code smells, bad architecture, scalability problems that will pop up, untestable code, or anything else falling outside of modern coding best practices Agent 1 - Here's the code review for your changes, please fix Agent 2 - Do another review Agent 1 - Here's the code review for your changes, please fix Repeat until testable, maybe throw in a full codebase review instead of just the feature. Agent 1 - Code looks good, start writing unit tests, go step by step, let's walk through everything, etc. etc. etc. Then update your .md directive files to tell the agents how to test. Voila, you have an llm agent loop that will write decent code and get features out the door. | ||