Persistent memory for NPCs • Powered by Cognee knowledge graphs
Why this exists: Every NPC you've ever met in a game was faking it. A looped smile. One line of dialogue. They forget your face the moment you turn around. Props wearing people.
Sonder changes that. It gives NPCs a real engram — a trace of what you did — stored in a knowledge graph. Insult the blacksmith on Monday. Quit the game. Come back on Thursday (or restart the server). He's still cold to you. Not because of a flag. Because the graph remembers.
How the demo works (real-game style):
Travel between locations — this prefetches memories in the background (exactly what a game engine does on scene load)
Take actions → they are written to the NPC's permanent memory via the sonder-engram SDK
Click [restart server] → fresh process, same player_id → NPCs still remember (the graph survived)
The Oracle lets you query what NPCs actually recall about you
Post in the village group chat — every NPC remembers it. They react automatically with @mentions
Word travels: deeds at the forge or tavern reach Elara the seer as gossip — visit the grove and she'll hint at what you did elsewhere
Your name is your save — return with the same name and the town still remembers you (it stays logged in on this browser too)
Visible timing + caches show you the real cost and how games hide it
All memory is real. No scripts, no fake responses. Powered by the open-source sonder-engram SDK + Cognee.
All memory is real. Powered by sonder-engram + Cognee.
SONDERtext rpg
Player:
TRAVEL
ACTIONS HERE (click the lines below):
Elara the Seer
DEEDS
VILLAGE GROUP CHAT (press Enter or Post; @gethin/@mara/@elara to target specific NPCs — they react automatically)