Neurohive

io.github.AdelElo13由 GitHub 账号 AdelElo13 发布v1.0.2更新于 Oct 24, 2026

Multi-agent memory intelligence with expertise tracking and conflict detection

已验证STDIO仅桌面知识与记忆AI 与机器学习

概览

AI 生成的概览

为 AI 智能体团队提供共享记忆层,支持来源标注、专长追踪与跨智能体冲突检测。

可以做什么
Neurohive 在 neuromcp 记忆服务器之上封装了一层团队共享智能。任何智能体存储的记忆都会对全团队可见,搜索结果会标注由哪个智能体存储、多久之前存储以及被检索的次数。它新增了团队状态、专长查询以及列出或解决智能体之间矛盾的工具,并提供新智能体启动上下文和知识缺口与活动看板等资源。
适用场景
当两个或更多智能体在同一项目上协作、需要共用知识库,从而避免重复发现同一事实或互相矛盾时,值得添加。单个智能体使用它相比底层记忆服务器收益有限。适合同一台机器上的并行会话,或指向共享数据库路径的多个智能体。
运行要求
需要 Node.js 18 或更高版本;底层 neuromcp 包会作为依赖自动安装。支持 macOS、Linux 和 WSL2,不支持原生 Windows。可选环境变量用于配置共享命名空间和智能体身份,例如 HIVEMIND_COMPANY、HIVEMIND_AGENT 和 HIVEMIND_AGENT_ROLE。仅在使用 OpenAI 嵌入时才需要 OpenAI API 密钥。
安装前请注意
同一命名空间内的智能体共用一个数据库,因此任何智能体存储的内容对整个团队可见。冲突检测与整合可能合并、衰减或清理已存储的记忆,forget_memory 会按条件软删除。若本地运行 Paperclip,neurohive 会从其 API 读取公司、智能体和角色信息。仅在需要 OpenAI 嵌入时才要求 OpenAI API 密钥。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Neurohive,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

neurohive

Multi-agent memory intelligence — shared knowledge, expertise tracking, and conflict detection for AI agent teams.

[npm version] [license] [node]

Why

AI agents in teams forget everything and don't share knowledge. Multiple agents working on the same project re-discover the same facts, contradict each other, and have no collective memory. One agent learns the API timeout is 30 seconds; another assumes 60. Both conclusions sit in separate sessions, never compared.

neurohive wraps neuromcp with a shared intelligence layer. Every memory stored by any agent becomes visible to the team. Searches come back annotated with who discovered what and when. New agents onboard with the team's existing knowledge already loaded. Contradictions get flagged before they cause incidents.

Before & After

neuromcp aloneWith neurohive
Agent knowledgeIsolated per sessionShared across team, attributed
Search resultsRaw resultsAnnotated with "discovered by Agent-X, 3 min ago"
New agent onboardingStarts from zeroPrimed with team's top knowledge
ExpertiseUnknown who knows whatTracked: "Agent-Backend: API (31), Auth (22)"
ContradictionsSilently coexistFlagged: "Backend says 30s timeout, DevOps says 60s"
Team overviewNoneDashboard with knowledge map, gaps, activity

Quick Start

npx neurohive

Drop-in replacement for npx neuromcp. Use the same MCP config — just swap the command. All neuromcp tools and resources are available unchanged, plus three new neurohive tools, five new resources, and automatic cross-agent annotation.

Features

Cross-Agent Annotations

Every search result is annotated with provenance: which agent stored it, how long ago, and how many times it's been retrieved. Agents can see at a glance whether a memory came from a trusted teammate or an unknown source.

Agent Priming

When an agent starts up, it reads the hivemind://priming resource to load the team's top knowledge, recent activity, and known gaps. No cold starts.

Expertise Tracking

Every time an agent stores a memory, neurohive updates that agent's expertise profile — tracking which categories they contribute to most. Use hivemind_expertise to route questions: "who knows the most about authentication?"

Conflict Detection

When two agents store contradictory claims about the same fact, neurohive flags it as a conflict. Conflicts surface in hivemind_conflicts and in the dashboard so the team can resolve them explicitly rather than letting stale data propagate silently.

Dashboard

A single command gives a live view of the collective knowledge base: total memories, active agents, top categories, recent activity, unresolved conflicts, and knowledge gaps.

Installation

Claude Code

json
{  "mcpServers": {    "neurohive": {      "command": "npx",      "args": ["neurohive"],      "env": {        "HIVEMIND_COMPANY": "my-project",        "HIVEMIND_AGENT": "Agent-Backend",        "HIVEMIND_AGENT_ROLE": "backend"      }    }  }}

Claude Desktop

json
{  "mcpServers": {    "neurohive": {      "command": "npx",      "args": ["-y", "neurohive"],      "env": {        "HIVEMIND_COMPANY": "my-project",        "HIVEMIND_AGENT": "Agent-Frontend"      }    }  }}

Cursor

json
{  "mcpServers": {    "neurohive": {      "command": "npx",      "args": ["neurohive"],      "env": {        "HIVEMIND_COMPANY": "my-project",        "HIVEMIND_AGENT": "Cursor-Agent"      }    }  }}

Paperclip Mode

When Paperclip is running locally, neurohive detects it automatically and reads the company, agent, and role from the Paperclip API. No extra env vars needed — the company namespace is set from the active Paperclip company, and each agent is identified by its Paperclip identity.

Manual fallback (when Paperclip is not running):

HIVEMIND_PAPERCLIP_URL=http://localhost:3100   # defaultHIVEMIND_COMPANY=my-projectHIVEMIND_AGENT=Agent-BackendHIVEMIND_AGENT_ROLE=backend

CLI Commands

CommandDescription
neurohiveStart as MCP server (stdio)
neurohive dashboardPrint team knowledge dashboard
neurohive expertise [topic|agent_id]Show expertise map or look up a topic/agent
neurohive conflicts [--all]List unresolved conflicts (--all includes resolved)
neurohive doctorHealth check: DB path, agent config, Paperclip status

Configuration

neurohive variables

VariableDefaultDescription
HIVEMIND_COMPANY""Company/project name. Sets the shared namespace to company-<name>
HIVEMIND_AGENT""Agent identifier (e.g. Agent-Backend, Agent-DevOps)
HIVEMIND_AGENT_ROLE""Agent role label for priming context
HIVEMIND_PAPERCLIP_URLhttp://localhost:3100Paperclip API URL for auto-detection
HIVEMIND_PRIMING_COUNT10Number of top memories to include in priming context
HIVEMIND_PRIMING_CATEGORIES""Comma-separated categories to prioritize in priming

neuromcp pass-through

All NEUROMCP_* environment variables pass through unchanged. Key ones:

VariableDefaultDescription
NEUROMCP_DB_PATH~/.neuromcp/memory.dbSQLite database path
NEUROMCP_LOG_LEVELinfoLog level: debug, info, warn, error
NEUROMCP_EMBEDDING_PROVIDERlocalEmbedding provider: local, openai, ollama
OPENAI_API_KEY—Required when using OpenAI embeddings

MCP Surface

neurohive exposes 16 tools, 18 resources, and 3 prompts.

Tools

13 neuromcp tools (unchanged):

ToolDescription
store_memoryStore memory with hive annotations
search_memoryHybrid search with cross-agent attribution
recall_memoryRecall by ID, namespace, category, or tags
forget_memorySoft-delete memories by filter
consolidateMerge duplicates, decay stale, prune low-value
memory_statsCount, category, and trust-level statistics
export_memoriesExport as JSONL or JSON
import_memoriesImport with deduplication
backfill_embeddingsRecompute missing embeddings
create_entityCreate/update knowledge graph entity
create_relationLink entities in knowledge graph
query_graphTraverse knowledge graph
search_claimsSearch atomic extracted claims

3 neurohive tools:

ToolDescription
hivemind_statusTeam dashboard: agents, categories, conflicts, activity
hivemind_expertiseQuery who knows what; get agent expertise profiles
hivemind_conflictsList/resolve inter-agent contradictions

Resources

13 neuromcp resources (memory, graph, priming, stats) plus 5 neurohive resources:

Resource URIDescription
hivemind://primingStartup context: dashboard + top knowledge for onboarding
hivemind://expertiseAll agent expertise data as JSON
hivemind://conflictsUnresolved conflicts as JSON
hivemind://dashboardFull dashboard data as JSON
hivemind://agent/{agentId}Expertise profile for a specific agent

Prompts

3 neuromcp prompts: store_memory_prompt, search_memory_prompt, session_summary_prompt.

Paperclip Integration

neurohive probes HIVEMIND_PAPERCLIP_URL on startup. If the Paperclip API responds:

  1. Namespace is set to company-<companyId> — all agents on the same Paperclip company share one knowledge base.
  2. Agent identity is read from the Paperclip agent record, so each agent in a fleet is automatically identified.
  3. Role is pulled from the agent definition, used to enrich priming context ("you are the backend agent; here's what your team knows").

If Paperclip is not running, neurohive falls back to HIVEMIND_COMPANY / HIVEMIND_AGENT env vars with no loss of functionality.

Requirements

RequirementRequiredNotes
Node.js >= 18YesESM runtime
neuromcpYesInstalled automatically as a dependency
PaperclipNoAuto-detected when running at the configured URL
OpenAI API keyNoOnly if using OpenAI embeddings

Platform Support

PlatformStatus
macOSFull support
LinuxFull support
WSL2Supported
Windows (native)Not supported

FAQ

Is this a replacement for neuromcp? Yes and no. neurohive runs on top of neuromcp and re-exports all its tools, resources, and prompts. If you run a single agent, it's functionally identical to neuromcp with a few extra tools. The value emerges with two or more agents sharing the same HIVEMIND_COMPANY namespace.

Do all agents share one database? Yes — agents in the same company namespace share a database via the shared filesystem path (NEUROMCP_DB_PATH). This works naturally in multi-agent setups on the same machine (Paperclip, dmux, parallel Claude Code sessions). For distributed setups, point all agents to a shared NFS or networked path.

What counts as a conflict? When two memories from different agents make contradictory claims about the same subject. Conflict detection runs at store time using the cognitive claims extracted from memory content. You can tune sensitivity or disable it via the neuromcp config.

Will it break my existing neuromcp setup? No. neurohive passes all existing NEUROMCP_* env vars through unchanged and writes to the same database. Switching back to npx neuromcp works at any time.

How does priming work? At startup, agents that read hivemind://priming receive a formatted summary: team size, top categories, most active agents, recent memories, and any open conflicts. This is designed to be included in a system prompt or read via a hook on session start.

Contributing

See CONTRIBUTING.md.

License

MIT — see LICENSE.

来源:README.md,提交 ba2b819

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分