mex logo
mex
★ 1.8k
vs
okf-agent-memory logo
okf-agent-memory
★ 827

mex vs okf-agent-memory

mex: mex provides persistent, navigable project memory for AI coding agents, allowing every session to start with the right context instead of a cold prompt. It structures agent memory through a markdown scaffold, offers CLI tools for drift detection against the real codebase, and synchronizes context to keep agents aligned and reduce token usage.; okf-agent-memory: OKF Agent Memory provides a domain-neutral, Git-native persistent project memory for AI agents, leveraging the Dual-Memory Agent Architecture to prevent context bloat and memory rot. It uses an ultra-compact behavioral codex and a queryable OKF v0.2 knowledge bundle, with blazing-fast, zero-cost local retrieval.

01

TL;DR

mex logo
mexMemory & Context · ★ 1.8k
When to choose:
  • Your AGENTS.md or CLAUDE.md has grown too big and you want a small anchor plus routed context files.
  • You want memory as plain markdown in the repo, reviewable in pull requests and diffable.
  • You want drift checks that run without AI tokens and flag missing paths, stale files and broken scripts.
When to skip:
  • You want recall across unrelated projects or conversations; mex lives inside one repository.
  • You have a small project: another set of files to maintain may cost more than it saves.
  • You expect the AST code-graph feature today: the README marks it as an unreleased preview.
okf-agent-memory logo
okf-agent-memoryMemory & Context · ★ 827

Software Engineering: Managing architecture decisions, code references, and operational constraints.

02

Side-by-Side Comparison

Field
mex logomex
okf-agent-memory logookf-agent-memory
Category
Memory & Context
Memory & Context
Stars
★ 1.8k
★ 827
License
MIT
MIT
Install Command
npx mex-agent setup
git clone https://github.com/okf-memory/okf-agent-memory.git && cd okf-agent-memory && make build
Updated
3d ago
1d ago
Open Source
Yes
Yes
Tags
AI Agents, Persistent Memory, Context Management
AI Agents, Persistent Memory, Knowledge Base
03

Features

mex logomex
01Creates a structured markdown scaffold for AI agent memory (e.g., AGENTS.md, ROUTER.md, context/, patterns/).
02CLI tools for drift detection, validating scaffold against the actual codebase without using AI tokens.
03Automatically generates targeted prompts for AI agents to fix stale or broken context.
04Supports task-specific context routing, loading only relevant files for the current task.
05Includes an append-only event log to store decisions, notes, risks, and todos.
okf-agent-memory logookf-agent-memory
01Dual-Memory Cognitive Architecture (DMAA) to eliminate prompt bloat.
02Blazing fast performance with in-memory BM25 search (<300µs) and graph validation (~4ms).
03100% Git-native, zero vendor lock-in, and zero API costs for memory retrieval.
04Built on Google's Open Knowledge Format (OKF) v0.2 for standardized agent knowledge.
05Solves context bloat and memory rot through progressive disclosure and Search-Before-Write principle.
04

Use Cases

mex logomex
↳Maintaining consistent project context for AI coding agents across multiple sessions.
↳Significantly reducing token consumption in LLM interactions by providing only relevant context.
↳Onboarding new AI agents or developers to complex codebases with structured, up-to-date project knowledge.
↳Developing persistent AI agents for operational environments (homelab scenarios, system administration) with structured memory.
↳Automating the detection and correction of documentation or contextual drift from the actual codebase.
okf-agent-memory logookf-agent-memory
↳Software Engineering: Managing architecture decisions, code references, and operational constraints.
↳Scientific Research & Literature Reviews: Organizing and querying research findings and insights.
↳Coaching & Operations: Storing client session history, ethical guidelines, and runbooks.
↳Multi-Agent Collaboration: Providing a shared, auditable knowledge base for autonomous agents.
05

Best For

mex logomex
EssentialTrending
okf-agent-memory logookf-agent-memory
Hidden Gem
FAQ

FAQ

What is the difference between mex and okf-agent-memory?
Both mex and okf-agent-memory are in the Memory & Context category. mex has 1.8k stars, while okf-agent-memory has 827 stars.
Which is better, mex or okf-agent-memory?
The best choice depends on your use case. Choose mex if Maintaining consistent project context for AI coding agents across multiple sessions., and okf-agent-memory if Software Engineering: Managing architecture decisions, code references, and operational constraints..
Is mex free or open source?
Yes, mex is open source on GitHub (MIT).
Is okf-agent-memory free or open source?
Yes, okf-agent-memory is open source on GitHub (MIT).
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
→

Related