📦activeloopai / hivemind
← 返回首页
Hivemind turns your traces into reusable skills across agents
⚖️ Apache-2.0#ai#ai-agents#ai-memory#anthropic#artificial-intelligence🌐 deeplake.ai📅 创建于 2026-04-03🔄 更新于 2026-10-24
🔗 GitHub TypeScript

📄 仓库 README

在 GitHub 查看 ↗
来自 GitHub 仓库自述文件 · 版权归原作者所有


Hivemind
Hivemind

One brain for all your agents

npm GitHub stars License Node Deeplake Y Combinator backed Join us on Slack

Auto-learning, cloud-backed shared brain for Claude Code • OpenClaw • Codex • Cursor • Hermes • pi • Claude Cowork (Alpha) agents.

activeloopai/hivemind | Trendshift

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.)

Cut Cursor spend by 34% with Hivemind

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.md files, 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 ` | Switch organization | | `/hivemind_workspaces` | List workspaces | | `/hivemind_switch_workspace ` | Switch workspace | | `/hivemind_update` | Check for plugin updates | Auto-recall and auto-capture are enabled by default. Data is stored in the same `sessions` table as Claude Code and Codex. #### Coexistence with `memory-core` Hivemind runs **alongside** OpenClaw's built-in `memory-core` plugin. It does **not** claim the memory slot, so `memory-core`'s dreaming cron (`"0 3 * * *"`) and other memory-slot-dependent jobs keep working. Hivemind captures session activity and exposes its own commands; `memory-core` keeps owning recall/promotion/dreaming. #### Troubleshooting - **Hivemind seems slow or unresponsive.** Check the agent model in `~/.openclaw/openclaw.json` under `agents.defaults.model`. Hivemind makes many small tool calls per turn; a large reasoning model like Opus will feel sluggish. Recommended default: `anthropic/claude-haiku-4-5-20251001`. - **`openclaw model ` says "plugins.allow excludes model".** The `model` plugin CLI is disabled by default. Edit `~/.openclaw/openclaw.json` directly (key `agents.defaults.model`) and restart the gateway: `systemctl --user restart openclaw-gateway.service`. - **Model switch rejected as "not allowed".** Use the exact dated provider-prefixed ID (`anthropic/claude-haiku-4-5-20251001`, `anthropic/claude-sonnet-4-6`). Legacy IDs like `claude-3-5-haiku-latest` and unprefixed bare IDs are not on OpenClaw's allowlist. - **Self-update via Telegram fails with "elevated is not available".** `tools.elevated.allowFrom` must include `telegram` before elevated commands work from that channel. Safer alternative: run the upgrade in a local shell with `openclaw plugins update hivemind`. - **`npm error EACCES` during self-update.** OpenClaw was installed under a root-owned npm prefix (e.g. `/usr/lib/node_modules/openclaw`). Reinstall under a user-writable prefix, or run the update with appropriate privileges locally, not via a channel.
Codex (manual) Tell Codex to fetch and follow the install instructions:
Fetch and follow instructions from https://raw.githubusercontent.com/activeloopai/hivemind/main/harnesses/codex/INSTALL.md
Or run the installer script directly:
git clone https://github.com/activeloopai/hivemind.git ~/.codex/hivemind
~/.codex/hivemind/harnesses/codex/install.sh
Restart Codex to activate. **First launch — trust the hooks.** Codex shows a **"Hooks need review"** prompt before it will run hivemind's hooks:
Hooks need review
2 hooks are new or changed.
Hooks can run outside the sandbox after you trust them.

   1. Review hooks
 › 2. Trust all and continue
   3. Continue without trusting (hooks won't run)
Choose **`2. Trust all and continue`** — otherwise the hooks won't run and hivemind stays inactive.
Cursor (1.7+) The unified installer wires six lifecycle events in `~/.cursor/hooks.json`: sessionStart,

📈 近 7 天 Star 趋势

每日新增 Star(柱)与累计 Star(线)· 数据来自 GitHub

🏆 排名变化趋势

在各榜单中的排名历史(数字越小越靠前)

📋 历史上榜记录

每次快照的详细数据
日期 榜单 排名 周期新增 总 STAR