mex-memory/mex
Team memory for engineers and their AI agents. Lives in your repo. Shared through Git.
What it solves
AI coding agents like Claude Code and Codex forget what you tell them between sessions, and the notes you leave them go stale when the code changes. MEX solves this by delivering your saved notes to every new session and checking them against the current code, so agents get only what still holds true.
How it works
You install MEX globally and run mex in your repository. It installs hooks into Claude Code and Codex settings, reads your repo, and then shows what your agents will receive. You save notes with mex note (for example, "Dates are stored in UTC because the reports job compares them across regions"). Each note is checked against the code when saved, and each new session receives the notes that still match the code. If a code change makes a note false, MEX holds it back and the agent gets a pointer to the current code instead. MEX also finds your repo's test and build commands automatically and shares them with agents. Everything runs locally — your notes stay on your machine until you explicitly share them via a git branch.
Who it's for
Developers and teams who use Claude Code or Codex and want to stop repeating themselves or having agents act on outdated instructions. It works on Windows, macOS, or Linux with Node 22.5 or later, and is useful for anyone managing a codebase where project-specific rules and decisions matter.
Highlights
mex notesaves a fact, rule, or decision in your own words, checked against the code immediately.- Notes are delivered to every new Claude Code and Codex session through hooks and rule files; stale notes are automatically withheld.
- You control everything:
mex whatshows what was given or held back,mex offstops MEX in a repo,mex uninstallrestores settings and keeps notes. - Team sharing works through a reviewed git branch — each shared note is a Markdown file, and nothing is pushed without your explicit
--prflag. - MEX never edits your
CLAUDE.mdorAGENTS.md; it writes its own rule files that are git-ignored until you share. - No hosted service, no account, no API key. Telemetry is anonymous and optional.
Related
- Project
- Project
- Project
- Project
- Project