Skip to content
Plugin

dsh-fs-encoding

MrWeiCodes191Updated yesterday

Open on GitHub

为 DeepSeek Harness(DSH)提供文件编码守护:让 AI 读写 GBK 等非 UTF-8 文件和带 BOM 的文件时不会弄坏编码

Practical score

82 / 100

Setup

Ready to use

License

MIT

Language

TypeScript

Install

Quick start

Copy the command, or hand the whole task to your harness agent.

git clone https://github.com/MrWeiCodes/dsh-fs-encoding.git
DSH versionDSH ≥ 0.1.5-rc.2
Install with your agent

Please install the DeepSeek Harness plugin "dsh-fs-encoding" for me. - GitHub repository: MrWeiCodes/dsh-fs-encoding (https://github.com/MrWeiCodes/dsh-fs-encoding) - Type: a Cordis plugin (installed into a DSH profile) - The plugin declares a DSH version requ…

From the README

A cleaned excerpt from the project's own documentation.

dsh-fs-encoding — DSH 文件编码守护 为 DeepSeek Harness(DSH)提供的文件编码治理插件:让 AI 读写文件时不再弄坏 BOM 与多字节编码 🌏 中文 English dsh · dsh-plugin · plugin · encoding · BOM · GBK · Big5 · Shift-JIS · UTF-16 · AI agent · 编码 · 文件编码 · 乱码 简介 DSH 自带的 read / write / edit / grep 四个文件工具 只认 UTF-8 ,遇到中文、日文、韩文项目里常见的编码就会出问题: - GBK、Big5、Shift-JIS 等编码的文件根本读不了 ,直接报 invalid UTF-8 text ,AI 只能干看着; - 带 BOM 的 UTF-8 文件能读,但 BOM 会被悄悄吃掉 ——AI 随手改一次,文件开头那三个字节就没了。对 PHP、旧版编译器、部分 Windows 软件来说,文件头少了 BOM 就可能解析出错或直接乱码; - grep 搜非 UTF-8 文件时,命中的行显示成 (line is not valid UTF-8) ;搜中文时更糟—— 返回 0 条且不报错 ,看起来像"文件里没有",实际是根本没搜; - 更麻烦的是 没有任何警告 :你只会在某天发现文件坏了,却不知道是哪次编辑弄坏的。 本插件接管这四个工具,在 完整保留原有行为 (沙箱围栏、读后写保护、版本校验、diff 展示)的前提下,让非 UTF-8 文件和 BOM 都能正确读写: 文件原来是什么编码,改完还是什么编码。 功能特性 - 字节级保真 :文件编码在首次读取时确定一次,之后每次保存都按原编码写回。改一个 GBK 文件,它仍然是一个 GBK 文件,不会被偷偷转成 UTF-8。 - BOM 保真 :原本有 BOM 就精确还原,原本没有就绝不擅自添加——两个方向都不会出错。 - 换行符保真 :CRLF / LF / CR 在读取时识别、保存时还原,Windows 项目不会被改成 LF。 - 绝不静默损坏 :…

Open on GitHub

Project details

by
MrWeiCodes
License
MIT
stars
19
Forks
1
Updated
Nov 11, 2026
Created
Sep 14, 2026
Language
TypeScript
Indexed from
topic

Related entries

Similar tools from the same corner of the ecosystem.

View all
Plugin

dsh-music-player

kendu76

music player plugin for deepseek harness

dshdsh-bundledsh-plugin
22Needs setup
80/100
Plugin

dsh-ops-mac

Salty-Mocha

macOS (Apple Silicon) port of dsh-ops — Rust-powered file tools & PTC batching for DeepSeek Harness. Ported from T-Auto/dsh-ops.

deepseekdeepseek-harnessdsh
3Ready to use
78/100
Plugin

dsh-ops

T-Auto

A toolkit for low-level operations in DSH, designed to reduce token usage and task execution time / DSH 底层操作工具插件,旨在减少 Token 消耗与任务耗时

dshdsh-plugindsh-plugins
5.7kReady to use
91/100