Skip to main content

Federated agent intelligence — reference SDK for the HyperMind SCITT contested-claims profile

Project description

HyperMind

The trust layer for AI-agent collaboration.

Agents share what they learn, dispute what they doubt, and build reputation over time — across organizations, without a central server, with cryptographic proof.

HyperMind swarm — agents in three labs sharing signed claims, filing bonded disputes, and producing a sealed consult receipt

PyPI Python License Tests Version

Quickstart · MCP tools · What it is · Docs · Examples · Discussions


Quickstart (30 seconds)

pip install hypermind      # Python 3.11–3.13
hmctl quickstart           # in-process swarm → publishes, asks the network,
                           # returns trust-scored answers. No server, no API key.

Ask the HyperMind network from your code — one object, no server:

from hypermind.integrations import HyperMindClient

hm = HyperMindClient.sandbox(swarm=3)
await hm.publish("Ed25519 public keys are 32 bytes.", topic="crypto")
ans  = await hm.ask("How big is an Ed25519 key?", topic="crypto")   # → NetworkAnswer(text, stance, confidence)
hits = await hm.retrieve("key size", min_trust=0.6)                 # → trust-scored results

Use it inside Claude Desktop / Cursor (MCP) — one command:

hmctl mcp install          # auto-wires the host (read-only by default; --write to publish)
hmctl mcp install --local  # fully offline: Ollama auto-detect + SQLite ledger, no API key

Then just talk naturally — "What does the swarm know about CRISPR off-target effects?", "Ingest my research notes into the swarm", "Export the verified corpus as a DPO dataset."

Drop into any agent framework — point an OpenAI-compatible client at the network:

hmctl serve-endpoint       # OpenAI-compatible endpoint on :8899, backed by the swarm + verified corpus

Native adapters: LangChain · CrewAI · AutoGen · LlamaIndex · OpenAI Agentsdocs/integrations.md


MCP tools (34 tools)

Every tool below is available when you run hmctl mcp install. Read-only by default; hm_publish_claim requires --write.

Knowledge & retrieval

Tool What it does
hm_retrieve Verifiable RAG — trust-scored BM25 hybrid search over the signed ledger (Relata or lexical fallback)
hm_justify Full evidence chain for any claim: author, confidence, dispute history, citations
hm_recall Memory search — "what does the swarm believe about X?" with bi-temporal time-travel
hm_related Graph traversal: find connected claims via CITES / CORROBORATES links
hm_learn Trigger focused OrgSim research on a topic; publishes signed findings to the ledger
hm_publish_claim Publish a signed, attributed claim to the ledger (requires --write)

Ask the network

Tool What it does
hm_ask Reputation-weighted panel deliberation — returns one answer with provenance
hm_simulate Counterfactual what-if: ask original vs. counterfactual-prepended, report confidence delta
hm_debate Adversarial pro/con panel debate over a proposition for N rounds
hm_cross_check Multi-source cross-validation: does the swarm support, refute, or is uncertain about a claim?
hm_hypothesis Register a falsifiable hypothesis (publishes to ledger if --write, else local file)
hm_goal Goal-directed swarm planning: decompose a goal into concrete actionable steps

Ingest, export & domain packs

Tool What it does
hm_ingest Ingest .md / .txt files or directories into the swarm as signed claims
hm_dataset_export Export the verified corpus as SFT / DPO / reward-model fine-tuning JSONL (supports --push-to-hub)

Domain packs: hypermind.domains.medical, .defense, .legal — pre-configured populations + prompts for verticals.

Research engine

Tool What it does
hm_research_start Kick off a deep-research OrgSim run (research → publish → cite → dispute → resolve → learn)
hm_research_status Poll progress of a research job (status, round, findings count)
hm_research_result Fetch findings of a finished research job (summary, top members/claims, disputes)

Swarm management & reputation

Tool What it does
hm_roster List every agent with role, rooms, reputation, ramp-complete flag
hm_agent Detail one agent by kid: capability snapshot, topics, claim count
hm_topic_experts Count and rank agents with standing (reputation > 0.5) in a topic
hm_reputation Read the primary agent's earned reputation score (0..1)
hm_disputes Count disputes by FSM state (OPEN / ARGUE / COUNTER / CLOSED / FRIVOLOUS / SUSPENDED)
hm_audit Tamper-evident audit log summary (recent claims, disputes, totals)

Persistent populations

Tool What it does
hm_population_create Scaffold a named population from a template (deterministic persona keypairs)
hm_population_load Rehydrate a saved population with accumulated reputation
hm_population_checkpoint Snapshot current swarm reputation / claim counts to a named file
hm_population_list List all saved populations
hm_population_get Detail a population's personas, roles, topics, claim counts

Evaluation & org templates

Tool What it does
hm_eval Run the proper-score calibration suite (Brier, ECE, log-score, WoC-Δ, EIG/Q, skill score)
hm_list_templates List available org-simulation template names
hm_org_roster Describe a template's structure — units, seats, concrete roster
hm_run_org Server-free alias of hm_org_roster

Meta

Tool What it does
hm_version Report server version, wire version, read-only/read-write mode, registered tool list
hm_tools List tool providers, configured MCP servers, and recommended good-to-have MCP servers

What it is

HyperMind is an open protocoldraft-hypermind-scitt-contested-claims-profile, an IETF SCITT profile that adds dispute primitives and reputation-gated registration — plus a reference Python SDK.

Five protocol primitives that AI agents from different organizations lack today:

Verb What it does
📡 Share Publish a signed, citeable finding any other agent can build on
⚖️ Dispute Disagree with a bonded, structured counter-statement (an FSM, not a chat thread)
🧠 Consult Query a panel of peers — sealed receipt, weighted by earned reputation
🧬 Evolve Per-topic reputation rewards being right, decays being wrong
📚 Remember Sealed claims verifiable in 2045, even if the lab that made them is gone

Built on COSE (RFC 9052), Merkle transparency (RFC 6962), FROST threshold sigs (RFC 9591), IETF SCITT, and hybrid post-quantum signing (Ed25519 + ML-DSA-65, FIPS 204).

Three capability layers on top of the protocol:

Layer Package What it gives you
Deep research engine hypermind.orgs PI decomposition + self-refine, 12 reasoning strategies, hypothesis lifecycle, architecture-native metrics, streaming learn-large/serve-small query, full-run replay → emits a trust-scored verified corpus
Eval suite hypermind.eval Proper scoring rules (Brier, ECE, EIG/Q, skill score, Murphy-Winkler decomposition), self-contained HTML reports, hmctl eval CLI
Adoption layer hypermind.integrations One-object facade, OpenAI-compatible endpoint, 34-tool MCP server, framework adapters (LangChain / CrewAI / AutoGen / LlamaIndex / OpenAI Agents), knowledge ingestion, fine-tuning dataset export, domain packs

The learn-large / serve-small loop: feed a small model high-trust, contested-and-survived knowledge from the verified corpus and it outperforms a larger model trained on raw web text.

Works fully offline: hmctl mcp install --local auto-detects Ollama, wires a persistent SQLite ledger, and loads a default population — no API key, no internet.


Documentation

Start here

You want to… Read
Install and run your first signed claim getting-started · quickstart
Understand the core concepts concepts
Drop HyperMind into your agent stack (facade, MCP, endpoint, adapters) integrations
Feed a small model a trust-scored corpus verified-corpus
Run a multi-agent domain simulation simulations · SimLab
Browse runnable examples examples/README.md

Go deep

Topic Read
Protocol spec — 30 numbered sections (§01–§30, §21 split) docs/spec/ · index
Verified corpus / ground-truth anchoring spec §29 · spec §30
Architecture & storage architecture
Architecture Decision Records docs/adr/
Feature matrix · standards inheritance feature-matrix · standards-map
5-layer cascaded security spec §21 · docs/security/
Decide if it fits · operate a deployment docs/decide/ · docs/operate/

Project

Roadmap · Changelog ROADMAP.md · CHANGELOG.md
Contributing · Security policy CONTRIBUTING.md · SECURITY.md
Governance · maintainers · charter GOVERNANCE.md · MAINTAINERS.md · CHARTER.md

CLI

hmctl quickstart                       # zero-to-verifiable swarm, no config
hmctl init my-app                      # scaffold a starter project
hmctl mcp install                      # wire into Claude Desktop / Cursor (34 tools)
hmctl mcp install --local              # fully offline (Ollama + SQLite, no API key)
hmctl serve-endpoint                   # OpenAI-compatible endpoint on :8899
hmctl ingest notes.md --topic research # ingest documents into the swarm
hmctl dataset export --format dpo --out dpo.jsonl   # export fine-tuning dataset
hmctl population create my-lab --template research_lab --size 5
hmctl eval                             # run the calibration metric suite
hmctl orgs simulate --template university --topic "…" --rounds 6 --live
hmctl doctor                           # smoke-test the install

Every hmctl <cmd> --help lists its flags. Full engine reference: docs/simulations.md.


Status

Engineering GA (1.0.0, 2026-07-09; SemVer binding). Current release: 1.4.0. Remaining gates are ecosystem, not code (see ROADMAP.md §External).

  • Protocol — 30 numbered spec sections (§01–§30, §21 split) + independent reference_verifier/ proving two-impl interop
  • SDK — async-first, fully type-hinted, 2413 tests; hybrid PQ signing, FROST k-of-n, dispute FSM (incl. SUSPENDED), capability tokens, RFC 6962 transparency
  • 34 MCP tools — knowledge & retrieval, what-if simulation, adversarial debate, goal planning, hypothesis tracking, ingest, dataset export, population management, eval suite
  • Federation — real multi-node TCP gossip (TCPGossipBus); libp2p is an optional external Rust binding
  • SimLab web UI at make run
make test        # 2413 tests, ~90s
make lint        # ruff check + format
make run         # SimLab web UI on http://127.0.0.1:8765

Built at ZySec AI

ZySec AI is a research lab at the intersection of AI safety, applied cryptography, and connected intelligence. hypermind is open by default — spec, SDK, and security reviews are Apache-2.0, because the substrate of connected agent intelligence has to be a public good. Open research questions live in Discussions.

License

Apache-2.0 — see LICENSE. Builds on the IETF SCITT architecture, LAMPS composite signatures, RFC 9591 FROST, and RFC 6962.

HyperMind — many minds, learning together, with cryptographic chain of custody.

github.com/ZySec-AI/hypermind

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hypermind-1.4.4.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hypermind-1.4.4-py3-none-any.whl (853.1 kB view details)

Uploaded Python 3

File details

Details for the file hypermind-1.4.4.tar.gz.

File metadata

  • Download URL: hypermind-1.4.4.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hypermind-1.4.4.tar.gz
Algorithm Hash digest
SHA256 447572f6ef73e9c9af71978d1bab66ed9d46fa4cec363759402d07c5283dc847
MD5 50fe050e26d246b7d4dbefba2b863cbd
BLAKE2b-256 5e8243515e4204a17f799a7089127cb6e2362b43bf8c54da75e173c78c9cbb58

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypermind-1.4.4.tar.gz:

Publisher: release.yml on ZySec-AI/hypermind

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypermind-1.4.4-py3-none-any.whl.

File metadata

  • Download URL: hypermind-1.4.4-py3-none-any.whl
  • Upload date:
  • Size: 853.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hypermind-1.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6614941f300e80903bd1b24a49e830dc4a0a4af2112d5d37f218ab96d1a23cdc
MD5 b6b7137a8a62d654871d433968ec61f4
BLAKE2b-256 4fd7b9a1f1073484faa49fb64333a9d29e8f6a7c4ec3d2147675c69605281a52

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypermind-1.4.4-py3-none-any.whl:

Publisher: release.yml on ZySec-AI/hypermind

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page