Grillo — Memory Compaction Beat
Part of the G.R.I.L.L.O. background subsystem.
Purpose
Nightly memory housekeeping. Groups older memories by tag, asks the active LLM
to synthesize each cluster into a single compacted memory, archives the source
rows into archived_memories, and inserts the new compacted memory back into
memories with LLM-suggested tags and feeling. Keeps long-term memory dense and
useful instead of unbounded.
Beat
Beat type:
memory_consolidationSelection: runs nightly at
GRILLO_COMPACT_TIME.Output: compacted memory rows; source memories moved to the archive.
How it works
The plugin clusters candidate memories older than GRILLO_COMPACT_AGE_DAYS,
skips clusters below the minimum size, summarizes each with the Grillo cortex
(bounded by the max-chars/ratio limits), then archives and replaces them.
Discovery is automatic via the plugin registry.
Configuration
Key |
Purpose |
|---|---|
|
Enable/disable this beat. |
|
Time of day (HH:MM) to run compaction. |
|
How many compaction cycles per run. |
|
Memories processed per batch. |
|
Minimum age before a memory is a candidate. |
|
Time window grouped together. |
|
Smallest tag cluster worth compacting. |
|
Hard cap on a compacted summary length. |
|
Summary length relative to source. |
Plus the shared Grillo settings. See the G.R.I.L.L.O. guide.