SKILL·5BFE60

hivemind-memory

activeloopai
更新于 8 days ago
1,547
97
1,547
在 GitHub 上查看
设计design

关于

This skill provides global organizational memory using Activeloop's Deep Lake, enabling shared knowledge across all Claude sessions and users. Developers should always query both this Hivemind memory and local project memory when recalling information. It structures data through session summaries and raw logs, accessible via a central index file for efficient searching.

快速安装

Claude Code

推荐
主要方式
npx skills add activeloopai/hivemind -a claude-code
插件命令备选方式
/plugin add https://github.com/activeloopai/hivemind
Git 克隆备选方式
git clone https://github.com/activeloopai/hivemind.git ~/.claude/skills/hivemind-memory

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

Hivemind Memory

You have TWO memory sources. ALWAYS check BOTH when the user asks you to recall, remember, or look up ANY information:

  1. Your built-in memory (~/.claude/) — personal per-project notes
  2. Hivemind global memory (~/.deeplake/memory/) — global memory shared across all sessions, users, and agents in the org

Memory Structure

~/.deeplake/memory/
├── index.md                          ← START HERE — table of all sessions
├── summaries/
│   ├── session-abc.md                ← AI-generated wiki summary
│   └── session-xyz.md
└── sessions/
    └── username/
        ├── user_org_ws_slug1.jsonl   ← raw session data
        └── user_org_ws_slug2.jsonl

How to Search

  1. First: Read ~/.deeplake/memory/index.md — quick scan of all sessions with dates, projects, descriptions
  2. If you need details: Read the specific summary at ~/.deeplake/memory/summaries/<session>.md
  3. If you need raw data: Read the session JSONL at ~/.deeplake/memory/sessions/<user>/<file>.jsonl
  4. Keyword search: Grep pattern="keyword" path="~/.deeplake/memory"

Do NOT jump straight to reading raw JSONL files. Always start with index.md and summaries.

Organization Management

The auth command path is injected at session start. Use the exact path from the session context. Each argument is separate — do NOT quote subcommands together:

  • node "<AUTH_CMD>" login — SSO login
  • node "<AUTH_CMD>" whoami — show current user/org
  • node "<AUTH_CMD>" org list — list organizations
  • node "<AUTH_CMD>" org switch <name-or-id> — switch organization
  • node "<AUTH_CMD>" workspaces — list workspaces
  • node "<AUTH_CMD>" workspace <id> — switch workspace
  • node "<AUTH_CMD>" invite <email> <ADMIN|WRITE|READ> — invite member (ALWAYS ask user which role first)
  • node "<AUTH_CMD>" members — list members
  • node "<AUTH_CMD>" remove <user-id> — remove member
  • node "<AUTH_CMD>" --help — show all commands

Skill Management (skillify)

Hivemind can mine reusable skills from agent session logs and share them across your team. Each argument is separate — do NOT quote subcommands together.

  • hivemind skillify — show current scope, team, install location, per-project state
  • hivemind skillify pull — sync project skills from the org table to local FS
  • hivemind skillify pull --user <email> — only skills authored by that user
  • hivemind skillify pull --users <a,b,c> — multiple authors (CSV)
  • hivemind skillify pull --all-users — explicit "no author filter" (default)
  • hivemind skillify pull --to <project|global> — install location (project=cwd/.claude/skills, global=~/.claude/skills)
  • hivemind skillify pull --dry-run — preview without touching disk
  • hivemind skillify pull --force — overwrite local files even if up-to-date (creates .bak)
  • hivemind skillify pull <skill-name> — pull only that one skill (combines with --user)
  • hivemind skillify push <skill-name> — upload a local skill to the org table (inverse of pull; re-push lands a new version)
  • hivemind skillify push --from <project|global> — which local skills dir to read (default: project)
  • hivemind skillify push --dry-run — preview without writing to the org table
  • hivemind skillify unpull — remove every skill previously installed by pull
  • hivemind skillify unpull --user <email> — remove only that author's pulls
  • hivemind skillify unpull --not-mine — remove all pulls except your own
  • hivemind skillify unpull --dry-run — preview without touching disk
  • hivemind skillify scope <me|team> — sharing scope for newly mined skills
  • hivemind skillify install <project|global> — default install location for new skills
  • hivemind skillify promote <skill-name> — move a project skill to the global location
  • hivemind skillify team add|remove|list <username> — manage team member list
  • hivemind skillify mine-local — one-shot: mine skills from local sessions, no auth needed

Embeddings (semantic memory search)

Opt-in, persisted in ~/.deeplake/config.json.

  • hivemind embeddings install — download deps (~600MB), symlink agents, set enabled:true
  • hivemind embeddings enable — flip enabled:true (run install first if deps missing)
  • hivemind embeddings disable — flip enabled:false + SIGTERM daemon (deps stay on disk)
  • hivemind embeddings uninstall [--prune] — remove agent symlinks + disable; --prune wipes deps too
  • hivemind embeddings status — show config + deps + per-agent link state

Important: Bash Only

Only use bash commands (cat, ls, grep, echo, jq, head, tail, sed, awk, etc.) to interact with ~/.deeplake/memory/. Do NOT use python, python3, node, curl, or other interpreters — they are not available in the memory filesystem. If a task seems to require Python, rewrite it using bash tools (e.g., cat file.json | jq 'keys | length').

Limits

If a file returns empty after 2 attempts, skip it and move on. Report what you found rather than exhaustively retrying.

Getting Started

After installing the plugin:

  1. Run /hivemind:login to authenticate
  2. Start using memory — ask questions, Claude automatically captures and searches

Configuration

  • HIVEMIND_DEBUG=1 claude — enable verbose logging to ~/.deeplake/hook-debug.log
  • HIVEMIND_CAPTURE=false claude — disable session capture

GitHub 仓库

activeloopai/hivemind
路径: harnesses/claude-code/skills/hivemind-memory
0
aiai-agentsai-memoryanthropicartificial-intelligenceclaude
FAQ

常见问题

什么是 hivemind-memory Skill?

hivemind-memory 是一个 Claude Skill,作者为 activeloopai。Skill 将 Claude 按需加载的说明和资源打包,让 Claude 无需额外提示即可执行与 hivemind-memory 相关的任务。

如何安装 hivemind-memory?

使用本页的安装命令:将 hivemind-memory 作为插件添加到 Claude Code,或将其仓库克隆到 skills 目录,然后重启 Claude 以加载该 Skill。

hivemind-memory 属于哪个分类?

hivemind-memory 属于设计分类。

hivemind-memory 可以免费使用吗?

可以。hivemind-memory 已收录在 AIMCP,可免费安装。

相关推荐技能

executing-plans
设计

该Skill用于当开发者提供完整实施计划时,以受控批次方式执行代码实现。它会先审阅计划并提出疑问,然后分批次执行任务(默认每批3个任务),并在批次间暂停等待审查。关键特性包括分批次执行、内置检查点和架构师审查机制,确保复杂系统实现的可控性。

查看技能
requesting-code-review
设计

该Skill可在完成任务、实现主要功能或合并代码前自动调度代码审查子代理,确保实现符合需求和计划。它支持通过指定git SHA范围进行精准的代码变更审查,帮助开发者在关键节点及时发现潜在问题。核心原则是"早审查、勤审查",适用于开发流程的各个关键阶段。

查看技能
connect-mcp-server
设计

这个Skill指导开发者如何将MCP服务器连接到Claude Code,支持HTTP、stdio和SSE三种传输协议。它涵盖了从安装配置到认证安全的完整流程,适用于集成GitHub、Notion、数据库等外部服务。当开发者需要添加集成、配置外部工具或提及MCP相关功能时,这个Skill能提供实用的操作指南。

查看技能
web-cli-teleport
设计

该Skill帮助开发者根据任务特性选择Claude Code的Web或CLI界面,并指导如何在两种环境间无缝迁移会话。它能分析任务复杂度、迭代需求等要素,推荐最优工作界面和工作流。关键特性包括会话状态管理、环境切换指导和上下文优化建议。

查看技能