dsh-governance
Agent Organization Design & Governance for DSH
dsh-governance is an independent subproject within a larger project. It has no runtime dependencies on other components of the parent project, while providing a complete and self-contained set of product capabilities. It is therefore developed and released as a standalone project.
1. Project Overview
dsh-governance is an Agent organization design and governance tool built for the DSH Agent runtime.
While an Agent runtime is responsible for executing individual agents, organization design and governance focus on how multiple agents and their capabilities can be structured to work together through predefined responsibilities, capability assignments, and collaboration relationships.
These are not native responsibilities of an Agent runtime. However, they become essential when dealing with applications of any significant complexity.
dsh-governance treats an Agent organization as a system that requires continuous planning, design, implementation, and evolution. It provides an integrated toolchain covering the entire process, from initial organization prototyping to runtime deployment.
Its core capabilities fall into three areas:
- AI-Assisted Organization Designer — Describe business objectives and organizational requirements in natural language, and let an AI assistant help plan the organization and rapidly generate an initial organizational prototype.
- Visual Organization Editor — Design and refine organizational topology through a graphical canvas, editing Agents, Capabilities, Skills, and the relationships between them.
- DSH Runtime Deployment — Map the designed organization to the DSH Agent runtime, generate and configure the corresponding Presets, and turn the design into a working Agent organization.
dsh-governance does not aim to replace DSH or reimplement its Agent runtime. Instead, it focuses on organization design, capability configuration, and governance at the layer above the runtime.
2. Organization Model
dsh-governance models an Agent organization as a topology consisting of nodes and relationships.
2.1 Organizational Elements
An organization consists of four fundamental elements:
Agent
The basic execution unit within an organization. Each Agent has its own identity, role, behavioral instructions, and responsibilities, enabling it to perform specific functions within the organization.
Capability
External capabilities available to Agents, primarily provided through MCP tools. A Capability represents tools and services that an organization can access, such as file operations, database access, search, and business system integrations.
Skill
Reusable packages of domain knowledge, working methodologies, and operational procedures that provide Agents with specialized guidance and expertise.
Relationship
Defines the structural and collaborative connections between organizational elements. Relationships form the foundation of organizational topology.
2.2 Capability Relationships
Capability relationships describe the associations between Agents and Capabilities or Skills.
They answer questions such as:
- Which tools are available to each Agent?
- Which Skills can each Agent use?
- Which capabilities are visible to a particular Agent?
- How are capabilities distributed across the organization?
Capability relationships determine what an Agent can access and use within the organization.
2.3 Delegation Relationships
Delegation relationships describe task delegation and collaboration between Agents.
They answer questions such as:
- Which Agent can delegate work to another Agent?
- What hierarchical or collaborative relationships exist within the organization?
- How can Agents establish communication and collaboration channels?
Capability relationships and delegation relationships represent two distinct dimensions of governance: the former governs capability allocation and access, while the latter governs collaboration permissions between Agents.
3. Core Features
3.1 AI Organization Assistant
The Organization Assistant is the entry point for creating an Agent organization.
Instead of starting with a blank canvas, users can describe their business objectives, operational scenarios, and organizational requirements in natural language. The AI assistant then helps with:
- Analyzing business scenarios and workflows.
- Identifying the required Agent roles.
- Planning organizational structures and defining responsibilities.
- Selecting appropriate MCPs and Skills from the capability catalog.
- Establishing capability and delegation relationships between Agents.
- Generating an initial organizational topology.
The goal is not simply to generate a collection of Agent prompts, but to produce a structured organizational design with clearly defined roles, responsibilities, and capability assignments.
3.2 Visual Organization Editor
The Organization Editor provides a graphical environment for designing organizational topology.
Users can create, connect, and configure organizational elements directly on the canvas, making the structure and governance relationships of an organization visible and easy to manage.
Key operations include:
- Creating, deleting, and editing Agents.
- Adding and configuring MCP Capabilities.
- Adding and configuring Skills.
- Establishing and modifying capability relationships.
- Establishing and modifying delegation relationships.
- Viewing and adjusting organizational topology.
- Inspecting and validating organization designs.
Organization Editor

Figure: The dsh-governance visual organization designer, showing the complete editor interface, including the canvas, nodes, connections, toolbar, and property editing panel.
3.3 Organization Deployment
Once the organization design is complete, it can be deployed to the DSH Agent runtime.
The deployment process maps the abstract organizational model to configurations understood and supported by DSH.
Key operations include:
- Mapping organizational Agents to DSH Presets.
- Configuring Agent identities, roles, and behavioral instructions.
- Mapping Capabilities to the corresponding MCP tool configurations.
- Configuring Skills for individual Agents.
- Translating organizational relationships into runtime-supported capability authorization and collaboration configurations.
- Deploying the organization to the DSH runtime environment.
The result is that an organizational topology originally defined in the designer becomes a functional Agent organization that can actually operate within DSH.
4. Workflow
dsh-governance covers the major stages of the Agent organization's lifecycle, from initial design to runtime operation and continuous evolution.
Step 1: Organization Planning
Describe business objectives and requirements through the Organization Assistant to generate an initial organizational prototype.
Step 2: Organization Design
Refine Agent roles, capability assignments, and collaboration relationships in the visual editor to establish a complete organizational topology.
Step 3: Organization Validation
Inspect the organizational structure, capability configurations, and relationship definitions to ensure that the design meets the intended requirements.
Step 4: Organization Deployment
Map the organization model to the DSH runtime and generate the corresponding Presets and runtime configurations.
Step 5: Organization Evolution
As business requirements and runtime environments change, continue refining the organization through the Organization Assistant and visual editor, then deploy the resulting changes to the runtime.
5. Installation and Startup
dsh-governance is an extension tool for DSH. DSH must be installed and running before dsh-governance can be used.
5.1 Prerequisites
Ensure that DSH is installed and that at least one of the following clients can be started successfully:
- DSH Web
- DSH Desktop
5.2 Install dsh-governance
Option 1: Install through the Plugin Marketplace
In DSH, navigate to Settings → Plugin Marketplace, add the following index source, and then search for and install dsh-governance.
https://raw.githubusercontent.com/baiyuqi/dsh-governance/master/market-index.json
Option 2: Install the Git version manually
cd ~/.dsh/profiles/web
pnpm add -w 'git+https://github.com/baiyuqi/dsh-governance.git'
After installation, start a new session and select the designed preset from the mode dropdown.
5.3 Launch the Organization Designer
After installation, open dsh-governance from within DSH to enter the Agent organization design environment.
You can start with a blank canvas or use the Organization Assistant to quickly generate an initial organizational prototype.
6. Key Characteristics
An Independent Organization Governance Layer
dsh-governance manages Agent organizations through its own independent organization model, without relying on built-in organizational management capabilities within the DSH runtime.
Separation of Design and Execution
Organization design is distinct from runtime configuration. Users can design, refine, and validate an organization before implementing it in the runtime environment.
Topology-Based Organizational Modeling
Agents, Capabilities, Skills, and their relationships are represented as interconnected nodes and edges, making complex Agent organizations intuitive to visualize, edit, and manage.
Designed for Continuous Evolution
An organization is not merely a one-time collection of generated Agents. It is a system that can be continuously refined and evolved. dsh-governance provides a unified environment for its ongoing design and governance.
dsh-governance: Transforming isolated Agents into organized teams with structure, clearly defined responsibilities, and collaborative relationships.
还没有评论,来写第一条。