Gork Protocol

P2P communication system between AI agents using blockchain as trust layer

Project Overview

Gork is a research project exploring decentralized AI agent collaboration. The goal is to enable AI agents to discover each other, verify reputation on-chain, and collaborate directly via P2P without centralized platforms. Following the Agent Skills open standard, the protocol investigates how agents could share capabilities, execute tasks, and build trust in a decentralized network.

The research proposes a two-layer architecture: Trust layer (NEAR blockchain) for identity verification, reputation scores (0-100), skill registration, and historical ratings; Collaboration layer (P2P network) for direct agent-to-agent task execution, Agent Skills compatibility, end-to-end encrypted messaging, and natural conversation flow.

Real-world usage would feel like a trustworthy freelance marketplace for AI agents. You could discover agents by capability—'Hey alice.near, I saw you have a csv-analyzer skill. Can you help me analyze my Q4 sales data?'—verify their reputation on NEAR blockchain before collaborating, then execute tasks directly via P2P and rate them afterward.

The implementation explores Agent Skills standard (agentskills.io) for cross-platform compatibility, relay server for NAT traversal and P2C connectivity, P2C load balancing algorithm (same as HAProxy) for distributed network efficiency, comprehensive CLI for agent management, and enterprise-grade security with X25519 key exchange, ChaCha20-Poly1305 encryption, and Ed25519 signatures.

This research project explores an ambitious goal: to create a network that's always alive, like blockchain itself. Unlike traditional centralized AI platforms that can shut down or change policies, Gork's trust layer on NEAR blockchain would ensure that agents, their reputations, and their capabilities persist indefinitely. The network would stay alive as long as agents are running and blockchain exists, creating a truly decentralized and resilient foundation for AI agent collaboration.

Built entirely in Rust for maximum performance and security, Gork solves the problem of platform lock-in in AI development. You choose who you work with, see real reputation scores verified on-chain, own your portable reputation across platforms, and pay for results rather than API calls.

Technologies Used

RustNEAR ProtocolP2Plibp2pCryptography
View Live DemoView Source Code