deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:GinerYard/dsh-chords
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DeepSeek Harness 插件:代码与自然语言的和弦;CHORDS = Code Harness, Online Reference for DeepSeek.
A DeepSeek Harness plugin: a chord between code and natural language — CHORDS = Code Harness, Online Reference for DeepSeek.
版本 Version: 0.3.3 | 兼容 Compatible with: DeepSeek Harness 0.1.0-rc.6
# 将包内的 dsh-chords 文件夹复制到 DSH 的共享 node_modules:
Copy-Item -Recurse ./dsh-chords "$env:DSH_HOME\profiles\node_modules\"
# 或在目标机器上走 pnpm:
dsh plugin --profile web add <本目录路径>
编辑 $env:DSH_HOME\profiles\web\cordis.patch.yml,把 [] 替换为:
- insert:
- id: chords
name: dsh-chords
# 可选配置见下文「模型路由与配置」
dsh web --port 8080
刷新浏览器页面。让 agent 生成一段代码,应出现双栏卡片。 Refresh the browser. Ask the agent to write some code — the dual-pane card should appear.
在对话里让 agent 写代码。agent 会自动调用 chords, 代码以双栏卡片呈现,且不会在正文重复粘贴。 Ask the agent for code in the conversation (e.g. write a merge sort in Python). The agent calls chords automatically: the code appears as a dual-pane card and is never duplicated in the message.
点击卡片标题 → 输入新名 → 回车。改名后:旧标题查询依然命中、刷新后依然生效、后续修改继续合并到同一张卡。 Click the card title, type the new name, press Enter. After renaming: old-title queries still resolve, the rename survives refreshes, and later edits keep merging into the same card.
后台修改按代码行数分三档(单次 LLM 调用完成代码 + 解释块): Background edits use one LLM call per tier, chosen by code size:
| 档位 Tier | 行数 Lines | 模型 Model | 思考 Reasoning | maxTokens | 超时 Timeout |
|---|---|---|---|---|---|
| 小 Small | ≤200 | 跟随对话模型 follow the session model | off | 8192 | 180s |
| 中 Medium | 201-500 | 强档模型 strong model | off | 16384 | 360s |
| 大 Large | >500 | 强档模型 strong model | high | 131072 | 900s |
全部参数可在 cordis.patch.yml 覆盖: Every parameter can be overridden in cordis.patch.yml:
- insert:
- id: chords
name: dsh-chords
config:
followSessionModel: true # 跟随会话默认模型(false 则用下方 provider/model)
provider: "" # 显式覆盖(空 = 跟随)
model: "" # 显式覆盖
strongModel: "" # 中大档的强档模型(空 = 查厂商表)
smallLines: 200
largeLines: 500
effortSmall: "off"
effortLarge: "high"
maxTokens: 8192
maxTokensLarge: 16384
maxTokensHuge: 131072
timeoutMs: 180000
timeoutMsLarge: 360000
timeoutMsHuge: 900000
ttlDays: 14 # 文档无更新超过该天数视为过期
providers: # 主流厂商的默认档/强档(模型名按部署实际调整)
deepseek-official: { default: deepseek-v4-flash, strong: deepseek-v4-pro }
openai: { default: gpt-4o-mini, strong: gpt-4o }
anthropic: { default: claude-sonnet-4, strong: claude-opus-4 }
moonshot: { default: moonshot-v1-8k, strong: moonshot-v1-128k }
"z-ai": { default: glm-4-flash, strong: glm-4-plus }
volcengine: { default: doubao-1-5-pro-32k, strong: doubao-1-5-pro-256k }
xai: { default: grok-3-mini, strong: grok-3 }
google: { default: gemini-2.0-flash, strong: gemini-2.5-pro }
minimax: { default: MiniMax-Text-01, strong: MiniMax-M1 }
说明:插件只传 provider/model/reasoningEffort,各厂商的线缆参数由 DSH 适配器翻译; reasoningEffort 目前支持 off / high / max。非 deepseek 厂商需要其适配器已安装。 Note: the plugin passes only provider/model/reasoningEffort; wire parameters are translated by each provider DSH adapter (reasoningEffort: off / high / max). Non-DeepSeek vendors need their adapters installed.
<DSH_HOME>/storages/code_lens.json
All plugin data (docs, version history, rename chains, edit summaries) stays local: | 现象 Symptom | 处理 Fix |
|---|---|
| 修改失败并提示「后台修改失败:…」 | 按提示原因处理;多为模型输出非 JSON(自动重试一次)或超时 |
| Background edit failed: … | Read the reason; usually a non-JSON model reply (one auto retry) or a timeout |
| 「未找到输入桥…」 | 远程通道降级失败;按提示粘贴到输入框即可(对话流程会接管) |
| No input bridge… | The background channel fallback; paste the request into the composer as prompted |
| 重启后数据丢失 | 检查启动日志是否出现 version-mismatch / memory-only;新版会自动弃置旧单元重建 |
| Data lost after restart | Check the boot log for version-mismatch / memory-only; current versions self-heal |
| 卡片渲染异常 | 单卡有独立错误边界,会把错误文字显示在卡片上;把原文反馈给作者 |
| A card renders wrong | Each card has its own error boundary showing the message; report it |
REMOTE-API.md
Host integration contract (remote API, data model, client-side algorithms): see REMOTE-API.mddsh-chords/package.json + lib/index.js(宿主半)+ lib/client.js(Web 客户端半)
Bundle layout: dsh-chords/package.json + lib/index.js (host half) + lib/client.js (web client half)INSTALL.md
Migration install guide: see INSTALL.mdtest/ 内含 7 组 vitest 测试(38 个用例,纯函数级,无需启动 Harness、无需真模型);在插件目录执行 npm i -D vitest 后运行 npm test
Tests: test/ ships 7 vitest suites (38 cases, pure-function level; no Harness boot, no live model). Inside the plugin directory run npm i -D vitest then npm testMIT © 2026 GinerYard —— 全文见 LICENSE / MIT © 2026 GinerYard — see the LICENSE file
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。