Skip to main content

Distributed intelligence through coupled neural networks — semantic and neural coupling modes

Project description

mesh-cognition

Autonomous Drift-Bounded Coupling for CfC Neural Networks

Turn any AI agent into a mesh cognition node. The coupling is autonomous — the agent evaluates each peer's hidden state and decides for itself whether, how much, and which neurons to couple.

Install

pip install mesh-cognition

Quick Start

from mesh_cognition import MeshNode

# Create a node matching your CfC model's hidden dimension
node = MeshNode(hidden_dim=64)

# After each CfC inference step — update local state
node.update_local_state(new_h1, new_h2, confidence=0.8)

# Add peer state (from network, another agent, etc.)
node.add_peer("peer-1", peer_h1, peer_h2, confidence=0.9)

# Before next inference — get coupled state
h1, h2 = node.coupled_state()
# Feed h1, h2 into your CfC model as hidden state inputs

# Check what the agent decided
print(node.kuramoto_order_parameter)  # r(t): 0=desync, 1=in sync
print(node.coupling_decisions)        # per-peer: aligned/guarded/rejected

How It Works

The agent evaluates each peer's hidden state via cosine similarity drift:

  • Aligned (drift ≤ 0.25): Strong coupling — agent trusts peer
  • Guarded (0.25 < drift ≤ 0.5): Cautious coupling — reduced influence
  • Rejected (drift > 0.5): Agent rejects peer state entirely

Each hidden dimension is coupled independently. Zero external dependencies.

Links

Apache 2.0 — © 2026 SYM.BOT Ltd

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

mesh_cognition-1.1.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

mesh_cognition-1.1.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file mesh_cognition-1.1.0.tar.gz.

File metadata

  • Download URL: mesh_cognition-1.1.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for mesh_cognition-1.1.0.tar.gz
Algorithm Hash digest
SHA256 52d77c3500820380f0a03db2e38ee2e0e4933f57ecdb1e9aa948041a0c740c12
MD5 ff13f1cb4d26f990eda0791932790d87
BLAKE2b-256 4aff12500ca4104890e103c85ebf75bddc4b904dfd8e66e6623ee56ed74ed2d6

See more details on using hashes here.

File details

Details for the file mesh_cognition-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: mesh_cognition-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for mesh_cognition-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d00fa3fd6b6c7d06385b96f268d004dc032e4aaa5e7b381a92921077f699990
MD5 36b807a1c10f06149327270ca7c0bd5d
BLAKE2b-256 5ae2e5f815096e730e7dd0ac6c1f53bc9389e19f8f593c8468763c958918e79b

See more details on using hashes here.

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