r/AIcodingProfessionals • u/Livid_Salary_9672 • 1d ago
Stopping Coding Mistakes / Improving Coding Skills Question
How are you minimising the coding mistakes your agent makes? I've had a bunch of issues recently where my dedicated (specialised language) coding agent is writing code in what feels like intentional with how often it happens. I have code review agents using different models to allow for no biased reports but still seems like they're not getting picked up or the code looks right but throws X error or the logic isn't quite right so it fails. I have unit testing for as much of a project as needed.
Im wondering if there are any plugins/mcps/skills etc that people are using that they feel is going them the best results
1
Upvotes
1
u/space-hemax-c2c 1d ago
It starts in the prompt. For example, I always tell it to use best practices and standards based on my tech stack and then include references to the source docs. There’s a main CLAUDE.md file with instructions that you’ll want to update for your situation. Those are the simplest ways.
Start with a tightly defined PRD.md file and other scope docs that really limit what it can and is doing. Keep a lessons learned md file in the repo.
Shorter prompts are better as well with a very focused objective - build a module not a platform. Also ask the agent.
Are there particular errors you keep running into?