返回目录
模型与 MCP 插件

dsh-plugin-smart-patch

avaritiachaos/dsh-plugin-smart-patch

该仓库暂未提供项目说明。

Stars
0
Forks
0
Issues
0
更新
2 个月前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:avaritiachaos/dsh-plugin-smart-patch

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

@shion-lab/dsh-plugin-smart-patch

npm version License: MIT

Micro-surgical fault-tolerant code patching engine with 4-tier fuzzy matching for DeepSeek Harness (dsh).


🌟 Why dsh-plugin-smart-patch?

AI coding agents often fail at applying diffs because of:

  • Minor whitespace / indentation drift (e.g. 2 spaces vs 4 spaces).
  • Line ending mismatches (\r\n vs \n).
  • Non-essential comment differences in search blocks.

@shion-lab/dsh-plugin-smart-patch introduces 4-tier cascading matching:

  1. Tier 1: Exact Substring Match (100% confidence).
  2. Tier 2: Whitespace-Normalized Line Match (survives tab/space indentation drift).
  3. Tier 3: Unique Anchor-Based Boundary Match (locks unique prefix/suffix lines).
  4. Tier 4: Levenshtein Distance Fallback.

📦 Installation & Usage

npm install -g @shion-lab/dsh-plugin-smart-patch

In cordis.yml:

plugins:
  "@deepseek-ai/dsh": {}
  "@shion-lab/dsh-plugin-smart-patch":
    createBackup: false

📄 License

MIT © Shion Lab

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。