# Hivemind

> One shared, cloud-backed brain for a team's coding agents

- Category: Agents & Automation / Agent Memory
- Language: TypeScript
- Licence: Apache-2.0
- Repository: https://github.com/activeloopai/hivemind
- Website: https://deeplake.ai/hivemind
- Canonical page: https://ai-tldr.dev/tools/hivemind/
- Updated: 2026-09-28

## In short

Hivemind is Activeloop's shared memory layer for coding agents. It sits in the Agent Memory category of the Agents & Automation tools and is open-source, written in TypeScript and licensed Apache-2.0. To get started: install for every detected assistant.

## Overview

Hivemind is Activeloop's shared memory layer for coding agents. It hooks into Claude Code, OpenClaw, Codex, Cursor, Hermes Agent, pi and (in alpha) Claude Cowork, and captures every session's prompts, tool calls and responses as structured traces stored in Deeplake, Activeloop's database. Because the traces live in a shared workspace rather than on one laptop, what one engineer's agent works out becomes searchable recall for every other agent on the team, across sessions, machines and assistants.

Memory is only half of it. The project describes its loop as capture, codify, propagate: a background worker fires at the end of a session, mines recent traces in scope, asks a model whether the activity contains something worth keeping, and writes it out as a reusable `SKILL.md` under the project's `.claude/skills/` folder. Teammates can pull those skills locally with `hivemind skillify pull`. Alongside skills, Hivemind writes an AI-generated wiki summary of each session, shares team rules that are injected at session start, and tracks goals through a virtual filesystem mounted at `~/.deeplake/memory/`, where file operations are intercepted and backed by SQL.

Hivemind also builds a live graph of the codebase from the same traces — files, symbols, imports and the edges agents actually traverse — so recall can walk the graph rather than match plain text, and it can generate per-file and per-subsystem documentation from that graph and keep it fresh on each commit. Summaries and docs are written by shelling out to the host agent's own CLI (`claude -p`, `codex exec` and so on), so no separate API key is needed. Search is lexical by default; an optional local embedding daemon (nomic-embed-text-v1.5, about 600 MB) adds hybrid semantic retrieval. The data is readable by everyone in the Deeplake workspace by design, with per-directory opt-outs and a bring-your-own-cloud option for GCS and Azure storage.

## What it does

- Auto-capture of prompts, tool calls, responses and subagent activity from seven coding assistants into a shared Deeplake workspace
- Skillify: a background worker that mines recurring patterns from recent sessions into `SKILL.md` files teammates can pull
- Recall through natural-language search over traces, summaries and skills, with optional hybrid lexical + semantic retrieval
- A codebase graph built from real agent traversals, plus generated per-file and wiki docs kept in sync on each commit
- Team rules injected at session start and goals tracked as files in the `~/.deeplake/memory/` virtual filesystem
- Per-directory `.hivemind` files that route a repo to another org or workspace, or switch capture off entirely

## Getting started

The installer detects every supported assistant on the machine, wires up its hooks, and opens a browser to sign in to Deeplake. The npm route needs Node 22 or newer. Restart your assistants after installing.

1. Install for every detected assistant

   On macOS or Linux run the install script. On Windows use `irm https://deeplake.ai/hivemind.ps1 | iex` in PowerShell, or install from npm on any platform.

```bash
curl -fsSL https://deeplake.ai/hivemind.sh | sh

# or, via npm
npm i -g @deeplake/hivemind && hivemind install
```

2. Install headless or for one assistant only

   In CI, pass an API token from your deeplake.ai account settings instead of the browser flow. Each assistant also has its own install subcommand.

```bash
HIVEMIND_TOKEN=<your-token> hivemind install

hivemind install --only claude
hivemind codex install
hivemind cursor install
```

3. Check what is wired up

```bash
hivemind status
```

4. Mine and share skills

   Skill mining runs automatically at the end of sessions; these commands show its state, set who counts as in scope, and install teammates' skills locally.

```bash
hivemind skillify
hivemind skillify scope team
hivemind skillify pull
```

5. Add team rules and turn on semantic search

   Rules are injected at the start of every Claude Code, Cursor and Hermes session. Embeddings are off by default because of their download size; without them search falls back to lexical matching.

```bash
hivemind rules add "no DROP TABLE on prod creds"
hivemind embeddings install
```

## When to use it

- Let a whole engineering team's agents reuse a migration or debugging pattern one person's agent worked out, instead of re-deriving it every session
- Give Claude Code, Codex and Cursor users on the same team one searchable history of what has been tried and decided
- Turn recurring agent workflows into reviewed, shareable `SKILL.md` files without writing them by hand
- Keep agent-readable docs and a code graph for a repository current as commits land

## Version history

- 2026-09-28 v0.7.160: Setting `"collect": false` in a `.hivemind` file now makes Hivemind fully inactive in that directory tree.
