hivemind
activeloopai · activeloopai/hivemind
Hivemind cho phép Claude Code và các agent khác tự động học, chia sẻ và truyền bá các kỹ năng tái sử dụng trên các nhóm bằng cách ghi lại và mã hóa các dấu vết phiên làm việc.
Hivemind turns your traces into reusable skills across agents
Xem trước
Bạn có thể làm gì với nó
- Chia sẻ mẫu di chuyển mã đã học trên tất cả các agent của nhóm để chuẩn hóa quy trình.
- Tự động tạo các trang wiki do AI cung cấp tóm tắt các phiên làm việc của agent để quản lý kiến thức.
- Cải thiện hiệu suất agent và giảm lượng token sử dụng bằng cách tận dụng bộ nhớ chia sẻ và các kỹ năng đã được mã hóa.
Kiểm tra an toàn
Dùng được, nhưng nên đọc ghi chú trước.
- ●Gói npm tự chạy script khi cài đặt.
package.json - ●Trình cài đặt tải script từ xa và chạy thẳng bằng shell.
scripts/verify-install.sh
Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.
Trích từ README
Hivemind
One brain for all your agents
Auto-learning, cloud-backed shared brain for Claude Code • OpenClaw • Codex • Cursor • Hermes • pi • Claude Cowork (Alpha) agents.
One engineer's agent figures out a tricky migration on Monday.
Tuesday, every agent on the team can execute the pattern.
On LoCoMo, the public long-context memory benchmark, Hivemind is 25% cheaper, 1.7× fewer tokens, and 31% fewer turns than running without shared memory. (See the numbers below.)
Beyond memory. Hivemind doesn't just remember. It mines your team's traces for repeated patterns and codifies them into reusable skills that propagate back into every agent on the team. The agent your junior engineer used this morning is sharper because of what your senior engineer's agent figured out last week.
- 📥 Captures every session's prompts, tool calls, and responses as structured traces in Deeplake
- 🧠 Codifies patterns into reusable
SKILL.mdfiles, available to every agent on your team - 🔍 Searches traces and skills with hybrid lexical + semantic retrieval (ILIKE lexical fallback when embeddings off)
- 🔗 Propagates capability across sessions, agents, teammates, and machines in real time
- 📁 Intercepts file operations on
~/.deeplake/memory/through a virtual filesystem backed by SQL - 📝 Summarizes sessions into AI-generated wiki pages via a background worker at session end
- ☁️ BYOC: keep data in your own GCS, Azure, S3, or on-prem bucket. See Security & storage
Benchmarks
On the LoCoMo long-context memory benchmark (100 QA pairs, Claude Haiku via claude -p, hybrid lexical + semantic retrieval), Hivemind cuts cost, tokens, and turns versus a no-memory baseline:
| Metric | Baseline | Hivemind | Improvement |
|---|---|---|---|
| Cost / 100 QA | $8.94 | $6.65 | 25% cheaper |
| Tokens / question | 1,700 | 1,008 | 1.7× fewer |
| Turns / question | 8.9 | 6.2 | 31% fewer |
The agent reaches the answer in fewer turns with less context, because the prior work is already in scope at recall time, not re-derived per session.
Quick start
One command, all your agents.
macOS / Linux
curl -fsSL https://deeplake.ai/hivemind.sh | sh
Windows — in PowerShell:
irm https://deeplake.ai/hivemind.ps1 | iex
Any platform, via npm — for CI and Dockerfiles, or where policy blocks piping a downloaded script to a shell. Skips the checks the installers do, so Node 22+ and a writable npm prefix are on you:
npm i -g @deeplake/hivemind && hivemind install
The installer detects every supported assistant on your machine (table below), wires up the hooks, and shows a one-line consent prompt before opening a browser for sign-in. Restart your assistants after install.
Headless / CI installs: pass an API token instead of using the browser flow:
HIVEMIND_TOKEN=<your-token> hivemind install
# or
hivemind install --token <your-token>
Get a token from your account settings on https://deeplake.ai. With no token in a non-interactive shell, the install completes with hooks but skips sign-in; run hivemind login later to enable shared memory.
Install for a specific assistant only:
hivemind install --only claude
hivemind claude install # equivalent
hivemind codex install
hivemind claw install
hivemind cursor install
hivemind hermes install
hivemind pi install
hivemind claude_cowork install # Alpha
Check what's wired up:
hivemind status
Supported assistants:
| Platform | Integration | Auto-capture | Auto-recall |
|---|---|---|---|
| Claude Code | Marketplace plugin | ✅ | ✅ |
| OpenClaw | Native extension | ✅ | ✅ |
| Codex | Hooks (hooks.json) | ✅ | ✅ |
| Cursor | Hooks (hooks.json 1.7+) | ✅ | ✅ |
| Hermes Agent | Shell hooks (config.yaml) + skill + MCP server | ✅ | ✅ |
| pi | Extension API (pi.on(...)) + skill + AGENTS.md | ✅ | ✅ |
| Claude Cowork 🅰️ | MCP server (Claude Desktop) | 🅰️ Alpha¹ | ✅ |
🅰️ Claude Cowork is Alpha. Auto-recall (the hivemind_search / read / index tools) is solid. ¹Auto-capture covers Local Agent Mode sessions only — those write a transcript we can tail; plain desktop-chat turns leave no readable local trace and aren't captured (why).
Alternative install paths
Claude Code plugin marketplace
If you prefer Claude Code's native plugin marketplace:
/plugin marketplace add activeloopai/hivemind
/plugin install hivemind
/reload-plugins
/hivemind:login
Auto-updates on each session start. Manual update: /hivemind:update.
OpenClaw ClawHub
openclaw plugins install clawhub:hivemind
Then type /hivemind_login in chat, click the auth link, and sign in.
Commands
| Command | Description |
|---|---|
/hivemind_login | Sign in via device flow |
/hivemind_capture | Toggle capture on/off |
/hivemind_whoami | Show current org and workspace |
/hivemind_orgs | List organizations |
/hivemind_switch_org <name> | Switch organization |
/hivemind_workspaces | List workspaces |
/hivemind_switch_workspace <id> | Switch workspace |
/hivemind_update | Check for plugin updates |
Auto-recall and auto-capture are enabled by default. Data is stored