dsh-combinagents: Adding an Editable Reporting Hierarchy Layer for DSH Agents and Sub-Agents

Introduction

DeepSeek Harness (DSH) provides each sub-agent with a fixed native parent relationship, which can be inflexible when building complex teams. Sometimes you need to adjust reporting relationships based on business logic without modifying the underlying sub-agent tree. dsh-combinagents provides a standalone, editable reporting-relationship overlay for DSH agents and sub-agents.

Plugin Positioning

dsh-combinagents is a local plugin bundle (maintained by Tetrachlorosilane) that layers an editable reporting-relationship structure on top of the DSH native sub-agent tree. It does not move sessions, rewrite native parents, change workspaces, or modify sandbox/permission policies. It only changes who reports to whom, while preserving each session’s original workspace, sandbox mode, and permission settings.

Core Features

1. Reporting-Relationship Overlay

  • The right sidebar provides an Agent Composition tab.
  • An independent count chip is displayed next to the session title.
  • You can add local sessions or external agents as nodes and set a Reports To parent (no parent means it acts as the root).
  • Supports renaming nodes (without changing the DSH session title).

2. Edge-Level Authorization

  • Set Message and Interrupt permissions on each edge.
  • New manual connections allow messages by default; interrupt is off by default and must be explicitly enabled.

3. Auto-Mirroring & Sync

  • When a sub-agent is launched, the plugin automatically mirrors it into the composition and grants a delegated edge.
  • When a sub-agent is launched but not auto-mirrored, use Sync Native Agents to import native descendants.

4. Teams & Tasks

  • In Teams, select a lead and member nodes to create a team.
  • A team has its own task board, and task tools (create, list, get, claim/release, edit, dependencies, reassign, complete, reopen, delete) are scoped to that team.
  • Tasks created using the Team selector within a session are attributed to the corresponding team.

5. Clone & Branch

  • Clone Whole Tree: Clones the entire team tree; the source tree remains unchanged, including copied tasks and team scope.
  • Bud as New Root: Clones a node and its subtree as a new independent root.

6. Native Tool Model Preservation

  • The plugin does not register shadow copies of native tools; instead, it registers a tools/execute interceptor.
  • For the following six tools, the native definitions (name, description, parameters, output schema, display, prompt guidance, limits) remain unchanged—only the execution path uses the composition:
  • list_agents
  • send_message
  • interrupt_agent
  • subagent
  • subagent_fork
  • wait_agent

7. Cross-Profile Convergence

  • When another DSH profile edits the composition, changes are visible without restarting the Host.

8. Cleanup Helpers

  • Session Cleanup: Preview orphaned cloned sessions and one-time placeholders; after opening the first user message / last message snippet, you can delete them during a confirmation step.

Installation & Enablement

This plugin is a local DSH bundle and is not published to npm. Installation steps are as follows:

  1. Place the plugin checkout directory at a stable local path.

  2. Register it as a local bundle in your DSH profile. Use the DSH Plugin Manager’s bundle installation method (corresponding to your DSH version), or use an equivalent local package link in the profile.

  3. Enable the plugin in your profile configuration. Example:

- id: dsh-combinagents
  config:
    autoGrantDelegatedEdges: true
    # Only needed when the JSONL session root is not $DSH_HOME/sessions
    # sessionRoot: /absolute/path/to/sessions
  disabled: false
  1. Keep the native agent plugin mounted. Do not use the legacy composed preset that removes the native agent plugin; otherwise, the plugin has no native definitions to intercept.

  2. Restart the Host and refresh the GUI.

Typical Usage

  1. Open a standard DSH session.

  2. Open Agent Composition from the right sidebar or the count chip at the session title.

  3. If the session has no composition yet, click Create Composition.

  4. Click Add a Session, select another session, set its Reports To parent, or keep it as a root node.

  5. Open Details on an edge and enable message or interrupt authorization.

  6. Use subagent or subagent_fork to launch a sub-agent; it will be auto-mirrored into the composition.

  7. If any native descendants are not mirrored, use Sync Native Agents to import them.

  8. In Teams, select the lead and member nodes, then create the team.

  9. Use the Team selector in shared tasks; tasks will be attributed to the corresponding team.

Applicable Scenarios & Notes

  • Suited for scenarios where you need to adjust reporting relationships based on business logic without modifying the DSH native sub-agent tree.
  • The plugin runs with the current DSH process permissions. Ensure your profile exposes sessions, storageDomain, subagents, and the right sidebar UI.
  • It is recommended to review the source code and license (MIT) before installation.
  • A session can belong to at most one composition. If you add a session already in another composition to the current one, its subtree will be moved, and the remaining part of the source forest will be re-keyed to a new local root.

Summary

dsh-combinagents provides a standalone reporting-relationship overlay for DSH agents and sub-agents, supporting custom teams, task scoping, and edge-level authorization, while keeping the native tool model and session context intact. It does not move sessions or modify sandbox/permission policies, making it ideal for flexibly organizing team structures and collaboration flows while preserving the native agent tree.

  • Plugin directory page: https://www.skillhub.cn/plugins/Tetrachlorosilane/dsh-combinagents
  • GitHub: https://github.com/Tetrachlorosilane/dsh-combinagents
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye