Skip to content
zensation

Research overview

Three tracks, architecture and agenda

Publications

Preprints, software, identifiers

Methodology

Operational standards and validation

Research ethics

Fundamental rights and compliance

Resources

Code, data, citation, open science

Adopt AI

Neutral roadmap & interactive simulation

Public sector & funding

Collaborations in the public sector

Protecting public spaces

Track B — rights-preserving early warning

Technology

The architecture behind every application

Playground

Run the open memory core live

Work with usAboutOpen SourceBlog
Contact
zensation
Research overviewPublicationsMethodologyResearch ethicsResources
Adopt AIPublic sector & fundingProtecting public spacesTechnologyPlayground
Work with usAboutOpen SourceBlogContact
ZenBrain
OverviewAlgorithmsCoordinatorQuick StartArchitectureCommunityFAQ
npm install

Clarify Complexity. More than just AI.

Apache 2.0TypeScriptZero Dependencies

Neuroscience memory
for AI agents.

The cognitive core of ZenAI — open source, tested, and in production use. 9 foundational algorithms that teach your AI to remember, forget, and sleep.

Hebbian LearningFSRS Spaced RepetitionSleep ConsolidationBayesian ConfidenceEbbinghaus DecayEmotional Tagging7-Layer MemoryMemoryCoordinatorCross-Context
npm install @zensation/core★ GitHub (19)
276Tests
9Open-source algorithms
0Dependencies
DOIOpen Access
The Story

Extracted from 348,000 lines of production code.

ZenBrain is not an experiment. It's the open-source memory core behind ZenAI — our AI operating system with 11,589 tests and 7 cognitive pillars. We extracted the memory algorithms so you can use them.

ZenAI348K LOC11,589 TestsProduction AI OS
→
Extraction9 Algorithms7 LayersNeuroscience Core
→
ZenBrainnpm Packages276 TestsOpen Source Apache 2.0
Discover ZenAI →
Algorithms

15 algorithms. 9 foundational + 6 PMA components.

ZenBrain comprises 15 neuroscience-grounded algorithms: 9 foundational mechanisms — FSRS, Hebbian, Sleep Consolidation, Bayesian Confidence, and others — open-source as @zensation/algorithms (zero dependencies); plus 6 Predictive Memory Architecture (PMA) components that govern memory dynamics and run in the production system: NeuromodulatorEngine, ReconsolidationEngine, TripleCopyMemory, PriorityMap, StabilityProtector, MetacognitiveMonitor.

9critical under stress6cooperatively redundant
9 of 15 algorithms become individually critical under stress (decay = 0.25/day, 60-day aging). What appears redundant under normal conditions is in fact cooperatively redundant.
🧠

Hebbian Learning

Strengthen connections through co-activation

Hebb 1949
📊

FSRS Spaced Repetition

Optimal review scheduling

Wozniak 2022
🌙

Sleep Consolidation

Memory replay during sleep — like the brain

Stickgold & Walker 2013
📉

Ebbinghaus Decay

Forgetting curve with adaptive intervals

Ebbinghaus 1885
🎯

Bayesian Confidence

Belief updates with prior + evidence

Bayes 1763
💡

Emotional Tagging

Emotional markers for better recall

Damasio 1994
⚡

Activation Spreading

Associative network activation

Collins & Loftus 1975
🔗

Temporal Context

Time-based memory encoding

Howard & Kahana 2002
🔄

Memory Consolidation

STM→LTM transfer with importance scoring

McClelland et al. 1995
📐

Confidence Intervals

95% CI for all probabilistic outputs

Wilson 1927
🧬

Cross-Context Transfer

Share knowledge across contexts

Tulving 1972
📈

Retention Visualization

Export Ebbinghaus curves as data points

Ebbinghaus 1885
💊

Neuromodulation

Dopamine, NE, 5-HT, ACh — four channels with tonic + phasic dynamics

Schultz 1997 · Aston-Jones 2005
🔁

Reconsolidation

Memory becomes labile on retrieval — four PE-gated update modes with rollback

Nader 2000 · Schiller 2010
🧱

Triple-Copy Memory

Three traces with divergent dynamics — fast (4h), medium (14d), deep (logarithmic)

Squire & Bayley 2007
Orchestration

One coordinator. 7 memory layers.

The MemoryCoordinator orchestrates all layers — from Working Memory to Sleep Consolidation. One call. The system decides.

100%0%t →DeeplogMedium14 dFast4 h
MemoryCoordinator orchestrates all 7 layers. On top, the 6-component Predictive Memory Architecture (PMA) governs memory dynamics — TripleCopyMemory shown here is one of them.
Auto-Routingstore() auto-detects the correct layer
Cross-Layer RecallOne query, all layers simultaneously
ConsolidationSTM→LTM transfer with importance scoring
Decay ManagementEbbinghaus + FSRS automatically
Review QueueFSRS-based review scheduling
import { MemoryCoordinator }
  from '@zensation/core';

const memory =
  new MemoryCoordinator();

// Store — auto-routes
await memory.store(
  'TypeScript has generics',
  { context: 'learning' }
);

// Recall — cross-layer
const results =
  await memory.recall(
    'What do I know about TypeScript?'
  );

// Sleep — consolidate
await memory.consolidate();
Working→
Short-Term→
Episodic→
Semantic→
Procedural→
Core→
Cross-Context
Quick Start

First memory in 30 seconds.

No setup. No config. No account.

1Install
npm install @zensation/algorithms
npm install @zensation/core
2Write code
import { MemoryCoordinator } from '@zensation/core';
import { HebbianLearning, FSRS } from '@zensation/algorithms';

const memory = new MemoryCoordinator({
  algorithms: [HebbianLearning, FSRS]
});

await memory.store('Project deadline is Friday',
  { context: 'work' });

const recall = await memory.recall(
  'When is the deadline?'
);
console.log(recall);
3Result
{
  "content": "Project deadline is Friday",
  "confidence": 0.94,
  "layer": "short-term",
  "decay": 0.87,
  "nextReview": "2026-03-28T09:00:00Z"
}

Sovereign — runs in your stack

ZenBrain is the memory core, not the model and not the infrastructure — it runs in your stack: your LLM (Mistral, Llama, or whatever you choose), your inference (vLLM, Ollama), your database (PostgreSQL/SQLite), your infrastructure. No cloud lock-in, no vendor lock-in — the sovereign memory layer for European AI stacks.

Architecture

Two packages. One system.

@zensation/algorithms is the pure core — zero dependencies. @zensation/core orchestrates everything with the MemoryCoordinator.

Your Application
uses
@zensation/core
MemoryCoordinatorstore() · recall() · consolidate() · decay()
Working
Short-Term
Episodic
Semantic
Procedural
Core
Cross-Context
npm i @zensation/core
uses
@zensation/algorithms
0 deps
Hebbian
FSRS
Sleep
Ebbinghaus
Bayesian
npm i @zensation/algorithms
optional
adapter-postgres+ pgvector · preview# published with v0.3
adapter-sqlitezero-config · preview# published with v0.3
Community

Open source means: build together.

Apache 2.0. Contributions welcome. No CLA required.

⭐

GitHub

Source code, issues, discussions

Repository →
💬

Discord

Questions, ideas, show & tell, release updates

Join →
🤝

Contributing

Read CONTRIBUTING.md, pick an issue, open a PR

Read guide →

What's next.

v0.2.0

MemoryCoordinator, Sleep Consolidation, 276 tests

March 2026
v0.3.0current

Algorithms expanded & hardened; LoCoMo / LongMemEval benchmarks vs. Mem0, Letta, A-Mem

Q2 2026
v0.4.0

Persistence adapters on npm (Postgres, SQLite) + IDE / MCP integration

H2 2026
v1.0.0

API stability, ZenBrain Cloud MVP

Q3 2026
FAQ

Frequently asked questions.

What's the difference between ZenBrain and ZenAI?

ZenBrain is the extracted, open-source core of the memory algorithms. ZenAI is the complete AI operating system built on ZenBrain. Want to build your own system → ZenBrain. Want the finished product → ZenAI.

Do I need a database?

No. @zensation/algorithms is zero-dependency and runs completely in-memory. Optional persistence adapters — adapter-postgres (pgvector) and adapter-sqlite (zero-config) — are in preview and will be published on npm in a future release.

Which LLMs are supported?

ZenBrain is LLM-agnostic. The algorithms work on embeddings — whether from OpenAI, Anthropic, Mistral, Ollama, or your own model.

Is ZenBrain production-ready?

The algorithms come from ZenAI (348K LOC, 11,589 tests, months in production). The extracted package has 276 of its own tests. API stability (Semver 1.0) is planned for Q3 2026.

How is ZenBrain different from Mem0?

Mem0 has 2 memory layers and focuses on cloud API. ZenBrain has 7 layers, Sleep Consolidation, FSRS, Hebbian Learning, Confidence Intervals — all self-hosted, zero dependencies, TypeScript-native.

Can I use @zensation/algorithms without core?

Yes. The algorithms package is completely standalone with zero dependencies. You can import individual algorithms and integrate them into existing systems without using the MemoryCoordinator.

zensationIndependent AI research lab · Kiel
ResearchPublicationsMethodologyResearch ethicsResourcesAdopt AIPublic sectorProtecting public spacesTechnologySystem explorerPlaygroundWork with usOpen SourceAboutBlogChangelog
GitHubLinkedInarXivZenodoORCIDScholarSemantic ScholarHuggingFacenpmDiscord

© 2026 Alexander Bering / ZenSation Enterprise Solutions

RSSPrivacy PolicyLegal NoticeAccessibility