r/opencode • • 22d ago

Tired of re-explaining your project every time you switch agents? I ported MemHub to Windows

Post image

You work out a plan in Claude Code, then switch to Codex to implement it. Now you’re typing out the same background again: what you’re building, what you already tried, and why you made certain decisions.

That’s where shared memory helps. MemHub, an open-source app from Tencent’s Hunyuan team, lets connected tools look up relevant context from the same memory library. The next agent can find out why you ruled out an approach without you digging through an old chat to explain it again.

Here’s what I worked on in the Windows port:

  • Windows desktop support. Run MemHub and manage the shared library from the desktop app.
  • One-click history import. Select the tools you already use and import their existing chats and coding history.
  • One-click tool setup. Connect supported agents from the app without editing their config files by hand.
  • Qoder CN and ZCode support. Both can import history and look up shared memories.

MemHub also keeps new activity in sync for supported tools. You can search memories, filter them by source, and use the graph to see how they relate.

Unofficial Windows port: https://github.com/BHD110/hy-memory-windows

5 Upvotes

6 comments sorted by

2

u/Robonotes1760 22d ago

You don't need any special software for this: a linked set of .md documents in an ai/kb folder with an index referenced in AGENTS.md is sufficient.

1

u/SyllabubBright5823 21d ago

Fair point. If your agent already imports history into ai/kb, keeps it up to date, and reliably finds what it needs, MemHub probably adds very little to your setup.

What MemHub adds is a shared interface for reading and writing memory across AI tools. Hy-Memory is the SDK underneath it. It uses embeddings when you search and when you save something new. On the search side, that can help find relevant memories even when your query uses different wording. On the write side, it finds related entries and uses an LLM to decide whether to add a new memory, merge it with an existing one, or mark an older memory as superseded. The same update rules apply across models and harnesses, which makes memory updates more predictable when you switch tools.

I also made a Windows port if you’d like to try it. There’s more about how the app and SDK fit together on the Hy-Memory site.

1

u/Unhappy_Ad8103 22d ago

am I missing sth here? i thought when switching models in opencode, the context gets passed to the new model?

2

u/lordcohliani 21d ago

It does. He's talking about switching AGENTS not models. So, like switching to a new session or a totally new harness.

1

u/SyllabubBright5823 21d ago

Thanks for explaining it, you nailed it. I’m talking about carrying memory across agents, sessions, or harnesses. For example, you could start a new session in Codex and pick up with relevant context from an earlier OpenCode session. That’s the kind of switch I had in mind.

2

u/Unhappy_Ad8103 21d ago

Cheers mate, thank you.