Join the discussion
Write your take first — we'll ask for email only when you're ready to publish.
- Hacker News
- How is this different from what's built into Claude?by 0c3ca83
- Works across agents for one.by skeledrew
- Another week, another agent memory system that is about the same as grep in a memory/ directory.by bearjaws
- I'm not sure I follow. Are you suggesting that full text search systems are ultimately a convoluted way of performing O(N) regex searches? If not, I don't see how you arrive at the conclusion that this is "the same as grep in a memory/ directory".by cstrahan
- What if the memory were git repo backed, and the FTS5 were a speed-specific optimization?
Then the memories could easily be human-reviewed. The repo would be the canonical source, and the FTS5 would be one specific materialization.
by bravura - that's what we started with, exactly because of the human review part. however we soon found out that there will be a lot of merge conflicts in the text (usually markdown) which heavily depends on the instructions and structure of the data. that's why for Markbase we opted for etag based validations to avoid any potential of conflicts.by ksajadi
- How is this any different from all the other Memory stuff we have? mem0 etc etc that do the same thing?by healthycoder
- agree there are a lot of these but they're all pretty simple (including mine [0]) so I think building your own and playing around with architecture is useful and fun.
[0]: https://setoku.com
by rgbrgb - Looks very interesting. Can you explain for noobs why using Google's OKF format and not plain MD files?by FitchApps
- OKF is basically md files with front-matter for meta databy pcbmaker20
- did you test if that actually outperforms local claude code memory by any metric?by clemens1010
- that's a good idea. how might you test this? could also include a codex memory test.
I'm guessing having a portable memory that's comparable with first party memory is the goal.
by rgbrgb - Nice to see more OKF-based approaches. My entry in this field is https://rcarmo.github.io/projects/memento/, which I’ve been running for a few months now.by rcarmo
- I have seen the value of recording past sessions but I am more skeptical of the value in recording facts, which may soon become stale, about a constantly changing code base. Got benchmarks?by esafak
- Please excuse my noob-ish, naïve question, but to what extent is the business of getting the LLM to actually consult memory a model-dependent thing? Do you have to introduce the tool and guide models with different language for different model families?
Looking at your tool descriptions (as wit the ones on the original post) I wonder if this something perhaps only current frontier models will do, but the systems themselves seem like they'd be even more useful for open weights models with shorter working contexts.
by dofm - Since you built something on OKF, how would you contrast it with knowledge graph implementations? How do you manage the ontology of what to keep knowledge about? Any cases where traversal would have helped?by ejp
- I have a similar project that I have built and found great success with it storing things like coding standards, decisions, etc.
One thing that is interesting during my work is that Codex and OpenCode using OpenAI models are REALLY good at using the tool, whereas new models and changes in Claude code keep making it difficult to stay on top of it's usability there. It seems like instructions and/or models are changing that cause for it to prefer the Claude Code memory tooling instead of allowing for remote memory tooling.
Opus 5 seems to have made it materially worse (or some harness change around Opus 5, I haven't dug in entirely to analyze). I had to get more in-depth setup instructions to make sure that Claude Code would consistently use my memory tooling.
by 0x500x79 - New claude models, at least in the context of Claude code, are broadly lobotomized. Move extra slow, write loads tooling scripts you didnt’t ask for, and don’t actually complete the task at hand. They’re like rain man.
Idk though it ebbs and flows. Rn latest OpenAI models are capable of long focused decent work. Surely it’ll flip at some point in the near future /sigh
by dirtbag__dad - For those looking for similar tools, there is also https://markbase.cloud/ as a hosted service. (Disclaimer: we built it for internal use first and would like to open source with the community help as we don’t have much experience in OSS maintenance)by ksajadi
- What I do currently is having a markdown file named MEMORY.md at the root folder. Then, whenever I create a new conversation with an agent, I refer to that file. That file becomes the initial source of context and knowledge. At the end of an task, before I leave the conversation, I ask the agent to update MEMORY.md with lessons and new knowledge it has gathered from our conversation, it also removes stale or outdated information from that markdown file.
I myself do not care what's written in that file, I steer, instruct and share my knowledge, visions, goal and preferences in our conversations, and the agent will boil that down and update the markdown folder. It has worked very well for me.
I now do not have to worry about creating handoff prompts when creating a new conversation or that I have to teach an agent from the ground up about the context we're in, I just refer to that markdown file.
by Alifatisk - Sounds like AGENTS.md with a different name.by skeledrew
- Last month a Show HN: ContextVault proposed an interesting long-term memory architecture. I discussed the design with the founder: https://news.ycombinator.com/item?id=48900288#48901679 (I think he bailed the conversation when I got too close haha.)
The basic shape is to periodically "distill the conversation into several areas (problem, solution, learnings, 'context' or original problem, plus other fields) and vectorized" (aka vector embedding), then queried against pgvector table to find related "memories". The vectorized distillates are also inserted into the pgvector table with a reference to back to the source conversation to add new memories.
Vector search requires a full scan but it's still pretty fast and I bet it's more accurate the FTS.
by infogulch - Cool idea. Why is this beneficial over just using markdown files and allowing agents to grep for whatever they need? I've tried various MCP things in the past and I've found they tend to slow down the agent and waste tokens more than they end up helping, but a better memory system is 100% needed for agents.by jrflo
- for one, the mcp-server architecture makes it usable from claude.ai and other surfaces where you have mcp but no filesystem. there are claude-specific workarounds (workspaces) but you lose portability across systems.by rgbrgb
- im asking the same thing myself for personal projects seems markdown files is best.
i can see for public facing deployments agent memory like this could result in faster roundtrips.
by agentifysh - At hundreds of notes you blow a lot of tokens just to _find one thing_.
Indexing your corpus as you go makes retrieval a lot faster, and then the agent can dig into the specific file if it needs something more.
by schainks - The memories are stored as OKF (Open Knowledge Format), which is markdown + frontmatter (+ constraints/schema imposed thereon).
Having an inverted index (as with FTS5) is useful in that, for a basic single-term lookup, you reduce a sequential scan, O(N), down to O(log N). For small N, the performance difference might not be meaningful. Performance gap widens with more sophisticated queries (boolean operators, ranking, etc).
by cstrahan