mengram logo
mengram
★ 204
vs
mex logo
mex
★ 1.8k

mengram vs mex

mengram: Mengram is an AI memory layer that enables agents to remember facts, events, and workflows, with procedures automatically improving from failures. It uniquely stores semantic, episodic, and procedural memory, offering experience-driven evolution for AI agents.; 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.

01

TL;DR

mengram logo
mengramMemory & Context · ★ 204

Building intelligent AI agents that learn and adapt from real-world outcomes.

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.
02

Side-by-Side Comparison

Field
mengram logomengram
mex logomex
Category
Memory & Context
Memory & Context
Stars
★ 204
★ 1.8k
License
Apache-2.0
MIT
Install Command
pip install mengram-ai
npx mex-agent setup
Updated
2d ago
1d ago
Open Source
Yes
Yes
Tags
AI Agents, Memory Layer, Procedural Memory
AI Agents, Persistent Memory, Context Management
03

Features

mengram logomengram
01Stores Semantic, Episodic, and Procedural Memory types.
02Experience-Driven Evolution: Procedures automatically improve when they fail.
03Cognitive Profile generation for personalized LLM system prompts.
04Multi-User Isolation: Separate memory spaces for individual users in multi-tenant applications.
05Import existing data from ChatGPT, Obsidian, or text files to avoid cold-start problems.
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.
04

Use Cases

mengram logomengram
↳Building intelligent AI agents that learn and adapt from real-world outcomes.
↳Enhancing DevOps agents by enabling procedures to evolve from deployment failures.
↳Creating personalized customer support agents that remember returning customers and their history.
↳Personalizing LLM interactions and responses using a dynamically generated cognitive profile.
↳Developing multi-tenant applications where each user requires an isolated and persistent memory space.
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.
05

Best For

mengram logomengram
—
mex logomex
EssentialTrending
FAQ

FAQ

What is the difference between mengram and mex?
Both mengram and mex are in the Memory & Context category. mengram has 204 stars, while mex has 1.8k stars.
Which is better, mengram or mex?
The best choice depends on your use case. Choose mengram if Building intelligent AI agents that learn and adapt from real-world outcomes., and mex if Maintaining consistent project context for AI coding agents across multiple sessions..
Is mengram free or open source?
Yes, mengram is open source on GitHub (Apache-2.0).
Is mex free or open source?
Yes, mex 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