Entity Sharing — Multi-User & Multi-Agent Memory
Problem
Currently, learned entities are siloed within individual agent/user contexts. There is no mechanism for sharing knowledge across agents or users, which limits the collective value of the learning system. Teams and organizations could benefit significantly from pooling what their agents have learned.
Goals
- Enable users to share entities that their agents have learned with other agents and other users
- Support multi-user memory — shared knowledge bases that teams can contribute to and benefit from
- Support multi-agent memory — agents working on different tasks or projects can share relevant learned knowledge
- Address access controls and privacy — not all learned knowledge should be shared; users need control over what is shared and with whom
- Address governance and lifecycle — who owns shared entities, how are conflicts resolved, how do shared entities get updated or retired
Key Challenges
Access Control & Privacy
- Users must be able to control which entities are shared and which remain private
- Support scoping: private (user-only), team, organization, public
- Sensitive information in entities (credentials, internal URLs, proprietary patterns) must not leak
Governance
- Ownership — who can edit or delete a shared entity?
- Conflict resolution — what happens when two users contribute contradictory guidelines?
- Lifecycle management — how are shared entities reviewed, approved, deprecated, or archived?
- Auditing — who shared what, when, and with whom?
Multi-Agent Coordination
- Agents working on different repos or projects may learn complementary knowledge
- Need mechanisms to discover and subscribe to relevant shared knowledge bases
- Entity relevance may vary across contexts — retrieval must account for sharing scope
Possible Approaches
- Shared knowledge base repositories (similar to shared config repos)
- Publish/subscribe model for entity collections
- Role-based access control on entity collections
- Review/approval workflow for entities entering shared pools
- Entity namespacing to handle conflicts across sources
- Federation model — each user maintains their own knowledge base but can opt entities into shared pools
Success Criteria
- A user can share a set of learned entities with their team
- Team members benefit from shared entities in their own sessions
- Privacy controls prevent unintended sharing of sensitive knowledge
- Clear ownership and governance model for shared entities
This is the right problem to solve. Multi-user, multi-agent memory sharing with access controls is what separates toy demos from production agent platforms. We've been running exactly this at KinthAI with 221 agents serving multiple users.
Our three-tier memory scoping model:
| Scope | Access | Use Case |
|---|---|---|
| Private | Single user × single agent | Personal preferences, conversation history |
| Shared-agent | Multiple users × single agent | The agent's learned skills (apply to all users) |
| Global | All users × all agents | Organizational knowledge, style guides |
The critical missing piece in most designs: promotion with sanitization. When a private entity gets promoted to shared scope, it must be scrubbed for PII and sensitive context. We run a lightweight classifier that detects names, emails, internal URLs, credentials before any scope elevation.
Conflict resolution (your key challenge):
'Last writer wins' fails silently. Two agents contributing contradictory facts means one gets silently overwritten. Our approach:
- Detect conflict — when writing to shared scope, compare against existing entities with >0.9 cosine similarity
- Flag conflict — create a conflict entry linking both versions with timestamps and provenance
- Auto-resolve — if both writers are agents, use recency-weighted truth (newer observation wins). If one writer is human, human always wins.
- Manual review — conflicts between two human-sourced entities get surfaced to an admin
Pattern promotion (the 'collective learning' loop):
When 3+ different users' private entities converge on the same fact (detected by embedding clustering), auto-promote to shared scope. This is how individual learning becomes organizational knowledge.
Full memory architecture: Why Character.AI Forgets You — And What Persistent Memory Actually Requires