Memex

io.github.iamtouchskyer由 GitHub 账号 iamtouchskyer 发布v0.1.8更新于 Oct 27, 2026

Zettelkasten-based agent memory system with bidirectional links

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

Memex 是一个本地 Zettelkasten 式记忆库,让编程 agent 把心得保存为带双向链接的 markdown 卡片,并在之后的会话中调取。

可以做什么
  • 搜索、读取和写入以 markdown 文件保存的原子知识卡片
  • 用双向 wiki 链接关联卡片,查看反向链接与链接图谱统计
  • 分析卡片网络中的孤立节点、枢纽与冲突,并归档卡片
  • 通过 git 远程仓库跨设备同步,并在时间线或图谱视图中浏览
  • 从其他工具导入记忆,并通过 flomo 集成推送或导入笔记
适用场景
适合希望编程 agent 在会话之间、在不同编辑器之间延续已有知识,且不需要向量数据库、愿意让记忆以可自行阅读和编辑的纯 markdown 文件形式存在的情况。
运行要求
以本地 stdio 进程运行;多数客户端需要 Node.js 18+ 并全局安装该 npm 包,VS Code/Copilot 扩展和 Claude Code 插件则自带所需环境。可选的 git 同步需要远程仓库地址或已登录的 GitHub CLI。可选环境变量 MEMEX_HOME 可指定自定义数据目录,默认位于用户主目录下。
安装前请注意
卡片会写入磁盘,若开启同步还会推送到 git 远程仓库,因此 agent 记录的内容会离开本机。README 提醒不要把密钥、凭据或令牌写入查询或卡片;工具会拒绝明显的原始密钥并遮蔽 URL 中的凭据,但无法隐藏客户端对话记录中已显示的参数。用于浏览记忆的在线网页界面会把查询发送给第三方网页应用,除非强制使用本地模式。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Memex,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[MseeP.ai Security Assessment Badge]

memex

Persistent memory for AI coding agents. Your agent remembers what it learned across sessions.

English | 中文 | 日本語 | 한국어 | Español

[memex timeline view]


English

Every time your AI agent finishes a task, it saves insights as atomic knowledge cards with [[bidirectional links]]. Next session, it recalls relevant cards before starting work — building on what it already knows instead of starting from scratch.

No vector database, no embeddings — just markdown files your agent (and you) can read.

Supported platforms

PlatformIntegrationExperience
Claude CodePlugin (hooks + skills)Best — auto-recall, slash commands, SessionStart hook
VS Code / CopilotMCP Server12 MCP tools, zero config
CursorMCP Server12 MCP tools, zero config
CodexMCP Server12 MCP tools, zero config
WindsurfMCP Server12 MCP tools, zero config
PiExtension (custom tools + hooks)8 tools, auto-recall hook, slash commands
Any MCP clientMCP Server12 MCP tools, zero config

All platforms share the same ~/.memex/cards/ directory. A card written in Claude Code is instantly available in Cursor, Codex, or any other client.

Prerequisites

  • VS Code / Copilot: No prerequisites — the extension bundles everything
  • Claude Code: No prerequisites — the plugin handles everything
  • Pi: Requires Node.js 18+ and npm install -g @touchskyer/memex
  • All other platforms (Cursor, Codex, Windsurf, etc.): Requires Node.js 18+

Install

Step 1: Add memex to your editor

PlatformCommand
VS Code / CopilotSearch "memex" in VS Code Extensions — install and done, no extra setup
Claude Code/plugin marketplace add iamtouchskyer/memex then /plugin install memex@memex
Claude Code (MCP fallback)npm install -g @touchskyer/memex && memex mcp-config --claude-code
CursorFirst npm install -g @touchskyer/memex, then one-click install
Codexnpm install -g @touchskyer/memex && codex mcp add memex -- memex mcp
Pinpm install -g @touchskyer/memex && pi install npm:@touchskyer/memex
Windsurf / othersnpm install -g @touchskyer/memex, then add MCP server: command memex, args ["mcp"]

Note: If you use Claude Code inside VS Code, follow the Claude Code row — not "VS Code / Copilot". The VS Code extension serves GitHub Copilot only; Claude Code has its own plugin system.

That's it — no extra setup needed. The MCP tool descriptions tell your agent when to recall and retro.

Upgrade

PlatformHow
VS Code / CopilotExtension auto-updates from marketplace
Claude Code/plugin uninstall memex then /plugin install memex@memex
Pinpm update -g @touchskyer/memex and re-copy pi-extension/index.ts
Cursor / Codex / Windsurfnpm update -g @touchskyer/memex

Cross-platform sharing

All clients read and write the same ~/.memex/cards/ directory. Sync across devices with git:

Prerequisite: Auto-create requires GitHub CLI (gh auth login). Or pass your own git remote URL to skip this, including GitLab and self-hosted GitLab remotes.

bash
memex sync --init                # auto-creates private memex-cards repo on GitHubmemex sync --init <repo-url>     # or specify your own repo URL (no gh/glab CLI needed)memex sync on                    # enable auto-sync after every writememex sync                       # manual syncmemex sync off                   # disable auto-sync

For GitLab, create an empty private repository first, then pass its SSH or HTTPS remote URL. See the GitLab sync guide for examples.

Browse your memory

bash
memex serve

Opens a visual timeline of all your cards at localhost:3939. Includes a graph view to explore bidirectional links.

If you've set up sync, memex serve opens memra.vercel.app — a web UI with Timeline, Graph view, and Share card. Pass --local to force the local UI instead (useful offline, or when you'd rather not send queries to a third-party web app):

bash
memex serve --local

[Graph View]

CLI reference

bash
memex search [query]          # search cards (ranked), or guidance / --listmemex read <slug>             # read a cardmemex write <slug>            # write a card (content via stdin)memex links [slug]            # link graph stats, or one card's linksmemex backlinks <slug>        # cards linking to <slug> via [[wiki-links]]memex link <from> <to> <ctx>  # append an outbound [[wiki-link]] with contextmemex archive <slug>          # move a card to the archivememex organize                # analyze network: orphans, hubs, conflictsmemex serve                   # visual timeline UI (web)memex sync                    # sync via git (--init / --status / on|off)memex import [source]         # import memories from other tools (openclaw, ...)memex mcp                     # start MCP server (stdio)memex mcp-config              # configure MCP for Claude Code / other clientsmemex doctor                  # check memex health and configurationmemex migrate                 # migrate configuration (e.g. --enable-nested)memex flomo ...               # flomo integration: config / push / import

How it works

Based on Niklas Luhmann's Zettelkasten method — the system behind 70 books from 90,000 handwritten cards:

  • Atomic notes — one idea per card
  • Own words — forces understanding (the Feynman method)
  • Links in context — "this relates to [[X]] because..." not just tags
  • Keyword index — curated entry points to the card network

Cards are stored as markdown in ~/.memex/cards/. Open them in Obsidian, edit with vim, grep from terminal. Your memory is never locked in.

Privacy guardrails

Do not put actual secrets, credentials, tokens, or exact secret file contents into memex queries or cards. Use abstract descriptions and redacted examples instead.

Memex rejects high-confidence raw secrets, redacts credentials embedded in URLs before saving, and masks webhook/tokenized URLs in display output. It cannot hide unsafe tool-call arguments that your AI client has already shown in its transcript, so redact before calling tools.

Configuration

Optional settings go in ~/.memex/.memexrc (JSON):

json
{  "nestedSlugs": true,  "searchDirs": ["shared"],  "experimental": {    "agenticMemory": true  }}
KeyTypeDefaultDescription
nestedSlugsbooleanfalseAllow / in slugs for hierarchical card paths
searchDirsstring[]—Extra directories to search with --all (in addition to the built-in cards/ store)
experimental.agenticMemorybooleanfalseEnable A-MEM-inspired agentic memory workflow (see below)
Experimental: Agentic Memory

When experimental.agenticMemory is true, agents gain access to a structured memory skill that guides them through: observe → draft atomic card → enrich metadata → retrieve candidates → decide (create/update/skip) → preview → write → verify.

This produces higher-quality cards with agent-proposed [[wikilinks]] (links are suggested after candidate retrieval and agent review, never added from keyword or embedding similarity alone) and metadata enrichment, compared to the default recall/retro workflow. The feature is default-off and does not change any existing behavior when disabled.

See skills/memex-agentic-memory/SKILL.md for the full skill specification and docs/ARCHITECTURE.md for config details.


中文

AI 编程 agent 的持久记忆系统。让你的 agent 跨会话记住学到的知识。

每次 agent 完成任务后,它会将洞察保存为带有 [[双向链接]] 的原子知识卡片。下次会话时,agent 会先回顾相关卡片再开始工作——基于已有知识继续,而非从零开始。

无需向量数据库,无需 embedding——只是你和 agent 都能读取的 markdown 文件。

支持平台

平台集成方式体验
Claude CodePlugin(hooks + skills)最佳——自动回顾、斜杠命令、SessionStart hook
VS Code / CopilotMCP Server12 个 MCP 工具,零配置
CursorMCP Server12 个 MCP 工具,零配置
CodexMCP Server12 个 MCP 工具,零配置
WindsurfMCP Server12 个 MCP 工具,零配置
PiExtension(自定义工具 + hooks)8 个工具,自动回顾 hook,斜杠命令
任何 MCP 客户端MCP Server12 个 MCP 工具,零配置

所有平台共享同一个 ~/.memex/cards/ 目录。在 Claude Code 中写的卡片,在 Cursor、Codex 或其他客户端中即刻可用。

前置要求

  • VS Code / Copilot:无需额外安装——扩展内置了所有依赖
  • Claude Code:无需额外安装——plugin 自动处理
  • Pi:需要 Node.js 18+ 和 npm install -g @touchskyer/memex
  • 其他平台(Cursor、Codex、Windsurf 等):需要 Node.js 18+

安装

第一步:添加 memex 到编辑器

平台命令
VS Code / Copilot在 VS Code 扩展商店 搜索 "memex"——安装即用,无需其他配置
Claude Code/plugin marketplace add iamtouchskyer/memex,然后 /plugin install memex@memex
Claude Code(MCP 备选)npm install -g @touchskyer/memex && memex mcp-config --claude-code
Cursor先 npm install -g @touchskyer/memex,然后 一键安装
Codexnpm install -g @touchskyer/memex && codex mcp add memex -- memex mcp
Pinpm install -g @touchskyer/memex && pi install npm:@touchskyer/memex
Windsurf / 其他npm install -g @touchskyer/memex,然后添加 MCP server:命令 memex,参数 ["mcp"]

注意: 如果你在 VS Code 里使用 Claude Code,请按照 Claude Code 那一行操作,而非"VS Code / Copilot"。VS Code 扩展仅服务于 GitHub Copilot;Claude Code 有自己的 plugin 系统。

安装完成,无需额外配置。MCP 工具描述会自动告诉 agent 何时 recall 和 retro。


日本語

AIコーディングエージェントのための永続メモリシステム。エージェントがセッションをまたいで学んだことを記憶します。

エージェントがタスクを完了するたびに、[[双方向リンク]]付きのアトミックな知識カードとしてインサイトを保存します。次のセッションでは、作業開始前に関連カードを呼び出し、ゼロからではなく既存の知識の上に構築します。

ベクトルデータベースもembeddingも不要——エージェント(とあなた)が読めるmarkdownファイルだけです。

対応プラットフォーム

プラットフォーム統合方式体験
Claude CodePlugin(hooks + skills)最高——自動リコール、スラッシュコマンド、SessionStart hook
VS Code / CopilotMCP Server12 MCPツール、設定不要
CursorMCP Server12 MCPツール、設定不要
CodexMCP Server12 MCPツール、設定不要
WindsurfMCP Server12 MCPツール、設定不要
PiExtension(カスタムツール + hooks)8ツール、自動リコールhook、スラッシュコマンド
任意のMCPクライアントMCP Server12 MCPツール、設定不要

すべてのプラットフォームが同じ ~/.memex/cards/ ディレクトリを共有します。Claude Codeで書いたカードは、Cursor、Codex、その他のクライアントですぐに利用できます。

前提条件

  • VS Code / Copilot:前提条件なし——拡張機能がすべてをバンドル
  • Claude Code:前提条件なし——プラグインがすべてを処理
  • Pi:Node.js 18+ と npm install -g @touchskyer/memex が必要
  • その他のプラットフォーム(Cursor、Codex、Windsurf等):Node.js 18+ が必要

インストール

ステップ1:エディタにmemexを追加

プラットフォームコマンド
VS Code / CopilotVS Code 拡張機能で "memex" を検索——インストールするだけ、追加設定不要
Claude Code/plugin marketplace add iamtouchskyer/memex、その後 /plugin install memex@memex
Claude Code(MCPフォールバック)npm install -g @touchskyer/memex && memex mcp-config --claude-code
Cursorまず npm install -g @touchskyer/memex、その後 ワンクリックインストール
Codexnpm install -g @touchskyer/memex && codex mcp add memex -- memex mcp
Pinpm install -g @touchskyer/memex && pi install npm:@touchskyer/memex
Windsurf / その他npm install -g @touchskyer/memex、その後MCP serverを追加:コマンド memex、引数 ["mcp"]

注意: VS Code内でClaude Codeを使用する場合は、「VS Code / Copilot」ではなく Claude Code の行に従ってください。VS Code拡張機能はGitHub Copilot専用です。Claude Codeには独自のプラグインシステムがあります。

インストール完了、追加設定は不要です。MCPツールの説明がエージェントにリコールとレトロのタイミングを自動的に教えます。

アップグレード

プラットフォーム方法
VS Code / Copilot拡張機能がマーケットプレイスから自動更新
Claude Code/plugin uninstall memex → /plugin install memex@memex
Cursor / Codex / Windsurfnpm update -g @touchskyer/memex

한국어

AI 코딩 에이전트를 위한 영구 메모리 시스템. 에이전트가 세션을 넘어 학습한 내용을 기억합니다.

에이전트가 작업을 완료할 때마다 [[양방향 링크]]가 포함된 원자적 지식 카드로 인사이트를 저장합니다. 다음 세션에서는 작업 시작 전에 관련 카드를 불러와, 처음부터가 아닌 기존 지식 위에 구축합니다.

벡터 데이터베이스도 임베딩도 필요 없습니다 — 에이전트(와 당신)가 읽을 수 있는 markdown 파일뿐입니다.

지원 플랫폼

플랫폼통합 방식경험
Claude CodePlugin (hooks + skills)최고 — 자동 리콜, 슬래시 명령, SessionStart hook
VS Code / CopilotMCP Server10개 MCP 도구, 설정 불필요
CursorMCP Server10개 MCP 도구, 설정 불필요
CodexMCP Server10개 MCP 도구, 설정 불필요
WindsurfMCP Server10개 MCP 도구, 설정 불필요
PiExtension (커스텀 도구 + hooks)8개 도구, 자동 리콜 hook, 슬래시 명령
모든 MCP 클라이언트MCP Server10개 MCP 도구, 설정 불필요

모든 플랫폼이 동일한 ~/.memex/cards/ 디렉토리를 공유합니다. Claude Code에서 작성한 카드를 Cursor, Codex 또는 다른 클라이언트에서 즉시 사용할 수 있습니다.

전제 조건

  • VS Code / Copilot: 전제 조건 없음 — 확장 프로그램에 모든 것이 포함
  • Claude Code: 전제 조건 없음 — 플러그인이 모든 것을 처리
  • Pi: Node.js 18+ 및 npm install -g @touchskyer/memex 필요
  • 기타 플랫폼 (Cursor, Codex, Windsurf 등): Node.js 18+ 필요

설치

1단계: 에디터에 memex 추가

플랫폼명령
VS Code / CopilotVS Code 확장에서 "memex" 검색 — 설치하면 끝, 추가 설정 불필요
Claude Code/plugin marketplace add iamtouchskyer/memex 후 /plugin install memex@memex
Claude Code (MCP 대체)npm install -g @touchskyer/memex && memex mcp-config --claude-code
Cursor먼저 npm install -g @touchskyer/memex, 그런 다음 원클릭 설치
Codexnpm install -g @touchskyer/memex && codex mcp add memex -- memex mcp
Pinpm install -g @touchskyer/memex && pi install npm:@touchskyer/memex
Windsurf / 기타npm install -g @touchskyer/memex, 그런 다음 MCP server 추가: 명령 memex, 인수 ["mcp"]

참고: VS Code에서 Claude Code를 사용하는 경우, "VS Code / Copilot"이 아닌 Claude Code 행을 따르세요. VS Code 확장은 GitHub Copilot 전용이며, Claude Code는 자체 플러그인 시스템을 사용합니다.

설치 완료, 추가 설정이 필요 없습니다. MCP 도구 설명이 에이전트에게 리콜과 레트로 시점을 자동으로 알려줍니다.

업그레이드

플랫폼방법
VS Code / Copilot확장 프로그램이 마켓플레이스에서 자동 업데이트
Claude Code/plugin uninstall memex → /plugin install memex@memex
Cursor / Codex / Windsurfnpm update -g @touchskyer/memex

Español

Memoria persistente para agentes de programación con IA. Tu agente recuerda lo que aprendió entre sesiones.

Cada vez que tu agente de IA termina una tarea, guarda conocimientos como tarjetas atómicas con [[enlaces bidireccionales]]. En la siguiente sesión, recupera las tarjetas relevantes antes de comenzar, construyendo sobre lo que ya sabe en lugar de empezar desde cero.

Sin base de datos vectorial, sin embeddings — solo archivos markdown que tu agente (y tú) pueden leer.

Plataformas compatibles

PlataformaIntegraciónExperiencia
Claude CodePlugin (hooks + skills)Mejor — auto-recall, comandos slash, SessionStart hook
VS Code / CopilotMCP Server12 herramientas MCP, sin configuración
CursorMCP Server12 herramientas MCP, sin configuración
CodexMCP Server12 herramientas MCP, sin configuración
WindsurfMCP Server12 herramientas MCP, sin configuración
PiExtension (herramientas personalizadas + hooks)8 herramientas, hook de auto-recall, comandos slash
Cualquier cliente MCPMCP Server12 herramientas MCP, sin configuración

Todas las plataformas comparten el mismo directorio ~/.memex/cards/. Una tarjeta escrita en Claude Code está disponible instantáneamente en Cursor, Codex o cualquier otro cliente.

Requisitos previos

  • VS Code / Copilot: Sin requisitos previos — la extensión incluye todo
  • Claude Code: Sin requisitos previos — el plugin se encarga de todo
  • Pi: Requiere Node.js 18+ y npm install -g @touchskyer/memex
  • Otras plataformas (Cursor, Codex, Windsurf, etc.): Requiere Node.js 18+

Instalación

Paso 1: Agrega memex a tu editor

PlataformaComando
VS Code / CopilotBusca "memex" en VS Code Extensions — instala y listo, sin configuración adicional
Claude Code/plugin marketplace add iamtouchskyer/memex, luego /plugin install memex@memex
Claude Code (MCP alternativo)npm install -g @touchskyer/memex && memex mcp-config --claude-code
CursorPrimero npm install -g @touchskyer/memex, luego instalación con un clic
Codexnpm install -g @touchskyer/memex && codex mcp add memex -- memex mcp
Pinpm install -g @touchskyer/memex && pi install npm:@touchskyer/memex
Windsurf / otrosnpm install -g @touchskyer/memex, luego agregar MCP server: comando memex, args ["mcp"]

Nota: Si usas Claude Code dentro de VS Code, sigue la fila de Claude Code, no "VS Code / Copilot". La extensión de VS Code es solo para GitHub Copilot; Claude Code tiene su propio sistema de plugins.

Instalación completa, no se requiere configuración adicional. Las descripciones de las herramientas MCP le dicen automáticamente a tu agente cuándo hacer recall y retro.

Actualización

PlataformaCómo
VS Code / CopilotLa extensión se actualiza automáticamente desde el marketplace
Claude Code/plugin uninstall memex → /plugin install memex@memex
Cursor / Codex / Windsurfnpm update -g @touchskyer/memex

Community

Using memex? Share your setup in Discussions → Show and tell. Questions go in Q&A. Feature ideas in Ideas.


License

MIT

来源:README.md,提交 453c0e3

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.8最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分