cursor-to-dsh
DeepSeek Harness plugin: Cursor models as the `cursor` LLM provider, with one Cursor agent per DSH session 适合希望在会话中直接调用Cursor Agent及相关上下文的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lukeinx/cursor-to-dshドキュメント
README 全文を読む ↗配置
默认不用配。需要时在 profile 的 cordis.patch.yml 覆盖插件这一行(patch 会替换整个 config,要写全):
- id: llm-cursor
name: cursor-to-dsh
config:
apiKeyEnv: CURSOR_API_KEY
context: min
| 配置项 | 默认值 | 环境变量覆盖 | 含义 |
|---|---|---|---|
apiKeyEnv | CURSOR_API_KEY | 存 key 的凭据名 / 环境变量名 | |
apiKey | 无 | 明文 key,不推荐 | |
context | min | DSH_CURSOR_CONTEXT | 上下文档位:min、max 或如 300k;被拒时自动降档 |
cwd | 会话工作目录 | DSH_CURSOR_CWD | Cursor agent 的工作目录 |
其他环境变量:DSH_CURSOR_DEBUG=1 输出调试日志到 stderr;DSH_CURSOR_PREWARM=0 关闭预热(插件加载后在后台预建一次 agent,省掉 Cursor SDK 首次约 8 秒的初始化)。