Repository navigation
Description
Feature: Room β Collaboration Context for Multi-Agent Sessions
Problem
Uteke memories are currently isolated per namespace (agent). When multiple agents collaborate in a shared context (Discord thread, meeting, agent collab session), there is no way to share memories across agents without leaking entire namespaces.
Real scenario: In a Discord thread with 3 agents discussing SurrealDB, each agent stores findings in their own namespace. When a new agent joins, it has zero context. There is no mechanism to say "these memories belong to this discussion."
Proposed Solution
Add a --room flag that scopes memories to a collaboration context. Room is orthogonal to namespace β namespace = who stored it, room = what collaboration context it belongs to.
Room ID Format
Platform-prefixed for portability:
discord:<thread_id>β Discord threadlocal:<session_id>β Local sessionmeeting:<meeting_id>β Meeting/call context
CLI Interface
# Store memory in a room
uteke remember "SurrealDB uses RocksDB as default storage" \
--room discord:1514528701109506199 --namespace kai
# Agent joins room β recall room context
uteke recall "SurrealDB architecture" --room discord:1514528701109506199
# List all memories in a room (from all namespaces)
uteke list --room discord:1514528701109506199
# List all rooms
uteke rooms list
# Room details (participants, stats, last activity)
uteke rooms info discord:1514528701109506199Schema Design (Option A: Column β Recommended)
ALTER TABLE memories ADD COLUMN room TEXT;
CREATE INDEX IF NOT EXISTS idx_memories_room ON memories(room);Room metadata (name, participants, created_at) stored as a special memory with memory_type = "room_meta" and the room ID as content, or via --meta.
Why Option A over separate table:
- Simplest migration (single ALTER TABLE)
- No JOINs needed for room-scoped queries
- Room is optional β existing memories unaffected
- Consistent with Uteke philosophy: single binary, zero config
Room Lifecycle
- No auto-deletion β rooms don't expire
- Memories in rooms follow normal decay rules (β Feature: Smart memory decay and importance scoringΒ #247), BUT active rooms (activity in last 7 days) boost importance
- Stale rooms:
uteke rooms stalelists rooms with no activity > 30 days - Room cleanup: Manual via
uteke rooms forget <room_id>(soft delete β marks room as inactive, memories remain but lose room boost)
Integration Points
| Feature | Integration |
|---|---|
| #246 Graph Layer | Room as contains container relationship. recall --related --room follows edges within room scope |
| #247 Smart Decay | in_active_room factor boosts importance for memories in active rooms |
| #248 MCP Server | All MCP tools accept optional room parameter. uteke_room_info as new MCP tool |
| #252 Similarity Threshold | Room-scoped recall may need different thresholds (smaller memory sets = lower relevance bar) |
| Contradiction Detection | Cross-check contradictions within room context (agents may disagree on same topic) |
Use Cases
-
Multi-Agent Discord Threads: Agents in a thread share context. New agent joins, runs
uteke recall --room <thread_id>, instantly has discussion history. -
Cross-Session Continuity: Same thread continues across sessions. Room ID persists, so any session can pick up where the last left off.
-
Agent Proposals/Decisions: Agent A proposes something, stores with
--meta "author:kai,proposal:true". Agent B reviews, adds counter-proposal. Both in same room. Decision gets resolved with--detect-contradiction. -
Meeting Summaries: Meeting creates a room. All agents store takeaways. Post-meeting, anyone can
uteke recall --room meeting:2026-06-11-surrealdb.
Acceptance Criteria
-
--room <id>flag onremember,recall,list,search - Room ID validated as
<platform>:<id>format -
uteke rooms listβ list all rooms with memory count and last activity -
uteke rooms info <id>β room details -
uteke rooms staleβ rooms with no activity > 30 days - Room column added to memories table (schema migration v3)
- Room-aware recall returns only room-scoped memories
- Namespace + room are orthogonal (can filter by both, either, or neither)
- MCP server exposes room parameter on all tools (π Feature: MCP server for AI tool integrationΒ #248)
- Documentation updated
Why v0.1.0
- Requires stable schema migration system (v0.0.12+)
- Natural fit alongside graph layer (π Feature: Relationship graph layer between memoriesΒ #246) and MCP (π Feature: MCP server for AI tool integrationΒ #248)
- Room-aware importance (β Feature: Smart memory decay and importance scoringΒ #247) needs room column to exist
- Multi-agent collaboration is a key adoption driver
Effort Estimate
Medium (1-2 weeks)
- 2 days: Schema migration + room column
- 2 days: CLI flags (remember, recall, list, search)
- 2 days: Room management commands (list, info, stale)
- 2 days: MCP integration (π Feature: MCP server for AI tool integrationΒ #248 sync)
- 2 days: Tests + documentation
Activity
ajianaz commentedon Jun 12, 2026
Duplicate of #286 (same feature, same author, created 1 minute apart). Keeping #286 as the canonical issue.
release: v0.0.14 β version bump, CHANGELOG, docs update (#288)
ajianaz commentedon Jun 13, 2026
Duplicate of #286 (room-based-memory). Closing as duplicate β #286 is the canonical issue.
release: v0.0.14 β version bump, CHANGELOG, docs update (#288)