Skip to content

🏠 Feature: Room (Collaboration Context for Multi-Agent Sessions) #287

Closed

Description

@ajianaz

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 thread
  • local:<session_id> β€” Local session
  • meeting:<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:1514528701109506199

Schema 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 stale lists 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

  1. Multi-Agent Discord Threads: Agents in a thread share context. New agent joins, runs uteke recall --room <thread_id>, instantly has discussion history.

  2. Cross-Session Continuity: Same thread continues across sessions. Room ID persists, so any session can pick up where the last left off.

  3. 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.

  4. 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 on remember, 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

Effort Estimate

Medium (1-2 weeks)

Activity

  1. added
    enhancement
    scope:core
    v0.1.0
    on Jun 11, 2026
  2. ajianaz commented on Jun 12, 2026

    @ajianaz
    CollaboratorAuthor

    Duplicate of #286 (same feature, same author, created 1 minute apart). Keeping #286 as the canonical issue.

  3. ajianaz commented on Jun 13, 2026

    @ajianaz
    CollaboratorAuthor

    Duplicate of #286 (room-based-memory). Closing as duplicate β€” #286 is the canonical issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:mediumscope:corev0.1.0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions