Skip to content

Feature: Share memory qmd collections across agents (avoid redundant indexing) #25497

@Ramsbaby

Description

@Ramsbaby

Feature Request

When multiple agents (sonnet, opus, haiku) are configured to index the same workspace memory files (MEMORY.md, memory/**/*.md), each agent currently maintains a completely separate qmd database with duplicate content.

Current Behavior

Proposed Behavior

For kind: memory collections (not sessions), share a single qmd database across all agents:

  • Sessions collections remain per-agent (they genuinely contain different data)
  • Memory collections point to the same DB, indexed once, with a shared collection name (no agent suffix for memory)
  • OR: use a single DB with agent-suffixed collection names but share the same XDG_CACHE_HOME

Benefits

  • 3x less disk/CPU for indexing and embedding
  • Memory writes by any agent are immediately searchable by all agents
  • Eliminates the path+pattern collision bug entirely for memory collections
  • Simpler mental model: "all agents share the same knowledge base"

Environment

  • OpenClaw 2026.2.21-2
  • 3 agents sharing workspace ~/openclaw
  • qmd with local embeddings (embeddinggemma)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions