logoalt Hacker News

pards • today at 12:54 PM • 6 replies • view on HN

> 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.


Replies

cataConst • today at 1:35 PM

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 ?

basch • today at 4:38 PM

“rewrite this project to be exactly the same but also as if you had written it”

➕ show 1 reply
miltonlost • today at 2:33 PM

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!

➕ show 1 reply
chai_coder • today at 2:35 PM

[dead]

williamdclt • today at 2:05 PM

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

brendanator • today at 2:36 PM

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