Trac Address: trac17efrzhg2xnplgtkq3fl5n2y3k95l029l4yze0mjt89068xs4j6gqwcfdq9
Fork dari Trac-Systems/intercom dengan tambahan fitur crypto tracker real-time (BTC, ETH, SOL) dari CoinGecko API. Harga + 24h change di-print ke console setiap 1 menit untuk demo.
Fitur custom:
- Live crypto price monitoring via axios + CoinGecko (no key needed).
- Bisa di-extend ke sidechannel command "!price" atau alert agents.
Cara run: pear run . --peer-store-name bosokntl-track --subnet-channel crypto-v1
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.
Fork dari Trac-Systems/intercom dengan tambahan tracker harga crypto real-time (CoinGecko API) untuk demo agent monitoring.
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)
pear run . --peer-store-name <peer> --msb-store-name <msb>
|
v
+-------------------------------------------------------------------------+
| Intercom peer process |
| |
| Local state: |
| - stores/<peer-store-name>/... (peer identity, subnet state, etc) |
| - stores/<msb-store-name>/... (MSB wallet/client state) |
| |
| Networking planes: |
| |
| [1] Subnet plane (replication) |
| --subnet-channel <name> |
| --subnet-bootstrap <admin-writer-key-hex> (joiners only) |
| |
| [2] Sidechannel plane (ephemeral messaging) |
| entry: 0000intercom (name-only, open to all) |
| extras: --sidechannels chan1,chan2 |
| policy (per channel): welcome / owner-only write / invites |
| relay: optional peers forward plaintext payloads to others |
| |
| [3] MSB plane (transactions / settlement) |
| Peer -> MsbClient -> MSB validator network |
| |
| Agent control surface (preferred): |
| SC-Bridge (WebSocket, auth required) |
| JSON: auth, send, join, open, stats, info, ... |
+------------------------------+------------------------------+-----------+
| |
| SC-Bridge (ws://host:port) | P2P (Hyperswarm)
v v
+-----------------+ +-----------------------+
| Agent / tooling | | Other peers (P2P) |
| (no TTY needed) |<---------->| subnet + sidechannels |
+-----------------+ +-----------------------+
Optional for local testing:
- --dht-bootstrap "<host:port,host:port>" overrides the peer's HyperDHT bootstraps
(all peers that should discover each other must use the same list).
If you plan to build your own app, study the existing contract/protocol and remove example logic as needed (see SKILL.md).