863683348/dsh-plugin-translation
面向DeepSeek Harness代理的翻译工具包:句子切分、术语/词汇表提取、源语-目标语QA、语气指南,以及会话工作区中的持久翻译记忆。
项目介绍Project Overview
dsh-plugin-translation 是 DeepSeek Harness 的翻译工具包,提供文本分段、术语提取、源语-目标语质检、语气指南及持久化翻译记忆。适合需要分块翻译、术语一致性和质量校验的场景。注意:记忆与术语文件路径受限于会话工作区,不可越界访问。
dsh-plugin-translation is a translation toolkit for DeepSeek Harness agents. It provides text segmentation, glossary extraction, source-target QA checks, tone guides, and a persistent translation memory. Use it for chunked translation, terminology consistency, and quality validation. Note: memory and glossary file paths are confined to the session workspace and cannot escape it.
请帮我了解并安装插件:【dsh-plugin-translation】【https://github.com/863683348/dsh-plugin-translation】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add dsh-plugin-translation
把 863683348/dsh-plugin-translation 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-plugin-translation
A translation toolkit for DeepSeek Harness agents: chunking, glossary extraction, source–target QA, tone guides, and a durable translation memory. The model translates; the plugin chunks, checks, and remembers.
Install
dsh plugin --profile <profile> add dsh-plugin-translation
Restart DSH. The translate_kit tool is registered host-wide.
Tool
| action | purpose |
|---|---|
segment |
Split text into numbered, bounded chunks for chunked translation |
glossary |
Extract candidate terms (acronyms, camelCase, domains, numbers+units, emails, URLs) with counts |
check |
Source–target QA: numbers/units, brackets, length ratio, doubled punctuation |
tone |
Register-specific tone guide (formal / colloquial / technical, en / zh) |
memo_get |
Read the translation memory (newest first) |
memo_add |
Save a source→target pair to the memory file in the session workspace |
glossary_get |
Read the durable glossary (newest first) |
glossary_add |
Add or update a source→target glossary term in the workspace glossary file |
glossary_remove |
Remove a glossary term by source |
consistency |
Cross-segment terminology consistency check against the glossary |
Config
All optional, on the composition row's config:
| key | default | meaning |
|---|---|---|
personaSection |
true |
register the translation prompt-guidance section |
sectionOrder |
6 |
prompt section order (persona is 0, ascending) |
memoFile |
.dsh/translation-memo.md |
memory file path (relative to the session workspace; cannot escape it) |
glossaryFile |
.dsh/translation-glossary.md |
glossary file path (relative to the session workspace; cannot escape it) |
maxGlossaryEntries |
200 |
entries kept in the glossary file |
maxMemoEntries |
200 |
entries kept in the memory file |
Design
Pure logic (lib/translation.js) has zero DSH/Cordis imports and is unit-tested in isolation; lib/index.js is the thin Cordis plugin. Memory access goes through ctx.fs and every resolved path is containment-checked against the session workspace.
License
MIT
Roadmap
See ROADMAP.md — next five versions (v0.2.0 – v0.6.0): glossary management & consistency, tone memory & quality scoring, side-by-side diff & placeholder protection, conflict detection & effort stats, glossary versioning & batch pipeline.
nexu-io/open-design
freestylefly/awesome-gpt-image-2
anywhere-labs/dsh-desktop
walkinglabs/learn-harness-engineering
awesome-dsh-plugin/awesome-dsh-plugin
MemTensor/MemOS