Cost: 3 operations per call
POST /brain/consolidate
Runs the full memory lifecycle pipeline for your account:
- Temporal decay — applies the Ebbinghaus forgetting curve to all relationship confidences. Memories that haven’t been accessed recently lose confidence exponentially.
- Pruning — removes relationships whose confidence has fallen below the survival threshold (
PRUNE_THRESHOLD, default0.05). Orphaned nodes are also cleaned up. - Cluster compression (requires OpenAI) — identifies densely connected entity clusters and uses an LLM to compress related facts into higher-level abstractions.
Request body
Response
Code examples
Prune only — POST /brain/prune
If you only want to remove low-confidence memories without running decay or compression:
Cost: 1 operation per call
Always run
dry_run: true first:
Memory decay explained
Atlas uses the Ebbinghaus forgetting curve:R = e^(-t/S), where:
R= retention (applied to relationship confidence)t= time since last access (days)S= memory stability =DECAY_HALF_LIFE_DAYS / ln(2)
DECAY_HALF_LIFE_DAYS=7, a memory not accessed for:
Memories that are frequently retrieved resist decay — each access resets the clock and reinforces the
access_count frequency score.
When to consolidate
After large batch ingestion
After large batch ingestion
After loading a large document set, run consolidation to let the LLM compress related clusters into cleaner, higher-level abstractions before your agents start querying.
Weekly maintenance
Weekly maintenance
Run a weekly
force: true consolidation to prune knowledge that hasn’t been accessed and keep your Qdrant and Neo4j stores lean.Before a new project phase
Before a new project phase
When a project moves to a new phase and old facts are no longer relevant, lower
PRUNE_THRESHOLD temporarily and run a forced consolidation to clean out stale context.