Selph is a dynamic memory system that solves the fundamental UX problem with AI memory: manual file management. Instead of constantly uploading/deleting static JSON files, we use JSON-LD pointers that reference live Firebase endpoints. AI agents always get current data, users never manage files, and memory evolves in real-time.
Static pointer uploaded once to Claude/ChatGPT
Express.js middleware with schema validation
Real-time database with live sync
1. CJ chats with Claude: "Rodrique prefers evening calls now"
2. Claude sends update:
POST /api/memory/update
{
"userId": "cj-mitchell",
"updates": {
"type": "relationship_update",
"data": {
"targetEntity": "rodrique-fru",
"preference": "call_time",
"value": "evening"
}
},
"source": "claude",
"confidence": 0.8
}
3. Firebase updates instantly
4. Next time any AI agent reads CJ's memory:
GET https://api.selph.ai/memory/cj-mitchell
โ Gets live data with evening call preference
{
"@context": "https://schema.org/",
"@type": "Person",
"@id": "https://selph.ai/cj-mitchell",
"name": "CJ Mitchell",
"sameAs": "https://api.selph.ai/memory/cj-mitchell",
"description": "Live memory endpoint - always current",
"dateCreated": "2025-06-30T10:00:00Z"
}
{
"userId": "cj-mitchell",
"relationships": {
"rodrique-fru": {
"type": "friend_cofounder",
"intensity": 0.9,
"context": "Tech collaborator, strategic thinking partner",
"preferences": {
"call_time": "evening",
"communication_style": "technical_deep_dives"
},
"lastInteraction": "2025-06-30T15:30:00Z",
"confidence": 0.9
}
},
"preferences": {
"work_style": "frameworks_over_tactics",
"communication": "direct_efficient",
"decision_making": "data_driven_with_intuition"
},
"memories": [
{
"id": "mem_20250630_001",
"type": "conversation",
"content": "Discussed Selph dynamic memory architecture",
"participants": ["rodrique-fru"],
"timestamp": "2025-06-30T15:30:00Z",
"importance": 0.8,
"tags": ["selph", "architecture", "collaboration"]
}
],
"metadata": {
"version": 47,
"lastUpdated": "2025-06-30T15:30:00Z",
"lastUpdateSource": "claude",
"schemaVersion": "2.1"
}
}
| Component | Current (Static) | Selph (Dynamic) | Benefit |
|---|---|---|---|
| Memory Storage | Static JSON files | Firebase Firestore | Real-time sync, querying, offline support |
| Updates | Manual file editing | API-driven with validation | Automated, schema-validated, auditable |
| AI Integration | Upload/delete cycle | JSON-LD pointer fetch | Zero file management, always current |
| Cross-Agent Sync | Manual coordination | Automatic real-time | Consistent memory across all AIs |
| Version Control | None | Full audit trail | Track all changes, rollback capability |
| Access Control | File-level only | Field-level permissions | Granular privacy controls |
Semantic web standards enable rich knowledge graphs. AI agents understand relationships, not just data blobs. Future-proof and interoperable.
Works with Claude, ChatGPT, Gemini, local models. Schema validation prevents corruption. Rate limiting and auth built-in.
Firebase WebSockets push updates instantly. All connected AI agents see changes immediately. Offline support included.
Memory schemas can evolve (v1 โ v2 โ v3) without breaking. Backward compatibility maintained. Custom extensions supported.
AI analyzes conversations and extracts memory updates automatically. Confidence scoring. Conflict resolution for contradictory data.
Granular access controls. Field-level permissions. Data stays in your Firebase. Full audit trail of all changes.
Configure Firestore with Selph schema v2.1. Set up security rules for user data isolation. Create indexes for efficient querying.
Build Express.js middleware with schema validation, rate limiting, and authentication. Implement memory update endpoints and real-time sync.
Create browser extension for chat monitoring. Implement automatic memory extraction from conversations. Build confidence scoring system.
Build tooling to convert existing Selph memories to JSON-LD format. Create migration scripts for current static files.
Implement WebSocket connections for live updates. Add monitoring dashboard for memory state. Create backup and recovery systems.
Tech: Simple Express server + local JSON files
Timeline: 2-3 weeks
Cost: $0 - runs on laptop
Purpose: Validate concept, test user behavior
Tech: Firebase + Express API + Redis cache
Timeline: 6-8 weeks
Cost: $50-200/month
Purpose: Scalable, reliable, feature-complete
Simulate the Selph memory system to understand the flow:
Click buttons above to see Selph dynamic memory system in action...
Transform personal AI memory from static file management to a living, breathing knowledge graph that evolves in real-time, syncs across all AI agents, and never requires manual intervention.
From memory snapshots to memory streams.