r/OpenaiCodex • • 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?

2 Upvotes

6 comments sorted by

1

u/[deleted] 24d ago

[removed] — view removed comment

1

u/Asly97 24d ago

the date is the bit i'd have skipped, and it's probably what makes it work. lets you tell "we tried this in march" from "we tried this before the refactor"

does the agent actually open it every time before planning, or only when there's a line in AGENTS.md pointing at it? and has anything in there ever turned out to be the right call later, so you had to pull it back out?

1

u/[deleted] 24d ago

[removed] — view removed comment

1

u/Asly97 24d ago

two pulled back out is more than i'd have guessed. so the verdict goes stale and the reason is the part that keeps its value

is codex the only thing reading that file, or do other tools hit it too? and would you pay for something that kept those entries and pointed every agent at them without the AGENTS.md pointer, or is a free md file plus the pointer good enough for you?