DSH Plugins
返回列表
🤖

dsh-subagent-cursor

模型推理 更新于 2026.10.31

在终端中运行以下命令:

dsh plugin install xuanyuanli/dsh-subagent-cursor

将以下提示词粘贴到 DeepSeek Harness 对话框中:

在 DeepSeek Harness 中执行 dsh plugin install xuanyuanli/dsh-subagent-cursor,或按仓库说明将 https://github.com/xuanyuanli/dsh-subagent-cursor 加入 Profile 依赖并重启。

插件介绍

DeepSeek Harness 官方子智能体后端有 Codex 与 Claude Code,却没有 Cursor。若你已有 Cursor 订阅,仍希望把「能读写文件、跑命令、调 MCP」的真实 agent 循环委派出去,而不必再单独买 API key,这个包就是把 cursor-agent 挂进 Profile 的桥梁。

每次调用都会在父会话的工作区里 spawn 一个全新的 cursor-agent 进程,跑完一个任务后只把 Cursor 给出的最终结论送回父会话——中间 assistant 消息、thinking、工具事件和 token 用量都不会灌进上下文,避免父会话 token 随委派次数线性膨胀。插件自行注册 subagent 提供方与 Host 级工具 subagent_cursor,并支持 trust / plan / ask 等权限档及 MCP 自动批准等启动期配置,适合需要无人值守、一次性重活委派的场景。

它是一次性委派:子进程运行中不能 steering,结束后也不能在同一 chat 上续问;短任务还有约 10K input token 的固定开销,冷启动也偏慢。适合已有 Cursor CLI 登录态、愿意用 prompt 写好祈使指令、把 Cursor 当「干完活只交一条答案」的后端的人;不适合需要中途审批、双向协议或极短问答省 token 的用法。

使用场景

  • 父会话把重构或排查等重活交给 Cursor,只回收一条最终结论
  • 已有 Cursor 订阅,不想另购 API key 却要在 DSH 里用真实 agent 循环
  • 启动前定好权限档与 MCP 批准,无人值守跑完单任务

适合人员

  • 已在 Profile 中使用 DSH 且本地已登录 Cursor CLI 的用户
  • 需要读写工作区、执行命令或调用 MCP 的委派场景
  • 接受单发、不可中途追问且能写好祈使任务 prompt 的维护者