mex Project Memory
A code-grounded, drift-aware project memory system for AI coding agents.
- Source repo
- mex-memory/mex
- Stars
- ★ 1.8k
- Last updated
- 14d ago v0.8.5
- FARS reviewed
- Nov 08, 2026
- License
- MIT
- Primary language
- TypeScript
- FA score
- 84/100 · Good
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A team maintaining a large TypeScript, JavaScript, Python, or Rust repository wants each new coding-agent session to inherit architecture and conventions without another full-source scan.
- Not a fit if
- Privacy-sensitive teams that cannot opt out of telemetry
- Environments stuck below Node.js 22.5
- Users wanting a ready-made MCP server; that package is unpublished
- Website
- mexmemory.com ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-18latest release v0.8.5 (2026-10-29)
- Source review
- 84/100 · Good
What does this agent do, and when should you use it?
mex is a repo-local CLI that maintains a structured Markdown wiki for AI coding agents and connects project knowledge to concrete code symbols. It builds a deterministic code graph with Tree-sitter and SQLite across TypeScript, TSX, JavaScript, JSX, Python, and Rust, including Express route-to-handler relationships. At task time, an agent follows a small project anchor and ROUTER.md to load selected architecture notes, decisions, conventions, and a compact graph neighborhood instead of rescanning the entire repository. After meaningful work, mex can preserve decisions and patterns, while mex check and mex sync detect or repair drift in paths, links, dependencies, indexes, stale content, and grounded symbols. Its primary output lives under .mex/ as human-editable, reviewable, version-controlled files; an unpublished local MCP package also exposes the wiki and event-log implementation.
The workflow begins with mex setup, which inspects the repository, runs mex graph, creates .mex/AGENTS.md, .mex/ROUTER.md, the context/ and patterns/ directories, and events/decisions.jsonl, then asks the coding agent to populate the wiki from graph evidence and installs the appropriate project anchor. mex graph scope "<task>" returns a scored neighborhood of relevant symbols, signatures, relationships, node IDs, and selection reasons under a hard estimated-token budget; mex graph get <node-id> expands selected symbols. mex graph query where-defined, who-calls, and what-calls, together with mex impact, provide structural queries and change-impact analysis. Wiki claims can bind to graph nodes through grounds_to frontmatter or navigable mex:// links. mex check calculates wiki health and drift, while mex sync supplies targeted context to repair changed, moved, missing, or inconsistent knowledge. Additional commands include mex log, mex timeline, and mex heartbeat for event recording, history, and persistent-agent health checks.
- A team maintaining a large TypeScript, JavaScript, Python, or Rust repository wants each new coding-agent session to inherit architecture and conventions without another full-source scan.
- A frequently refactored project needs to detect when documented functions, files, dependencies, or symbol references have changed, moved, or disappeared.
- A team using Claude Code, Codex, Cursor, Windsurf, GitHub Copilot, or OpenCode wants a repository-level context anchor tailored to each supported coding tool.
- A developer tracing behavior or planning a change wants queries for definitions, callers, callees, and the wiki material affected by a symbol or file.
- A homelab, infrastructure workspace, or long-running operational agent needs the optional agent-memory mode with a HEARTBEAT.md contract and cleanup conventions.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npx mex-agent setupnpm install -g mex-agentnpx mex-agent
- Runtime
- Node.js 22.5
- Install notes cover
- Windows · WSL
How do you install or deploy this agent?
Install Node.js 22.5 or newer, then run npx mex-agent setup from the project root. No prior global installation is required; the npm package is named mex-agent, while the CLI command remains mex. For a global command, run npm install -g mex-agent. On Windows, the recommended setup works in Command Prompt, PowerShell, or WSL. If using the legacy setup.sh flow, installation, build, and CLI commands must run in the same environment. No API credentials are documented as installation requirements.
How do you use this agent?
Start with npx mex-agent setup. After setup, run mex check to validate wiki health and code grounding, mex sync to repair drift, or mex graph scope "trace the authentication flow" to retrieve compact context for a task; expand required symbols with mex graph get <node-id>. Replace mex with npx mex-agent when it is not installed globally. For a pre-0.7 mex project, run mex graph followed by mex graph ground to add grounds_to metadata and mex:// references without rewriting existing prose. Use mex setup --mode agent-memory for the persistent operational-agent layout.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- confirmation before acting
- data-flow disclosure
- verifiable attribution
What are this agent's strengths and limitations?
- Project memory remains ordinary Markdown inside the repository, so humans and agents can read, edit, review, and version it without relying on a hosted knowledge store.
- The deterministic Tree-sitter and SQLite graph lets important claims point to exact symbols and detects when those symbols change, move, or disappear.
- Task routing and token-budgeted graph neighborhoods return compact signatures and relationships before an agent expands selected source symbols.
- Setup documents anchors for Claude Code, Codex, Cursor, Windsurf, GitHub Copilot, and OpenCode, while the project describes itself as provider-neutral.
- Filesystem and lexical checks remain available without a graph; failures to load SQLite or an individual grammar degrade with a warning instead of disabling the whole CLI.
- Node.js 22.5 or newer is required, and adopting the local npm CLI adds repository setup and ongoing maintenance steps.
- The MCP package is not published; users must build
packages/mex-mcplocally, and the CLI remains the primary release. - Symbol indexing is explicitly documented only for TypeScript, TSX, JavaScript, JSX, Python, and Rust, so equivalent graph support for other languages is unproven.
- Agents are expected to update project state, decisions, and reusable patterns after meaningful work, making wiki quality dependent on consistent workflow participation.
- The published benchmark covers the mex repository, six scripted retrieval tasks, and five real-agent tasks; it is directional evidence rather than proof of universal savings.
- Anonymous command, version, and OS telemetry is enabled on an opt-out basis, so privacy-sensitive teams must disable it explicitly.
How does this agent compare with similar options?
Compared with conventional project documentation or a single oversized instruction file, mex divides knowledge into task-routed Markdown pages and grounds selected claims in code-graph symbols. This enables drift detection and targeted context loading, but introduces the cost of building the graph, maintaining the .mex/ wiki, and running check or sync workflows after changes.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| mex Project Memory This agent | 84 · Good | CLIFree | ★ 1.8k | 14d ago | TypeScript | Codex · Claude Code |
| GraphMind Code Graph | 55 · Major gaps | Desktop appFreemium | ★ 219 | 2d ago | Rust | Claude Code · Claude.ai |
| Graphicle | 84 · Good | CLIFree + model costs | ★ 638 | 2d ago | Rust | Codex · Claude Code |
| Graphify – Turn Any Codebase into a Queryable Knowledge Graph | 73 · Some gaps | CLIFree | ★ 156k | 1d ago | Python | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The evidence separates drafts, indexes, and canonical files, and puts human review or explicit steps around publication, approval, Relay lifecycle actions, and Git sharing. It describes local Hub, telemetry, and contact-form data boundaries, supporting strong scores for least privilege, confirmation, data-flow transparency, and attribution. Local-state boundaries are described, but the packet does not establish comprehensive sensitive-data protection. Dependency security is supported only by a dependency list and CI, with no shown audit or vulnerability-mitigation process. External effects are bounded, though setup can launch agents or a browser and the contact form sends information to Web3Forms. Withdrawal or recovery is described, but rollback is not uniformly specified for all writes.
The README, skills, and design contract are broadly consistent about local indexes, Git sharing, and explicit maintenance. The Spanish README says its main product description still reflects 0.8.0 and directs readers to the English README and release notes for other changes, so cross-document version consistency is imperfect. The CLI requires Node.js 22.5+, npm packaging, and in some paths optional agent or network conditions; these requirements are reasonably documented. The README gives recovery guidance for expected setup errors, but the supplied excerpt does not establish comprehensive failure coverage.
The material clearly targets engineering teams and coding agents, and distinguishes code-repo from agent-memory use. It states that MCP is not published with 0.8, describes partial language coverage and the Express-specific resolver, and defines write and publication boundaries. Skill triggers and exclusions are specific; platform, Node, CLI/browser, and no-agent paths are documented. These criteria earn high scores.
The README uses clear sections, command guidance, and diagrams. Installation, upgrades, compatibility, limitations, naming, and package-entry compatibility are documented concretely. Examples cover common setup, query, and handoff flows, but the supplied material does not show a complete FAQ. The MIT license, 0.8.5 version, release-notes reference, and compatibility policy are clear. Maintenance responsibility is weaker: the security-report email and response targets are stated, but third-party dependencies are outside that policy and the packet does not establish a general maintainer team or long-term support commitment.
The product stores architecture knowledge, code evidence, Specs, Relays, and member activity in reviewable repository files, with CLI, Hub, and structured handoffs intended for downstream engineering work. Git sharing and rebuildable local indexes offer clear value beyond ephemeral session context. Costs include Node/npm, index construction, and separate agent installation; the packet provides no measured evidence that quantifies the cost-benefit balance.
The documentation describes links between Wiki claims and code-graph nodes, hashes, and drift states, and explicitly says drift does not prove truth or that an agent used the context. Skills require grounded evidence and prohibit invented provenance. The README, source, skills, contract, and test excerpts corroborate several boundaries, but not every product claim has independent corroboration. This is a static review only; it distinguishes repository claims from unexecuted verification and therefore has low confidence.
- The Spanish README says its main description still reflects 0.8.0; interpret 0.8.5 product changes alongside the English README and release notes as it instructs.
- SECURITY.md lists only 0.2.x as supported despite package version 0.8.5, and explicitly excludes third-party dependencies from policy scope.
- This assessment uses only the supplied static material; no code was executed and behavior was not independently verified.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
v0.9.0-beta.1.1 Pre-release
Release notes excerpt
Release 0.9.0-beta.1.1. Packages were built from c2e5f55991764b4a00df8163495367fdfaec2356.View on GitHub ↗ -
v0.8.5 MEX 0.8.5 — Checked state diagrams and resumable setup
Release notes excerpt
MEX 0.8.5 — Checked state diagrams and resumable setup October 29, 2026. Ask your coding agent to explain a complicated flow with a state diagram. MEX 0.8.5 adds checked statecharts that use relevant project knowledge and code evidence, with an interactive Hub viewer when you want to explore further. This release also makes setup parallel and resumable and reduces graph build and refresh costs on large repositories. Understand the agent's explanation Ask “explain this using a statechart” or invoke mex-statechart in Claude Code …View on GitHub ↗ -
v0.8.4 MEX 0.8.4 — Terminal setup and clearer knowledge checks
Release notes excerpt
mex 0.8.4 — Terminal setup and clearer knowledge checks October 14, 2026. MEX 0.8.4 makes terminal setup the default, adds a native interactive agent handoff, and reports setup progress and failures more clearly. It also includes the graph, Wiki search, and grounding improvements merged since 0.8.3. Terminal setup by default Run mex setup to open the keyboard-driven HUD and ASCII banner. Choose a tool with the arrow keys and Enter; Space selects additional integrations. Selection happens before setup writes. An available selected Claude Code or Codex CLI …View on GitHub ↗
FAQ
Does mex require a paid model or a specific API key?
Does telemetry upload source code or repository paths?
mex telemetry inspect and opt out with DO_NOT_TRACK=1, MEX_TELEMETRY=0, or mex config set telemetry off.What happens if the graph or a language grammar cannot load?
Can an existing mex wiki gain symbol grounding without being rewritten?
mex graph and then mex graph ground. The migration preserves existing prose while adding focused grounds_to entries and navigable mex:// references, and it is documented as safe to rerun.Is MCP required to use mex?
mex-agent CLI. packages/mex-mcp exposes wiki and event-log functions as MCP tools, but it is not published and must be built locally with npm run build --workspace mex-mcp.Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.