Skip to content
dsh.fish
Bundle

dsh-text-diff

AI智能文本对比:找出两段文字的差异、语义变化和潜在风险点

Source
jetheaven
stars
1 stars
License
MIT
Updated
Updated yesterday

Readme

# dsh-text-diff

> DeepSeek Harness 文本对比插件 — 智能识别两段文本的语义差异

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![DSH Plugin](https://img.shields.io/badge/DSH-Plugin-blue)](https://github.com/deepseek-ai/deepseek-harness)

## ✨ 功能

- **语义级对比**:不只逐字比较,还能识别表述变化但含义相同的内容
- **三种对比模式**:semantic(语义对比)、line(逐行)、word(逐词)
- **结构化输出**:新增、删除、修改分类列出,附带 unified diff 格式
- **适用场景**:合同条款对比、代码版本审核、文章修改审阅、文档版本管理

## 📦 安装

```bash
dsh plugin add github:jetheaven/dsh-text-diff
```

## 🚀 使用

```
对比这两段文字的差异:
A: 我们将在下周一开始项目启动会,请各位准时参加,地点在三楼会议室。
B: 我们将在下周二上午10点开项目启动会,请各位准时参加,地点改为五楼大会议室。
```

### 工具参数

| 参数 | 类型 | 必填 | 说明 |
|------|------|------|------|
| `text_a` | string | ✅ | 原始文本(旧版本) |
| `text_b` | string | ✅ | 修改后文本(新版本) |
| `mode` | string | ❌ | 对比模式:semantic(默认)/ line / word |

## 🛠 开发

```bash
tsc
dsh plugin add /path/to/dsh-text-diff
```

## 💬 社区

DSH 社区插件发布帖:[deepseek-harness/discussions/1381](https://github.com/deepseek-ai/deepseek-harness/discussions/1381)

## 📄 License

MIT

Install

dsh plugin --profile web add github:jetheaven/dsh-text-diff#33aee986cc7fd585a61d98adbc9d8798dc815337

Profile: web

  • This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
Source