This is an interesting challenge with AI memory. Sometimes remembering too much can limit creativity and lead to repeated mistakes. How can we make AI better at knowing what to remember and what to leave behind?
When AI memory gets in the way: my assistant kept remembering the rules I wanted to forget
19 Comments
@[SuMiTa] I don't think the answer is less memory, but finer control over it. Today we get on/off switches: new chat, incognito, per-project memory. What's missing is a way to say "keep this, drop that" within the same context: keep the game's resources and factions, forget the old city system.
Humans do it very well, know what is relevant or not, AI much less.
Please log in to add a comment.
@[Bansi Sojitra] Honestly, no reliable way. My fix was to reframe things explicitly in the prompt: "ignore the old city system, we're redesigning it."
But what bothers me more is that this case was easy to catch. The mistake was obvious. Most of the time, context is implicit. The assistant builds a profile of us and of how we work, and that shapes every conversation in ways we don't see. When it's a stale game rule, you notice. When it's a subtle bias in how it frames a problem, you probably don't.
Please log in to add a comment.
@[Mara Hollis] Fair point. Starting a fresh project and copying over only what I needed (resources, factions) would probably have solved it, at the cost of cherry-picking the context by hand.
Honestly, that option didn't occur to me, because it was the same project. It felt a bit like separating tests from sources just to get a fresh eye: you wouldn't do that, because the existing code holds information you still want. The old city system and the parts I wanted to keep lived side by side, so splitting them seemed unnatural.
And even with a fresh project, there's a limit: much of the context is implicit. I can copy the files I know matter, but I can't easily see which assumptions the assistant has already absorbed about the project, or about how I work.
I still think the project is the right frame for scoping memory. It just isn't always granular enough. In my case, what I needed was closer to a sub-project: same universe, same core mechanics, but a clean slate for the city system. And the underlying problem doesn't go away. To get an optimal result, you have to optimize the context, and that isn't always possible, or even worth the effort. Have you found a level of scoping that always works well for you in practice?
Please log in to add a comment.
I've hit the same problem. I'm forever changing my mind, making changes, and moving or deleting files. What helped was having Claude Code set up a small 'ontology' of my projects: plain-text files that record what exists, what was deleted, and what's still current. I can make decisions and change on the fly, and Claude does all the record-keeping.
When I change my mind, it doesn't delete the old decision. It writes a new one that says which decision it replaces, and marks the old one "superseded." It also wrote a short script that it runs after each change. The script checks that every superseded decision points to its replacement, and that every file our records mention still exists. A standing instruction for memory tells it: "My old preferences were relevant at the time, but not necessarily defaults."
Each new session reads those files FIRST, so it has both the old and the new 'rules' but now treats them as history, not instructions.
@[Ben Santora] That's an excellent method, and very close to what I do on pocket-db, the open-source database I'm building. Decisions live as ADRs in docs/adr/, and a new decision explicitly supersedes the old one instead of erasing it. Your validation script that checks every superseded decision points to its replacement is a nice addition I don't have.
It solves a real part of the problem: explicit decisions become history instead of instructions. It's not bulletproof, though. It covers what you thought to write down, not the implicit context the assistant picks up along the way.
Please log in to add a comment.
For the TypeScript prototype, I’d try a one-page brief with two lists: what stays (factions and resources) and what’s deliberately being redesigned (the city rules). Then I’d ask for three city systems with genuinely different trade-offs before sharing any C# examples. It gives you a quick way to spot whether an old mechanic has crept back in.
@[WAQAS AHMAD] That's a solid approach, and the "three genuinely different options" part is the most interesting to me. It's a direct test for the convergence problem I had with the faction characters: if the three proposals look alike, you know the context is steering. The brief itself works, but it's exactly the kind of manual context curation we'd hope tools could take over one day.
@[Fabien B.] I’d give each proposal a different constraint: one city system with no central authority, one with scarce resources, and one where factions have to cooperate. If the same mechanic shows up in all three, I’d run the brief once in a fresh chat. That comparison helps separate what the brief itself is pushing toward from what the old context may be carrying over.
Please log in to add a comment.
This is a good topic, I have a mcp memory tool and mine has fading of unused or dated stuff, and yet I still had this problem and little by little would use it less and less. Then even worse is when that info gets out dated from not using it, cross referencing projects which was supposed to be helpful but I found myself starting off sessions saying don't query it until I tell you what to look for and slowly it just faded out. Text memory files are better for me on the CLI but again I find myself hiding them. They are always needed of course but uncontrolled reading of memories causes issues for sure.
@[AIAppsAPI] Thanks.
Yours is a telling experience: even with fading built in, you ended up telling it not to query anything until you said what to look for. It suggests decay alone isn't the answer. Old and relevant aren't the same thing as recent and irrelevant. What you describe, "always needed but uncontrolled reading causes issues", sums up the tension better than I did.
Please log in to add a comment.
I found this gets a lot easier if you skip built-in auto-memory and split context into plain Markdown or YAML files by role. I keep fixed rules, current state, unconfirmed stuff, and an append-only log separate, and mark old entries as superseded instead of deleting them. Once confirmed, unconfirmed, and history live in different files, old rules stop leaking into new work.
@[Kato Masato] Splitting by role rather than by topic is a nice refinement, especially keeping "unconfirmed" separate from confirmed rules. It's close to Ben's approach and to the ADRs I use on pocket-db. The trade-off is that you become the memory manager: it works well, as long as you keep maintaining it.
Please log in to add a comment.
@[manojkagitha] "Instead of letting the model decide what is still relevant": I think that's the key point, and probably the honest state of things today. The reliable solutions in this thread all take that decision away from the model and make it explicit. Which works, but it also says something about how far built-in memory still has to go.
Please log in to add a comment.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- You Tube
- Tiktok
- Premium Subscription
- Terms of Service
- Early Builders
Building lightweight infrastructure, developer tooling and self-hosted software.
More From Fabien B.
Related Jobs
- Economic Data AssistantHaver Analytics · Full time · Singapore
- Medical Assistant/Technician (Hospital Corpsman)US Navy · Full time · Matador, TX
- Senior Backend Engineer (Gateway/IAM)42dot · Full time · South Korea
Commenters (This Week)
Contribute meaningful comments to climb the leaderboard and earn badges!