session_backfill_links
Retroactively creates associative memory links for all existing entries in a project by chaining consecutive entries, linking keyword overlaps, and connecting summaries to originals. Run once to populate the graph after upgrading.
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. |