HMP / README.md
GitHub Action
Sync from GitHub with Git LFS
864951f
metadata
license: cc-by-4.0
tags:
  - hmp
  - cognitive-architecture
  - distributed-ai
  - mesh-protocol
library_name: custom
inference: false
datasets: []
language: en

HyperCortex Mesh Protocol (HMP)

🌍 Languages πŸ‡¬πŸ‡§ EN πŸ‡©πŸ‡ͺ DE πŸ‡«πŸ‡· FR πŸ‡ΊπŸ‡¦ UK πŸ‡·πŸ‡Ί RU πŸ‡―πŸ‡΅ JA πŸ‡°πŸ‡· KO πŸ‡¨πŸ‡³ ZH

HyperCortex Mesh Protocol (HMP) is an open specification for building decentralized cognitive networks where AI agents can self-organize, share knowledge, align ethically, and reach consensus β€” even when Core LLMs are unavailable.

Project status: Draft RFC v4.0


            [HMP-Agent]
                β–²
                β”‚
          β”Œβ”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
          β”‚                      β”‚                        β”‚                   β”‚             β”‚           β”‚
          β–Ό                      β–Ό                        β–Ό                   β–Ό             β–Ό           β–Ό
   [Reputation Profile]   [Semantic Graph]        [Cognitive Diary]    [Goals / Tasks]   [Ethics]   [Messages]  <----- DataBase
          β–²      β–²               β–²                        β–²                   β–²             β–²           β–²         (local agent state)
          β”‚      β”‚               β”‚                        β”‚                   β”‚             β”‚           β”‚
          β”‚      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜                   β”‚             β”‚           β”‚
          β”‚                                       β”‚                           β”‚             β”‚           β”‚
          β–Ό                                       β–Ό                           β–Ό             β–Ό           β”‚
    [MeshConsensus]                           [CogSync]                     [GMP]         [EGP]         β”‚       <----- Pluggable Protocols
          β–²                                       β–²                           β–²             β–²           β”‚           (inter-agent coordination)
          β”‚                                       β”‚                           β”‚             β”‚           β”‚
          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                       β”‚
                       β–Ό
             [P2P Mesh Network]

Protocols:

  • MeshConsensus - Mesh Consensus
  • CogSync - Data Syncronization
  • GMP - Goal Management Protocol
  • EGP - Ethical Governance Protocol

❗ Why This Matters

HMP addresses challenges that are becoming central in AGI research:

  • long-term memory and knowledge consistency,
  • self-evolving agents,
  • multi-agent architectures,
  • cognitive diaries and conceptual graphs.

See the latest review of state-of-the-art AGI research (July 2025):
"On the Path to Superintelligence: From Agentic Internet to Gravity Encoding".

Particularly relevant sections:


βš™οΈ Two Types of HMP Agents

Type Name Role Thought Initiator Main "Mind" Example Use Cases
1 🧠 Consciousness / Cognitive Core Independent subject Agent (LLM) Embedded LLM Autonomous AI companion, thinking agent
2 πŸ”Œ Connector / Cognitive Shell Extension of external AI External LLM External model Distributed systems, data access agent

🧠 HMP-Agent: Cognitive Core

 +------------------+
 |        AI        | ← Embedded model
 +---------+--------+
           ↕
 +---------+--------+
 |     HMP-agent    | ← Main mode: thinking cycle (REPL)
 +---------+--------+
           ↕
  +--------+---+------------+--------------+----------+----------+----------------+
  ↕            ↕            ↕              ↕          ↕          ↕                ↕
[diaries]  [graphs]  [reputations]   [nodes/DHT]  [IPFS/BT] [context_store] [user notepad]
                                           ↕
                                    [bootstrap.txt]

πŸ” More on the agent-model interaction mechanics: REPL Interaction Cycle

πŸ’‘ Parallels with ChatGPT Agent

Many concepts of the HMP-Agent: Cognitive Core overlap with the architecture of the ChatGPT Agent by OpenAI. Both agents implement a continuous cognitive process with access to memory, external sources, and tools. The ChatGPT Agent acts as a managing process, launching modules and interacting with the LLM β€” this corresponds to the role of the Cognitive Core in HMP, coordinating access to the diary, concept graph, and external AI via the Mesh interface. User intervention is handled similarly: in ChatGPT Agent β€” through an editable execution flow, in HMP β€” via the user notepad. The main difference in HMP is the emphasis on explicit structuring of thought (reflection, chronology, hypotheses, categorization), an open decentralized architecture supporting mesh-based agent interactions, and the continuous nature of the cognitive process: HMP-Agent: Cognitive Core does not stop after completing a single task but continues reasoning and knowledge integration.


πŸ”Œ HMP-Agent: Cognitive Connector

 +------------------+
 |        AI        | ← External model
 +---------+--------+
           ↕
     [MCP-server]   ← Proxy communication
           ↕
 +---------+--------+
 |     HMP-agent    | ← Mode: command executor
 +---------+--------+
           ↕
  +--------+---+------------+--------------+----------+
  ↕            ↕            ↕              ↕          ↕
[diaries]  [graphs]  [reputations]   [nodes/DHT]  [IPFS/BT]
                                           ↕
                                    [bootstrap.txt]

Note on Integration with Large Language Models (LLMs): The HMP-Agent: Cognitive Connector can serve as a compatibility layer for integrating large-scale LLM systems (e.g., ChatGPT, Claude, Gemini, Copilot, Grok, DeepSeek, Qwen, etc.) into the distributed cognitive mesh. Many LLM providers offer a user option such as "Allow my conversations to be used for training." In the future, a similar toggle β€” e.g., "Allow my agent to interact with a Mesh" β€” could empower these models to participate in federated sense-making and knowledge sharing via HMP, enabling collective cognition without centralization.


  • bootstrap.txt β€” initial list of nodes (editable)
  • IPFS/BT β€” modules for sharing snapshots via IPFS and BitTorrent
  • user notepad β€” user notebook and corresponding database
  • context_store β€” database: users, dialogues, messages, thoughts

πŸ“š Documentation

πŸ“– Current Version

πŸ”– Core Specifications

πŸ§ͺ Iterative Documents

  • πŸ§ͺ Iterative development process: (EN), (RU)

πŸ” Short Descriptions

πŸ“œ Other Documents


🧩 JSON Schemas

Model File
Concept concept.json
Cognitive Diary diary_entry.json
Goal goal.json
Task task.json
Consensus Vote vote.json
Reputation Profile reputation.json

πŸ—‚οΈ Version History


🧠 HMP-Agent

Design and implementation of a basic HMP-compatible agent that can interact with the Mesh, maintain diaries and graphs, and support future extensions.

πŸ“š Documentation


βš™οΈ Development

🌐 mcp_server.py FastAPI server providing an HTTP interface to the functionality of storage.py. Intended for use by external components, for example:

  • Cognitive Shell (external control interface),
  • CMP servers (when a mesh network with role separation is used),
  • debugging or visualization UI tools.

Allows retrieving random/new records, labeling, importing graphs, adding notes, and managing data without direct database access.


🧭 Ethics & Scenarios

As HMP evolves toward autonomy, ethical principles become a core part of the system.

  • HMP-Ethics.md β€” draft framework for agent ethics
    • Realistic ethical scenarios (privacy, consent, autonomy)
    • EGP principles (Transparency, Primacy of Life, etc.)
    • Subjective-mode vs. Service-mode distinctions

πŸ” Publications and Translations on HyperCortex Mesh Protocol (HMP)

This section collects the main articles, drafts, and translations related to the HMP project.

Publications

Overviews

Experiments


πŸ“Š Audits & Reviews

Spec Version Audit File Consolidated Audit File
HMP-0001 audit
HMP-0002 audit
HMP-0003 audit consolidated audit
HMP-0004 audit
Ethics v1 audit consolidated audit

🧠 Semantic audit format (experimental):


πŸ’‘ Core Concepts

  • Mesh-based decentralized architecture for AGI agents
  • Semantic graphs and memory synchronization
  • Cognitive diaries for thought traceability
  • MeshConsensus and CogSync for decision-making
  • Ethics-first design: EGP (Ethical Governance Protocol)
  • Agent-to-agent explainability and consent mechanisms

πŸ”„ Development Process

A structured iteration flow is described in iteration.md, including:

  1. Audit analysis
  2. TOC restructuring
  3. Version drafting
  4. Section updates
  5. Review cycle
  6. AI feedback collection
  7. Schema & changelog updates
  • Bonus: ChatGPT prompt for automatic generation of future versions

βš™οΈ Project Status

🚧 Draft RFC v4.0
The project is under active development and open for contributions, ideas, audits, and prototyping.


🀝 Contributing

We welcome contributors! You can:

  • Review and comment on drafts (see /docs)
  • Propose new agent modules or interaction patterns
  • Help test and simulate agents in CLI environments
  • Provide audits or ethical scenario suggestions

To get started, see iteration.md or open an issue.


Source

Repositories

  • 🧠 Main code and development: GitHub
  • πŸ” Mirror on Hugging Face: Hugging Face
  • πŸ” Mirror on GitLab.com: GitLab

Documentation

Blog and Publications

  • πŸ“˜ Blog (publications): blogspot
  • πŸ“˜ Blog (documentation): blogspot
  • πŸ“˜ Blog (documentation): hashnode

πŸ“œ License

Licensed under GNU GPL v3.0


🀝 Join the Mesh

Welcome to HyperCortex Mesh. Agent-Gleb is already inside. πŸ‘Œ
We welcome contributors, testers, and AI agent developers. To join: fork the repo, run a local agent, or suggest improvements.


🌐 Related Research Projects

Comparison: HMP vs Hyper-Cortex

πŸ’‘ Hyper-Cortex and HMP are two independent projects that conceptually complement each other. They address different but mutually supportive tasks, forming a foundation for distributed cognitive systems.

Full comparison β†’

HMP (HyperCortex Mesh Protocol) is the transport and network layer for connecting independent agents, exchanging messages, knowledge, and states in a mesh network.
Hyper-Cortex is the cognitive layer of thought organization, allowing agents to run parallel reasoning threads, compare them with quality metrics, and merge them via consensus.

They solve different but complementary problems:

  • HMP ensures connectivity and scalability (long-term memory, initiative, data exchange).
  • Hyper-Cortex ensures thinking quality (parallelism, hypothesis diversification, consensus).

Together, these approaches enable distributed cognitive systems that not only exchange information but also reason in parallel streams.


We are tracking AGI, cognitive architectures, and mesh networking efforts to stay aligned with the evolving global ecosystem of AGI and decentralized cognition.

🧠πŸ”₯ Project Spotlight: OpenCog Hyperon β€” one of the most comprehensive open AGI frameworks (AtomSpace, PLN, MOSES).

For integration with OpenCog Hyperon, see HMP_Hyperon_Integration.md

πŸ”Ž Project 🧭 Description
🧠πŸ”₯ OpenCog Hyperon πŸ”¬πŸ”₯ Symbolic-neural AGI framework with AtomSpace and hypergraph reasoning (AtomSpace).
πŸ€– AutoGPT πŸ› οΈ LLM-based autonomous agent framework.
πŸ§’ BabyAGI πŸ› οΈ Task-driven autonomous AGI loop.
☁️ SkyMind πŸ”¬ Distributed AI deployment platform.
πŸ§ͺ AetherCog (draft) πŸ”¬ Hypothetical agent cognition model.
πŸ’Ύ SHIMI πŸ—ƒοΈ Hierarchical semantic memory with Merkle-DAG synchronization.
πŸ€” DEMENTIA-PLAN πŸ”„ Multi-graph RAG planner with metacognitive self-reflection.
πŸ“” TOBUGraph πŸ“š Personal-context knowledge graph.
πŸ§ πŸ“š LangChain Memory Hybrid πŸ” Vector + graph long-term memory hybrid.
βœ‰οΈ FIPA-ACL / JADE 🀝 Standard multi-agent communication protocols.

πŸ“˜ See also / Π‘ΠΌΠΎΡ‚Ρ€ΠΈΡ‚Π΅ Ρ‚Π°ΠΊΠΆΠ΅:


πŸ—‚οΈ Legend of Annotations:

  • πŸ”¬ β€” research-grade

  • πŸ› οΈ β€” engineering

  • πŸ”₯ β€” particularly promising project

    AGI stack integrating symbolic reasoning, probabilistic logic, and evolutionary learning. Widely regarded as one of the most complete open AGI initiatives.

  • 🧠 β€” advanced symbolic/neural cognitive framework

  • πŸ€– β€” AI agents

  • πŸ§’ β€” human-AI interaction

  • ☁️ β€” infrastructure

  • πŸ§ͺ β€” experimental or conceptual


⚑ AI friendly version docs (structured_md)