Hivemind turns your traces into reusable skills across agents
> /plugin marketplace add activeloopai/hivemind> /plugin install hivemind@hivemind
Repo: activeloopai/hivemind
What's inside
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.
SKILL.md files, available to every agent on your team~/.deeplake/memory/ through a virtual filesystem backed by SQLOn 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.
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).
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 plugins install clawhub:hivemind
Then type /hivemind_login in chat, click the auth link, and sign in.
| 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 in the same sessions table as Claude Code and Codex.
memory-coreHivemind 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.
~/.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 <id> 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.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.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.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.
The unified installer wires six lifecycle events in ~/.cursor/hooks.json: sessionStart, beforeSubmitPrompt, postToolUse, afterAgentResponse, stop, sessionEnd. Hooks fork a Node bundle at ~/.cursor/hivemind/bundle/ per event. Restart Cursor after install to load.
hivemind cursor install
Auto-capture is enabled the same way as Claude Code / Codex / OpenClaw.
Wires shell hooks into ~/.hermes/config.yaml (pre_llm_call / post_tool_call / post_llm_call / on_session_end) for auto-capture, drops the bundle at ~/.hermes/hivemind/bundle/, registers the shared MCP server (~/.hivemind/mcp/server.js) under mcp_servers.hivemind, and installs agentskills.io-compatible skills at ~/.hermes/skills/hivemind-memory/ (recall), hivemind-goals/ and hivemind-graph/. Re-running install (or hivemind update) syncs these directories: files a previous version wrote that the current one no longer ships are removed; anything else under ~/.hermes/skills/ is left untouched.
hivemind hermes install
FAQ
hivemind is a Claude Code plugin with 4 hand-picked skills for productivity work, indexed on Flowy. Install it with the command on its page. It includes hivemind-goals, hivemind-graph, hivemind-memory. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it