Papez
The intelligence layer for AI memory.
Agenten stärken
Der eigene Befehl des Herausgebers. Kein PlugMCP-Endpunkt.
Host a copy with our keys and logs.
uvx genesys-memory==0.5.2Claude Code hat keinen Installationslink für einen lokalen Befehl. Kopieren Sie den Befehl unten und führen Sie ihn in einem Terminal aus.
OPENAI_API_KEY=<secret> ANTHROPIC_API_KEY=<secret> GENESYS_EMBEDDER=<value> claude mcp add io.github.astrix-labs-genesys-memory -- uvx genesys-memory==0.5.2In einem Terminal ausführen.
{ "mcpServers": { "io.github.astrix-labs-genesys-memory": { "command": "uvx", "args": [ "genesys-memory==0.5.2" ], "env": { "OPENAI_API_KEY": "<secret>", "ANTHROPIC_API_KEY": "<secret>", "GENESYS_EMBEDDER": "<value>" } } }}claude_desktop_config.json
Remote-URL oder ein Befehl auf Ihrem Rechner? Worin sich die beiden Installationen unterscheiden
Auf PlugMCP ausführen
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
StartenPapez doesn't just remember what happened; it remembers why. A scoring engine + causal graph + lifecycle manager for AI agent memory. Speaks MCP natively.
Self-reported vendor figures above ~90 use different answerers/judges and are not comparable — the oracle retrieval ceiling under this frozen protocol is 94.9. Reproduce it yourself: Astrix-Labs/locomo-harness · full methodology · per-run results.
Hosted product: papez.ai — your personal memory for AI, carried across ChatGPT, Claude, and every MCP app · Pricing · Developer docs · Benchmark methodology (85.55 on LoCoMo, certified over 10 runs, receipts published)
Papez is a scoring engine, causal graph, and lifecycle manager for AI memory. Memories are scored by a multiplicative formula (relevance × connectivity × reactivation), connected in a causal graph, and actively forgotten when they become irrelevant.
This package (papez) is the core library: an in-memory causal graph engine with optional JSON persistence, plus a stdio MCP server. It has no database dependency and no REST API. A hosted product built on top of this library — with Postgres, additional storage backends, and a REST/HTTP MCP API — is available separately at api.papez.ai; it is not part of this package.
Your AI remembers everything but understands nothing. Papez fixes that.
Requires Python 3.11 or newer.
Install the package. The base install has zero database dependencies — state lives in memory and is optionally persisted to a JSON file.
pip install papez
Optional extras:
pip install 'papez[openai]' # OpenAI embeddings
pip install 'papez[local]' # Local embeddings (sentence-transformers, no API key)
pip install 'papez[anthropic]' # LLM-based causal inference (consolidation, contradiction detection)
Run the stdio MCP server directly:
python3 -m papez
git clone https://github.com/Astrix-Labs/papez.git
cd papez
pip install -e '.[dev]'
pytest tests/
claude mcp add papez -- python -m papez
Add to your claude_desktop_config.json:
{
"mcpServers": {
"papez": {
"command": "python",
"args": ["-m", "papez"]
}
}
}
The stdio server is a single local process. Under load — or during a restart or redeploy of a hosted transport in front of it — a tool call can transiently fail or the connection can briefly go unresponsive. Memory writes and reads are not worth crashing an agent turn over, so clients should degrade gracefully rather than treat a memory call as fatal:
{"error": "...", "retryable": bool} payload instead of a protocol-level
MCP failure, so a memory hiccup never crashes the transport. The
retryable flag encodes the guidance below — true only for read tools.memory_recall, memory_search, memory_traverse,
memory_explain, memory_stats) with a short bounded backoff (e.g. 2–3
attempts). These have no side effects worth worrying about beyond reactivation
bookkeeping.memory_store / memory_amend on an ambiguous timeout
— a silent success followed by a retry creates a duplicate node. Prefer to
continue the turn and reconcile on the next memory_recall, or pass a stable
source_session so duplicates are easy to spot.memory_store's related argument lets the writer set edge semantics instead of
guessing. Each entry is {"id": "<node-id>", "type": "<edge-type>"}, directed
new_node --type--> target (so supersedes means the new node supersedes the
target). Invalid types are rejected before the node is created — explicit
writes never half-succeed. related_to still exists but always creates
caused_by; prefer related.
To correct a fact, use memory_amend(node_id, content, reason=...): it stores the
new version, links it SUPERSEDES → old, and keeps the old memory for audit.
Recall automatically deprioritizes superseded hits and tags them with
superseded_by.
When you memory_store something that lexically disagrees with an auto-link
candidate (a changed number, a negation), the result may include
possible_conflicts — heuristic hints, not verified contradictions, and never
materialized as edges. Use them to decide whether to memory_amend.
memory_recall(query, verbosity="concise") skips the causal-chain enrichment and
returns only id / summary / status / score / activation / is_core (plus
superseded_by when set) per hit — much cheaper on tokens for high-frequency
lookups. verbosity="full" (the default) is unchanged. Reactivation writes still
occur in both modes (they are governed by read_only, not verbosity).
See docs/scoring.md for what activation / decay_score
actually mean — in short, it is a retention weight that rises when a memory is
recalled, not a countdown to deletion.
Every memory is scored by three forces multiplied together:
decay_score = relevance × connectivity × reactivation
Because the formula is multiplicative, a memory must score on all three axes to survive. A highly connected but never-accessed memory still decays. A frequently recalled but causally orphaned memory still fades.
decay_score (aliased activation on every hit) is a retention weight, not a deletion countdown — recalling a memory raises it, and a low score just means "resting," not "doomed." Deletion requires a low score and orphaned and unpinned and non-core and non-org and idle (not stored, recalled or reactivated for 30 days, GENESYS_FORGETTING_MIN_IDLE_DAYS), all at once. The stdio server runs the rescore-transition-prune pass every 10 minutes (GENESYS_MAINTENANCE_INTERVAL_S; 0 disables it). See docs/scoring.md for the full model and worked numbers.
STORE → ACTIVE → DORMANT → FADING → PRUNED
↑ │
└── reactivation ────┘
(only if score=0, orphan, not pinned)
Memories can also be promoted to core status — structurally important memories that are auto-pinned and never pruned.
See the certified LoCoMo results at the top of this README: 85.55 ± 0.37 over 10 runs under a frozen protocol (gpt-4o-mini answerer and judge, temperature 0, n=1,540, categories 1–4). Category 5 — adversarial questions with disputed ground truth — is excluded, matching the comparable published setups.
Every run is reproducible: the harness is at Astrix-Labs/locomo-harness, with full methodology and per-run results published. Reproduction scripts for the in-repo scenarios are in benchmarks/.
This package ships one storage backend: an in-memory causal graph (storage/memory.py) with optional JSON persistence via GENESYS_PERSIST_PATH. No database is required.
Additional backends — Postgres/pgvector, FalkorDB, MongoDB, and an Obsidian vault adapter — along with a REST API, OAuth, and multi-user auth, are part of the hosted product at api.papez.ai and are not included in this repo.
Want a different storage backend for the open-source library? Implement the provider protocols in storage/base.py and bring your own.
Copy .env.example to .env and set:
Auto-linking connects a newly stored memory to semantically similar existing memories. If it is too permissive you get a "hairball" — everything ends up ~2 hops from everything, which destroys traversal scoping. Three knobs bound it:
The floor is embedder-aware: an auto-link is permanent graph structure, so its
floor sits above the transient recall floor. When GENESYS_AUTOLINK_MIN_SIMILARITY
is unset, the effective floor is the embedder's recommendation — 0.6 for OpenAI
(text-embedding-3-small, whose genuine matches cluster ~0.5+) and 0.45 for
local sentence-transformers (whose genuine matches cluster ~0.2–0.4 but whose
noise pairs have been observed at ~0.44, so only near-duplicate content
auto-links locally). Any unknown embedder falls back to 0.45. Auto-linking also
de-dupes: if a pair is already connected by any edge (e.g. a user_explicit
caused_by), no parallel auto_link related_to is created.
The possible_conflicts hint on memory_store scans with its own, lower
floor (GENESYS_CONFLICT_MIN_SIMILARITY, defaulting to the recall floor) over
a wider window (GENESYS_CONFLICT_SCAN_K, default 8) — so tightening the
auto-link floor never shrinks conflict detection.
The same embedder-aware pattern governs recall filtering:
The three-force scoring formula and its lifecycle thresholds are all
env-configurable (see engine/config.py and
docs/scoring.md): GENESYS_ACTR_DECAY,
GENESYS_RELEVANCE_VECTOR_WEIGHT, GENESYS_RELEVANCE_KEYWORD_WEIGHT,
GENESYS_MIN_CONNECTIVITY, GENESYS_FORGETTING_THRESHOLD, the GENESYS_DORMANCY_*
transition thresholds, and the GENESYS_CORE_* promotion weights.
See .env.example for all options.
Papez is built by Rishi Meka at Astrix Labs. It came out of frustration with re-explaining project context to Claude every session. The goal is the intelligence layer between your LLM and your memory — fully open source.
See CONTRIBUTING.md.
Note: Papez releases prior to v0.3.6 were documented as Apache 2.0 in error. The LICENSE file has always contained the AGPLv3 text. From v0.3.6 onward, all documentation correctly references AGPL-3.0-or-later with a Contributor License Agreement.
Open-source causal memory for AI agents: persistent, explainable, MCP-native memory (13 tools).
{ "mcpServers": { "io.github.astrix-labs-genesys-memory": { "command": "uvx", "args": [ "genesys-memory==0.5.2" ], "env": { "OPENAI_API_KEY": "<secret>", "ANTHROPIC_API_KEY": "<secret>", "GENESYS_EMBEDDER": "<value>" } } }}Tools
Noch keine Tool-Liste. Remote-Server erhalten eine nach dem ersten Health-Check.
FAQ
Kopieren Sie auf dieser Seite die stdio-Konfiguration für Cursor, Claude Desktop, Claude Code oder VS Code. Sie nutzt die Installation des Herausgebers, keinen PlugMCP-Proxy.
Der Herausgeber nennt diese Umgebungsvariablen: OPENAI_API_KEY, ANTHROPIC_API_KEY, GENESYS_EMBEDDER.
Genesys Memory läuft lokal über stdio.
Zuletzt geprüft: 2026-11-08. Open-source causal memory for AI agents: persistent, explainable, MCP-native memory (13 tools).