Claude.ai artifacts can call the Anthropic API and have persistent storage (5MB via window.storage). I used these two capabilities to build a memory system modeled on how human memory actually works — salience scoring, forgetting curves, and sleep consolidation — all running inside a single React artifact with no external dependencies.
Just add artifact to your chat and paste instructions into your personal preferences setting.
One of the biggest challenges seems to be avoiding memory bloat while still preserving important long-term context. I’m curious how you balance forgetting vs retention — especially how salience is calculated and updated over time.