@deeplake/hivemind 0.7.46 → 0.7.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.
Files changed (38) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/README.md +64 -0
  4. package/bundle/cli.js +17230 -4177
  5. package/codex/bundle/capture.js +185 -0
  6. package/codex/bundle/commands/auth-login.js +185 -0
  7. package/codex/bundle/graph-pull-worker.js +185 -0
  8. package/codex/bundle/pre-tool-use.js +185 -0
  9. package/codex/bundle/session-start-setup.js +185 -0
  10. package/codex/bundle/session-start.js +185 -0
  11. package/codex/bundle/shell/deeplake-shell.js +451 -3
  12. package/codex/bundle/skillify-worker.js +64 -0
  13. package/codex/bundle/stop.js +185 -0
  14. package/codex/skills/hivemind-goals/SKILL.md +157 -0
  15. package/cursor/bundle/capture.js +185 -0
  16. package/cursor/bundle/commands/auth-login.js +185 -0
  17. package/cursor/bundle/graph-pull-worker.js +185 -0
  18. package/cursor/bundle/pre-tool-use.js +185 -0
  19. package/cursor/bundle/session-end.js +16 -0
  20. package/cursor/bundle/session-start.js +596 -6
  21. package/cursor/bundle/shell/deeplake-shell.js +451 -3
  22. package/cursor/bundle/skillify-worker.js +64 -0
  23. package/hermes/bundle/capture.js +185 -0
  24. package/hermes/bundle/commands/auth-login.js +185 -0
  25. package/hermes/bundle/graph-pull-worker.js +185 -0
  26. package/hermes/bundle/pre-tool-use.js +185 -0
  27. package/hermes/bundle/session-end.js +16 -0
  28. package/hermes/bundle/session-start.js +596 -6
  29. package/hermes/bundle/shell/deeplake-shell.js +451 -3
  30. package/hermes/bundle/skillify-worker.js +64 -0
  31. package/mcp/bundle/server.js +185 -0
  32. package/openclaw/dist/chunks/{config-O5PDJQ7Y.js → config-FH6JYSJW.js} +16 -0
  33. package/openclaw/dist/index.js +262 -2
  34. package/openclaw/dist/skillify-worker.js +64 -0
  35. package/openclaw/openclaw.plugin.json +4 -2
  36. package/openclaw/package.json +1 -1
  37. package/openclaw/skills/hivemind-goals/SKILL.md +30 -0
  38. package/package.json +2 -1
@@ -6,18 +6,18 @@
6
6
  },
7
7
  "metadata": {
8
8
  "description": "Cloud-backed persistent shared memory for AI agents powered by Deeplake",
9
- "version": "0.7.46"
9
+ "version": "0.7.47"
10
10
  },
11
11
  "plugins": [
12
12
  {
13
13
  "name": "hivemind",
14
14
  "description": "Persistent shared memory powered by Deeplake — captures all session activity and provides cross-session, cross-agent memory search",
15
- "version": "0.7.46",
15
+ "version": "0.7.47",
16
16
  "source": {
17
17
  "source": "git-subdir",
18
18
  "url": "https://github.com/activeloopai/hivemind.git",
19
19
  "path": "claude-code",
20
- "sha": "3ae71959dab7034fc6e8eac45d10e8ed1d4c13e5"
20
+ "sha": "7a1da7ab040d42d7164f29ee0bad353bee2769aa"
21
21
  },
22
22
  "homepage": "https://github.com/activeloopai/hivemind"
23
23
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hivemind",
3
3
  "description": "Cloud-backed persistent memory powered by Deeplake — read, write, and share memory across Claude Code sessions and agents",
4
- "version": "0.7.46",
4
+ "version": "0.7.47",
5
5
  "author": {
6
6
  "name": "Activeloop",
7
7
  "url": "https://deeplake.ai"
package/README.md CHANGED
@@ -285,6 +285,70 @@ hivemind skillify unpull # remove pulled skills
285
285
 
286
286
  Triggers, generation flow, full `pull` / `unpull` semantics, gate-CLI table per agent, env vars, logs: **[docs/SKILLIFY.md](docs/SKILLIFY.md)**.
287
287
 
288
+ ## Rules + tasks (cross-agent KPIs)
289
+
290
+ Hivemind **shares team rules and tasks across every agent in the org**, injected at SessionStart so every claude-code / cursor / hermes session starts knowing them. Tasks come with LLM-generated KPIs; the agent records progress via a CLI; `tasks report` shows current/target.
291
+
292
+ ```bash
293
+ # Rules — team-wide principles ("never DROP TABLE on prod")
294
+ hivemind rules add "no DROP TABLE on prod creds"
295
+ hivemind rules list # latest 10 active
296
+ hivemind rules edit <rule-id> "<new text>" # bumps version
297
+ hivemind rules done <rule-id> # mark closed
298
+
299
+ # Tasks — personal or team work items, with agent-generated KPIs
300
+ hivemind tasks add "ship the search bar" [--scope me|team] [--assign <user>]
301
+ hivemind tasks list [--mine|--team|--all] [--status active|done|all]
302
+ hivemind tasks edit <task-id> "<new text>"
303
+ hivemind tasks done <task-id>
304
+ hivemind tasks assign <task-id> <user>
305
+ hivemind tasks progress <task-id> <kpi-id> --value N [--note "..."]
306
+ hivemind tasks report [<task-id>] # SUM events per KPI
307
+
308
+ # Cross-agent diagnostic / pi/openclaw fallback
309
+ hivemind context # print the injection block on demand
310
+ ```
311
+
312
+ **What's injected at SessionStart** (claude-code, cursor, hermes — codex
313
+ deliberately excluded to keep its user-visible TUI clean; pi/openclaw
314
+ fall back to `hivemind context`):
315
+
316
+ ```text
317
+ === HIVEMIND RULES (N active) ===
318
+ - <rule_id>: <text>
319
+ (X more — run 'hivemind rules list' to see all)
320
+
321
+ === HIVEMIND TASKS (N active) ===
322
+ [team] <task_id>: <text> ★YOU | PRs merged: 3/5 count
323
+ [me] <task_id>: <text> | Lines reviewed: 75/200 lines
324
+ (X more — run 'hivemind tasks list' to see all)
325
+
326
+ === HIVEMIND HOW-TO ===
327
+ - Rules above are team principles. Treat any action that would violate one as a critical error and surface it to the user before proceeding.
328
+ - Tasks above are your current work. Use 'hivemind tasks progress <task-id> <kpi-id> --value N' to record progress on a KPI.
329
+ - Run 'hivemind rules list' / 'hivemind tasks list' for the full inventories beyond what's shown here.
330
+ ```
331
+
332
+ **Auto-extract** — `gh pr merge` from inside an agent's Bash tool
333
+ appends an event to `hivemind_task_events` automatically (failed
334
+ merges, `--auto` enablement, interrupted commands all skipped). The
335
+ event is "orphan" in v1 (no task binding yet); v1.1 ships
336
+ `hivemind events attribute` for retroactive binding.
337
+
338
+ **KPI generation** — `hivemind tasks add` calls Claude Sonnet to
339
+ produce 1-3 KPIs from the task text. Failure modes (no API key,
340
+ timeout, parse error) degrade to empty kpis; the task still INSERTs
341
+ and the user can record progress manually.
342
+
343
+ **Env vars:**
344
+ - `HIVEMIND_RULES_TABLE`, `HIVEMIND_TASKS_TABLE`, `HIVEMIND_TASK_EVENTS_TABLE` — table names (default `hivemind_rules` / `hivemind_tasks` / `hivemind_task_events`).
345
+ - `HIVEMIND_KPI_MODEL` — model id for KPI generation (default `claude-sonnet-4-6`).
346
+ - `HIVEMIND_KPI_LLM=disable` — opt out of LLM KPI gen.
347
+ - `ANTHROPIC_API_KEY` — required for KPI gen; absence is a silent no-op (kpis = `[]`).
348
+ - `HIVEMIND_CAPTURE=false` — full read-only mode. Skips placeholder + ensure DDL; renderer still injects.
349
+
350
+ Full data model, identity contract, per-agent injection status, auto-extract pipeline, KPI LLM details, and known v1 limitations: **[docs/RULES_TASKS_KPIS.md](docs/RULES_TASKS_KPIS.md)**.
351
+
288
352
  ## Architecture
289
353
 
290
354
  Per-agent integration mechanisms (marketplace plugin, hooks, skills, native extension) and monorepo structure: **[docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)**.