PerryLink/dsh-lsp-actions ↗★ 0
dsh-lsp-actions
LSP action surface for DeepSeek Harness: lsp_diagnostics, lsp_format, and lsp_completion tools over language servers
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:PerryLink/dsh-lsp-actions说明文档
阅读完整 README ↗🛰️ dsh-lsp-actions
DeepSeek Harness 的 LSP 动作面 —— 真实的语言服务器,真实的反馈。
为你的 agent 编辑循环提供诊断、格式化与代码补全,驱动它们的正是你 IDE 所用的那些语言服务器。
English · 简体中文 · Español · हिन्दी · Português
这个插件给 agent 带来什么
官方 DeepSeek Harness 的 ctx.lsp seam 覆盖导航(转到定义、引用、实现、悬停)。dsh-lsp-actions 补齐动作面——agent 在编写与修复代码时需要的反馈闭环:
| 工具 | 做什么 | 会写入吗? |
|---|---|---|
lsp_diagnostics | 编译器/分析器的错误、警告与提示,含严重级、范围、消息与来源服务器 | ❌ 只读 |
lsp_format [range?] | 通过语言服务器格式化文件/选区并应用结果,返回 diff | ✅ 走 fs/write-intent + sandbox 策略 |
lsp_completion | 光标位置的补全建议——仅供参考的提示,绝不执行 | ❌ 只读 |
✨ 测试套件里包含一次真实的
typescript-language-server运行:诊断、格式化与补全都是对着活服务器端到端验证的,不只是 mock。
快速开始
dsh plugin --profile add
每种语言服务器配一条(形态与官方 lsp-stdio 配置对齐):
# 写在 profile 的 cordis.patch.yml(或 bundle 行)里
- insert:
- id: lsp-actions
name: dsh-lsp-actions
inject: [tools, fs, subprocess]
config:
servers:
ts:
command: typescript-language-server
args: [--stdio]
extensionToLanguage:
".ts": typescript
formattingOptions: { tabSize: 2, insertSpaces: true }
py:
command: pyright-langserver
args: [--stdio]
extensionToLanguage:
".py": python
maxDiagnostics: 200
maxCompletionItems: 20
maxResultChars: 16000
timeoutMs: 60000