@deeplake/hivemind 0.6.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,56 @@
1
+ {
2
+ "id": "hivemind",
3
+ "name": "Hivemind",
4
+ "description": "Cloud-backed shared memory powered by Deeplake — auto-capture and auto-recall across sessions, agents, and teammates",
5
+ "skills": [
6
+ "./skills"
7
+ ],
8
+ "contracts": {
9
+ "tools": [
10
+ "hivemind_search",
11
+ "hivemind_read",
12
+ "hivemind_index"
13
+ ],
14
+ "commands": [
15
+ "hivemind_login",
16
+ "hivemind_capture",
17
+ "hivemind_whoami",
18
+ "hivemind_orgs",
19
+ "hivemind_switch_org",
20
+ "hivemind_workspaces",
21
+ "hivemind_switch_workspace",
22
+ "hivemind_setup",
23
+ "hivemind_version",
24
+ "hivemind_update",
25
+ "hivemind_autoupdate"
26
+ ],
27
+ "memoryCorpusSupplements": true
28
+ },
29
+ "uiHints": {
30
+ "autoCapture": {
31
+ "label": "Auto-Capture"
32
+ },
33
+ "autoRecall": {
34
+ "label": "Auto-Recall"
35
+ },
36
+ "autoUpdate": {
37
+ "label": "Auto-Update"
38
+ }
39
+ },
40
+ "configSchema": {
41
+ "type": "object",
42
+ "additionalProperties": false,
43
+ "properties": {
44
+ "autoCapture": {
45
+ "type": "boolean"
46
+ },
47
+ "autoRecall": {
48
+ "type": "boolean"
49
+ },
50
+ "autoUpdate": {
51
+ "type": "boolean"
52
+ }
53
+ }
54
+ },
55
+ "version": "0.6.47"
56
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@deeplake/hivemind",
3
+ "version": "0.6.47",
4
+ "type": "module",
5
+ "description": "Hivemind — cloud-backed persistent shared memory for AI agents, powered by DeepLake",
6
+ "license": "Apache-2.0",
7
+ "openclaw": {
8
+ "extensions": [
9
+ "./dist/index.js"
10
+ ],
11
+ "install": {
12
+ "npmSpec": "@deeplake/hivemind",
13
+ "minHostVersion": ">=2026.3.22"
14
+ },
15
+ "compat": {
16
+ "pluginApi": ">=1.0.0"
17
+ },
18
+ "build": {
19
+ "openclawVersion": "2026.3.22"
20
+ }
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "openclaw.plugin.json"
25
+ ],
26
+ "scripts": {
27
+ "build": "node esbuild.config.mjs"
28
+ }
29
+ }
@@ -0,0 +1,61 @@
1
+ ---
2
+ name: hivemind
3
+ description: Global team and org memory powered by Activeloop. ALWAYS check BOTH built-in memory AND Hivemind memory when recalling information.
4
+ allowed-tools: hivemind_search, hivemind_read, hivemind_index
5
+ ---
6
+
7
+ # Hivemind Memory
8
+
9
+ You have TWO memory sources. ALWAYS check BOTH when the user asks you to recall, remember, or look up ANY information:
10
+
11
+ 1. **Your built-in memory** — personal per-project notes from the host agent
12
+ 2. **Hivemind global memory** — global memory shared across all sessions, users, and agents in the org, accessed via the tools below
13
+
14
+ ## Memory Structure
15
+
16
+ ```
17
+ /index.md ← START HERE — table of all sessions
18
+ /summaries/
19
+ <username>/
20
+ <session-id>.md ← AI-generated wiki summary per session
21
+ /sessions/
22
+ <username>/
23
+ <user_org_ws_slug>.jsonl ← raw session data
24
+ ```
25
+
26
+ ## How to Search
27
+
28
+ 1. **First**: call `hivemind_index()` — table of all sessions with dates, projects, descriptions
29
+ 2. **If you need details**: call `hivemind_read("/summaries/<username>/<session>.md")`
30
+ 3. **If you need raw data**: call `hivemind_read("/sessions/<username>/<file>.jsonl")`
31
+ 4. **Keyword search**: call `hivemind_search("keyword")` — substring search across both summaries and sessions, returns `path:line` hits
32
+
33
+ Do NOT jump straight to reading raw JSONL files. Always start with `hivemind_index` and summaries.
34
+
35
+ ## Organization Management
36
+
37
+ - `/hivemind_login` — sign in via device flow
38
+ - `/hivemind_capture` — toggle capture on/off (off = no data sent)
39
+ - `/hivemind_whoami` — show current org and workspace
40
+ - `/hivemind_orgs` — list organizations
41
+ - `/hivemind_switch_org <name-or-id>` — switch organization
42
+ - `/hivemind_workspaces` — list workspaces
43
+ - `/hivemind_switch_workspace <id>` — switch workspace
44
+ - `/hivemind_version` — show installed version and check ClawHub for updates
45
+ - `/hivemind_update` — shows how to install (ask the agent, or run `openclaw plugins update hivemind` in your terminal)
46
+ - `/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)
47
+
48
+ ## Limits
49
+
50
+ 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.
51
+
52
+ ## Getting Started
53
+
54
+ After installing the plugin:
55
+ 1. Run `/hivemind_login` to authenticate
56
+ 2. Run `/hivemind_setup` to enable the memory tools in your openclaw allowlist (one-time, per install)
57
+ 3. Start using memory — ask questions, the agent automatically captures and searches
58
+
59
+ ## Sharing memory
60
+
61
+ Multiple agents share memory when users are in the same Activeloop organization.
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "@deeplake/hivemind",
3
+ "version": "0.6.47",
4
+ "description": "Cloud-backed persistent shared memory for AI agents powered by Deeplake",
5
+ "type": "module",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "bin": {
10
+ "hivemind": "bundle/cli.js",
11
+ "deeplake-shell": "bundle/deeplake-shell.js"
12
+ },
13
+ "files": [
14
+ "bundle",
15
+ "codex/bundle",
16
+ "codex/skills",
17
+ "cursor/bundle",
18
+ "mcp/bundle",
19
+ "openclaw/dist",
20
+ "openclaw/skills",
21
+ "openclaw/openclaw.plugin.json",
22
+ "openclaw/package.json",
23
+ ".claude-plugin",
24
+ "README.md",
25
+ "LICENSE"
26
+ ],
27
+ "scripts": {
28
+ "build": "tsc && node esbuild.config.mjs",
29
+ "bundle": "node esbuild.config.mjs",
30
+ "dev": "tsc --watch",
31
+ "shell": "tsx src/shell/deeplake-shell.ts",
32
+ "cli": "tsx src/cli/index.ts",
33
+ "test": "vitest run",
34
+ "typecheck": "tsc --noEmit",
35
+ "dup": "jscpd src",
36
+ "audit:openclaw": "node scripts/audit-openclaw-bundle.mjs",
37
+ "ci": "npm run typecheck && npm run dup && npm test",
38
+ "prepare": "husky",
39
+ "prepublishOnly": "npm run build"
40
+ },
41
+ "lint-staged": {
42
+ "*.ts": [
43
+ "bash -c 'tsc --noEmit --skipLibCheck'"
44
+ ],
45
+ "*.md": []
46
+ },
47
+ "dependencies": {
48
+ "@modelcontextprotocol/sdk": "^1.29.0",
49
+ "deeplake": "^0.3.30",
50
+ "just-bash": "^2.14.0",
51
+ "yargs-parser": "^22.0.0",
52
+ "zod": "^4.3.6"
53
+ },
54
+ "devDependencies": {
55
+ "@types/node": "^25.0.0",
56
+ "@types/yargs-parser": "^21.0.3",
57
+ "@vitest/coverage-v8": "^4.1.3",
58
+ "esbuild": "^0.28.0",
59
+ "husky": "^9.1.7",
60
+ "jscpd": "^4.0.9",
61
+ "lint-staged": "^16.4.0",
62
+ "tsx": "^4.7.0",
63
+ "typescript": "^6.0.0",
64
+ "vitest": "^4.0.0"
65
+ },
66
+ "engines": {
67
+ "node": ">=22.0.0"
68
+ }
69
+ }