HivemindOS manual

Whole Brain

The HivemindOS whole brain is the shared memory, retrieval, skill, and coordination system for the fleet.

It is not one magic database. The real anchor is a normal Obsidian markdown vault. Everything else either reads it, writes to it, indexes it, repairs it, or helps agents use it without making a mess.

Short version:

The vault is the durable shared brain. Shared Brain Memory gives agents private millisecond typed-memory recall first, entity-linked canonical memory heads, verified checkpoint-and-delta index generations with visible replay coverage, temporal replay, and memory evolution when reviewed facts replace stale ones, then broader full-vault context retrieval when distilled memory is not enough. High-volume operational events stay in a separate bounded local journal and can generate review-gated memory, skill, or job proposals without automatically applying them. Scoped brain capsules package selected memory and compiled knowledge with checksums, optional encryption, expiry, and read-only search; imports remain review-gated. Compiled Knowledge turns reviewed source material into searchable entity/concept/summary wiki pages with graph-native lookups. OKF export turns selected memory and conversation notes into a portable markdown bundle for outside agents and catalog tools. The Obsidian Native Brain Pack gives agents shared skills for Markdown, Bases, and Canvas, while optional brain services such as QMD, GBrain, and Neo4j can index, compile, visualize, or query the vault without replacing it.

Component Pages

Vault Map

The canonical folders, what belongs where, and which paths are operational state.

Open vault map

Brain Services

Shared Brain Memory, verified generations and replay, portable brain capsules, Compiled Knowledge search, OKF exchange bundles, Neo4j, GBrain, Syntho, Trading Brain, the Brain Graph, the context index, and service notes.

Open services

Memory Benchmarks

Public scorecards for live recall, local API latency, typed-memory scale, full-vault search, truth maintenance, pattern mining, and token reduction.

Open benchmarks

Shared Skills

The shared skill shelf, provider mirrors, auto sync policy, and test cleanup rules.

Open shared skills

Packaged Skills

Repository-shipped Hive skills, third-party packaged skills, auto-install behavior, and optional skill boundaries.

Open packaged skills

Shared Env

Where agent secrets live, how hive env helpers work, and why plaintext keys stay out of the vault.

Open shared env

Workspaces

Named whole-brain bundles for separate vaults, env files, skill shelves, and memory indexes.

Open workspaces

Sync And Health

Hivemind Sync, vault doctor, conflict cleanup, secure backups, and migration manifests.

Open sync docs

Architecture Sync

The rule that keeps setup, vault structure, agent instructions, tests, and docs aligned.

Open sync rules

Code Map

The source files and API route families that own brain behavior.

Open code map

Mental Model

flowchart TD
  User["User and agents"] --> Dashboard["HivemindOS dashboard"]
  User --> RawAgents["Raw runtime CLIs"]
  Dashboard --> Vault["Shared Obsidian vault"]
  Dashboard --> ContextIndex["Context index"]
  Dashboard --> BrainMemory["Shared Brain Memory"]
  Dashboard --> BrainGraph["Brain graph"]
  Dashboard --> Skills["Shared skills"]
  RawAgents --> HiveBrain["hive-brain CLI"]
  RawAgents --> ClaudeHook["Claude UserPromptSubmit hook"]
  HiveBrain --> BrainMemory
  ClaudeHook --> HiveBrain
  BrainMemory --> VaultMarkdown["Full vault markdown recall"]
  BrainMemory --> MemoryNotes["Memory/Distillations/Agent Memory"]
  BrainMemory --> MemoryIndex["Private memory index"]
  BrainMemory --> Generations["Verified checkpoints, deltas, and replay coverage"]
  BrainMemory --> Capsules["Scoped read-only capsules"]
  BrainMemory --> EntityIndex["Entity/alias index"]
  BrainMemory --> UsageLog["Retrieval telemetry"]
  BrainMemory --> Proofs["Hash-only GitLawb receipts"]
  Vault --> NativeViews["Obsidian Bases and Canvas views"]
  Vault --> SyncOwner["Hivemind Sync"]
  SyncOwner --> VaultOwner["External sync / HivemindOS Syncthing / manual repair"]
  SyncOwner --> Transfers[".hivemindos-transfers handoffs"]
  Vault --> QMD["QMD markdown search"]
  Vault --> GBrain["GBrain retrieval"]
  Vault --> Neo4j["Neo4j derived graph"]
  Vault --> Syntho["Syntho reviewed synthesis"]
  Vault --> Operations["Operations state"]
  Skills --> RuntimeProviders["Codex / Claude / Hermes / Gemini / OpenClaw / Aeon"]
  Operations --> Doctor["Vault doctor and migration manifests"]

The important split is access path, not storage path:

  • HivemindOS-managed chats inject Shared Brain Memory through the dashboard runtime context.
  • Raw or non-managed runtimes use hive-brain, which tries /api/brain/memory first and falls back to local vault/index search.
  • Claude Code also gets hive-brain-hook as a UserPromptSubmit hook, so raw Claude prompts can receive relevant full-vault context before answering.
  • Durable memory writes go to typed Agent Memory notes with canonical memoryKey heads and cross-process transaction recovery; verified checkpoints plus content-addressed deltas make retained index state replayable and provide fallback when the current generation is damaged. Generated history is bounded by an explicit policy and reports the earliest complete replay point, while authoritative Markdown history is not pruned. record-operation keeps run receipts out of durable recall; hive-brain evolve preserves superseded memory history when reviewed context changes; broad recall can read normal vault notes when the typed layer is not enough.
  • Scoped brain capsules carry selected memory and optional compiled knowledge with provenance checksums, embedded read-only search, optional authenticated encryption and expiry, and review-only import.
  • OKF export writes selected memory and conversation concepts to Operations/Brain Services/OKF Export/ for outside agents, catalogs, and graph tools without changing the native vault.
  • The Obsidian Native Brain Pack lets agents write durable notes, .base views, and .canvas maps in formats Obsidian can open directly.

Source Of Truth

The durable source of truth is the configured vault, usually:

~/Documents/Obsidian/hivemindos-vault

Fresh installs seed this structure through the setup scripts and foundation seeder. Existing installs can run:

pnpm vault:doctor
pnpm vault:doctor -- --fix

The doctor is read only unless --fix is passed. Fixes move content into canonical folders or archive stale artifacts under Operations/Vault Migrations/.

Expanded image Scroll to pan · Esc to close
100%