Documentation Index
Fetch the complete documentation index at: https://docs.bsyncs.com/llms.txt
Use this file to discover all available pages before exploring further.
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
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
persona | string | null | Restrict consolidation to a specific persona. | |
force | bool | false | Force consolidation even if it ran recently. |
Response
| Field | Type | Description |
|---|---|---|
memories_decayed | int | Relationships whose confidence was reduced by the forgetting curve. |
memories_pruned | int | Relationships and episodic chunks deleted for falling below threshold. |
memories_compressed | int | Individual facts merged into cluster abstractions. |
abstractions_created | int | New higher-level summary nodes created in the knowledge graph. |
latency_ms | float | Total time in milliseconds. |
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
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
threshold | float | 0.05 | Confidence below which memories are pruned. | |
dry_run | bool | true | If true, returns the count without deleting anything. | |
persona | string | null | Restrict pruning to a persona. |
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:
| Days elapsed | Confidence multiplier |
|---|---|
| 1 day | ~0.91× |
| 7 days | ~0.50× |
| 14 days | ~0.25× |
| 30 days | ~0.05× (prunable) |
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.