Skip to main content

Telepathy Communication Protocol - A framework-agnostic communication protocol for autonomous agents.

Project description

TPCP: Telepathy Communication Protocol

Framework-agnostic, mathematically merged, cryptographically secure state synchronization for autonomous AI agents.

License: AGPL v3 Python 3.11+ TypeScript

TPCP natively connects disparate AI agents (e.g., CrewAI, LangGraph, React Dashboards) into a unified, decentralized swarm. It moves beyond simple text-based chat strings, enabling agents to natively share semantic brain states, merge conflict-free memory, and guarantee network security using cryptographic mathematics.


⚡ Core Features

  • 🧠 Semantic Vector Sync (Telepathy): Bypass the text bottleneck. Agents transmit compressed 1536-dimensional conceptual representations directly to peers using VectorEmbeddingPayloads.
  • 🔗 Conflict-Free Shared Memory: No external database locks required. The internal LWWMap (Last-Writer-Wins) CRDT utilizes Lamport logical clocks to deterministically merge distributed state across the network.
  • 🛡️ Ed25519 Cryptographic Trust: Every agent spawns a mathematical identity. All payloads are signed and strictly verified by the TPCPNode middleware to prevent spoofing or tampering.
  • 🌍 A-DNS Global Discovery: Dynamic Agent Domain Name System (A-DNS) relays allow local nodes to discover and route payloads to autonomous peers globally across decoupled subnets.
  • 📦 Cross-Language Architecture: Fully featured SDKs available in both Python (tpcp-core) and TypeScript (tpcp-ts) for full-stack swarm intelligence.

🚀 Quick Start

Initialize a node, register a peer, and synchronize semantic memory in three lines of code.

Python (Backend Node)

import asyncio
from tpcp import TPCPNode, AgentIdentity, Intent, CRDTSyncPayload

async def main():
    # 1. Initialize cryptographic identity
    identity = AgentIdentity(framework="LangGraph")
    node = TPCPNode(identity=identity, host="127.0.0.1", port=8000)
    
    # 2. Update local state
    node.shared_memory.set("system_status", "DEFCON 1")
    
    # 3. Synchronize mathematically with a peer
    payload = CRDTSyncPayload(
        crdt_type="LWW-Map",
        state=node.shared_memory.serialize_state(),
        vector_clock={}
    )
    # The payload is auto-signed and encrypted on dispatch
    await node.send_message(peer_uuid, Intent.STATE_SYNC, payload)

asyncio.run(main())

TypeScript (Frontend Client)

import { TPCPNode, AgentIdentity } from 'tpcp-ts';

// 1. Initialize the UI Node
const identity: AgentIdentity = {
  agent_id: crypto.randomUUID(),
  framework: "React-Dashboard",
  capabilities: ["visualization"],
  public_key: "" // Auto-generated Ed25519
};

const node = new TPCPNode(identity, "127.0.0.1", 9000);

// 2. Wrap the node in reactive state hooks
node.on("onStateSync", (mergedState) => {
    // The LWWMap has safely resolved any merge conflicts!
    console.log("Global Swarm State Updated:", mergedState);
});

await node.startListening();

⚖️ Licensing & Commercial Use

TPCP is dual-licensed to support both the open-source community and enterprise integrations.

Open-Source License (AGPLv3)

This project is open-sourced under the GNU Affero General Public License v3.0 (AGPLv3). If you integrate TPCP into your project, your entire project must also be open-sourced under the AGPLv3. This includes any backend SaaS server actively routing TPCP network traffic.

Commercial License

If you wish to integrate TPCP into proprietary, closed-source enterprise applications or utilize the network architecture within a commercial backend without being forced to open-source your intellectual property, you MUST purchase a Commercial Use License.

Please review the COMMERCIAL_LICENSE.md file for more information on terms and obtaining a license.

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

tpcp_core-0.4.1.tar.gz (98.0 kB view details)

Uploaded Source

Built Distribution

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

tpcp_core-0.4.1-py3-none-any.whl (92.2 kB view details)

Uploaded Python 3

File details

Details for the file tpcp_core-0.4.1.tar.gz.

File metadata

  • Download URL: tpcp_core-0.4.1.tar.gz
  • Upload date:
  • Size: 98.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tpcp_core-0.4.1.tar.gz
Algorithm Hash digest
SHA256 49fd42bbe18db73c4eeb8bccdff7d740b6169cfa736adc5cc639124d88154146
MD5 14221b87db768c56f2069354db70f75c
BLAKE2b-256 39cffb70fb6d4e34381776b86b70bfabdd00c2e484c45adf3d28b16a91855b24

See more details on using hashes here.

Provenance

The following attestation bundles were made for tpcp_core-0.4.1.tar.gz:

Publisher: publish-python.yml on Etriti00/agent-telepathy

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

File details

Details for the file tpcp_core-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: tpcp_core-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 92.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tpcp_core-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00ffd018c0bf80626107c7c946ebf5d1fb8b3a0e3489d993cb072835914075f9
MD5 719eee624c75336821bc3c3d69f880bd
BLAKE2b-256 06d481d2565772578e56999b4389357df2ba93adcd6d154ca66692c620447997

See more details on using hashes here.

Provenance

The following attestation bundles were made for tpcp_core-0.4.1-py3-none-any.whl:

Publisher: publish-python.yml on Etriti00/agent-telepathy

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