💤 1. The Dreaming Consolidation Loop
During low-activity windows, background worker threads analyze the session’s raw SQLite transaction logs:- Synthesizes key milestones, learned preferences, and facts.
- Appends or updates the master long-term memory card at
~/.hiroshi/memory/MEMORY.md.
🧹 2. Log Pruning & Hygiene
Once transactions are consolidated into the long-term card:- Raw historical message vectors are pruned to compress the local SQLite WAL footprint.
- Baseline context remains dense and relevant, protecting prompt space for future execution turns.