DeepSHPlugins
dsh-weave 项目预览
GITHUB / COMMUNITY PROJECT

dsh-weave

客户端与终端JavaScriptMIT

基于 Iroh 的可信 DSH 主机网状网络:提供加密的节点发现、远程会话投递与连通状态。

0 Starsbaixianger 更新时间 2026-09-10
访问 GitHub 仓库
dsh-weave 项目预览

项目介绍

中文

基于 Iroh 的可信 DSH 主机网状网络:提供加密的节点发现、远程会话投递与连通状态。

English

Trusted Iroh mesh networking for DSH hosts, with encrypted peer discovery, remote session delivery, and reachability status.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
baixianger
仓库
baixianger/dsh-weave
GitHub Stars
0
Forks
0
开发语言
JavaScript
许可证
MIT
最近推送
2026-09-10
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

38/ 100
维护活跃
100
文档与实用信息
85
生态关注度
0
安装便捷信号
75
项目声明信号
100

近 1 天仍在更新;README 含完整安装与使用说明。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin --profile web add dsh-weave

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

DSH Weave

English | 简体中文

A private, peer-to-peer fabric for connecting DeepSeek Harness nodes across machines.

DSH Weave turns a collection of local DSH installations into an intentional network: nodes can discover trusted peers, exchange session-aware events, hand off work, and recover after a connection drops — without placing a central server in the execution path.

StatusTransportScope
Transport MVPIroh + QUICExplicitly trusted DSH nodes

What it gives you

  • Persistent local node identity and explicit peer trust.
  • Encrypted QUIC connectivity with direct paths and relay fallback through Iroh.
  • A remote Host, workspace, and session directory for higher-level plugins.
  • Separate reachability and agent-presence states, so offline is not mistaken for idle.
  • A DSH Settings page for ticket exchange, relay status, and trusted peers.

Product boundary

dsh-bridge is the local contract: it connects sessions in one DSH host. dsh-weave carries approved messages between those hosts. dsh-chat is the optional Web group-chat surface above both layers.

DSH node A ── dsh-bridge ── dsh-weave ── Iroh ── Iroh ── dsh-weave ── dsh-bridge ── DSH node B

Iroh supplies authenticated, encrypted QUIC connections, direct peer-to-peer paths where possible, and relay fallback where required. Weave owns DSH host identity, host trust, endpoint refresh, reachability, the workspace/session directory, and authenticated request delivery. Higher-level plugins own their domain membership and capabilities; for example, Chat owns rooms and room capabilities.

The remote directory reports agent state as idle, running, or offline. Host reachability is tracked separately as unknown, connecting, online, or offline; waking a persisted session remains a dsh-bridge responsibility.

Quick start

The transport MVP provides an Iroh endpoint, ticket exchange, explicit peer trust, and a message frame that is handed to dsh-bridge when both plugins run in the same host. It deliberately does not auto-trust a peer that merely knows an endpoint address.

dsh plugin --profile web add dsh-weave@next
dsh web

Open Settings → Weave on both Hosts, copy each node's ticket to the other Host, and explicitly trust it. Knowing an endpoint ticket does not grant trust until the receiving Host accepts it.

import {
  DSH_WEAVE_ALPN,
  DSH_WEAVE_PROTOCOL_VERSION,
  DSH_WEAVE_STAGE,
} from "dsh-weave";

console.log(DSH_WEAVE_ALPN);             // dsh-weave/1
console.log(DSH_WEAVE_PROTOCOL_VERSION); // 1
console.log(DSH_WEAVE_STAGE);            // design-preview

The first protocol

PlaneWhat it carriesDelivery rule
Controlinvite, membership, heartbeat, capability updatesrequest/acknowledgement
Taskoffer, accept, progress, result, cancellationidempotent at-least-once
Sessionuser-approved context or trajectory referencesexplicit sharing only

Every node has a persistent network identity. Joining a mesh requires an expiring invite and an explicit local approval. A transport connection alone never grants permission to execute a task.

Security posture

  • End-to-end encryption is supplied by Iroh's authenticated QUIC transport.
  • A mesh allowlist and capability grants sit above transport identity.
  • Remote work is denied by default until the receiving node approves it.
  • Secrets, provider credentials, and raw filesystem access never travel as ordinary session events.
  • A self-hosted relay/discovery deployment is the production path; public relays are for development only.

See architecture, wire protocol, and security model.

Pairing and delivery

Exchange each node's ticket out of band, then explicitly trust it before sending. dsh-weave rejects a frame from an untrusted endpoint even though Iroh has already encrypted the connection. This separates transport identity from DSH authorization. The node's Iroh identity is persisted locally under ~/.dsh/dsh-weave/identity.json with owner-only permissions, so a restart does not silently create a new peer identity. Explicitly trusted peer IDs and their last accepted endpoint tickets are also stored locally with owner-only permissions, so paired-host discovery survives a restart. An endpoint ticket also carries addressing hints; trust a fresh ticket again when a peer changes its reachable addresses. The trusted-host /dsh-weave/ticket RPC exposes that current ticket for pairing UIs.

The Web profile contributes a dedicated Settings → Weave page. It shows the current Iroh ticket and relay mode, accepts trusted peer tickets, and lists paired endpoint identities. Higher-level plugins such as dsh-chat consume the paired-host workspace/session catalog and send by stable host id. They never receive or persist peer endpoint tickets and do not own transport identity, pairing, or relay policy.

Roadmap

  • [x] Publish the v1 protocol contract
  • [x] dsh-bridge local event adapter
  • [x] Iroh endpoint adapter and ticket-based trust flow
  • [ ] Remote task request / approval / result streams
  • [ ] Durable outbox and reconnect replay
  • [ ] Self-hosted relay and discovery guidance

Development

npm run check

License

MIT © Xiang Bai

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目