Skip to content

Memory System Documentation

Home > Memory System

Ahoy, matey! Welcome to the memory system documentation - where agents remember what they learned and share knowledge across sessions.

Quick Navigation

New to memory systems? Start here:

Looking for something specific?


5-Type Memory System

NEW! Psychological memory model with 5 types, pluggable backends, and automatic hooks.

Core Documentation

Architecture & Schema

Features

Memory Types:

  • Episodic: Session-specific events and conversations
  • Semantic: Cross-session knowledge and patterns
  • Prospective: Future intentions and reminders
  • Procedural: How-to workflows and procedures
  • Working: Active task state (auto-cleared on completion)

Backends:

  • Kùzu (default): Embedded graph database, zero infrastructure
  • SQLite: Relational storage, fast and simple
  • Neo4j: External graph database (optional)

Quality Gates:

  • Multi-agent review (3 agents: analyzer, patterns, knowledge-archaeologist)
  • Trivial content filtering
  • Selective retrieval with token budgets

Terminal Visualization

NEW! View memory graph directly in your terminal with beautiful Rich-powered trees.

  • Memory Tree Visualization Guide - How to use amplihack memory tree
  • Command: amplihack memory tree [--session SESSION] [--type TYPE]
  • Color-coded by memory type with emoji indicators
  • Star ratings for importance scores
  • Filter by session, type, or agent

Kùzu Backend

NEW! Embedded graph database as default memory backend.

  • Kùzu Memory Schema - Complete schema documentation
  • 5 separate node types (EpisodicMemory, SemanticMemory, etc.)
  • 11 semantic relationships (CONTAINS_EPISODIC, CONTRIBUTES_TO_SEMANTIC, etc.)
  • Sessions as first-class entities
  • Zero Docker overhead (embedded database)

Neo4j Memory System

Advanced graph-based memory for complex knowledge representation:

Research & Deep Dives

For comprehensive research on the Neo4j memory system:


Testing & Validation

Memory system performance and validation:

Code Quality


External Knowledge

Import and integrate external data sources:


Memory Patterns

Advanced patterns for memory collaboration:



Need help? Check the Troubleshooting Guide or Discoveries for common issues.