> I have found it difficult for the agents to follow the set of rules I want them to follow for projects that were not developed by them from scratch.
This reflects my experience too.
“rewrite this project to be exactly the same but also as if you had written it”
And then in PRs and meetings, we're told to fix the agents file when we see it get something wrong. But the agents file already has the rule. And then the agent gets the rule wrong again. And the cycle continues because we get so much more lines of code!
[dead]
Well TBF, I have the same difficulty with humans. Either you're the only* developer on a codebase and you can have an unenforced "set of rules", or you're not and you need to somehow enforce them.
*okay I've seen it work in small, competent, tight-knit teams... and even then, it often relies on someone particularly caring about those rules, even if the others are generally in agreement
AI code review[1] can check that guidelines in AGENTS.md (and the like) are being followed in PRs
1. https://www.sourcery.ai/ - disclosure, I'm the CEO
If I have a prompt, I put it in 3 different chats and filter the result & input trough all 3 chats. Claude is the best in my opinion, coding and daily chat. Do you have a specific way how to input the prompt/rules ?