stoneskin (Mr. Sun)

Personal homepage of Mr Sun - AI Solutions Architect, Tech Lead & AWS Cloud Specialist: resume, selected projects, and teaching archive

open-memex

Persistent memory for AI coding agents — on your machine, in plain Markdown, shared by every tool you code with.

GitHub repository · npm package · Documentation · Releases

Terminal demo: two memories saved on Monday, recalled by search in a fresh session on Friday

open-memex at a glance: say it once in VS Code, find it days later in Cursor — one local memory in plain Markdown, shared by every agent

Every AI coding session starts from zero: you re-explain the project, the agent rediscovers the same gotchas, and yesterday’s decisions vanish when the chat ends. open-memex gives your agents a memory that survives the session.

Say “remember: we deploy on Fridays” once. Next week, Copilot, Cursor, opencode, or Claude Code already knows — because they read and write the same local memory on your machine.

Get started in about a minute

Requirements: Node.js 22.14 or newer.

npm install -g open-memex
open-memex init
open-memex add "We deploy only before noon on Fridays" --type decision

Then ask your agent what it remembers. open-memex init auto-detects supported editors and wires up the integration for you.

Why open-memex?

How it works

open-memex architecture: editors connect through the MCP server or the opencode native plugin to one local store — Markdown files as the source of truth with an SQLite FTS5 index; personal memory stays on the machine, project memory is shared through git PRs

  1. Capture — Save a decision, constraint, preference, lesson, or project fact through your agent, the CLI, or supported keyword triggers.
  2. Store — open-memex writes a structured Markdown memory and updates its local SQLite keyword index.
  3. Recall — In a later session, the agent can search the memory or receive relevant context automatically where the host supports first-turn injection.
  4. Review and share — Personal memories stay local. Project memories can be proposed, reviewed, approved, and published through Git.

Works with the tools you already use

open-memex provides a native opencode plugin and a standard MCP server used by tools including:

The same memory layer is underneath each integration, so a constraint captured in one editor can be respected in another.

Built for knowledge that should outlive a chat

Use open-memex for the long tail of engineering knowledge that rarely belongs in a formal design document:

Privacy and safety

Project status

open-memex is open source under the Apache-2.0 license. The current stable release is 0.7.1. Start with the GitHub README for the full guide, or open a question in GitHub Discussions.

Created by Mr Sun.