Shared, continuously learning memory for every agent, model, IDE, and harness.
Memory Hive is a local, file-backed memory layer that works with any AI agent, model, IDE, or harness. It gives every agent a private silo and a shared hive, so tasks compound instead of starting from scratch.
No daemon. No account. No vendor lock-in.
curl -fsSL https://memoryhive.neural-forge.io/install.sh | shThe installer creates ~/.memory-hive, sets up the shared hive, and wires lightweight boot blocks into the agent platforms it finds on your machine.
Memory Hive v3 is built around three verbs:
memory-hive do "<task>" # start work: optimize, recall, route skills, plan
memory-hive done --agent <name> # finish work: log + optional learning
memory-hive status # see if the hive is healthy (fast)Everything else still exists under the hood, but you rarely need it.
Memory Hive is intentionally agnostic:
- Any model — the CLI returns plain text and JSON, so any LLM can call it.
- Any IDE — boot blocks are one-line hooks that call
memory-hive. The full contract lives in the CLI, not in your editor config. - Any harness — skills are markdown files, memory is markdown, the index is SQLite, and the transport is the filesystem.
- Any OS — POSIX shell + Python 3. No compiled extensions.
Works with Claude Code, Cursor, Codex, Windsurf, Devin, Hermes, aider, Continue, Goose, and anything else that can read files or run a shell command.
For large tasks, run a 25-agent cohort:
memory-hive cohort "<task>" --agent <name>It emits a ready-to-run plan with 25 specialist roles (planner, code, review, research, docs, QA, security, integration, release, etc.). The host IDE fans them out with its own subagent primitives — Devin run_subagent, Claude Tasks, Cursor Composer, and so on — so it stays portable.
~/.memory-hive/
├── hive/
│ ├── agents/<name>/ # private silos (log, memory, context)
│ ├── learnings/raw/ # raw per-agent lessons
│ ├── learnings/distilled/# promoted shared lessons
│ ├── knowledge/ # shared facts and human context
│ └── .hivecode/ # auto-built SQLite index
├── memory-hive # the CLI
├── memory_hive_orchestrate.py
├── memory_hive_recall.py
└── templates/skills/ # IDE-agnostic skill templates
The loop is simple:
- Read — agents hydrate from the shared hive + their private silo.
- Work —
memory-hive dooptimizes the prompt, runs HyperRecall, matches skills, and builds a plan. - Write —
memory-hive donelogs the work and writes reusable learnings. - Curate — the
maincurator promotes verified lessons into shared knowledge.
# 1. Install
curl -fsSL https://memoryhive.neural-forge.io/install.sh | sh
# 2. Add an agent
memory-hive add coder --role coder
# 3. Start work
memory-hive do "refactor the auth module" --agent coder
# 4. Run a 25-agent cohort
memory-hive cohort "ship auth v2" --agent coder
# 5. Finish work
memory-hive done --agent coder --log "refactored auth" --learn "Always hash passwords with Argon2id."- No bloated boot blocks — v3 moves the contract out of your IDE settings and into the CLI. One line per IDE, one source of truth.
- Fast status —
memory-hive statusis instant; runmemory-hive status --fullfor a deeper check. - Structured prompt optimization —
memory-hive dopreserves GOAL, CONSTRAINTS, SUCCESS CRITERIA, OUTPUT, and code examples instead of stripping them. - Cohort-first —
/cohortgives you a full implementation team without tying you to a single platform's swarm feature.
MIT — see LICENSE.