Preface¶
The core concept of DeepSeek Harness (DSH) is “everything is a plugin.” When building agents or experimenting with models, developers often need to apply style processing or terminology correction to model outputs. dsh-lexiforge provides a dynamic interception and reprocessing solution based on ZIP language packs, replacing traditional code embedding or complex prompt logic.
What This Is¶
dsh-lexiforge is a community language module plugin for DeepSeek Harness. It is configuration-driven, security-first, on-demand compute, and zero-operations. The plugin intercepts the model’s response stream and uses installed language packs to rewrite, retrieve, or format content.
Core Features¶
- Security and format protection: ZIP-based with zero executable code. The format whitelist supports .yaml/.yml/.db/.txt, with Zip Slip / ZIP bomb protection.
- A/B/C three-mode engine:
- Mode A: LLM full-passage rewriting, via independent requests, without occupying the main context.
- Mode B: SQLite FTS5 terminology library retrieval enhancement.
- Mode C: Pure local rule replacement (zero tokens).
- Orchestration: Supports composite modes (e.g., pipeline: [B, A, C]) and chained multi-pack usage. The same response can be processed through multiple stages.
- Native UI and marketplace: The native UI is integrated into the DSH settings page and supports drag-and-drop ordering. Marketplace distribution is entirely GitHub-driven, supporting single-pack and all-in-one repositories.
- Observability: Provides runtime logs that record interceptions, skips, and rewrite results.
Installation and Usage¶
The plugin uses the CLI for language pack management, while the native UI handles configuration and enablement.
CLI Commands¶
lexiforge <数据目录> disclaimer
lexiforge <数据目录> install 包.zip 包ID --accept-risk
lexiforge <数据目录> market-install owner/repo 包ID --accept-risk
lexiforge <数据目录> search 关键词
lexiforge <数据目录> enable 包ID | disable 包ID | on | off | order ID...
lexiforge <数据目录> uninstall 包ID
lexiforge knowledge 词条.csv 输出.db
Notes¶
- The plugin only provides language pack discovery, download, and installation capabilities; it does not assume responsibility for content moderation, quality assurance, or legal liability.
- On first use, a mandatory “Third-Party Disclaimer” gate is enforced; you must accept it to continue.
Use Cases¶
It is suitable for scenarios that require style switching for model outputs (e.g., classical Chinese, chuunibyou), integrating specific terminology libraries (e.g., ancient-style titles), or format proofreading.