cognee-sync

star 30

Sync session cache entries into the permanent Cognee knowledge graph. Run this to make session memory searchable, or it runs automatically at session end.

topoteretes By topoteretes schedule Updated 4/10/2026

name: cognee-sync description: Sync session cache entries into the permanent Cognee knowledge graph. Run this to make session memory searchable, or it runs automatically at session end.

Sync Session to Permanent Graph

Bridge session cache entries into the permanent knowledge graph.

Instructions

Run the sync script:

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/sync-session-to-graph.py

What this does

  1. Apply feedback weights -- session entries with feedback scores update graph node/edge weights
  2. Persist session Q&A -- cognifies session text into the permanent graph
  3. Enrich triplets -- extracts and indexes triplet embeddings for vector search
  4. Sync graph to session -- copies new graph relationships back into the session cache as a knowledge snapshot, so subsequent completions have instant access to the enriched graph context

After this, session entries become searchable via /cognee-memory:cognee-search, and the graph knowledge is automatically included in session completion prompts.

When to use

  • Before searching for session content that hasn't been synced yet
  • When you want to force an early sync without waiting for session end
  • This runs automatically at session end via the SessionEnd hook
Install via CLI
npx skills add https://github.com/topoteretes/cognee-integrations --skill cognee-sync
Repository Details
star Stars 30
call_split Forks 23
navigation Branch main
article Path SKILL.md
More from Creator