by mex-memory
Team memory for engineers and their AI agents. Lives in your repo. Shared through Git.
# Add to your Claude Code skills
git clone https://github.com/mex-memory/mexLast scanned: 11/28/2026
{
"issues": [
{
"type": "npm-audit",
"message": "@hono/node-server: @hono/node-server: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static paths",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@simple-git/argv-parser: simple-git: `VISUAL` editor environment variable is omitted from unsafe editor detection",
"severity": "critical"
},
{
"type": "npm-audit",
"message": "@vitest/mocker: Vitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect Mock",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "brace-expansion: brace-expansion: Quadratic-time expansion of the `{a},b}` rewrite causes CPU denial of service",
"severity": "high"
},
{
"type": "npm-audit",
"message": "esbuild: esbuild allows arbitrary file read when running the development server on Windows",
"severity": "low"
},
{
"type": "npm-audit",
"message": "fast-uri: fast-uri vulnerable to host confusion via skipped IDN canonicalization on scheme-relative references",
"severity": "high"
},
{
"type": "npm-audit",
"message": "glob: Glob: AbortSignal cancellation bypass allows post-timeout filesystem traversal",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "hono: Hono: Incomplete fix for CVE-2026-39408: `toSSG()` still writes files outside the output directory",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "minimatch: minimatch has potential denial of service via globparts amplification",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "simple-git: Vulnerability found",
"severity": "critical"
},
{
"type": "npm-audit",
"message": "source-map-js: source-map-js allows event-loop denial of service through indexed source-map section offsets",
"severity": "high"
},
{
"type": "npm-audit",
"message": "tinypool: Tinypool: Prototype Pollution gadget in worker options leads to Remote Code Execution",
"severity": "critical"
},
{
"type": "npm-audit",
"message": "vite: launch-editor: escapeCmdArgs() omits % escaping on Windows",
"severity": "high"
},
{
"type": "npm-audit",
"message": "vitest: Vulnerability found",
"severity": "critical"
},
{
"type": "npm-audit",
"message": "zod: Zod can exhaust memory while validating oversized constrained collections",
"severity": "high"
}
],
"status": "FAILED",
"scannedAt": "2026-11-28T22:23:38.417Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}mex is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by mex-memory. Team memory for engineers and their AI agents. Lives in your repo. Shared through Git. It has 1,795 GitHub stars.
mex failed AgentsLLM's automated security scan, which flagged one or more high-severity issues. Review the Security Report section carefully before using it.
Clone the repository with "git clone https://github.com/mex-memory/mex" and add it to your Claude Code skills directory (see the Installation section above).
mex is primarily written in TypeScript. It is open-source under mex-memory on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh mex against similar tools.
No comments yet. Be the first to share your thoughts!
Requires a passing catalog security scan. Resolve the flagged issues and resubmit to enable featuring.
Tell your agents once. MEX keeps it true.
Agents forget between sessions, and the notes you leave them go stale when the code moves. MEX delivers your notes to every new Claude Code and Codex session and holds back the ones the code has made false.
English | 简体中文 | Español | Português (Brasil)
Install · What you get · See it work · How it works · Commands · Teams · FAQ · Upgrading from 0.8
[!NOTE] This is MEX 0.9 beta, a pre-release on npm's
nexttag.npm i mex-agentstill installs 0.8.5. The beta is a CLI for Claude Code and Codex. It has no Hub, MCP server or skills. On 0.8? See the 0.8.5 README and Upgrading from 0.8.
Needs Node 22.5 or later (with node:sqlite) on Windows, macOS or Linux, plus Claude Code or Codex.
npm i -g mex-agent@next
cd your-repo
mex
Undo: mex off (this repo) · mex uninstall (everything, keeps notes)
mex installs MEX's hooks in your Claude Code and Codex user settings, reads the repo, and shows what your agents get from now on. The first screen makes no model calls and adds nothing to git.
Codex: review and trust MEX's hooks once: /hooks in the Codex CLI, or Review hooks beside the message box in the Codex app. Until then Codex skips them, and MEX does nothing there.
Then tell your agents something they keep getting wrong:
mex note "<something your agents keep getting wrong here, and why>"
# for example:
mex note "Dates are stored in UTC because the reports job compares them across regions"
Start a new Claude Code or Codex session and ask about it.
Install globally. MEX won't install hooks from a one-off npx run, because npm clears that cache.
mex note saves a fact, rule or decision in your words. It reaches every new Claude Code and Codex session, through the session start and each agent's own rule files.mex what shows what MEX gave or held back this session. mex off stops it in a repo. mex uninstall restores your settings exactly and keeps your notes.A note said the dev server runs on port 3000, and Claude answered 3000. Then a commit changed it to 4000. In the next session MEX said the note no longer matched the code and held it back. Claude answered 4000 and called the old 3000 line out of date. Codex, asked the same question in a live run on 17 Nov 2026, answered "unknown" instead of repeating 3000. (Summary: release plan.)
CLAUDE.md or AGENTS.md. Its own rule files are git-ignored until you share (see the FAQ).| Command | What it does |
|---|---|
mex note "<text>" |
Save a note in your words. Checked against the code when saved. |
mex recall <words> |
Find a note, with no model call. |
mex brief |
Preview what a new session will receive. |
mex what |
What MEX gave or held back in this session. |
mex check |
Check which notes still hold. Read-only, no AI. |
mex check --diff <base> |
The same for a branch, for pre-push or CI. Stores nothing. |
mex edit · mex wrong · mex forget |
Correct a note, retire a wrong one (keeping the reason), or drop it. |
mex share |
Preview sharing your notes and rule files on a new git branch. |
mex handoff "<line>" |
Leave a handoff for the next person on this branch. |
mex doctor |
What MEX is doing here, and a fix for each problem it recorded. |
mex off · mex on |
Turn MEX off or on in this repo (--all for every repo, --for 2h to pause). |
mex uninstall --dry-run |
List every change MEX made. Without --dry-run it restores them and keeps your notes (--purge also deletes them). |
Run mex --help for the full list.
Each session asks the agent to keep lasting facts, rules or decisions you state, with mex note. Your agent will ask you to approve that command like any other. MEX doesn't pre-approve it. Notes the agent saves are labelled [Claude Code noted, …] or [Codex noted, …] until you mex edit them. To save your own words directly, type mex note: … in the session.
Notes are personal until you share them. Sharing is a git branch you review like code:
mex share # preview: a new branch with your notes and rule files
mex share --apply --expect <rev> # make the branch you previewed
mex share --apply --expect <rev> --pr # also push it and open a pull request
Your current branch is untouched, and nothing is pushed without --pr. Each shared note is one Markdown file in the PR:
<!-- .mex/learned/mx_f5a7ede674674894feeb10b3.md -->
---
mex:
id: mx_f5a7ede674674894feeb10b3
kind: rule
scope:
- "**"
source:
type: person
ref: mex note 2026-11-18
quote: apps/api tests use mocha, not jest, despite the root jest.config.js
evidence: person
one_line: apps/api tests use mocha, not jest, despite the root jest.config.js
checks: []
status: active
created: 2026-11-18
---
apps/api tests use mocha, not jest, despite the root jest.config.js
A note with checks also lists what it was checked against, with file hashes. The test and build commands MEX found at setup are shared the same way, one file each. The same PR carries the generated rule files: .claude/rules/mex.md, a .claude/rules/mex-area-*.md for a folder that already has its own AGENTS.md, and a new AGENTS.md in each other folder that gets commands. It also carries .mex/config.json, .mex/sources.json and .mex/native.json. After it merges, a teammate's Claude Code or Codex session gets the team notes. Each machine keeps its own databases.
mex handoff leaves the next person on a branch:
It passes a secret scan and is written to .mex/handoffs/. You commit it, and MEX never pushes. The next session on that branch gets it once.
Live runs on Windows 11, 17 Nov 2026, with Claude Code 2.1.326 and Codex 0.165. Each was a single run on the sample named. These aren't general claims.
mex note, then a new session not allowed to use tools. Claude Code answered 6 of 6 from them, a