The core design philosophy of DeepSeek Harness is “everything is a plugin”, with plugins performing service injection through the Cordis runtime. As the number of plugins increases, determining which plugin provides a service or which plugins depend on it often requires examining code or configuration files, which fails to intuitively reflect the actual runtime state.
ewoowe/dsh-plugin-dependency-graph-plugin is a dependency graph plugin for DeepSeek Harness. Instead of reading data from static manifests, it directly captures real-time service injection relationships from the currently running Cordis instance. This project is maintained by ewoowe and is released under the MIT license.
Core Features¶
The plugin mainly provides the following capabilities:
- Real-time Runtime Reading: Directly reads plugin service injection relationships from the Cordis runtime, rather than static manifests.
- Dual-view Mode: Provides an embedded view within the settings panel, as well as a full-width independent view accessible via a new tab.
- Search and Filter: Supports searching by package name, Loader entry ID, and service name.
- Status Bar Control: Displays the legend and statistics; clickable to filter nodes with specific statuses.
- Canvas Interaction: Supports refresh, zoom, pan, and node selection.
- Auto-collapse: Collapses plugins with no dependencies by default to keep the interface clean.
- Runtime Isolation: Browser and Node runtimes are distinct and will not be merged.
Installation and Activation¶
Based on the provided materials, the installation commands are not explicitly listed. This plugin configures a dsh.bundle.patch mechanism in package.json (pointing to cordis.patch.yml), typically loaded through Harness’s package management or patch system.
# cordis.patch.yml (referenced from package.json)
bundle:
patch: "./cordis.patch.yml"
Typical Usage¶
1. View the Dependency Graph¶
Find the plugin in Harness’s settings interface, or directly open the dependency graph page in a browser to see the current visualization of dependency relationships.
2. Search Services¶
Use the search box to find specific services. Search supports matching package names, Loader entry IDs, and the service names provided by plugins. For example, entering ctx.locale can directly locate the node that provides this service.
Search results will list matching items; clicking a result row will locate the corresponding node in the graph.
3. Filter by Status¶
The dependency graph has a status bar at the top showing the count of nodes for each status (e.g., normal, error). Clicking a status pill button can filter the graph to show only nodes with that status.
4. Canvas Operations¶
- Select Nodes: Click a node to view details (including provided services and listened events).
- Pan and Zoom: Drag the canvas to pan, scroll the mouse wheel to zoom.
- Refresh: Click the refresh button to re-read runtime data.
Applicable Scenarios and Notes¶
- Version Requirements: Requires Node.js 22.19.0 or higher.
- Dependencies: Depends on libraries such as
@deepseek-ai/cordisandReact. - Runtime Differences: The trees collected from browser and Node sides are different; they are separate runtimes and cannot be merged for display.
- Dependency Types: Dependencies are divided into declared (
inject,@Injectdecorator) and runtime (ctx.inject). Declared dependencies must be satisfied when the plugin loads, while runtime dependencies are satisfied through callbacks. - Layout Algorithm: Graph layout is based on data rather than a physics engine, using golden angle distribution to ensure that the same combinations produce fixed image positions, facilitating localization.
Summary¶
This tool helps developers intuitively understand the operational status of DeepSeek Harness’s plugin ecosystem and is a powerful aid for troubleshooting service injection issues and understanding the plugin architecture.
- Project Homepage: ewoowe/dsh-plugin-dependency-graph-plugin
- Catalog Page: ewoowe/dsh-plugin-dependency-graph-plugin