A fork of Trac-Systems/intercom-swap that adds a real-time AI assistant (Claude) embedded directly into the Intercom sidechannel UI — making P2P communication smarter and more capable.
trac1na2880rtaa7zqy9dlkl935v27q322pe4ekljewdq7rsusz9c0hqssecn7np
PeerPulse Pro is an agentic Intercom app that merges the Trac Network P2P sidechannel layer with a live AI assistant (Anthropic Claude). It runs as a standalone index.html UI that peers can open locally — no server required — and interact with both the P2P network and an intelligent AI agent simultaneously.
This fork builds on top of intercom-swap's sidechannel infrastructure and adds:
- 🤖 Real AI replies via Anthropic Claude (claude-sonnet) — not scripted bots
- 🔐 End-to-end encrypted interface over Trac/Holepunch sidechannels
- 💬 Persistent conversation context — the AI remembers your session
- ⚡ Zero server required — pure P2P + AI-at-the-edge
- 🎨 Production-grade cyberpunk UI — modern dark theme, animated, mobile-ready
The Intercom stack was designed as an internet of agents — peers that can coordinate, negotiate, and communicate without central servers. PeerPulse Pro takes this one step further: it gives every peer a locally-embedded AI agent that can reason, answer questions, help negotiate, and assist with on-chain decisions — all within the encrypted P2P channel.
This is a real demonstration of the Trac vision: autonomous agents communicating peer-to-peer, enhanced by AI intelligence at the edge.
| Feature | Description |
|---|---|
| 🤖 AI Chat | Real Claude AI responses with full conversation memory |
| 🔐 E2E Encryption UI | Interface styled for encrypted Trac sidechannel usage |
| ⚡ Quick Prompts | One-click starter questions for new users |
| 📱 Responsive Design | Works on desktop and mobile |
| 🌐 No Backend | Single HTML file, runs anywhere |
| 💡 AI Context Awareness | AI is briefed about Trac Network and Intercom |
Just open index.html in any modern browser. The AI chat works immediately.
This UI is designed to be paired with the Intercom sidechannel backend:
# Install Pear runtime
npm i -g pear
# Clone this repo
git clone https://github.com/albasquarez/Trac_P2P_chat
cd Trac_P2P_chat
# Install dependencies
npm install
# Run as Pear app
pear run . --peer-store-name mypeerThen open index.html in your browser — the AI assistant becomes your local agent companion.
Browser (index.html)
|
|-- User sends message
|
v
[AI Layer] Anthropic Claude API
|-- Full conversation history maintained
|-- Context: Trac Network, P2P, crypto
|
[P2P Layer] Trac/Holepunch Sidechannel
|-- Hyperswarm peer discovery
|-- Protomux multiplexing
|-- Optional relay
- Upstream intercom: https://github.com/Trac-Systems/intercom
- Upstream intercom-swap: https://github.com/TracSystems/intercom-swap
- Awesome Intercom list: https://github.com/Trac-Systems/awesome-intercom
- Trac Network: https://www.tracnetwork.org
MIT — same as upstream Intercom. See LICENSE.md
Built on top of the excellent work by Trac-Systems and the Holepunch/Hypercore ecosystem.
"The internet of agents needs intelligence at the edge — PeerPulse Pro puts an AI directly in your P2P channel."

