Skip to main content

Module compaction

Module compaction 

Source
Expand description

Compaction tree — 5-level memory compression hierarchy.

Raw → Daily → Weekly → Monthly → Root

Older memories are progressively compressed into higher-level summaries, preserving key information while reducing storage and context size.

§Levels

LevelValueThresholdDescription
Raw0200 linesUncompressed session data
Daily1300 linesCompressed from raw (per-day)
Weekly2500 linesCompressed from daily (per-week)
Monthly3Compressed from weekly (per-month)
Root4Top-level index entry

Structs§

CompactionTree
Compaction tree manager.

Enums§

CompactionLevel
Compaction level in the compression hierarchy.