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

At a glance

How it runs
CLIMCP server
Works with
Universal · cross-platformCodex · Claude Code
Cost
Free, no paid service needed
Setup effort
Low · running in minutes
You'll need
Node.js 22.5 or newerShell / CLINetwork accessLocal filesystem
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.

  1. 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.
  2. A frequently refactored project needs to detect when documented functions, files, dependencies, or symbol references have changed, moved, or disappeared.
  3. A team using Claude Code, Codex, Cursor, Windsurf, GitHub Copilot, or OpenCode wants a repository-level context anchor tailored to each supported coding tool.
  4. A developer tracing behavior or planning a change wants queries for definitions, callers, callees, and the wiki material affected by a symbol or file.
  5. 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 setup
  • npm install -g mex-agent
  • npx 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

FARS trust-control audit

Verified present in source (3/3)
  • confirmation before acting
  • data-flow disclosure
  • verifiable attribution

What are this agent's strengths and limitations?

Pros
  • 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.
Limitations
  • 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-mcp locally, 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?

FollowAgents source review · FARS-2.1
Good
84/ 100 5-point scale 4.2 / 5
Trust 22/29
Reliability 9/14
Adaptability 18/18
Convention 16/18
Effectiveness 12/13
Verifiability 7/8
Why each dimension lost points
Trust22 / 29 · 3.8/5

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.

Reliability9 / 14 · 3.2/5

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.

Adaptability18 / 18 · 5.0/5

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.

Convention16 / 18 · 4.4/5

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.

Effectiveness12 / 13 · 4.6/5

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.

Verifiability7 / 8 · 4.4/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision d95d44d6ce50 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/mex.svg)](https://followagents.com/en/agents/mex)
<a href="https://followagents.com/en/agents/mex"><img src="https://followagents.com/badge/mex.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. 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 ↗
  2. 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 ↗
  3. 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?
No paid service or API credential is documented. The core product is a local npm CLI and is described as provider-neutral, although initial wiki population and targeted repairs involve the user's existing coding agent.
Does telemetry upload source code or repository paths?
The documented payload contains only the command name, mex version, and operating system. It excludes paths, arguments, file contents, IP addresses, and personal data. Users can inspect it with 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?
mex degrades gracefully. Filesystem and lexical checks continue when no graph exists; if SQLite or an individual grammar fails, graph checks are skipped with a warning while the rest of the CLI remains available.
Can an existing mex wiki gain symbol grounding without being rewritten?
Yes. Run 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?
No. The primary v0.7.0 release is the 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.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts