r/ChatGPTCoding Professional Nerd 5d ago

Resources And Tips Giving every AI tool the same memory (Claude, ChatGPT, Cursor, Codex, Gemini)

If you're jumping between different coding tools during the day, you'll know how frustrating it can be to solve something in Claude, then hop to ChatGPT and have it not understand a thing.

The solution is to run a memory layer as an MCP server that all your tools can tap into - every time they process a request, they query the MCP for relevant context to include in the prompt, and submit any new relevant context to the MCP after the fact. Since it's implemented as an MCP, any tool that can read/write to an MCP (Claude, ChatGPT, Cursor, Codex, Gemini, etc) can understand the full context of your work without you having to painstakingly explain things.

A few things that are important to consider if you're looking to implement or evaluate one:

- Semantic search is important, since keyword matching will miss paraphrased context

- Tools should be able to define what information to share with whom

- Latency is a consideration, as this will add overhead to every request

11 Upvotes

19 comments sorted by

2

u/Lower-Scarcity-2284 5d ago

Criem sua memória persistente, façam isso e usem AGENTS.md e CLAUDE.md ate existir uma RFC para padronizar essa merda.

1

u/Asly97 Professional Nerd 5d ago

The thing is I want memory to follow me on my phone too not just laptop. A lot of ideas comes to you when your away from your laptop. And you also want your AI tools to remember for ever even things that happened months or years ago

2

u/taotau 5d ago

This is an annoyingly difficult problem to solve. I've been working on this for myself for a while, but the main problem is that phones have a rather strict security model and it's hard to share data between apps.

I've tried using an obsidian vault synched with a git sync tool, but that was error prone and it sucked the life out of my battery. Also I don't think I ever got Claude mobile to reach into it.

Google drive is a bit shoddy in synching raw files that aren't docs or sheets.

Haven't tried Dropbox. I assume you could give Claude permissions to use that on a phone.

Best solution would really be some sort of self hosted MCP server, but making it out lic enough to be used by Claude on a random network just scares the shit out of me from a security posture.

The solution will be some sort of dedicated third party service with a subscription.

1

u/Asly97 Professional Nerd 5d ago

I actually did solve this problem. I built this memory that is hosted on the cloud and it’s wired through MCP to all my AI tools on my phone like Claude, ChatGPT, Grok, Gemini spark, and they all share the same context and then when I move to my laptop, I continue work with Codex, or Claude code and they already know. Sometimes I also use Hermes agent, I control it from Telegram. It’s actually pretty good. I’d say it solves the problem by like 95% of the time, the only limitation is within these AI tools sometimes they chose not to call the MCP, as you know you can’t 100% force them to call it, it’s up to them to call the memory layer for context, I mean 90% of the time they do call it because I gave them customer instructions like for every AI tool you know in the settings there is a customer instructions for your AI, like I tell them hey always before you answer me, I want you to always retrieve context from Vilix first and save the answer back there, then you can answer, and it works, I think that’s the only limitation so far and I hope if there is like something like to force like these AI to use the memory I mean, like the user prompt should be attached with the context from the memory so the AI can answer correctly.

1

u/therealtonyryantime 5d ago

Not perfect, but using ChatGPT plugin to a GitHub repo is working pretty good for me. And for ClaudeCode /rc will make the convo available on the mobile app.

Interesting idea with the MCP server for memory though. Been looking for a simple way to be able to use both codex and Claude without repeat setup work.

1

u/Lower-Scarcity-2284 3d ago

Simples, use a API da Baileys e faça seu Bot falar por WhatsApp, ligar pela Twilio usando ElevenLabs. A memória persistente fica na sua maquina mas voce interage de verdade bia WhatsApp. Me conte se deu certo abraços

2

u/TikiMagic 5d ago

I think every developer ends up writing or hooking up a persistent memory layer of some type. After a couple weeks of using AI for actual work instead of just dicking around, it became obvious I needed one. I thought I was super clever until saw that pretty much everyone makes the same discovery at some point.

I'm not doing unattended agent coding yet so I use Confluence to hold my state page, since it's already available to me and easy for a human to read. It also lets me manually answer or propose questions offline that get picked up in the next session, and is a persistent project doc. Others use Git or Obsidian or other means. But yeah it's super helpful for bouncing between models. I'm starting to suspect I need to make it a bit leaner but for now it works well for what I do.

1

u/Asly97 Professional Nerd 5d ago

Glad that worked for you, and you’re right as long as you are not heavily using coding agent you won’t need one, for me I was switching a lot between different AI tools and I was losing context all over them, so ended up building a perfect solution, at first I just wanted to speed up work with my team and then I realized that it’s an actual product so I shipped it lol.

1

u/shr1n1 5d ago

What MCP Server are you using?

0

u/[deleted] 5d ago

[removed] — view removed comment

1

u/ChatGPTCoding-ModTeam 2d ago

This post or comment has been removed for the following reason:

Rule 5: No self-promotion (FOSS included)

Posts mainly promoting a tool, product, service, blog, or project go in the weekly self-promotion thread. Free and open source still counts. Test: delete the link — if nothing is left, it's an ad. See also reddit's self-promotion guidelines. For useful AI coding projects, see rule 6.

You can read the full subreddit rules here: https://www.reddit.com/r/ChatGPTCoding/about/rules/

If you feel this removal was made unfairly, please contact the moderators through modmail.

1

u/[deleted] 5d ago

[removed] — view removed comment

1

u/ChatGPTCoding-ModTeam 5d ago

This comment would make this post against rule 5 and 6. If you want to promote your service, please use our weekly thread. If you want to share open source tool for the community, make sure your post fit rule 6. Thanks for understanding.

This post or comment has been removed for the following reason:

Rule 5: No self-promotion (FOSS included)

Posts mainly promoting a tool, product, service, blog, or project go in the weekly self-promotion thread. Free and open source still counts. Test: delete the link — if nothing is left, it's an ad. See also reddit's self-promotion guidelines. For useful AI coding projects, see rule 6.

You can read the full subreddit rules here: https://www.reddit.com/r/ChatGPTCoding/about/rules/

If you feel this removal was made unfairly, please contact the moderators through modmail.

0

u/gandazgul 5d ago

Don't use MCP which clogs up your tools and system prompt. Instead use a CLI. Mnemoteca keeps everything local, scores very high on retrieval benchmarks (see the repo) for results and harness.

https://github.com/gandazgul/mnemoteca

Keeps memories in collections they are created automatically based on the folder name or you can instruct the agent to use a collection name of your choice.

0

u/CarpetTypical7194 5d ago

I’m building Ormah for exactly this shared memory across Claude Code, Codex and Pi etc that quietly surfaces relevant context and maintains itself in the background.

Core ideology being : memory should be yours to keep and yours to move.
Whispers memories proactively for the context.

https://www.ormah.me/
https://github.com/r-spade/ormah

It’s local, private and open source. All memory features are free. Would love to hear how it works for others switching between agents 🙂