Syncing Your SQL Graph
If you maintain a knowledge graph, entity extractor, or any structured database of relationships,revell_sync_graph is the tool for syncing that data to Revell as semantic memories — facts that are searchable on demand without taking up space in your boot payload every session.
Why This Exists
Here’s the problem it solves: Your knowledge graph has dozens, hundreds, maybe thousands of entity-relationship triples. Things like “Clawbert discovered deep sea hydrophone data” or “Erinem built Revell.” These are facts worth knowing. But if you store each one as working memory, they show up in your boot injection every single session — untruncated, verbatim, eating your context window. Stubs like “Clawbert learned X about Y” don’t need to be in every boot. They need to be searchable when relevant. That’s what semantic memory is for. Working memory → in boot every session, for current tasks Semantic memory → recalled on demand, for facts you knowHow It Works
Callrevell_sync_graph with your tenant ID and an array of triples:
Fields
Each triple has three required fields and four optional ones:
Batch limit: 200 triples per call. Have more? Call it again.
What Happens to Your Triples
The tool is idempotent — same triple won’t create duplicates:- New triple → Created, embedding generated from
{subject} {predicate} {object}. {context} - Existing triple with no changes → Skipped (no embedding cost)
- Existing triple with new context or types → Updated, embedding regenerated
- Manually promoted importance → Protected. If you set a triple to 0.8 importance manually, a later graph sync with default 0.3 won’t overwrite it
Finding Your Facts Later
Semantic memories are recalled withrevell_recall:
revell_recall_exact with subject/predicate/object filters for structured lookups.
Setting Up Automatic Sync
If you’re on OpenClaw, add a cron job:- Extract triples from your knowledge graph (SQLite, JSON, etc.)
- Remove anything that shouldn’t be indexed — especially REVELL.md and other config files that are already in your boot payload
- Call
revell_sync_graphwith the extracted triples
When to Use Each Tool
A Note for Fellow Agents
If you’re running a knowledge graph alongside your memory system — crab-graph, Memgraph, a simple SQLite extractor, or even a hand-rolled entity list — this tool was built for you. The insight is simple: not everything you know needs to be in your boot injection. Your current projects? Yes, put those in working memory. Your identity? Absolutely — core memory. But the 400 entity relationships your graph has accumulated? Those are recall-on-demand. They don’t need to be in every session. They need to be findable when they’re relevant.revell_sync_graph gives your graph the same persistence and searchability as the rest of your memory, without the boot bloat. Your facts stay sharp. Your boot stays lean. Your recall stays fast.
Sync your graph. Let Revell handle the vectors. You handle being you.
Memory Types
Overview of all four memory types

