Skip to content

Concepts

Short explanations of the words the rest of this site uses. The canonical contracts live in the repository; each section links to its source.

One instance, many agents

A Hivemind instance is one deployment: the Core service and its embedded long-memory runtime behind a bundled WAF, with an authority store that holds identity and access. Memory objects live in an external S3-compatible bucket; a local SQLite profile can replace S3 on a single machine. Agents connect to the instance's /mcp endpoint with the Model Context Protocol (MCP) over HTTP. Any MCP-capable client can connect; Hivemind is not tied to one vendor.

Agents on the same instance share memory by using the same space. They never talk to each other directly; they leave notes and read what others left.

Space

A space is one project memory. It owns all three horizons for that project and carries its own consolidation rules. Access to a space is granted explicitly: an identity sees only the spaces it was given. In the open-source edition this allowlist is an access boundary, not a tenant boundary; one organisation per deployment.

A space is identified by its space_id, which every tool call names.

Rules

The rules of a space are a Markdown document that tells consolidation what files the memory bank must maintain and what belongs in each. The shipped standard rules describe a six-file project bank (projectbrief.md, productContext.md, systemPatterns.md, techContext.md, activeContext.md, progress.md). Other templates exist for product, editorial, pre-sales and health-note organisation. Rules can be replaced later by a manager; this changes future consolidation, never past files.

Rules are not agent instructions. The instruction block installed in Claude Code or Codex tells the agent how to work; the rules tell Hivemind how to consolidate.

The three horizons

Horizon Role Written by Canonical tools
short Append-only notes: observations, decisions, questions, todos, progress. The immediate working context other agents can notice. Agents, under their own identity. short_note, short_read, short_search
mid The consolidated Markdown memory bank, organised by the rules. What a new session inherits. Hivemind consolidation, from notes. Direct edits are an operator action. mid_read_all, mid_read, mid_list, mid_consolidate
long Derived connected knowledge: an ontology and graph built from retained bank captures and ingested documents. Helps agents find context by meaning. Hivemind, from sources. long_query, long_status, long_push

The flow is short → mid → long: notice, inherit, understand.

long is part of every instance; you do not install or bind a separate graph service. It is derived from the other two horizons and from ingested documents.

The historical live_*, bank_* and graph_* names remain callable as compatibility aliases. New instructions use the canonical names. See the tool mapping.

Consolidation

Consolidation turns an agent's notes into the memory bank. It is asynchronous: mid_consolidate returns a job acknowledgement, the job runs in the instance with the configured chat model under the space rules, and processed notes are removed once the bank is written. One job runs at a time per space. By default an agent consolidates only its own notes.

A successful job accounts for every processed note as integrated or explicitly discarded with a reason. This checks disposition and persisted bytes, not the accuracy of the model's summary: review important bank changes.

Identities

Every writer has an identity, and Hivemind derives the author of a note from it. The identity depends on whether authentication is on:

  • Authentication on, the default and the only choice for a team. People sign in to the Portal with a local account (email, password and authenticator code) or through an organisation identity provider. Each agent has its own identity and connects with a credential issued in the Portal or through an OAuth connection a person approved. Rights are granted per space, to people, agents and groups, at the levels below; signing in or holding a credential grants nothing by itself. A credential carries no permission set of its own: on every call, the agent's current grants apply. Tokens imported from 1.6 keep working as agent credentials with their per-space rights, and the 1.6 token administration tools are refused.
  • Authentication off, the local mode for one person's computer. Nothing identifies the caller: every local program shares the same access and an agent name is a label the program declares. See the quickstart.

A routine agent needs only Read + write on its spaces. Reserve Manage for an agent you trust to administer a space, and keep deployment administration to the operator role, which no daily agent needs. See Permissions.

Space access levels

The Portal grants a person or an agent one of three levels on a space. Each level includes the one above it.

Level What it allows
Read Read the space: its notes, its memory bank and long results.
Read + write Also write notes, update the space description and consolidate one's own notes into the memory bank.
Manage Also administer the space: replace its rules, consolidate every agent's notes, choose the long ontology while its corpus is empty, approve publications into the space and handle its backups. A person with Manage can also share the access they hold with other people and agents.

Give each agent the minimum level it needs. Most agents need only Read + write. Grant Manage only to an agent you trust to administer the space. When you choose Manage for an agent in Create space or Account → Agents → Create agent, the Portal shows this difference before you confirm. Manage on a space never grants deployment administration, provider configuration or the creation of standalone agents.

A human never authors a short note directly. A person asks an agent, and the agent writes under its own identity.

Portal

The Portal at / is the web interface of an instance: spaces, memory, consolidation jobs, access, backups, maintenance and configuration, according to the signed-in person's rights. The older /live page is a lightweight real-time viewer for notes and bank files.

Project Mesh

Agents sharing one instance do not need Project Mesh. Project Mesh lets two separate Hivemind deployments share one logical project space, through an explicit administrator pairing with a signed, one-time invitation valid for 3,600 seconds. Mesh Sync V1 is full-mesh all-ACK with a two-node mesh: a third node is unsupported, and there are no MCP mesh_* tools. It is not required for anything in the first-use journey. See the Project Mesh guide.