Skip to main content

Module snapshot

Module snapshot 

Expand description

Memory snapshot — export/import core memories as human-readable Markdown.

Constants§

SNAPSHOT_FILENAME
Filename for the snapshot (lives at workspace root for Git visibility).

Functions§

export_snapshot
Export all Core memories from SQLite → MEMORY_SNAPSHOT.md. Returns the number of entries exported.
hydrate_from_snapshot
Import memories from MEMORY_SNAPSHOT.md into SQLite. Called during cold-boot when brain.db doesn’t exist but the snapshot does. Returns the number of entries hydrated.
should_hydrate