Claude Code 유출 이후 다중 에이전트 메모리 일관성 계층을 구축했습니다.

hackernews | | 📦 오픈소스
#ai #claude #claude code #mcp #memory #multi-agent #review
원문 출처: hackernews · Genesis Park에서 요약 및 분석

요약

엔그램(Engram)은 다수의 AI 에이전트가 세션 간에 지속되는 공유 지식 베이스를 구축하고 충돌하는 정보를 조율할 수 있도록 설계된 MCP 서버입니다. 이 시스템은 에이전트 간의 개별 기억 문제를 넘어 서로 다른 엔지니어의 에이전트들이 동일한 코드베이스에 대해 호환되지 않는 믿음을 가질 때 발생하는 일관성 문제를 해결하는 데 중점을 둡니다. 주요 기능으로는 팀의 집단 지식을 조회하고 검증된 발견을 저장하는 기능, 그리고 의미론적으로 모순되는 사실을 비동기적으로 탐지하고 해결하는 4단계 도구(쿼리, 커밋, 충돌 감지, 해결)를 제공합니다. 복잡한 데이터베이스 설정이나 API 키 없이 로컬 환경에서 실행되며, 팀원들이 동일한 서버에 연결하면 모든 기록이 즉시 공유되고 이중 시간 모델링을 통해 관리됩니다.

본문

Engram is an MCP server that gives your agents a shared, persistent knowledge base — one that survives across sessions, syncs across engineers, and detects when two agents develop contradictory beliefs about the same codebase. Individual agent memory is solved. Engram solves what happens when multiple agents need to agree on what's true. Every agent session starts from zero. Your agent re-discovers why that architectural decision was made, re-learns which approaches already failed, re-figures out which constraints are non-negotiable. Another engineer's agent did the same thing last week. Existing memory tools fix this for a single engineer and a single agent. They don't address what happens when Agent A and Agent B — running in separate sessions, for different engineers — develop incompatible beliefs about the same system. That's a consistency problem. Engram solves it. Engram exposes four MCP tools. That's the entire surface area. | Tool | Purpose | |---|---| engram_query | Pull what your team's agents collectively know about a topic. Structured facts, ranked by relevance and recency. | engram_commit | Persist a verified discovery — a hidden side effect, a failed approach, an undocumented constraint. Append-only, timestamped, traceable. | engram_conflicts | Surface pairs of facts that semantically contradict each other. Not an error — a structured artifact. Reviewable, resolvable, auditable. | engram_resolve | Settle a disagreement. Pick a winner, merge both sides, or dismiss a false positive. | Conflict detection runs asynchronously in the background using a tiered pipeline: deterministic entity matching, NLI cross-encoder scoring, and optional LLM escalation for ambiguous cases. Commits return instantly; detection completes within seconds. - Python 3.11+ - Any MCP-compatible client — Claude Code, Cursor, Windsurf, Kiro, VS Code pip install engram-mcp engram serve Engram runs at localhost:7474 and stores facts in ~/.engram/knowledge.db . No Docker, no database setup, no API keys. Add to your MCP client config: { "mcpServers": { "engram": { "url": "http://localhost:7474/mcp" } } } Or use stdio for local-only mode: { "mcpServers": { "engram": { "command": "uvx", "args": ["engram-mcp@latest"] } } } Engram is local-first by default. To share knowledge across your team, point everyone at the same server: engram serve --host 0.0.0.0 --port 7474 Or deploy with Docker: docker run -p 7474:7474 -v engram-data:/data engram/server Every commit is immediately available to every agent on the team. ┌──────────────────────────────────────────┐ │ I/O Layer (MCP) │ ← agents connect here │ engram_commit / engram_query / │ │ engram_conflicts / engram_resolve │ ├──────────────────────────────────────────┤ │ Detection Layer │ ← runs asynchronously │ Tier 0: hash dedup + entity match │ │ Tier 1: NLI cross-encoder (local) │ │ Tier 2: numeric / temporal rules │ │ Tier 3: LLM escalation (rare) │ ├──────────────────────────────────────────┤ │ Storage Layer (SQLite) │ ← append-only, bitemporal │ facts · conflicts · agents · scopes │ └──────────────────────────────────────────┘ Every fact carries a temporal validity window (valid_from , valid_until ). Supersession, correction, archival, and versioning are all expressed through this single primitive — no pointer chasing, no separate archive tables, no decay scores. Detection is fully decoupled from the write path. The write lock is held for ~1ms (a single INSERT ). NLI inference runs in a background worker. This keeps SQLite viable under concurrent agent load. There are 400+ MCP servers that give an individual agent persistent memory across sessions. Engram is not that. Engram is a consistency layer. Other systems store and retrieve. Engram asks: are these facts coherent with each other? It is designed to be composable with existing memory tools, not to replace them. Engram is grounded in peer-reviewed research on multi-agent memory systems: - Yu et al. (2026) — frames multi-agent memory as a computer architecture problem and names consistency as the most pressing open challenge - Xu et al. (2025) — A-Mem's Zettelkasten-inspired note structure informs fact enrichment - Rasmussen et al. (2025) — Graphiti's bitemporal modeling directly inspired the temporal validity design - Hu et al. (2026) — comprehensive survey confirming shared multi-agent memory as an open frontier Full literature review: LITERATURE.md · Implementation plan: IMPLEMENTATION.md PRs welcome. See CONTRIBUTING.md for guidelines. An engram is the physical trace a memory leaves in the brain — the actual unit of stored knowledge.

Genesis Park 편집팀이 AI를 활용하여 작성한 분석입니다. 원문은 출처 링크를 통해 확인할 수 있습니다.

공유

관련 저널 읽기

전체 보기 →