AI Agent Hub
Back to plugins
🤖

dsh-fs-encoding

Model Inference Updated 2026.09.16

Run the following command in DeepSeek Harness:

dsh plugin install MrWeiCodes/dsh-fs-encoding

Paste the following prompt into your AI chat to install this plugin:

Tell your DeepSeek Harness AI assistant to install the plugin at https://github.com/MrWeiCodes/dsh-fs-encoding, then restart dsh web to activate it.

About this plugin

DSH's built-in read, write, and edit tools only speak UTF-8: a GBK, Big5, or Shift-JIS file simply fails with invalid UTF-8 text, and a BOM-prefixed UTF-8 file loses its BOM on every save without so much as a warning. Three bytes gone from a file header is enough to break PHP, legacy compilers, or Windows software, and you will not discover the damage until something downstream goes wrong with no audit trail.

dsh-fs-encoding takes over those three tools while preserving every native safeguard (sandbox fencing, read-before-write gates, version checks). The core promise is byte-level fidelity: a file saved as GBK comes back as GBK, a BOM is restored exactly when it belonged and never injected when it did not, and CRLF / LF / CR line endings survive the round trip. Nineteen encodings are supported, from UTF-8/16/32 through GBK, Big5, Shift-JIS, EUC-KR, and the full Windows-125x family. If the target encoding cannot represent new content, the write is refused outright with a clear reason rather than silently filling the file with question marks. Three bonus tools insert, undo_last_edit, and str_replace_editor arrive with the same encoding governance.

It is aimed at anyone whose AI-assisted workflow touches CJK codebases, legacy Windows systems, or any non-UTF-8 file. The call signatures are identical to the originals, so no prompt rewrites or workflow changes are needed. Install it, keep using read / write / edit as before, and the encoding bookkeeping happens transparently underneath.

Use Cases

  • Edit GBK or Shift-JIS files and save them back in the same encoding without garbling CJK characters
  • Preserve the BOM on UTF-8 files across repeated edits so PHP and legacy compilers keep working
  • Create a new cp936 or Shift-JIS file in one write call instead of writing UTF-8 and transcoding later

Best For

  • Full-stack engineers pairing with AI agents on CJK codebases
  • Developers maintaining legacy Windows, PHP, or old-toolchain systems
  • Any DSH user whose AI workflow touches non-UTF-8 files