New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

memorix

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

memorix

Open-source cross-agent memory layer for coding agents across Cursor, Claude Code, Codex, Windsurf, Gemini CLI, Copilot, Kiro, OpenCode, Antigravity, and Trae via MCP.

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

Memorix

Memorix

Open-source cross-agent memory layer for coding agents.
Compatible with Cursor, Claude Code, Codex, Windsurf, Gemini CLI, GitHub Copilot, Kiro, OpenCode, Antigravity, and Trae through MCP.

npm downloads license CI stars

Git Memory | Reasoning Memory | Cross-Agent Recall | Control Plane Dashboard

中文说明 | Quick Start | Supported Clients | Core Workflows | Documentation | Setup Guide

Why Memorix

Most coding agents remember only the current thread. Memorix gives them a shared, persistent memory layer across IDEs, sessions, and projects.

What makes Memorix different:

  • Git Memory: turn git commit into searchable engineering memory with noise filtering and commit provenance.
  • Reasoning Memory: store why a decision was made, not just what changed.
  • Cross-Agent Local Recall: multiple IDEs and agents can read the same local memory base instead of living in isolated silos.
  • Memory Quality Pipeline: formation, compaction, retention, and source-aware retrieval work together instead of acting like isolated tools.

Memorix is built for one job: let multiple coding agents share the same durable project memory through MCP without giving up Git truth, reasoning history, or local control.

Supported Clients

Memorix currently ships first-class integrations for:

  • Cursor
  • Claude Code
  • Codex
  • Windsurf
  • Gemini CLI
  • GitHub Copilot
  • Kiro
  • OpenCode
  • Antigravity
  • Trae

If a client can speak MCP and launch a local command or HTTP endpoint, it can usually connect to Memorix even if it is not in the list above yet.

Quick Start

Install globally:

npm install -g memorix

Initialize project config:

memorix init

Memorix uses two files with two roles:

  • memorix.yml for behavior and project settings
  • .env for secrets such as API keys

Choose one runtime mode:

memorix serve

Use serve for normal stdio MCP integrations.

memorix serve-http --port 3211

Use serve-http when you want the HTTP transport, collaboration features, and the dashboard on the same port.

In HTTP control-plane mode, agents should call memorix_session_start with projectRoot set to the absolute path of the current workspace or repo root when that path is available. Git remains the source of truth for the final project identity; projectRoot is the detection anchor that keeps parallel sessions from drifting into the wrong project bucket.

Add Memorix to your MCP client:

Cursor | .cursor/mcp.json
{
  "mcpServers": {
    "memorix": {
      "command": "memorix",
      "args": ["serve"]
    }
  }
}
Claude Code
claude mcp add memorix -- memorix serve
Codex | ~/.codex/config.toml
[mcp_servers.memorix]
command = "memorix"
args = ["serve"]

For the full IDE matrix, Windows notes, and troubleshooting, see docs/SETUP.md.

Core Workflows

1. Store and retrieve memory

Use MCP tools such as:

  • memorix_store
  • memorix_search
  • memorix_detail
  • memorix_timeline
  • memorix_resolve

This covers decisions, gotchas, problem-solution notes, and session handoff context.

2. Capture Git truth automatically

Install the post-commit hook:

memorix git-hook --force

Or ingest manually:

memorix ingest commit
memorix ingest log --count 20

Git memories are stored with source='git', commit hashes, changed files, and noise filtering.

3. Run the control plane

memorix serve-http --port 3211

Then open:

  • MCP HTTP endpoint: http://localhost:3211/mcp
  • Dashboard: http://localhost:3211

This mode gives you collaboration tools, project identity diagnostics, config provenance, Git Memory views, and the dashboard in one place.

When multiple HTTP sessions are open at once, each session should bind itself with memorix_session_start(projectRoot=...) before using project-scoped memory tools.

How It Works

graph TB
    A["git commit / agent tool call / manual store"] --> B["Memorix Runtime"]
    B --> C["Observation / Reasoning / Git Memory"]
    C --> D["Formation + Indexing + Graph + Retention"]
    D --> E["Search / Detail / Timeline / Dashboard / Team"]

Memory Layers

  • Observation Memory: what changed, how something works, gotchas, problem-solution notes
  • Reasoning Memory: why a choice was made, alternatives, trade-offs, risks
  • Git Memory: immutable engineering facts derived from commits

Retrieval Model

  • Default search is project-scoped
  • scope="global" searches across projects
  • Global hits can be opened explicitly with project-aware refs
  • Source-aware retrieval boosts Git memories for "what changed" questions and reasoning memories for "why" questions

Documentation

Getting Started

Product and Architecture

Reference

Development

AI-Facing Project Docs

Development

git clone https://github.com/AVIDS2/memorix.git
cd memorix
npm install

npm run dev
npm test
npm run build

Key local commands:

memorix status
memorix dashboard
memorix serve-http --port 3211
memorix git-hook --force

Acknowledgements

Memorix builds on ideas from mcp-memory-service, MemCP, claude-mem, Mem0, and the broader MCP ecosystem.

Star History

Star History Chart

License

Apache 2.0

Keywords

mcp

FAQs

Package last updated on 25 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts