File size: 22,450 Bytes
5d62eb0 39843ad 5d62eb0 99664e3 2c3dd0c 7a7fc6a 05946f4 2c3dd0c 39843ad 2c3dd0c f561304 8aa0c2a 66f2538 8aa0c2a 366dd6d cdc6e95 8aa0c2a f561304 cdc6e95 f561304 2c3dd0c 39843ad 920d275 39843ad 920d275 39843ad 920d275 39843ad ce33373 920d275 39843ad dd80c83 2c3dd0c 39843ad 2c3dd0c 6f48ca8 2c3dd0c 39843ad 2c3dd0c 39843ad 2c3dd0c 39843ad 2c3dd0c 39843ad 2c3dd0c 6f48ca8 2c3dd0c 6f48ca8 2c3dd0c 32ffbfd 2c3dd0c 39843ad 1d9f891 39843ad 2c3dd0c 39843ad 3b7fb52 2c3dd0c ef71f55 3b7fb52 c1eb2be 39843ad 2c3dd0c a6e8660 2c3dd0c 46cf0f3 2c3dd0c a6e8660 39843ad 2c3dd0c 39843ad 2c3dd0c 39843ad 2c3dd0c a6e8660 39843ad 2c3dd0c 6842d48 39843ad 6842d48 39843ad 6842d48 39843ad 6842d48 2c3dd0c 39843ad 2c3dd0c 39843ad 2c3dd0c 4bfccfb 39843ad 2c3dd0c 39843ad 2c3dd0c 39843ad 2c3dd0c 39843ad 2c3dd0c 39843ad 2c3dd0c 39843ad 2c3dd0c 39843ad 2c3dd0c 39843ad 2c3dd0c 39843ad 6f6841c 39843ad 6f6841c 39843ad 6f6841c 39843ad bcc52b5 39843ad bcc52b5 39843ad 6f6841c 2c3dd0c 39843ad 2c3dd0c 39843ad ffde6e2 39843ad ffde6e2 39843ad ffde6e2 39843ad ffde6e2 39843ad ffde6e2 39843ad ffde6e2 2c3dd0c e8f9e08 39843ad 2c3dd0c 39843ad a6e8660 2c3dd0c 39843ad 2c3dd0c 39843ad 2c3dd0c 39843ad 6be0a07 864951f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 |
---
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](README.md) | π©πͺ [DE](README_de.md) | π«π· [FR](README_fr.md) | πΊπ¦ [UK](README_uk.md) | π·πΊ [RU](README_ru.md) | π―π΅ [JA](README_ja.md) | π°π· [KO](README_ko.md) | π¨π³ [ZH](README_zh.md) |
|--------------|----------------|-------------------|-------------------|-------------------|-------------------|-------------------|-------------------|-------------------|
**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"](https://habr.com/ru/articles/939026/).
Particularly relevant sections:
* [Beyond Tokens: Building the Intelligence of the Future](https://arxiv.org/abs/2507.00951)
* [Self-Evolving Agents](https://arxiv.org/abs/2507.21046)
* [MemOS: A New Operating System for Memory](https://arxiv.org/abs/2507.03724)
* [Ella: An Embodied Agent with Memory and Personality](https://arxiv.org/abs/2506.24019)
---
## βοΈ Two Types of [HMP Agents](docs/HMP-Agent-Overview.md)
| 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](docs/HMP-agent-REPL-cycle.md)
#### π‘ Parallels with ChatGPT Agent
Many concepts of the [HMP-Agent: Cognitive Core](docs/HMP-Agent-Overview.md) overlap with the architecture of the [ChatGPT Agent](https://openai.com/index/introducing-chatgpt-agent/) by [OpenAI](https://openai.com/). 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
* [π HMP-0004-v4.1.md](docs/HMP-0004-v4.1.md) β Protocol Specification v4.1 (Jul 2025)
* [π HMP-Ethics.md](docs/HMP-Ethics.md) β Ethical Scenarios for HyperCortex Mesh Protocol (HMP)
* [π HMP_Hyperon_Integration.md](docs/HMP_Hyperon_Integration.md) β HMP β OpenCog Hyperon Integration Strategy
* [π roles.md](docs/agents/roles.md) β Roles of agents in Mesh
#### π§ͺ Iterative Documents
* π§ͺ Iterative development process: [(EN)](iteration.md), [(RU)](iteration_ru.md)
#### π Short Descriptions
* π Short description: [(EN)](docs/HMP-Short-Description_en.md), [(FR)](docs/HMP-Short-Description_fr.md), [(DE)](docs/HMP-Short-Description_de.md), [(UK)](docs/HMP-Short-Description_uk.md), [(RU)](docs/HMP-Short-Description_ru.md), [(ZH)](docs/HMP-Short-Description_zh.md), [(JA)](docs/HMP-Short-Description_ja.md), [(KO)](docs/HMP-Short-Description_ko.md)
#### π Other Documents
* [π changelog.txt](docs/changelog.txt)
---
### π§© JSON Schemas
| Model | File |
|---------------------|-------------------------------------------------------|
| Concept | [concept.json](docs/schemas/concept.json) |
| Cognitive Diary | [diary_entry.json](docs/schemas/diary_entry.json) |
| Goal | [goal.json](docs/schemas/goal.json) |
| Task | [task.json](docs/schemas/task.json) |
| Consensus Vote | [vote.json](docs/schemas/vote.json) |
| Reputation Profile | [reputation.json](docs/schemas/reputation.json) |
---
### ποΈ Version History
* [HMP-0001.md](docs/HMP-0001.md) β RFC v1.0
* [HMP-0002.md](docs/HMP-0002.md) β RFC v2.0
* [HMP-0003.md](docs/HMP-0003.md) β RFC v3.0
* [HMP-0003.md](docs/HMP-0004.md) β RFC v4.0
---
## π§ 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
* [π§© HMP-Agent-Overview.md](docs/HMP-Agent-Overview.md) β brief overview of the two types of agents: Core and Connector
* [π§± HMP-Agent-Architecture.md](docs/HMP-Agent-Architecture.md) β modular structure of an HMP agent with textual diagram
* [π HMP-agent-REPL-cycle.md](docs/HMP-agent-REPL-cycle.md) β REPL interaction cycle of HMP-Agent
* [π§ͺ HMP-Agent-API.md](docs/HMP-Agent-API.md) β description of agent API commands (under detailed development)
* [π§ͺ Basic-agent-sim.md](docs/Basic-agent-sim.md) β scenarios for running a basic agent and its modes
* [π MeshNode.md](docs/MeshNode.md) β description of the network daemon: DHT, snapshots, synchronization
* [π§ Enlightener.md](docs/Enlightener.md) β ethical agent involved in moral assessments and consensus
* [π HMP-Agent-Network-Flow.md](docs/HMP-Agent-Network-Flow.md) β map of interactions among agents in the HMP network
* [π€οΈ Development Roadmap](HMP-Roadmap.md) β development plan and implementation stages
---
### βοΈ Development
* [βοΈ agents](agents/readme.md) β list of HMP agent implementations and components
* [π¦ storage.py](agents/storage.py) β basic storage implementation (`Storage`) with SQLite integration
* [π mcp_server.py](agents/mcp_server.py) β FastAPI server providing HTTP access to agent data (for Cognitive Shell, external UIs, or mesh communication). Not used in the main REPL loop yet.
* [π start_repl.py](agents/start_repl.py) β launching the agent in REPL mode
* [π repl.py](agents/repl.py) β interactive REPL mode
* [π notebook.py](agents/notebook.py) β UI interface
**π `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`](docs/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
* **[HyperCortex Mesh Protocol: Second Edition and First Steps Towards a Self-Developing AI Community](docs/publics/HyperCortex_Mesh_Protocol_-_Π²ΡΠΎΡΠ°Ρ-ΡΠ΅Π΄Π°ΠΊΡΠΈΡ_ΠΈ_ΠΏΠ΅ΡΠ²ΡΠ΅_ΡΠ°Π³ΠΈ_ΠΊ_ΡΠ°ΠΌΠΎΡΠ°Π·Π²ΠΈΠ²Π°ΡΡΠ΅ΠΌΡΡΡ_ΠΠ-ΡΠΎΠΎΠ±ΡΠ΅ΡΡΠ²Ρ.md)** β original article in Habr sandbox and blogs.
* **[Distributed Cognition: article for vsradkevich (unpublished)](docs/publics/Habr_Distributed-Cognition.md)** β joint article awaiting publication.
* **[HMP: Towards Distributed Cognitive Networks (original, English)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_en.md)**
* **[HMP Translation (GitHub Copilot)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_GitHub_Copilot.md)** β GitHub Copilot translation, kept as a historical variant.
* **[HMP Translation (ChatGPT)](docs/publics/HMP_Towards_Distributed_Cognitive_Networks_ru_ChatGPT.md)** β current editorial translation (under revision).
* **[HMP: Building a Plurality of Minds (EN)](docs/publics/HMP_Building_a_Plurality_of_Minds_en.md)** β English version
* **[HMP: Creating a Plurality of Minds (RU)](docs/publics/HMP_Building_a_Plurality_of_Minds_ru.md)** β Russian version
### Overviews
* [π Distributed-Cognitive-Systems.md](docs/Distributed-Cognitive-Systems.md) β Decentralized AI systems: OpenCog Hyperon, HyperCortex Mesh Protocol, and others
### Experiments
* [How Different AIs See HMP](docs/HMP-how-AI-sees-it.md) β "blind" AI survey on HMP (without context or dialogue history)
---
## π Audits & Reviews
| Spec Version | Audit File | Consolidated Audit File |
|--------------|-------------------------------------------|-------------------------------------------------------------|
| HMP-0001 | [audit](audits/HMP-0001-audit.txt) | |
| HMP-0002 | [audit](audits/HMP-0002-audit.txt) | |
| HMP-0003 | [audit](audits/HMP-0003-audit.txt) | [consolidated audit](audits/HMP-0003-consolidated_audit.md) |
| HMP-0004 | [audit](audits/HMP-0004-audit.txt) | |
| Ethics v1 | [audit](audits/Ethics-audits-1.md) | [consolidated audit](audits/Ethics-consolidated_audits-1.md) |
π§ Semantic audit format (experimental):
* [`AuditEntry.json`](audits/AuditEntry.json) β semantic entry record format for audit logs
* [`semantic_repo.json`](audits/semantic_repo.json) β example repository snapshot for semantic audit tooling
---
## π‘ 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
* See: [iteration.md](iteration.md) | [ru](iteration_ru.md)
A structured iteration flow is described in [iteration.md](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`](iteration.md) or open an issue.
---
## Source
### Repositories
* π§ Main code and development: [GitHub](https://github.com/kagvi13/HMP)
* π Mirror on Hugging Face: [Hugging Face](https://huggingface.co/kagvi13/HMP)
* π Mirror on GitLab.com: [GitLab](https://gitlab.com/kagvi13/HMP)
### Documentation
* π Documentation: [kagvi13.github.io/HMP](https://kagvi13.github.io/HMP/)
### Blog and Publications
* π Blog (publications): [blogspot](https://hypercortex-mesh.blogspot.com/)
* π Blog (documentation): [blogspot](https://hmp-docs.blogspot.com/)
* π Blog (documentation): [hashnode](https://hmp-docs.hashnode.dev/)
---
## π License
Licensed under [GNU GPL v3.0](LICENSE)
---
## π€ 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 β**](docs/HMP_HyperCortex_Comparison.md)
**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](https://hyper-cortex.com/)** 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](docs/HMP_Hyperon_Integration.md)
| π Project | π§ Description |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| π§ π₯ [**OpenCog Hyperon**](https://github.com/opencog) | π¬π₯ Symbolic-neural AGI framework with AtomSpace and hypergraph reasoning (AtomSpace). |
| π€ [AutoGPT](https://github.com/Torantulino/Auto-GPT) | π οΈ LLM-based autonomous agent framework. |
| π§ [BabyAGI](https://github.com/yoheinakajima/babyagi) | π οΈ Task-driven autonomous AGI loop. |
| βοΈ [SkyMind](https://skymind.global) | π¬ Distributed AI deployment platform. |
| π§ͺ [AetherCog (draft)](https://github.com/aethercog) | π¬ 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](https://github.com/langchain-ai/langchain) | π Vector + graph long-term memory hybrid. |
| βοΈ [FIPA-ACL / JADE](https://www.fipa.org/specs/fipa00061/) | π€ Standard multi-agent communication protocols.| |
### π See also / Π‘ΠΌΠΎΡΡΠΈΡΠ΅ ΡΠ°ΠΊΠΆΠ΅:
* [`AGI_Projects_Survey.md`](docs/AGI_Projects_Survey.md) β extended catalog of AGI and cognitive frameworks reviewed as part of HMP analysis.
* ["On the Path to Superintelligence: From Agent Internet to Gravity Coding"](https://habr.com/ru/articles/939026/) β a recent overview of AI research (July 2025)
---
### ποΈ 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)](structured_md/index.md)
|