Introduction¶
Running agents in DSH often confines conversations to the local machine: to show a colleague a full context, let others observe a session, or enable peer-to-peer communication within a LAN, the common workarounds are screenshots, file exports, or building custom services. Once data leaves the local network, aligning boundaries and consent mechanisms with the session state within the Host becomes difficult.
dsh-chat, a DSH client-class plugin submitted by maintainer z8313568, is positioned as a “Decentralized AI Social and Creative Network for DSH”—covering discovery, friends, sharing, live streaming, and node co-building. The current implementation scope corresponds to Stage 0 + Stage 1 core skeleton of the V2.0 product plan: it can be installed, it runs, and it can be verified by external processes. To summarize the goal from the README in one sentence: Make every AI conversation shareable, discussable, and reproducible. By default, no bytes leave the machine after installation until you explicitly enable sharing or live streaming for a specific session in the UI.
Directory Page: skillhub.cn/plugins/z8313568/dsh-chat. Source Code & Documentation: github.com/z8313568/dsh-chat (MIT, package version 0.1.0). Peer dependency declarations: DSH >=0.2.0-rc.2 <0.3.0, Node >=22.19.
What is this¶
dsh-chat provides a Host-side component (node identity, networking, RPC) and a Web client (interface and slot injection) within DSH. The transport layer is implemented via a replaceable NodeTransport interface, currently LanTransport: RFC6455 WebSocket, UDP beacon discovery, invitation codes, and bidirectional Ed25519 handshakes. The upper layer is not locked into libp2p/WebRTC, facilitating the plan to “test first, then select technology.”
Honest boundaries are documented in the repository’s docs/plan-coverage.md: Not yet implemented are group chat, offline message relaying, UDP transport layer (TCP hole punching is limited by simultaneous open constraints), IPFS/content-addressed distribution, blockchain attestation, etc. Scenarios such as NAT traversal, cross-carrier latency, and enterprise firewalls are marked in the README as not fully verified in real-world environments for this release, pointing to the matrix and device experimentation methods in docs/network-testing.md.
Core Features (Verified in Current Version)¶
Session Sharing¶
On the session page, use “Share Session” to sequentially select access scope, outbound granularity, and content type; you must view the preview before publishing. The shared object includes: content hash id (hashing fields excluding id and sig), Merkle root, author Ed25519 signature, access policy, and a disclosure description table (stating what is included and excluded). During verification, integrity and authenticity are concluded separately, consistent with plan §6.4—the hash proves consistency but cannot prove the content is necessarily true.
Session Live Streaming¶
Streamer Side: Start / Pause / Resume / End / Publish Replay.
Viewer Side: Backfill by seq, deduplication, and gap detection.
Live streaming events are signed, with types aligned to plan §7.4 (e.g., session_started, message_added, artifact_published, stream_paused, etc.). Pause is not End; the event sequence number is advanced solely by the streamer, while viewer chat uses a separate channel to avoid polluting the factual sequence.
Node, Privacy, and Egress Control¶
- On first launch, an Ed25519 identity is generated, and the private key is written to
~/.dsh/dsh-chat/identity.json(permission0600); it is not uploaded and does not enter outbound structures. - Authorization is a four-tuple of “Session × Content Type × Scope × Validity”. Default is deny, and no cross-process inheritance; a preview is required before sharing/streaming, and the Host will reject RPCs without
previewed. - Egress redaction aligns with the official
dsh-session-telemetrywaterfall: if any rule errors out, it fails-closed and withholds the entire record. - “One-click Pause All Contributions”: Revokes all authorizations and ends all live rooms.
Node Network and Relay¶
- Private chat is end-to-end encrypted (X25519 + AES-GCM); relays cannot decrypt it at the protocol layer; plaintext private chats are refused relay.
- Hole punching: Exchange candidates and both parties dial simultaneously; Full Cone/Restricted Cone are punchable, Symmetric NAT is skipped and marked as such.
- Multi-relay scoring based on “Manually Specified > Target Affinity > Local Success Rate > Load”; others’ proofs do not override local measurements. Reachability adopts layered forensics, where inbound empirical evidence is the sole criterion, not relying on “comparing public IPs”.
- Live stream viewer-to-viewer distribution: Viewers who have received data can help relay to others in the same room; the README provides measured reductions in publisher uplink under specific reachability assumptions (e.g., approximately -80% when all members are reachable).
Plugin Directory (Plan §4)¶
Locally verifiable checklists and four-dimension scoring (Features / Usability / Stability / Documentation). Plugins installed from the filesystem are marked verified: false in the directory; aggregated results carry sybilResistance: 'none'.
Installation and Activation¶
The installation path in the documentation is: prepare the dsh-chat source directory locally, build it, and then load the bundle via DSH’s plugin_manager (do not manually modify the profile’s package.json or cordis.patch.yml; install_bundle handles the patches).
First, run dependency installation and build in the source directory (generates lib/, Host ESM + Client CJS):
npm install
npm run build
Replace the path in the command below with your absolute path to dsh-chat, and install or reinstall to the profile (the README example uses desktop):
plugin_manager { action: "install_bundle", target: "/absolute/path/to/dsh-chat" }
The plugin’s own cordis.patch.yml only inserts load items, for example:
- insert:
- id: dsh-chat
name: dsh-chat
Host-side code changes require a DSH restart; install_bundle alone will not reload cached Node ESM modules. Changes to src/client/** generally only require a page refresh (Client HMR replaces based on fingerprint). Changes to cordis.patch.yml config trigger a hot reload in about 1 second, but the README notes that this version does not export a Config schema, so no form will appear in the Plugins settings page; configuration can only be done via patches, and a DSH restart is required after changes.
Uninstall:
plugin_manager { action: "set_bundle", target: "dsh-chat", enabled: false }
~/.dsh/dsh-chat/ will not be deleted automatically (contains identity private key); you need to back it up and clean up manually.
Configuration Example¶
Add config: under the corresponding entry in cordis.patch.yml (see src/host/config.js for default values):
- insert:
- id: dsh-chat
name: dsh-chat
config:
identity:
nickname: My Node
privacy:
defaultSharingMode: disabled # disabled | minimal | standard | full
redaction:
keywords: ["Internal Codename"]
patterns: ["SECRET-\\d+"]
discovery:
enabled: true
beaconPort: 47899
listen:
host: 127.0.0.1 # Change to LAN address to broadcast to LAN
port: 0
Contribution-related default values (excerpt, see docs/contribution-defaults.md for full description):
contribution:
mode: auto # off | auto | on
swarm:
enabled: true
minRoomSize: 4
maxServees: 4
maxServeBytesPerMinute: 33554432
maxCacheBytes: 536870912
onlyOnPower: true
onlyOnUnmetered: true
monthlyUploadBudgetBytes: 21474836480
Plan §9.2 requires that basic functionality is not contingent on contribution; this project distinguishes between “swarm distribution for live streams already being watched (default on)” and “relay to strangers (default auto, constrained by reachability, metered networks, power, and budget).”
Typical Usage and Verification¶
- After installing the bundle and restarting DSH, use the sharing or live streaming flow on the session interface as needed (complete preview and strategy selection before sharing).
- LAN Discovery: Change
listen.hostto a LAN address and configurediscovery.beaconPort(default 47899). Test in a controlled environment according to the README and network documentation. - After installation and restart, you can use an independent process to verify node discovery and handshake:
node scripts/verify-live-node.mjs
The README states that external independent processes can be discovered within approximately 8ms, complete bidirectional Ed25519 handshakes, and exchange signed envelopes; see docs/verification.md for detailed output.
Development Self-check:
npm test # README: 314 tests
npm run doctor # Troubleshoot plugin loading and boot stages
cat ~/.dsh/dsh-chat/boot.json # phases like apply / rpc-mounted / apply-completed
Network Specifics (within source directory):
npm run test:network
npm run lab -- probe --seconds 20
Use Cases and Notes¶
Who it is for: Developers or intranet pilot users who need session-level sharing/live streaming within DSH, LAN node interconnection, and are willing to accept the “Stage 0+1 skeleton” and unimplemented items listed in the documentation.
Permissions & Security: The plugin runs with the current DSH process permissions; read the source code and MIT license before installation, understand the identity key location and the explicit consent model for sharing/live streaming. The community directory skillhub.cn is an independent site with no official affiliation with DeepSeek / High-Flyer.
Loading Failures: Cordis hard dependencies may cause silent failure to load; if the interface shows the Host half is unreachable, check boot.json and npm run doctor as per the README. Disabling and re-enabling cannot replace a restart to load new Host code.
Testing & Stars: GitHub public stars are 0; the README self-reports 314 passing tests and network subset results, subject to the repository’s current CI/local npm test.
Conclusion¶
dsh-chat packages “default no egress, explicit consent for outbound, verifiable sharing/live streaming, and replaceable node transport layers” into an installable DSH plugin, serving as a verifiable first skeleton for a decentralized AI social network. For further product coverage, relay, and hole-punching designs, see the repository’s docs/; for installation and troubleshooting, refer to the README.
- Plugin Directory: https://www.skillhub.cn/plugins/z8313568/dsh-chat
- GitHub: https://github.com/z8313568/dsh-chat