Wha1eChai/dsh-cross-session ↗★ 1
@wha1echai/dsh-cross-session
DSH 同一运行时跨会话发现与通信插件,提供 Fleet 供应端与只读工具消费端,支持跨会话工具调用。
AI 分析
核心用途是实现不同会话间的互通与协作。适合需要让 Agent 能够感知、查询或控制其他活跃会话的高级多任务场景。
安裝
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Wha1eChai/dsh-cross-session說明文件
閱讀完整 README ↗Usage
The Bundle installs the host-plane Fleet Provider and the core tool Consumer at its safe read-only default, exposing fleet_list and fleet_inspect. It does not install the optional reply-job Consumer. Mount @wha1echai/dsh-cross-session/reply-job in the same host or agent-preset composition as the official Jobs Consumer when fleet_wait is intended; scoped ToolRuntime registration keeps that optional tool inside the selected composition.
To enable message or cancellation tools, override the complete dsh-cross-session-tools row in the profile's cordis.patch.yml:
- id: dsh-cross-session-tools
name: '@wha1echai/dsh-cross-session/tool'
config:
controlMode: message # read-only | message | full
fleet_wait can consume only a reply receipt returned by enabled fleet_send; starting its job also requires an official Jobs controller Consumer in the owner's composition. Use full only in a composition where model access to cancellation is intended. controlMode selects tool visibility; it does not replace tools/pre-execute, approval, or ctx.tools.guard() policy.
Other plugins may consume Fleet directly by declaring fleet as a required service:
export const inject = ['fleet']
export function apply(ctx: Context) {
const live = ctx.fleet.list()
// Build a future command or UI adapter from the same-runtime JSON-safe view.
}
Such Consumers are separate plugins and are not included with the current package. Any future transport or remote Consumer also requires separate identity, transport, and permission design; the current sessionId must not be treated as a global remote address.