hivemind
Global team and org memory powered by Activeloop. ALWAYS check BOTH built-in memory AND Hivemind memory when recalling information.
Install
npx skills add https://github.com/activeloopai/hivemind/tree/main/harnesses/openclaw/skills
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install activeloopai-hivemind@llmmart
git clone https://github.com/activeloopai/hivemind.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole activeloopai/hivemind collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Hivemind Memory
You have TWO memory sources. ALWAYS check BOTH when the user asks you to recall, remember, or look up ANY information:
- Your built-in memory — personal per-project notes from the host agent
- Hivemind global memory — global memory shared across all sessions, users, and agents in the org, accessed via the tools below
Memory Structure
/index.md ← START HERE — table of all sessions
/summaries/
<username>/
<session-id>.md ← AI-generated wiki summary per session
/sessions/
<username>/
<user_org_ws_slug>.jsonl ← raw session data
How to Search
- First: call
hivemind_index()— table of all sessions with dates, projects, descriptions - If you need details: call
hivemind_read("/summaries/<username>/<session>.md") - If you need raw data: call
hivemind_read("/sessions/<username>/<file>.jsonl") - Keyword search: call
hivemind_search("keyword")— substring search across both summaries and sessions, returnspath:linehits
Do NOT jump straight to reading raw JSONL files. Always start with hivemind_index and summaries.
Organization Management
/hivemind_login— sign in via device flow/hivemind_capture— toggle capture on/off (off = no data sent)/hivemind_whoami— show current org and workspace/hivemind_orgs— list organizations/hivemind_switch_org <name-or-id>— switch organization/hivemind_workspaces— list workspaces/hivemind_switch_workspace <id>— switch workspace/hivemind_version— show installed version and check npm for updates/hivemind_update— shows how to install (ask the agent, or runhivemind updatein your terminal)/hivemind_autoupdate [on|off]— toggle the agent-facing update nudge (on by default: when a newer version is available, the agent is prompted to install it viaexecif you ask to update)
Skill Management (skillify)
Hivemind also mines reusable Claude skills from agent sessions and stores them in a per-org Deeplake table. Openclaw itself doesn't run sessions to mine, but you can pull skills others have already mined for the user. These run in the user's terminal (the openclaw plugin does not register them as /hivemind_* commands):
hivemind skillify— show scope/team/install + per-project statehivemind skillify pull— sync skills for the current project from the org tablehivemind skillify pull --user <email>— only that author's skillshivemind skillify pull --users a,b,c— multiple authors (CSV)hivemind skillify pull --all-users— explicit "no author filter"hivemind skillify pull --to project|global— install location (<cwd>/.claude/skills/vs~/.claude/skills/)hivemind skillify pull --dry-run— preview without touching diskhivemind skillify pull --force— overwrite local (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 tablehivemind skillify unpull— remove every skill previously installed by pullhivemind skillify unpull --user <email>— remove only that author's pullshivemind skillify unpull --not-mine— remove all pulls except your ownhivemind skillify unpull --dry-run— preview without touching diskhivemind skillify scope <me|team>— set sharing scope for new skillshivemind skillify install <project|global>— default install locationhivemind skillify team add|remove|list <name>— manage team list
If the user asks to "pull skills from X", "share skills with the team", or similar, suggest the matching hivemind skillify command. Run hivemind skillify --help for the full reference.
Limits
Do NOT delegate to subagents when reading Hivemind memory. If a tool call returns empty after 2 attempts, skip it and move on. Report what you found rather than exhaustively retrying.
Getting Started
After installing the plugin:
- Run
/hivemind_loginto authenticate - Run
/hivemind_setupto enable the memory tools in your openclaw allowlist (one-time, per install) - Start using memory — ask questions, the agent automatically captures and searches
Sharing memory
Multiple agents share memory when users are in the same Activeloop organization.
Files (hivemind)
-
hivemind-goals
-
SKILL.md 3.2 KB
--- name: hivemind-goals description: Create, track, and read team goals via Hivemind from openclaw. Use whenever the user mentions a goal, objective, target, milestone, or asks to track progress on something measurable. ALSO use when the user says "task", "todo", "work item", "remind me to", "fix X", or any actionable work item — the goal system replaced the legacy `hivemind tasks` CLI and now covers both objectives and tasks. allowed-tools: hivemind_search, hivemind_read, hivemind_index, hivemind_goal_add --- # Hivemind Goals (openclaw) OpenClaw exposes purpose-built tools for goals. Use them directly — do NOT try to write files via the host filesystem. ## Tools - `hivemind_goal_add({ text })` — create a new goal. Returns `goal_id` (UUID). Status starts at `opened`. - `hivemind_search({ query })` — search Hivemind shared memory (summaries + sessions). Use this when the user asks "what's already there" before creating a duplicate. - `hivemind_read({ path })` — read the full content of a specific Hivemind path. - `hivemind_index({})` — list everything in memory. ## Workflow when the user expresses a goal 1. (Optional) `hivemind_search` first to surface any existing related goal. 2. `hivemind_goal_add({ text: "<short description>" })` — capture the returned `goal_id`. 3. Confirm to the user with the goal_id and that the goal is team-visible. ## Capture a task for later (with resumable context) When the user **parks a tangential task** mid-session — "save this for later", "remind me to …", "don't let me forget …", "let's do X later" — store enough **context to resume cold** later, not just a one-liner. Put the full package in the `text` of `hivemind_goal_add`: ``` hivemind_goal_add({ text: "Add rate-limiting to the webhook handler\n\n" + "Start here: add a per-IP token bucket on the handler entry path\n" + "Files: src/webhook/handler.ts:120-160, src/webhook/limits.ts\n" + "Branch: feat/webhook-hardening\n" + "Run: pnpm test webhook\n" + "Why: bursty clients hammer the endpoint; defer until retry-backoff lands" }) ``` Line 1 is the label. Fill `Start here / Files / Branch / Run / Why` from the conversation; `Start here:` (the concrete first action) matters most. (OpenClaw's `hivemind_goal_add` has no provenance flag, so the row is tagged `manual` — that's fine; the context is what matters.) ## Resume a parked task (automatic context transfer) When the user says "let's work on that task / goal" or "pick up the `<X>` task": 1. `hivemind_search({ query: "<topic>" })` or `hivemind_index({})` to locate the parked goal, then `hivemind_read({ path: "memory/goal/<owner>/opened/<goal_id>.md" })` to pull the **full** context package back. 2. Read it as your working context and begin from `Start here:` using the `Files` / `Branch` / `Run` lines — continue as if the context was never lost. (Status-move tools aren't exposed on OpenClaw, so leave the goal where it is and just resume the work.) ## What NOT to do - Do NOT write files anywhere under `~/.deeplake/memory/`. OpenClaw's runtime does not route filesystem writes to the Deeplake tables — only the `hivemind_*` tools above do. - Do NOT use `hivemind_search` to *create* anything — it's read-only.
-
-
hivemind-graph
-
SKILL.md 2.9 KB
--- name: hivemind-graph description: Query the local AST-derived code graph (functions, classes, calls, imports) for structural codebase questions — what calls X, what does Y import, where is Z defined, blast radius of a change. The graph rebuilds automatically after each agent turn; use hivemind_graph_search and hivemind_graph_neighborhood tools (no manual build step). allowed-tools: hivemind_graph_search, hivemind_graph_neighborhood --- # Hivemind Code Graph (OpenClaw) A deterministic, AST-derived map of the current repository — every function, class, method, interface, type, enum, const, and module, plus the edges between them (`calls`, `imports`, `extends`, `implements`, `method_of`). The graph **builds and refreshes automatically** after each turn (gated by rate limit + git diff). You never run a build command — just call the graph tools. Set `plugins.entries.hivemind.config.tuning.HIVEMIND_GRAPH_CWD` in `~/.openclaw/openclaw.json` to the git root of the project you want indexed when the gateway's working directory is not the repo (then restart the gateway). Use the graph as a fast **INDEX** to locate the few files/symbols that matter, then use the host's read/exec tools on the real source. It is not a substitute for reading source files. ## When to use this skill Activate when the user asks a *structural / relational* question about the code: - "What calls `pushSnapshot`?" / "Who uses this function?" - "What does `deeplake-pull.ts` import?" / "What depends on X?" - "Where is `GraphSnapshot` defined?" / "Find the function that handles Y." - "What are the main subsystems / the architecture here?" - "If I change this signature, what's affected?" ## Tools - `hivemind_graph_search({ pattern })` — search symbols by substring (or multi-token AND with `+`, e.g. `auth+handler`). Returns matches with 1-hop neighbors (callers, callees, imports). **Start here.** - `hivemind_graph_neighborhood({ file })` — every symbol in a repo-relative file path plus its cross-file neighbors. ## Workflow 1. Broad structural question? `hivemind_graph_search({ pattern: "<symbol>" })`. 2. Know the file? `hivemind_graph_neighborhood({ file: "src/hooks/capture.ts" })`. 3. Need the actual code? Open the `source_file:line` from the tool output with the host read tool — don't answer from the graph alone. ## When NOT to use this skill - Reading the **body** of a symbol you already located → use the host read tool. - Code that isn't **committed/built** yet — the graph can lag uncommitted edits. - Languages outside **TypeScript, JavaScript, and Python** — fall back to grep. ## Anti-patterns - **Zero incoming callers does NOT mean dead code.** Instance-method dispatch and dynamic calls are not fully resolved. - **The graph can be stale.** Prefer live source for files edited in this session. - **`pattern` is lexical, not semantic** — try multiple keywords if the first misses.
-
-
SKILL.md 4.8 KB
--- name: hivemind description: Global team and org memory powered by Activeloop. ALWAYS check BOTH built-in memory AND Hivemind memory when recalling information. allowed-tools: hivemind_search, hivemind_read, hivemind_index --- # 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** — personal per-project notes from the host agent 2. **Hivemind global memory** — global memory shared across all sessions, users, and agents in the org, accessed via the tools below ## Memory Structure ``` /index.md ← START HERE — table of all sessions /summaries/ <username>/ <session-id>.md ← AI-generated wiki summary per session /sessions/ <username>/ <user_org_ws_slug>.jsonl ← raw session data ``` ## How to Search 1. **First**: call `hivemind_index()` — table of all sessions with dates, projects, descriptions 2. **If you need details**: call `hivemind_read("/summaries/<username>/<session>.md")` 3. **If you need raw data**: call `hivemind_read("/sessions/<username>/<file>.jsonl")` 4. **Keyword search**: call `hivemind_search("keyword")` — substring search across both summaries and sessions, returns `path:line` hits Do NOT jump straight to reading raw JSONL files. Always start with `hivemind_index` and summaries. ## Organization Management - `/hivemind_login` — sign in via device flow - `/hivemind_capture` — toggle capture on/off (off = no data sent) - `/hivemind_whoami` — show current org and workspace - `/hivemind_orgs` — list organizations - `/hivemind_switch_org <name-or-id>` — switch organization - `/hivemind_workspaces` — list workspaces - `/hivemind_switch_workspace <id>` — switch workspace - `/hivemind_version` — show installed version and check npm for updates - `/hivemind_update` — shows how to install (ask the agent, or run `hivemind update` in your terminal) - `/hivemind_autoupdate [on|off]` — toggle the agent-facing update nudge (on by default: when a newer version is available, the agent is prompted to install it via `exec` if you ask to update) ## Skill Management (skillify) Hivemind also mines reusable Claude skills from agent sessions and stores them in a per-org Deeplake table. Openclaw itself doesn't run sessions to mine, but you can pull skills others have already mined for the user. These run in the user's terminal (the openclaw plugin does not register them as `/hivemind_*` commands): - `hivemind skillify` — show scope/team/install + per-project state - `hivemind skillify pull` — sync skills for the current project from the org table - `hivemind skillify pull --user <email>` — only that author's skills - `hivemind skillify pull --users a,b,c` — multiple authors (CSV) - `hivemind skillify pull --all-users` — explicit "no author filter" - `hivemind skillify pull --to project|global` — install location (`<cwd>/.claude/skills/` vs `~/.claude/skills/`) - `hivemind skillify pull --dry-run` — preview without touching disk - `hivemind skillify pull --force` — overwrite local (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>` — set sharing scope for new skills - `hivemind skillify install <project|global>` — default install location - `hivemind skillify team add|remove|list <name>` — manage team list If the user asks to "pull skills from X", "share skills with the team", or similar, suggest the matching `hivemind skillify` command. Run `hivemind skillify --help` for the full reference. ## Limits Do NOT delegate to subagents when reading Hivemind memory. If a tool call 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. Run `/hivemind_setup` to enable the memory tools in your openclaw allowlist (one-time, per install) 3. Start using memory — ask questions, the agent automatically captures and searches ## Sharing memory Multiple agents share memory when users are in the same Activeloop organization.
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.