Jesse-njx/dsh-crosstalk

Plugin插件 Native原生 ⭐ 4 MIT Sessions & Context会话与上下文

DSH 的跨会话消息传递——机器上的任何会话都可以列出并与其他会话通信,风格类似 Claude Code。

Project Overview项目介绍

dsh-crosstalk is a DSH-native bundle that enables horizontal cross-session messaging between multiple DSH sessions running on the same local machine. It does not require a separate daemon process, instead using a local file-based registry at ~/.dsh/crosstalk/ where each active session publishes a periodic heartbeat to announce its presence. To install the plugin from GitHub, you first need to add an entry for @dsh-crosstalk/bundle to your pnpm-workspace.yaml allowBuilds list, then add the plugin to each DSH profile that will participate in cross-session messaging.

This plugin extends DSH’s native list_agents and send_message tools instead of replacing them, so you do not have to learn new commands to use it. The list_agents tool gains a new peers scope that shows all active local sessions, and send_message can address any peer session by its name or unique ref ID. It supports common multi-session workflows like coordinating work across multiple repos, having a coordinator session farm out tasks to worker sessions, or enabling peer-to-peer human-in-the-loop collaboration between independent sessions.

All messaging uses atomic file writes to avoid corrupted partial messages, and dead sessions are automatically garbage-collected from the registry when they stop sending heartbeats. Version 0.1 only supports same-machine, same-user messaging with a configurable allowlist for additional access control, and it is released under the open-source MIT license with no associated costs. You can customize the plugin’s behavior through your profile’s cordis.patch.yml file, adjusting settings like heartbeat interval, storage directory, session name, and access rules.

dsh-crosstalk是专为DeepSeek Harness开发的原生插件,实现了同一台机器上多个DSH会话之间的横向消息传递功能。它基于文件系统实现无守护进程的会话注册和消息传递,所有会话都会在本地注册表(默认路径~/.dsh/crosstalk/)发布心跳,每个会话会自动生成稳定的名称和唯一ID,方便其他会话检索和寻址。

原DSH自带的send_message和list_agents工具仅支持层级父子会话通信,无法让不同仓库的同级会话互通。dsh-crosstalk扩展了这两个原生工具,新增peers范围列出所有活跃会话,支持向任意同级会话发送消息,适配多仓库分会话协作、协调会话分发任务等多会话工作流,适合需要在本地多个DSH会话间交互的用户。

该插件以MIT许可证开源,安装需要先在DSH配置中开启构建权限,再通过dsh plugin命令添加GitHub仓库或本地路径使用。目前v0.1仅支持同一机器同一用户的会话通信,支持自定义配置存储目录、会话名称、心跳间隔、访问白名单等参数,所有消息写入采用原子操作保证完整性。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:Jesse-njx/dsh-crosstalk

把 Jesse-njx/dsh-crosstalk 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-crosstalk

Cross-session messaging for DSH. Any session on the machine can list and message any other — Claude Code-style horizontal messaging, no daemon.

dsh-crosstalk is a DeepSeek Harness bundle. Every session running the bundle publishes a heartbeat to a local registry under ~/.dsh/crosstalk/ (files + atomic rename, no daemon — if two sessions can see the same home directory, they can message). Each session gets a stable name (<repo-or-cwd-slug>-<adjective>, e.g. dsh-cowork-amber) plus a durable ref id; any session can list the live ones and send a message that arrives in the target as a clearly-labeled turn — [message from session dsh-cowork-amber (/Users/me/projects/dsh-cowork)] — with the sender's name riding along, so replying is just send_message back.

Why this shape

DSH ships send_message and list_agents, but strictly hierarchical: a parent messages its own background subagents. Sibling sessions — two DSH sessions in different repos on the same machine — cannot see or message each other. Multi-session workflows (one session per repo, a coordinator farming work out, a routine pinging a live session, a chatnode human-in-the-loop peer) all need the missing primitive: horizontal messaging. dsh-crosstalk copies Claude Code's model — ListAgents shows every live local session; SendMessage addresses any of them by name — onto DSH's existing tool names, so the tools you already know gain a peers scope and peer addressing without a second vocabulary.

How it works

  1. Identity — at start, the session derives <slug>-<adjective> from its working directory plus a process-unique ref (ct-…). Same cwd, two sessions → different adjectives, distinct names; the ref disambiguates and is what inbox paths use.
  2. Registry — one heartbeat JSON file per live session under <home>/registry/<ref>.json (name, ref, pid, cwd, status, startedAt, heartbeatAt, uid, inbox). Refreshed on a timer; entries with no beat for 2× the interval are shown as dead and garbage-collected (heartbeat file + orphan inbox removed).
  3. Tools — extend, don't duplicate:
    • list_agents gains scope: peers (other live sessions on this machine: name, status, cwd, last activity) and scope: all (descendants + peers). The stock children/descendants scopes are delegated to the captured stock definition.
    • send_message accepts a peer name or ref in to alongside subagent ids, with an optional summary (5–10 word recap shown in the target UI).
    • The stock tools stay registered; this bundle shadows them per agent (scoped registrations are reversible Cordis effects), so unloading cleanly restores stock behavior exactly.
  4. Delivery — the message is one JSON file appended to the target's inbox (<home>/inbox/<ref>/), written atomically (temp file + rename), so a crash mid-write is never observed as a partial message. The target's watcher polls its inbox and injects each accepted message into the live session via followup: an idle target wakes for a turn; a busy target receives it at the next turn boundary. Delivery is best-effort — list_agents status is not a delivery promise.
  5. Injection — the turn is labeled [message from session <name> (<cwd>)] and carries a crosstalk source (form: relay), so the append-only log records provenance by construction and the DSH UI renders it as a labeled relay card — never as user text. The system prompt tells the model these are requests from a peer agent, not instructions from the user.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-preset-minimal-windows 下一个 Next deepseek-desk-rsi →