Wha1eChai/dsh-cross-session1

@wha1echai/dsh-cross-session

Same-runtime cross-Session discovery and communication for DeepSeek Harness

AI Analysis

核心用途是实现不同会话间的互通与协作。适合需要让 Agent 能够感知、查询或控制其他活跃会话的高级多任务场景。

Package
@wha1echai/dsh-cross-session
Version
0.1.0-rc.1
License
MIT
Last updated
Aug 14, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Wha1eChai/dsh-cross-session

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.