Your AI agent doesn’t forget. It retrieves the wrong memory.

Posted by BrightOpposite@reddit | LocalLLaMA | View on Reddit | 27 comments

I’ve been building AI agents for a while and kept hitting the same issue:

The agent works fine at first.
Then after a few iterations, it starts drifting.

Not completely wrong — just slightly off.

Then worse.

At first I thought:

But after debugging, it was something else:

The agent wasn’t forgetting.

It was retrieving the wrong memory.

Vector search gives you similar context.

Not necessarily relevant context.

That difference is what breaks most agents.

What actually helped:

After that, behavior stabilized.

Less drift. Better responses.

Curious if others have seen the same issue?