@witcheer: a Hermes community builder shipped Synapse, a very cool addition to your agent the pitch in one line: memory that forge…

X AI KOLs Timeline Tools

Summary

Synapse is an open-source, self-hosted synthetic hippocampus for AI agents, using a temporal knowledge graph (Graphiti + FalkorDB) with salience scoring and Ebbinghaus forgetting curve to manage memory decay and consolidation, integrated as a Hermes agent memory provider.

a Hermes community builder shipped Synapse, a very cool addition to your agent the pitch in one line: memory that forgets on purpose. instead of MEMORY.md growing until it drowns your context, low-salience facts decay and the important ones stick. - a temporal knowledge graph (Graphiti + FalkorDB, self-hosted in Docker) that knows when a fact was true, so you can ask "what were we using before the switch?" and get the right answer. - a "hippocampus layer": salience scoring 0-1, an Ebbinghaus forgetting curve where important memories decay 4x slower, background consolidation. it's early and MIT, worth a look.
Original Article
View Cached Full Text

Cached at: 06/29/26, 02:22 AM

a Hermes community builder shipped Synapse, a very cool addition to your agent

the pitch in one line: memory that forgets on purpose.

instead of MEMORY.md growing until it drowns your context, low-salience facts decay and the important ones stick.

  • a temporal knowledge graph (Graphiti + FalkorDB, self-hosted in Docker) that knows when a fact was true, so you can ask “what were we using before the switch?” and get the right answer.
  • a “hippocampus layer”: salience scoring 0-1, an Ebbinghaus forgetting curve where important memories decay 4x slower, background consolidation.

it’s early and MIT, worth a look.


ardhaecosystem/synapse

Source: https://github.com/ardhaecosystem/synapse

🧠 Synapse

A synthetic hippocampus for AI agents.

Temporal knowledge graph memory that doesn’t just store — it remembers.

License: MIT Python 3.11+ CI PRs Welcome

Self-hosted temporal memory for AI agents.
If this project is useful to you, consider ⭐ starring the repo — it helps others discover it.


The Problem

Every AI agent memory system today falls into one of three buckets:

❌ Flat text❌ Cloud-locked❌ All-or-nothing
No relationships. No temporal awareness. Just a growing blob of text.Your conversations live on someone else’s server. Your data, their infrastructure.Every memory has equal weight. Nothing is forgotten. The context window drowns.

The Solution

Synapse gives AI agents a biologically-inspired memory system — a temporal knowledge graph with a hippocampus layer that scores importance, manages forgetting, and consolidates memories during idle time. Just like a real brain.

  • 🕐 Temporal — Knows when facts were true, not just that they were true. Query the past, not just the present.
  • 🔒 Self-hosted — Your conversations stay on your machine. FalkorDB in Docker. Zero cloud dependency.
  • 🧠 Biological — Important memories persist. Unimportant ones fade. Mistakes are remembered vividly. Just like you.
  • 🔌 Provider-agnostic — Works with any OpenAI-compatible LLM. OpenRouter, Ollama, vLLM, OpenAI — your choice.
  • ⚡ Optimized — Projected 73% cheaper, 70x faster prefetch, 86% fewer LLM calls than naive implementations. Zero blocking latency. (See methodology)

Built on Graphiti + FalkorDB. Ships as a Hermes Agent memory provider plugin — drops in with zero core changes.


Quick Start

Three commands. That’s it.

# 1. Start FalkorDB (self-hosted, privacy-first)
docker run -d --name falkordb -p 6379:6379 falkordb/falkordb:latest

# 2. Install Synapse
pip install "git+https://github.com/ardhaecosystem/synapse.git"

# 3. Configure Hermes
hermes config set memory.provider synapse
# Add to ~/.hermes/.env:
# SYNAPSE_FALKORDB_HOST=localhost
# SYNAPSE_LLM_API_KEY=your-key
# SYNAPSE_LLM_BASE_URL=https://openrouter.ai/api/v1

Your agent now has a memory that:

  • ✅ Remembers every conversation and extracts entities automatically
  • ✅ Knows when facts changed and can answer “what was true on June 20?”
  • ✅ Scores memory importance and forgets what doesn’t matter
  • ✅ Consolidates memories in the background like sleep replay
  • ✅ Lets the agent explicitly save facts worth remembering forever

The Hippocampus Layer

This is the novel contribution. Nine algorithms inspired by biological memory — the part that makes Synapse a brain, not a database.

Core Memory Management

AlgorithmWhat It DoesBiological Analog
Salience ScoringScores entities 0.0–1.0 by recency, frequency, corrections, and emotional markersAmygdala tagging important experiences
Forgetting CurveEbbinghaus exponential decay — important memories decay 4x slowerMemory consolidation during sleep
Consolidation EngineHebbian strengthening of co-occurring entities + contradiction detection + pruningSleep replay and synaptic pruning

Advanced Cognitive Functions

AlgorithmWhat It DoesBiological Analog
Pattern CompletionGiven a partial cue, retrieves the full context subgraph via BFS expansionCA3 autoassociative memory
ReconsolidationRecalled memories enter a labile window — new info gets priority encoding (spaced repetition)Memory reactivation lability
Prediction ErrorNovelty detection + contradiction-triggered updates + surprise signals for unexpected contextsHippocampal surprise signal
Schema ExtractionPeriodically clusters entities into generalized “schema nodes” — the slow learning systemNeocortex (Complementary Learning Systems)
Pattern SeparationEntity fingerprints + Jaccard similarity to prevent context contamination between similar conversationsDentate gyrus
Cognitive MapSemantic path finding, entity neighborhoods, topic clustering — navigates the graph like a spatial mapGrid cells + place cells

How It Works

┌──────────────────────────────────────────────────────────┐
│                      Hermes Agent                          │
│                                                           │
│  System Prompt (frozen per session):                      │
│  ┌─────────────────────────────────────────────────────┐  │
│  │ "You remember your user prefers concise responses.  │  │
│  │  They work on AI projects using Python and Docker." │  │
│  │  (pulled from the graph, not from a static file)     │  │
│  └─────────────────────────────────────────────────────┘  │
│                                                           │
│  Every turn:                                              │
│  ┌───────────┐  ┌────────────┐  ┌─────────────────────┐  │
│  │  prefetch  │  │ sync_turn  │  │ synapse_remember   │  │
│  │ (BM25 +    │  │ (batch +   │  │ (explicit write →  │  │
│  │  pattern   │  │  prediction│  │  max salience,     │  │
│  │  completion)│ │  error +   │  │  never decays)     │  │
│  │            │  │  reconsol.)│  │                    │  │
│  └───────────┘  └────────────┘  └─────────────────────┘  │
│                                                           │
│  Background ("sleep"):                                    │
│  ┌─────────────────────────────────────────────────────┐  │
│  │ Schema Extraction → "User works on AI projects"      │  │
│  │ Forgetting Curve → prunes forgotten memories         │  │
│  │ Consolidation → strengthens important connections   │  │
│  └─────────────────────────────────────────────────────┘  │
└──────────────────────────────────────────────────────────┘
                    │
                    ▼
            ┌───────────────┐
            │   FalkorDB    │
            │ (self-hosted  │
            │  in Docker)   │
            └───────────────┘

Tools Available to the Agent

ToolPurposeExample
synapse_querySearch memories. Set at_time for point-in-time queries.“What database were we using before the switch?”
synapse_rememberSave a durable fact permanently. Never decays.“User prefers concise responses”

Two Usage Modes

🧠 Brain Mode (Synapse only)

Disable native MEMORY.md/USER.md, use Synapse as the sole memory system:

memory:
  memory_enabled: false
  user_profile_enabled: false
  provider: synapse

The agent gets:

  • Full system prompt with user profile + environment facts pulled from the graph
  • synapse_remember as the explicit memory tool (replaces the native memory tool)
  • Automatic brain-mode instructions in the system prompt

🔗 Supplementary Mode (Native + Synapse)

Keep native memory, add Synapse for temporal graph memory:

memory:
  memory_enabled: true
  user_profile_enabled: true
  provider: synapse

The agent gets:

  • Native MEMORY.md/USER.md as normal
  • Synapse adds temporal knowledge graph memory on top
  • Native writes are mirrored to the graph automatically
  • System prompt is minimal (native handles injection)

Performance

Projected estimates based on architectural analysis. See the benchmark methodology for calculations, assumptions, and reproduction steps.

MetricNaive ImplementationSynapse (Optimized)Improvement
Cost per 100 turns$0.0705$0.019273% reduction
Prefetch latency0.70s (blocking)0.01s (cached)70x faster
LLM calls per 100 turns2001486% fewer
Prompt overhead per turn232 tokens91 tokens61% less
Blocking time per 100 turns70s~0seliminated

Supported LLM Providers

Any OpenAI-compatible endpoint works:

ProviderBase URLFree?Embeddings?
Ollama (local)http://localhost:11434/v1
OpenRouterhttps://openrouter.ai/api/v1
OpenAIhttps://api.openai.com/v1
vLLMhttp://localhost:8000/v1
LM Studiohttp://localhost:1234/v1
DeepSeekhttps://api.deepseek.com
Togetherhttps://api.together.xyz/v1
Z.AI / GLMhttps://open.bigmodel.cn/api/paas/v4

💡 Want 100% free + private? Use Ollama locally for both LLM and embeddings. Zero data leaves your machine.


Configuration

All configuration via environment variables with the SYNAPSE_ prefix:

VariableDefaultDescription
SYNAPSE_FALKORDB_HOSTlocalhostFalkorDB host
SYNAPSE_FALKORDB_PORT6379FalkorDB port
SYNAPSE_LLM_API_KEY(required)LLM API key
SYNAPSE_LLM_BASE_URL(required)LLM base URL
SYNAPSE_LLM_MODELgpt-4o-miniModel for entity extraction
SYNAPSE_EMBEDDING_MODELtext-embedding-3-smallEmbedding model
SYNAPSE_BATCH_SIZE5Turns per episode
SYNAPSE_HALF_LIFE_DAYS7.0Forgetting curve half-life

Tuning Guide

Use CaseHalf-LifeBatch Size
Coding assistant3–7 days5
Research assistant14–30 days5
Personal assistant30–90 days3
General purpose7 days5

Documentation

DocumentWhat’s Inside
User GuideInstallation, quick start, tools reference, troubleshooting, FAQ
ArchitectureSystem design, data flow, optimization details
ConfigurationAll env vars, LLM providers, tuning guide
Hippocampus LayerAlgorithm formulas, biological references
BenchmarksPerformance methodology, calculations, assumptions

Contributing

We welcome contributions! See CONTRIBUTING.md for the full guide.

git clone https://github.com/ardhaecosystem/synapse.git
cd synapse
pip install -e ".[dev]"

# Start FalkorDB for testing
docker run -d --name falkordb -p 6379:6379 falkordb/falkordb:latest

# Run tests
pytest tests/ -v

# Lint
ruff check src/ tests/

We use TDD (test-first), conventional commits, and PR-based workflow — every change goes through CI with FalkorDB as a service container.

Project Structure

src/synapse/
├── config.py              Configuration
├── falkor.py              FalkorDB helper + temporal workaround
├── encoding.py            Batch turn buffering
├── retrieval.py           BM25 prefetch + background cache
├── tools.py               synapse_query + synapse_remember
├── provider.py            MemoryProvider implementation
└── hippocampus/
    ├── salience.py            Salience scoring (4-factor)
    ├── forgetting.py          Ebbinghaus decay curve
    ├── consolidation.py       Hebbian + contradiction detection
    ├── pattern_completion.py  CA3 BFS subgraph expansion
    ├── reconsolidation.py     Recall tracking + activation window
    ├── prediction_error.py    Novelty + contradiction + surprise
    ├── schema_extraction.py   Neocortex — CLS slow learning
    ├── pattern_separation.py  DG — Jaccard fingerprint comparison
    └── cognitive_map.py       Grid/place cells — graph navigation

Biological References

The hippocampus layer is grounded in neuroscience research:

AlgorithmKey Reference
Complementary Learning SystemsMcClelland et al. (1995)
ReconsolidationNader et al. (2000)
Pattern SeparationLeutgeb et al. (2007)
Prediction ErrorKumaran & Maguire (2006)
CA3 Autoassociative MemoryRolls (2015)
Cognitive MapsO’Keefe & Nadel (1978)
Hippocampal ReplayWilson & McNaughton (1994)

Roadmap

  • Core memory provider (Graphiti + FalkorDB)
  • 9 hippocampus algorithms
  • synapse_remember explicit memory tool
  • Brain-aware system prompt (native memory detection)
  • BM25-only optimized prefetch
  • Batch episode ingestion
  • CLI commands (hermes synapse status/consolidate/export)
  • Leiden community detection for schema extraction
  • LLM-powered schema summaries
  • Graph visualization dashboard
  • Multi-agent shared memory via FalkorDB replication

License

MIT © Ardha Studios


⭐ Star this repo if you’re building AI agents that need real memory.

Built with 🧠 by Ardha Studios

Similar Articles