r/opencodeCLI • • Oct 27 '26

Mind v1.7 is out — better persistent memory for OpenCode, now with 86.67% recall benchmark accuracy

Hey everyone!

I shared Mind here a while ago, and some of you asked how it compares to codebase indexing tools and whether it can actually preserve context between OpenCode sessions.

I've kept building it, and Mind v1.7.0 is now released.

For anyone new to it: Mind is an open-source memory layer for AI coding agents, designed to preserve useful project knowledge instead of losing it after every session or context compaction.

It remembers things like architectural decisions, constraints, past fixes, unresolved tasks, and checkpoints.

What's improved in v1.7?

Search is substantially more capable.

Mind now combines phrase matching, full-text retrieval, substring matching, typo tolerance, and relevance signals. Semantic search is optional.

In a 120-question OmniMemEval LongMemEval-S evaluation, Mind achieved 86.67% answer accuracy without embeddings. It's an indicative subset result, not an official full-benchmark ranking.

Other improvements include:

  • More reliable checkpoint and session-summary handling.
  • A completely refreshed web interface.
  • Improved memory relationships and navigation.
  • A shared mind-management skill.
  • Simplified setup and integration updates.

For OpenCode, Mind installs the MCP integration, memory instructions, and managed session/compaction automation.

If you're already using Mind, upgrade with mind update and restart OpenCode.

If you're new, install Mind from the repo and run:

mind setup opencode

Everything is local-first, backed by SQLite, and MIT-licensed.

GitHub: https://github.com/GabrielMartinMoran/mind

Release: https://github.com/GabrielMartinMoran/mind/releases/tag/v1.7.0

I'd love to hear from OpenCode users running long sessions or multi-agent workflows. How are you managing context that needs to survive between sessions?

11 Upvotes

9 comments sorted by

2

u/OlegPRO991 Oct 27 '26

I don't keep long running sessions. Usually I compress context at around 20-25% of context usage. What do you mean by multi-agent workflows? I didn't know that there was such an option in opencode. I'm using v1.19.4 and don't want to break my harness by updating to v2.

2

u/GabrielMartinMoran Oct 27 '26

For multi-agentic harnesses, mind allows sharing memories, decisions, objectives, etc. between different agents whitout having to pass all that data in the delegation prompts. The cool part is that data is not automatically injected (consuming unnecesary context), agents have the tools for searching and getting exactly what they need when they need it.

Also, mind shares memories across any agentic system you use (opencode, claude, codex, etc). So the entire brain is shared for a project regardles on where your agents are running.

1

u/GabrielMartinMoran Oct 27 '26

About compression, mind also has the tools for a more strategic and efficient compaction recovery by tracking checkpoints with linked memories.

1

u/Stevie2k8 Oct 27 '26

I am testing magic context together with engram, both try to solve the memory thing by themselves too in a bit different ways. How does Mind compare to engram?

3

u/GabrielMartinMoran Oct 27 '26

That's an awesome question, mainly because engram (as well as other memory systems) were part of the analasis I made for providing mind the philosophy it has...

Mind organizes the memories of a space in three different layers (like a processor cache). The first 2 layers have a limited size, the third layer doesn't. This allows having the most relevant (and in most cases recently used) memories closer, the ones not so frequently used handly and the ones that are barely used a bit far. So priorities in closer knowledge are automatically managed.

Also mind has the capability of linking related memories, so an agent that reads for instance a desicion, automatically knows which other memories where involved in this decision, piece of knowledge, or whatever it stored (it may read them if it's necessary or may not, but the agent has all what it needs, even if the linked memory is from years ago). This kind of spatial search is very powerfull, and it's not something so naturally resolved in other memory systems.

1

u/netskrill 29d ago

Openviking utilizes a 3tier memory cache. Can you explain the difference? That is self hosted as well.

1

u/GabrielMartinMoran 29d ago

Fair point! I probably didn't explain the tiers very well.

From what I've read in OpenViking's docs, its L0/L1/L2 layers represent different levels of detail: an abstract, an overview, and the full content. The idea is to progressively load only what the agent needs.

Mind's tiers work differently. T1/T2/T3 are actual memory levels, more like a CPU cache. Frequently accessed memories move closer to the active working set, while less-used ones gradually move down through LRU. Nothing gets deleted just because it hasn't been used recently, and cold memories remain searchable.

So OpenViking's layers are mainly about how much detail to retrieve, while Mind's are about how knowledge is organized and maintained over time.

Mind also focuses heavily on relationships between memories. Decisions, discoveries, fixes, and their causes can be explicitly linked, and agents follow a cognitive protocol for maintaining that knowledge as things change.

Both approaches help avoid bloating context, just in different ways. Mind returns lightweight search results first, and the agent chooses which memories to actually read.

And yes, both are self-hosted! I haven't personally used OpenViking, so I wouldn't claim one is universally better. There's definitely overlap, but I think the underlying philosophies are quite different.

1

u/CarryAgile3791 Oct 27 '26

Nice project! I'm doing something similar, but more with a focus on RAG and embeddings: https://github.com/MrDoe/OpenCodeRAG

2

u/GabrielMartinMoran Oct 27 '26

Mind supports RAG as well, you can turn it on in the env config! But the retrieval scoring even without using RAG is very noticeable...