During agent development or model debugging, comparing text differences is a common requirement. DeepSeek Harness (DSH) adopts a plugin-based architecture, allowing developers to extend functionality as needed. This article introduces the dsh-text-diff plugin, which provides localized text comparison capabilities.
What Is This¶
dsh-text-diff is a line-level text diff tool. The plugin is maintained by the developer uckkk and is designed to solve the problem of directly comparing text differences locally without relying on external services.
Core Features¶
The plugin has the following characteristics:
- Line-level text diff: Supports comparing text differences line by line.
- Pure Node implementation: Based on the Node.js environment.
- No network: Runs locally and does not generate network requests.
- No external services: Does not depend on any third-party online services.
Installation and Enablement¶
Install the plugin using the official command:
dsh plugin add dsh-text-diff
After installation, configure the dsh.profile.bundles field in the profile’s package.json to add the plugin to the startup list.
{
"dsh.profile.bundles": ["dsh-text-diff"]
}
Typical Usage¶
After installation and configuration, directly invoke the tool registered by the plugin in a DSH session.
Applicable Scenarios and Notes¶
- Applicable scenarios: Use this plugin when you need to perform precise line-level comparisons between two text files locally.
- Notes: This plugin runs third-party code locally with the permissions of the current DSH process. Please be sure to review the source code and license (MIT) yourself before installing.
Summary¶
dsh-text-diff provides lightweight local text comparison capabilities and is suitable for scenarios with privacy or offline environment requirements. For more details, refer to the community catalog or GitHub.