前言¶
在 DeepSeek Harness(DSH)裏想用 Cursor 賬號上的模型跑 Agent,常見做法是單獨裝一個「Cursor 訂閱」類插件;另一條痛點是:部分路由(含 Cursor)在協議上聲明支持圖片輸入,但實際不會把像素傳給模型,read_image 形同虛設。若分別維護訂閱插件與讀圖橋接,同一 profile 裏還要避免重複掛載、設置頁分散。
dsh-cursor-suite 由社區維護者 Dream-swift 發佈,把上述兩塊合在一個插件包裏:Cursor 訂閱提供方與 read_image 視覺橋接。下文按「是什麼 → 能做什麼 → 怎麼裝 → 怎麼用 → 注意點」說明,事實以倉庫 README 與 package.json 爲準。
這是什麼¶
dsh-cursor-suite 是面向 DSH 的單一插件包,當前公開版本爲 0.6.13(MIT 許可證)。它同時提供:
- Cursor subscription provider:瀏覽器 PKCE 登錄、模型發現、流式 Agent 協議;工具側走 DSH 本地工具,而非 Cursor 原生的 Shell/Read/Grep 等 exec。
read_imagevision bridge:噹噹前路由(含 Cursor)無法真正看到像素時,把圖片轉交給具備視覺能力的子路由,再以文本形式返回。
倉庫說明:Cursor 側依賴社區對未公開 Agent 協議(agent.v1.AgentService/Run)的逆向實現,Cursor 服務端變更可能導致失效;與 Anysphere / Cursor 無隸屬關係,使用須遵守 Cursor 服務條款。
- 目錄頁:https://www.skillhub.cn/plugins/Dream-swift/dsh-cursor-suite
- 源碼:https://github.com/Dream-swift/dsh-cursor-suite
核心功能¶
Cursor 訂閱與模型¶
- 使用 Cursor 賬號登錄,無需 API Key;憑證保存在 DSH 憑據存儲中,並支持自動刷新。
- 模型選擇器列出當前賬號可用的 Cursor 模型;當命名/API 池使用率 ≥95% 時,目錄僅保留 Auto,過期的命名選項會重映射到 Auto。
- 流式輸出正文與 reasoning;Agent 調用的工具在本地由 DSH 執行(如
pwsh、read、grep等)。對 Cursor 原生 Shell/Read/Grep 等 exec 的拒絕措辭與 dsh-cursor-subscription 一致。 - 流結束行爲對齊上游訂閱實現:需等待
turnEnded(僅 checkpoint 不會結束單輪迴答步驟)。
設置界面¶
在 DSH 中打開 Settings → Cursor Suite(命名空間 cursor-suite),可配置登錄、用量、模型,以及 tool-round / 重試 / replay 等運行時選項。README 附有配額、登錄狀態、按模型用量,以及運行時限制與視覺委託的截圖路徑(docs/settings-usage.png、docs/settings-runtime-vision.png)。
read_image 視覺橋接¶
插件會替換內置 read_image:在 Cursor 等「聲明支持圖片但丟像素」的路由上,仍可通過橋接把文件交給視覺能力路由。默認視覺路由爲 deepseek-account / deepseek-flash;可按需在 ~/.dsh/read-image-bridge.json 中調整。
安裝與啓用¶
插件以 desktop profile 爲例;安裝或變更後需重啓 DSH。同一 profile 內不要與 dsh-cursor-subscription 或單獨的 read-image 橋接插件並存——本套件已包含兩者。
從插件市場或 GitHub 安裝¶
上架 awesome-dsh-plugin 後,可在 Plugins → Plugin Market 搜索 dsh-cursor-suite,或執行:
dsh plugin --profile desktop add github:Dream-swift/dsh-cursor-suite
安裝後重啓 DSH。
校驗與版本 pinning¶
dsh plugin --profile desktop add github:Dream-swift/dsh-cursor-suite
dsh plugin --profile desktop list dsh-cursor-suite --depth 0
若使用 pnpm 且受 minimumReleaseAge(例如 24 小時內的新版本被跳過)影響,可在 profile 的 pnpm-workspace.yaml 中 pin 版本或對包名做豁免。
更新與移除¶
dsh plugin --profile desktop update dsh-cursor-suite
dsh plugin --profile desktop remove dsh-cursor-suite
更新或移除後同樣建議重啓 DSH。
本地開發、通過 file: 路徑 pnpm add 以及修改 dsh.profile.bundles 的流程見倉庫 README,此處不展開。
典型用法¶
登錄與會話¶
- 打開 Settings → Cursor Suite。
- 選擇 Browser Sign-in,完成 Cursor OAuth 流程。
- 在會話模型選擇器裏選定 Cursor 模型或 Auto。
- Agent 需要讀文件或執行命令時,應使用 DSH 工具(
pwsh、read、grep等),而不是 Cursor 原生 Shell。
圖片與視覺橋接¶
在 Cursor 路由下模型調用 read_image 時,橋接可能將請求轉發到已配置的視覺路由。默認指向 deepseek-account / deepseek-flash;需要時在 ~/.dsh/read-image-bridge.json 中修改。
與 dsh-cursor-subscription 的關係¶
每個 profile 只需二選一:
dsh-cursor-subscription |
dsh-cursor-suite |
|
|---|---|---|
| Cursor provider | 有 | 有(同類協議) |
read_image bridge |
無 | 有 |
| Settings 命名空間 | cursor-subscription |
cursor-suite |
| Bundle id | cursor-subscription |
cursor-suite |
適用場景與注意¶
適合誰:已在 DSH desktop profile 中跑 Agent,希望用 Cursor 訂閱額度選模型,並希望在 Cursor 路由下仍能走通 read_image 的開發者。
運行與權限:插件在 DSH 進程權限內加載與執行;安裝前建議瀏覽源碼與 MIT 許可證,確認憑證存儲與網絡行爲符合你的環境策略。
協議與穩定性:依賴對 Cursor Agent 協議的社區實現,非官方接口,存在隨 Cursor 更新而中斷的風險。
依賴:package.json 要求 Node ^22.19.0 || >=24.0.0,peer 依賴對齊 DSH 0.2.0-rc 線(如 @deepseek-ai/cordis ~4.0.4 等)。若出現 patch: entry "cursor-suite" not found 或 peer 不匹配,需安裝與當前 DSH 版本匹配的構建。
排錯摘要(摘自 README):
- 瀏覽器登錄後仍顯示未登錄:需完成重定向頁;輪詢約等待 2.5 分鐘。
- 模型列表爲空:發現可能因賬號類型失敗,仍可用手動模型 id。
- 401:刷新令牌過期後重新登錄。
- Cursor 上圖片被忽略:確認本套件已加載,且 bundle patch 已關閉內置
tool-fs.readImage。
DSH 生態強調「一切皆插件」;SkillHub 等社區目錄爲獨立站點,與 DeepSeek / 幻方無官方應用商店式從屬關係。
結尾¶
dsh-cursor-suite 把 Cursor 訂閱提供方與 read_image 視覺橋接打包在同一插件中,減少 profile 內重複安裝與設置分散。若你只需訂閱、不需要讀圖橋接,可選用 dsh-cursor-subscription;若兩條能力都要,優先本套件並避免與舊插件同裝。
- 目錄:https://www.skillhub.cn/plugins/Dream-swift/dsh-cursor-suite
- GitHub:https://github.com/Dream-swift/dsh-cursor-suite