session_backfill_links
Retroactively link all existing session entries in a project to populate the associative memory graph using temporal chaining, keyword overlap, and provenance strategies.
Instructions
Retroactively create graph edges (memory links) for all existing entries in a project. This builds the associative memory graph from your existing session history.
Three strategies are run:
Temporal Chaining: Links consecutive entries within the same conversation
Keyword Overlap: Links entries sharing ≥3 keywords (bidirectional)
Provenance: Links rollup summaries to their archived originals
All strategies use INSERT OR IGNORE — safe to re-run multiple times.
When to use: Run once after upgrading to v6.0 to populate the graph for existing memories. New entries are auto-linked on save (no manual action needed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | Project to backfill links for. Required. |