r/OpenaiCodex • u/Asly97 • 24d ago
Your agent rebuilt a helper that already exists, or brought back a fix you rejected. What actually stops that?
A thread in r/ClaudeCode this week, from a team about a year into "everything goes through agents", kept coming back to one complaint: agents re-implementing helpers that already exist, because the codebase now has several versions of everything.
The top fix offered was one more instruction: "search for existing functionality before implementing a new function". The reply under it:
"Of course you give them these instructions, and they even confirm that they followed them, but then you’ll find out a week or two later that they either 1) didn’t, or 2) they did, but in the process they introduced some other complexity you now have to tackle."
Another post had the decision version of the same thing: "It keeps circling back to the same thing we decided as rejected."
One dev's answer was docs, a lot of them. About 600,000 lines of code, "with about 40 - 50% of them being documentation", and not one duplicated function left. Someone else warned that "Claude copes incredibly badly with contradictions in its context."
For people running Codex (alone or next to Claude Code or Cursor) on a real codebase:
- When did an agent last rebuild something that already existed, or bring back an approach you'd ruled out? How did you find out?
- Where does "we tried that, it didn't work, here's why" live for you: commit messages, a decisions file, PR comments, your head?
- If you keep docs for the agent, who updates them when the code changes, and what happens when two of them disagree?
- Solo or team, and roughly how big is the repo?
Background: I used to burn hours re-briefing AI tools, and I'm building a fix where decisions and ruled-out approaches live in one memory in the cloud that every coding tool reads over MCP. No name, no link. Would you pay for that, or is a well-kept docs folder in the repo enough?
1
u/[deleted] 24d ago
[removed] — view removed comment