Skip to main content

Crate cersei_memory

Crate cersei_memory 

Source
Expand description

cersei-memory: Memory trait and backends for the Cersei SDK.

Memory provides session persistence and retrieval, enabling resumable conversations and long-term knowledge storage.

§Modules

  • memdir — Flat file memory scanning
  • claudemd — Hierarchical CLAUDE.md loading
  • session_storage — JSONL transcript persistence

Modules§

claudemd
CLAUDE.md hierarchical loading.
graph
Graph-backed memory using Grafeo embedded graph database.
graph_migrate
Graph schema versioning and migration engine.
manager
Unified Memory Manager: composes all memory layers into a single API.
memdir
Memory directory: persistent file-based memory system.
session_storage
Session storage: append-only JSONL transcript persistence.

Structs§

InMemory
In-memory store for tests and short-lived agents.
JsonlMemory
File-based memory backend using JSONL format. Each session is stored as a .jsonl file with one message per line.

Traits§

Memory

Functions§

strip_frontmatter
Strip YAML frontmatter from content.