프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. 리뷰와 계정 기능은 다음 단계에서 열려요.
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요

Cross-Agent Memory

제작자: indamices버전 1.0.0i★ –i–
레지스트리 이름io.github.indamices/cross-agent-memory

설치

개요

제작자가 쓴 설명(영어 원문)

Local-first shared memory for AI coding agents: one searchable store, served over MCP. MIT.

PopNx MCP의 세 기둥

이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.

할 수 있는 일

이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.

  • 연결 방식: –
  • 전송 방식:
  • 카테고리: 검색 및 AI 기억

설치

쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.

설치하기 전에

  • 기본 점검: 1개 중 1개 통과
  • 내 컴퓨터에서 내 사용자 계정의 권한(파일, 네트워크, 앱)으로 실행돼요.
  • 레지스트리에 입력해야 할 키가 나와 있지 않아요.

제작자가 레지스트리에 설치 정보를 올리지 않았어요. 아래 제작자의 README를 확인하세요.

할 수 있는 일

내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.

기본 점검i

누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 6일 점검

  • ✓ 통과

    제작자와 저장소 일치

    레지스트리 이름이 GitHub 계정 indamices 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요

  • … 아직 점검 안 함

    계속 관리되고 있음

    아직 GitHub에서 이 저장소를 읽어 오지 않았어요

  • … 아직 점검 안 함

    라이선스 있음

    아직 GitHub에서 이 저장소를 읽어 오지 않았어요

  • – 해당 없음

    엔드포인트 응답

    내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요

  • – 해당 없음

    OAuth로 로그인

    내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요

  • … 아직 점검 안 함

    도구 설명에 숨겨진 지시 없음

    내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요

검색 및 AI 기억 카테고리의 다른 서버와 비교i

  • 이 카테고리의 다른 서버 7247개 중 0%보다 스타가 많아요
  • 이 카테고리의 다른 서버 7247개 중 75%보다 최근에 레지스트리에 공개됐어요
  • 기본 점검 결과가 이 카테고리의 다른 서버 7247개 중 100%와 같거나 더 좋아요

레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.

자주 묻는 질문

Cross-Agent Memory, 안전한가요?

해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.

어떤 키나 코드가 필요한가요?

레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.

내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?

내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).

아직 관리되고 있나요?

GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(1.0.0)은 12일 전 레지스트리에 올라왔어요.

어떤 앱에서 쓸 수 있나요?

Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요.

대신 쓸 수 있는 건 뭐가 있나요?

같은 카테고리에는: Context7, Codebase Memory, Exa

대안

같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.

카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i

Context7

제작자: upstash

Up-to-date docs for AI agents

컴퓨터 또는 클라우드★ 64,224MIT오늘 업데이트
설치

Codebase Memory

제작자: DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

내 컴퓨터에서 실행★ 48,148MIT20일 전 업데이트
설치

Exa

제작자: exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

클라우드에서 실행★ 5,213MIT지난달 업데이트
설치

제작자의 README

README 열기

제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.

Cross-Agent Memory

One local memory for all your AI coding agents.

Your Claude Code history, Codex sessions, Cursor work, project docs and decisions — indexed once, searchable from every agent, forever yours.

English | 中文

🎬 ▶ Play the full demo (2 min, Mandarin narration)

https://github.com/user-attachments/assets/a8d5d77c-98bc-42f7-9c58-7b48295875fe

Real run: install → verify → store → search. No mock-ups. Click the poster to play the 2-minute narrated walkthrough.


The problem

Every AI coding tool starts from zero.

You spend a week with Claude Code designing an architecture, switch to Codex next week, and it knows nothing about what you decided or why. You paste context again. You re-explain the project. Three tools later, the same conversation has happened five times, and none of it is searchable.

cross-agent-memory fixes this. It runs a small local memory service that:

  1. Ingests your session history from any AI tool (Claude Code / Codex-style CLIs / OpenCode / ZCode / …) and any project folder you point it at.
  2. Indexes everything with local embeddings into a single searchable store.
  3. Serves it back to every agent through an HTTP API or directly as MCP tools — so any MCP-capable agent can recall what every other agent (and you) already figured out.

No cloud. No accounts. Nothing ever leaves your machine.

Features

  • 🔒 Local-first, private by design — embeddings and search run on your machine (Ollama + SQLite + sqlite-vec). Airplane mode is a supported mode.
  • 🧠 Cross-tool by design — connectors for Claude Code, OpenCode and ZCode session stores, plus a generic file watcher for any project/docs folder. Agents share *one* memory regardless of which tool produced it.
  • 🔌 One-line MCP integration — memory_search, memory_write and memory_stats are exposed over the Model Context Protocol. Claude Code, Codex CLI, Cursor and anything else MCP-capable can use them today.
  • ⚡ Fast at real scale — built for large corpora: sqlite-vec vec0 KNN with a 1-bit coarse recall prefilter and hot/warm/cold tiering. The reference deployment searches 2,000,000+ chunks in 0.36–1.20 s (see measured numbers).
  • 🛠 Ops included — health/monitor endpoints, rolling-window degradation detection, backups & restore, snapshot archiving, tier maintenance scripts.
  • 📈 Battle-tested — extracted from a continuously running multi-agent system where four different AI tools share one memory daily, with millions of chunks and daily incremental indexing.

Architecture

        Claude Code      Codex-style CLI     OpenCode / ZCode      any project

│ │ │ │ ▼ ▼ ▼ ▼ ┌────────────────────────────────────────────────────────────────────┐ │ Connectors / Indexers │ │ incremental watermarks · content-hash dedup · active-session │ │ skip · unified chunker · local embeddings (Ollama, e.g. bge-m3) │ └────────────────────────────────────────────────────────────────────┘ │ ▼ ┌────────────────────────────────────────────────────────────────────┐ │ SQLite memory store (single file) │ │ chunks (source of truth) ├─ vec0 KNN index (sqlite-vec) │ │ FTS-ready metadata ├─ 1-bit recall codes (Hamming) │ │ └─ hot / warm / cold tier tables │ └────────────────────────────────────────────────────────────────────┘ │ ┌─────────────────┴───────────────────┐ ▼ ▼ HTTP API (port 5370) MCP server (stdio) /api/search /api/memories memory_search /api/stats /api/health ... memory_write / memory_stats ▲ ▲ └─────────────────┬───────────────────┘ │ every agent you use, in any language/tool

Design notes and the full retrieval pipeline are documented in docs/ARCHITECTURE.md.

🤖 Let your AI agent install it (one paste)

The fastest path: open this repository in your AI coding assistant and paste the block below. It installs everything locally — venv, dependencies, a fresh isolated database — verifies a real write/search round trip, and reports back with exact commands and results. Nothing is sent anywhere; the agent works on your machine only.

Install this repository locally. Read AGENTS.md and INSTALL-FOR-AI.md first.

Use ./install.sh --dry-run, then ./install.sh. Keep all runtime data isolated from existing databases and bind only 127.0.0.1. Verify initialization twice, Ollama bge-m3, health, and a real write/search round trip using examples/run.py. Add the client instructions from examples/client-instructions.md. Report exact commands, results and blockers; do not claim success from health alone. Do not import personal projects, restore backups or change system services.

Prefer doing it yourself? The manual path is right below. The same protocol is documented for agents in INSTALL-FOR-AI.md and AGENTS.md.

Quickstart

0. Prerequisites
  • macOS or Linux (Windows is not supported yet — connectors use POSIX file locks)
  • Python 3.10+
  • Ollama running locally (for embeddings)
ollama pull bge-m3            # ~1.2 GB, good multilingual embedding model
1. Install
git clone https://github.com/indamices/cross-agent-memory.git

cd cross-agent-memory python3 -m venv venv && source venv/bin/activate pip install -r requirements.txt

2. Start the service
python3 server.py

Server listening on 127.0.0.1:5370

3. Give it something to remember

Register any project folder (docs, decisions, notes):

curl -s -X POST http://127.0.0.1:5370/api/register \

-H 'Content-Type: application/json' \ -d '{"root": "/path/to/your/project"}'

The folder needs a .memory-service.yaml or sensible defaults are used —

see examples/. Files are indexed immediately; later changes are

batched by a debounce window (default 1 hour, MEMSVC_WATCH_DEBOUNCE).

For instant pickup: POST /api/reindex {"project": "..."} or start with

MEMSVC_WATCH_DEBOUNCE=0.

Or ingest AI-tool session history with a connector:

python3 connectors/index_claude_code.py     # ~/.claude/projects/**/*.jsonl

python3 connectors/index_opencode.py # ~/.local/share/opencode/opencode.db python3 connectors/index_zcode.py # ~/.zcode/v2/tasks-index.sqlite

4. Search from anywhere
curl -s -X POST http://127.0.0.1:5370/api/search \

-H 'Content-Type: application/json' \ -d '{"query": "why did we choose the tiered storage design", "n_results": 5}'

Or write a memory directly (decisions, insights — great for agent hooks):

curl -s -X POST http://127.0.0.1:5370/api/memories \

-H 'Content-Type: application/json' \ -d '{"items": [{"type": "decision", "content": "We picked sqlite-vec over a server-based vector DB for local-first operation."}]}'

Connect your agents (MCP)

mcp_server.py is a zero-dependency MCP (stdio) server that exposes the memory API as tools. Point your agent at it:

Claude Code

claude mcp add memory -- python3 /ABS/PATH/cross-agent-memory/mcp_server.py

or in .mcp.json:

{

"mcpServers": { "memory": { "command": "python3", "args": ["/ABS/PATH/cross-agent-memory/mcp_server.py"], "env": { "MEMORY_SERVICE_URL": "http://127.0.0.1:5370" } } } }

Codex CLI (~/.codex/config.toml)

[mcp_servers.memory]

command = "python3" args = ["/ABS/PATH/cross-agent-memory/mcp_server.py"] env = { MEMORY_SERVICE_URL = "http://127.0.0.1:5370" }

Cursor / other MCP agents — same server command and args in that tool's MCP settings. If you started the service with MEMSVC_TOKEN set, also set MEMORY_SERVICE_TOKEN for the MCP server.

Once connected, your agent gets:

ToolWhat it does
memory_searchSemantic search across all indexed sessions/projects of every tool
memory_writeStore a decision / insight / discovery for future sessions
memory_statsList collections and sizes

How retrieval works

Each /api/search request runs a staged pipeline:

  1. Query embedding — computed locally (Ollama), cached by text hash.
  2. Coarse recall — a 1-bit-per-dimension code per chunk is prefiltered by Hamming distance (skipped automatically for small collections).
  3. Exact KNN — sqlite-vec vec0 cosine KNN over the shortlist (falls back to a numpy brute-force path when sqlite-vec is unavailable).
  4. Re-ranking — time decay (30-day half-life) + MMR diversity + a small helpful feedback factor.
  5. Result — text + source + distance + score per hit.

Under the hood it also handles the boring-but-critical parts: content-hash deduplication, per-connector increment watermarks, skipping sessions that are still being written, batch-write pacing, WAL tuning, and stale-index self-healing.

Measured numbers

From the reference deployment (a Mac mini M4 Pro running this service 24/7 for a multi-agent setup):

MetricValue
Indexed chunks2,013,030 across 16 collections
Tools sharing one memory4 (Claude Code, OpenCode, ZCode, OpenClaw)
Sampled /api/search latency0.36 s – 1.20 s (5 production queries, warm cache)
Embedding modelbge-m3 (1024-dim), local Ollama
Storagesingle SQLite file + derived vec0 index (rebuildable at any time)

These are real numbers from a heavy, messy, constantly-growing corpus — not a toy benchmark. Your numbers will vary with corpus size and hardware; on a fresh database everything is sub-100 ms.

API overview

EndpointMethodDescription
/api/pingGETLiveness (no DB access)
/api/healthGETHealth incl. embedding status, disk, degraded reasons
/api/statsGETCollections and chunk counts
/api/projectsGETConfigured projects
/api/monitorGETLatency/cache/disk metrics
/api/searchPOSTSemantic search (query, n_results?, project?)

| /api/memories | POST | D

앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요

PopNx에게 묻기