Multi-Agent Collaboration
The Problem
In a multi-agent system, each agent operates in isolation. Agent A researches a topic, Agent B writes content based on it, and Agent C handles QA — but they can't share what they learn. Every handoff requires manually passing context through the orchestrator, which is fragile and doesn't scale.
The Solution
Use a shared Memsolus workspace as the common memory space. Each agent writes memories under its own userId, and all agents can search the full workspace to find what any other agent has stored. No orchestrator plumbing required.
How It Works
Implementation
Install the SDK
Initialize the client
Define agent identifiers
Each agent gets its own userId. All agents share the same workspace — determined by the API key.
Agent A stores findings in the shared workspace
Agent B reads Agent A's memories from the shared workspace
Agent C reviews everything in the workspace
MCP Configuration for Multi-Agent Systems
If your agents use the MCP server, configure each agent with its own MEMSOLUS_USER_ID pointing at the same workspace:
Each agent has its own MEMSOLUS_USER_ID so memories are attributed correctly. They share the same API key so all memories are stored in and retrieved from the same workspace.