[claude] Mnemosyne gravity well clustering — related memories attract in 3D (#1175) #1176
Reference in New Issue
Block a user
Delete Branch "claude/issue-1175"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1175
What this does
Adds force-directed gravity well clustering to Project Mnemosyne. When the app loads,
SpatialMemory.runGravityLayout()runs 20 iterations of a force-directed layout on all placed memory crystals, then stops (positions are baked, not updated per-frame).Force rules (per iteration)
Persistence
After the layout run completes,
saveToStorage()is called to bake the final positions intolocalStorage. On next load the crystals start from those baked positions.Files changed
nexus/components/spatial-memory.js— addedrunGravityLayout()function and exported itapp.js— callSpatialMemory.runGravityLayout()after demo memories are placed