Insights and Compaction
As agents store facts over time, the memory system can grow large. Frona AI automatically compacts and curates memory to keep it useful and efficient.
Insight compaction
Section titled “Insight compaction”The platform periodically reviews stored facts and:
- Merges duplicates: combines facts that say the same thing in different ways
- Resolves contradictions: when newer facts contradict older ones, the newer information takes precedence
- Removes stale data: archives facts that are no longer relevant
- Consolidates related facts: groups related information together
Insight compaction runs every 2 hours by default (FRONA_SCHEDULER_INSIGHT_COMPACTION_SECS).
Space compaction
Section titled “Space compaction”Spaces accumulate conversation history over time. Space compaction summarizes this history into a condensed context block that agents can use efficiently.
The process:
- Reviews recent conversations in the space
- Generates a summary that captures key topics, decisions, and context
- Replaces the detailed history with the summary
Space compaction runs every hour by default (FRONA_SCHEDULER_SPACE_COMPACTION_SECS).
Context management
Section titled “Context management”The platform also manages context within individual conversations:
- Compaction trigger: when context usage reaches 80% (
FRONA_INFERENCE_COMPACTION_TRIGGER_PCT), the platform summarizes older messages - History truncation: when context reaches 90% (
FRONA_INFERENCE_HISTORY_TRUNCATION_PCT), older messages are truncated to make room
These thresholds ensure conversations can continue indefinitely without hitting context window limits.
Configuration
Section titled “Configuration”| Variable | Default | Description |
|---|---|---|
FRONA_SCHEDULER_INSIGHT_COMPACTION_SECS | 7200 (2 hours) | How often to compact memory facts |
FRONA_SCHEDULER_SPACE_COMPACTION_SECS | 3600 (1 hour) | How often to compact space context |
FRONA_INFERENCE_COMPACTION_TRIGGER_PCT | 80 | Context usage % that triggers compaction |
FRONA_INFERENCE_HISTORY_TRUNCATION_PCT | 90 | Context usage % that triggers truncation |