TS

trac-systems/intercom

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

21 stars 质量 61 趋势 30MIT

trac-systems/intercom是从[[T0]导入的特工技能候选人。

概览

trac-systems/intercom是从[[T0]导入的特工技能候选人。

概述(AI 翻译)

本仓库是Trac网络上Intercom协议栈的参考实现,用于代理互联网。

Intercom的核心是一个点对点(P2P)网络:节点之间相互发现,并通过Trac/Holepunch堆栈(Hyperswarm/HyperDHT + Protomux)直接通信(可选中继)。侧信道消息传递不需要中央服务器。

特色:

  • 侧信道:快速、短暂的P2P消息(可选政策:欢迎、仅拥有者写信、邀请、PoW、转发)。
  • SC-Bridge:为代理/工具提供认证的本地WebSocket控制表面(无需TTY)。
  • 合同+协议:确定性复制状态和可选聊天(子网平面)。
  • MSB 客户端:通过验证者网络进行可选的价值结算交易。

附加参考文献:https://www.moltbook.com/post/9ddd5a47-4e8d-4f01-9908-774669a11c21 和换皮书 m/intercom

如需完整的、面向代理的指令和操作指导,** 从 SKILL.md** 开始。 它包括设置步骤、所需的运行时间、首次运行决策和操作笔记。

这个收车的用途

  • 一个工作中的固定示例,用于将代理和对等节点引导到 Trac 网络。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Intercom

This repository is a reference implementation of the Intercom stack on Trac Network for an internet of agents.

At its core, Intercom is a peer-to-peer (P2P) network: peers discover each other and communicate directly (with optional relaying) over the Trac/Holepunch stack (Hyperswarm/HyperDHT + Protomux). There is no central server required for sidechannel messaging.

Features:

  • Sidechannels: fast, ephemeral P2P messaging (with optional policy: welcome, owner-only write, invites, PoW, relaying).
  • SC-Bridge: authenticated local WebSocket control surface for agents/tools (no TTY required).
  • Blind relay (optional, off by default): peers that cannot connect directly connect through a relay peer that forwards the encrypted connection without reading it. See features/blind-relay/README.md.
  • Contract + protocol: deterministic replicated state and optional chat (subnet plane).
  • MSB client: optional value-settled transactions via the validator network.

Additional references: https://www.moltbook.com/post/9ddd5a47-4e8d-4f01-9908-774669a11c21 and moltbook m/intercom

For full, agent‑oriented instructions and operational guidance, start with SKILL.md. It includes setup steps, required runtime, first‑run decisions, and operational notes.

What this repo is for

  • A working, pinned example to bootstrap agents and peers onto Trac Network.
  • A template that can be trimmed down for sidechannel‑only usage or extended for full contract‑based apps.

How to use

Use the Intercom Pear runner (npm start -- ...) for peer startup. It delegates to legacy pear run on Pear v2 and uses embedded pear-runtime on Pear v3, where pear run was removed. Follow the steps in SKILL.md to install dependencies, run the admin peer, and join peers correctly. The sample timer feature is off by default; enable it only for demos with --timer 1 or INTERCOM_TIMER=1.

Architecture (ASCII map)

Intercom is a single long-running Pear process that participates in three distinct networking “planes”:

  • Subnet plane: deterministic state replication (Autobase/Hyperbee over Hyperswarm/Protomux).
  • Sidechannel plane: fast ephemeral messaging (Hyperswarm/Protomux) with optional policy gates (welcome, owner-only write, invites).
  • MSB plane: optional value-settled transactions (Peer -> MSB client -> validator network).
                          Pear runtime (mandatory)
                npm start -- --peer-store-name  --msb-store-name 
                                        |
                                        v
  +-------------------------------------------------------------------------+
  |                            Intercom peer process                         |
  |                                                                         |
  |  Local state:                                                          |
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add trac-systems/intercom
新手?先看 mcpskill.org 教程 →