Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
PluginCẩn thậnQuy trình & bộ nhớ agentCần cài đặt chút

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

1.6k sao112Giấy phép: Apache-2.0Cập nhật 21 ngày trước0 lượt mở

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

Cẩn thậ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.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:

MetricBaselineHivemindImprovement
Cost / 100 QA$8.94$6.6525% cheaper
Tokens / question1,7001,0081.7× fewer
Turns / question8.96.231% 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:

PlatformIntegrationAuto-captureAuto-recall
Claude CodeMarketplace plugin✅✅
OpenClawNative extension✅✅
CodexHooks (hooks.json)✅✅
CursorHooks (hooks.json 1.7+)✅✅
Hermes AgentShell hooks (config.yaml) + skill + MCP server✅✅
piExtension 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

CommandDescription
/hivemind_loginSign in via device flow
/hivemind_captureToggle capture on/off
/hivemind_whoamiShow current org and workspace
/hivemind_orgsList organizations
/hivemind_switch_org <name>Switch organization
/hivemind_workspacesList workspaces
/hivemind_switch_workspace <id>Switch workspace
/hivemind_updateCheck for plugin updates

Auto-recall and auto-capture are enabled by default. Data is stored

Xem mã nguồn trên GitHub