DSH Hub

863683348/dsh-plugin-translation

dsh-plugin-translation

BundleWorkflow1 GitHub stars· updated 2026-08-19

Translation toolkit for DeepSeek Harness agents: sentence segmentation, term/glossary extraction, source-target QA, tone guides, and a durable translation memory in the session workspace

Install

npx @deepseek-ai/dsh plugin --profile <profile> add dsh-plugin-translation

Restart `dsh web` after install. Bundle APIs can change during the developer preview.

README badge

dsh-plugin-translation DSH Hub badge
[![DSH Hub](https://dshhub.dev/badge/dsh-plugin-translation.svg)](https://dshhub.dev/plugins/dsh-plugin-translation)

Paste this into your README. The star count updates with every catalog sync.

From the README

Excerpt from 863683348/dsh-plugin-translation, cleaned of badges and images.

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

actionpurpose
segmentSplit text into numbered, bounded chunks for chunked translation
glossaryExtract candidate terms (acronyms, camelCase, domains, numbers+units, emails, URLs) with counts
checkSource–target QA: numbers/units, brackets, length ratio, doubled punctuation
toneRegister-specific tone guide (formal / colloquial / technical, en / zh)
memo_getRead the translation memory (newest first)
memo_addSave a source→target pair to the memory file in the session workspace
glossary_getRead the durable glossary (newest first)
glossary_addAdd or update a source→target glossary term in the workspace glossary file
glossary_removeRemove a glossary term by source
consistencyCross-segment terminology consistency check against the glossary

Config

All optional, on the composition row's config:

keydefaultmeaning
personaSectiontrueregister the translation prompt-guidance section
sectionOrder6prompt section order (persona is 0, ascending)
memoFile.dsh/translation-memo.mdmemory file path (relative to the session workspace; cannot escape it)
glossaryFile.dsh/translation-glossary.mdglossary file path (relative to the session workspace; cannot escape it)
maxGlossaryEntries200entries kept in the glossary file
maxMemoEntries200entries 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.

Related plugins