Before compacting conversation history, run a silent turn prompting the agent to save important context to memory.
Inspired by moltbot's memory flush system:
'Session nearing compaction. Save any important context to memory. Reply NO_REPLY when done.'
Implementation: 1. Add flush hook to Programs/Compaction.hs 2. Configure soft threshold (e.g., 4000 tokens before hard limit) 3. Add config: compaction.memoryFlush.enabled, .softThresholdTokens, .prompt
Reference: moltbot docs/concepts/memory.md 'Automatic memory flush'
No activity yet.