OKF Agent Memory: Git-native memory for AI agents cuts token bloat by 80%
OKF Agent Memory – Git-native persistent memory for AI coding agents
OKF Agent Memory is a Git-native, persistent memory layer for AI coding agents, built in pure Go. It implements Google's OKF v0.2 spec, storing knowledge as plain Markdown with YAML frontmatter in your repo. It offers sub-300µs in-memory BM25 search, an embedded MCP server, and progressive disclosure to slash token usage by 80%—with zero external databases or dependencies.
Conversations with AI agents reset when context windows close. Valuable architectural decisions, domain discoveries, and operational facts are lost unless stored persistently.
- opwizardx
Why do you need an MCP server at all when the spec itself is so simple?
- langs
I don't get it. Why benchmark the latency instead of recall/precision? Optimizing for millisecond-level latency is meaningless in the context of LLM calls. Accuracy is the tool's greatest value, yet there is no testing for it?
- straumat
Nice tool! If you want to publish your okf bundles for humans to read (like on a github pages or your intranet), i developped an open source solution to do that : https://github.com/oak-invest/kiso - It's like Hugo for OKF
- kimseungyong
I like the idea.
To avoid losing context, I mainly conduct the planning session and the implementation session separately.
From the standpoint of building enterprise products, what worries me most is whether the agent we are implementing may not have understood a completely different context.
If okf_memory maintains domain knowledge very well, it is expected that implementation will be possible in unit functional units within a consistently smooth session.
However, there is a risk in applying this idea directly to practical work, so I’ll have to test it separately on a personal project.
- calebkaiser
Love seeing projects like this. The performance benchmarks are nice to see. Have you done any benchmarks against approaches like OpenAI's Symphony for things like token usage or task completion?