Skip to main content

Module writer

Module writer 

Source
Expand description

Memory write discipline.

Enforces the two-step write pattern:

  1. Write the memory file with proper frontmatter
  2. Update MEMORY.md index with a one-line pointer

Prevents entropy by never dumping content into the index.

Functionsยง

delete_memory
Remove a memory file and its index entry.
rebuild_index
Rebuild MEMORY.md from the actual files in the memory directory. Scans all .md files (except MEMORY.md itself), reads their frontmatter, and regenerates the index.
write_memory
Write a memory file and update the index atomically.