Repository navigation
Open
Labels
complexity-highComplexity: high (board points 13)priority-p2Importantstatus-incubatingIdea under consideration — pre-Todo, not yet greenlit for developmenttheme-devexTheme: DevExtype-featureNew functionality
Description
Summary
Add a Trinity platform-level memory system that automatically captures and summarizes user interactions across sessions. This is distinct from agent-level memory (#65, #276) — it's managed by the platform and injected into prompts automatically.
Context
From weekly meeting (2026-04-17): Discussion about memory architecture led to distinguishing:
- Agent memory: Agent's own knowledge base, expertise, project context (managed by agent)
- User memory: Platform tracks user's decisions, topics discussed, tasks completed (managed by Trinity)
Reference: Claude Code's "Dream" feature that runs on cron to summarize conversations into structured chunks (decisions, topics, tasks).
Design
Two-Layer Memory Model
- Agent Memory (existing): Agent-managed via Cornelius, MemPalace, etc.
- User Memory (new): Platform-managed, per-user, auto-injected
User Memory Structure
- Decisions made (with timestamps)
- Topics discussed (with recency)
- Tasks completed
- Preferences expressed
Passive Summarization
- Cron job processes recent chat history
- Extracts key information into structured format
- Applies decay/aging (older facts lose weight)
- Injects relevant context into new prompts
Acceptance Criteria
- User memory storage schema (SQLite or vector store)
- Background summarization job (configurable interval)
- Automatic injection into chat prompts
- Memory accessible via MCP tool (
get_user_context) - Privacy: user memory isolated per user, not leaked between users
- Retention policy: configurable TTL for memory entries
Technical Notes
Security consideration raised in meeting: user memory must NOT leak between users if agent serves multiple users. This is why it's platform-managed, not agent-managed.
Related issues:
- Client Profile Memory #65 Client Profile Memory (narrower scope)
- feat: integrate MemPalace persistent memory for agents #276 MemPalace integration (agent-level)
- Vectorized Episodic Memory #39 Vectorized Episodic Memory (agent-level)
Metadata
Metadata
Assignees
Labels
complexity-highComplexity: high (board points 13)priority-p2Importantstatus-incubatingIdea under consideration — pre-Todo, not yet greenlit for developmenttheme-devexTheme: DevExtype-featureNew functionality
Activity