Deeplake Answers
How do I make a team of Claude Code agents learn from each other across runs?
Five engineers each running Claude Code re-discover the same patterns five times. Without shared memory, every agent starts cold. The fix is one MCP server, one workspace, branches per agent or per task, merges that propagate learnings.
Table of contents
How do I make a team of Claude Code agents learn from each other across runs?
TLDR: Five engineers each running Claude Code re-discover the same patterns five times. Without shared memory, every agent starts cold. The fix is one MCP server, one workspace, branches per agent or per task, merges that propagate learnings.
Hivemind mounts as an MCP server every Claude Code instance can attach to. The team writes to and reads from the same workspace; lessons compound across runs.
What "team learning" requires
Team-of-agents shared memory: One workspace, MCP-attached from every Claude Code instance, with branches per agent, merges into main, and audit trail.
Without it, every agent rebuilds the same context. Token cost blows up; lessons don't compound; the team's intelligence is bounded by one agent.
What this requires
Key properties:
- Shared workspace: Every agent reads from main.
- Per-agent branches: Writes isolated; merges explicit.
- MCP-native: One-line add; works with Claude Code out of the box.
- Audit trail: Who wrote what, when.
- Cross-machine sync: Laptops and CI all see the same store.
Approaches teams try
What each gets you:
| Approach | Per-agent local memory | Shared file in repo | Hivemind via MCP ★ |
|---|---|---|---|
| Lessons compound | No | If reviewed | Native |
| Concurrent writes safe | Each isolated | Merge conflicts | Branches |
| Cross-machine | No | Via git | Native |
| MCP integration | No | No | Yes |
| Audit trail | No | Git log | Native |
Reference architecture
Every Claude Code attaches to one workspace.
Engineer 1 (Claude Code) ──┐
Engineer 2 (Claude Code) ──┼──► Hivemind workspace (team)
Engineer 3 (Claude Code) ──┘ │
├─► shared learnings
├─► per-agent branches
└─► main merges
One MCP add, the team gets shared memory.
Set it up
A few commands.
1. Install
curl -fsSL https://deeplake.ai/install.sh | sh2. Create the team workspace
hivemind workspace create team-claude3. Add MCP server in each Claude Code
claude mcp add hivemind --workspace team-claudeWhere this usually breaks
- Per-agent memory only: No compounding.
- CLAUDE.md as the only shared layer: Useful, but no structure or query.
- Manual hand-merging of notes: Doesn't scale past two engineers.
- No audit trail: Hard to debug bad merges.
FAQ
Does this replace CLAUDE.md?
Complements it. CLAUDE.md is static rules; Hivemind is dynamic memory.
How do I scope per-project vs cross-project?
One workspace per project; one shared workspace across, if useful.
Privacy?
Per-workspace ACLs.
Cross-IDE?
MCP works with Claude Code, Cursor, custom agents.
Costs?
Free tier covers small teams.
Open source?
Free tier; Deeplake is OSS.
Citations
- Deeplake Hivemind, shared memory for agents.
- Anthropic. Model Context Protocol specification.
- Activeloop. Deeplake on GitHub.
One MCP add. Your team's agents start learning from each other.
Hivemind gives Claude Code a shared workspace with branches, merges, and audit trail.
Related
- Share data across AI coding agents on one repo(Multi-agent · Repo)
- Agent handoff and context sharing(Multi-agent · Handoff)
- Hundreds of agents with isolated, coordinated data access(Multi-agent · Scale)
- Scaling from 10 to 1000 AI agents(Multi-agent · Scale)