[feat] harness: Add Cursor Agent support

未关闭
#396 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
28/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript

调研方向

Start by reading the existing runtime adapter boundary, conversation storage, execution directory, command transport, skills, and trace presentation. Evaluate Cursor ACP over stdio against those integration points, then validate session recovery, cancellation, image input, and reasoning controls with the documented Cursor CLI. Done means meeting the listed acceptance criteria, including real command results, restart recovery, localization, and implementation PR evidence.

由索引模型根据 Issue 内容生成。

描述

area:agent area:harness help wanted type:feat

Parent roadmap #261. Relates to #33.

Goal and scope

Let users select Cursor as an Agent runtime in OpenDirector, use their Cursor account and models, and create or edit project content through the shared business commands.

User flow and rules

  • Detect Cursor Agent CLI and provide installation or authentication guidance when unavailable. Reuse Cursor authentication.
  • Offer model selection and preserve supported reasoning settings per conversation. Determine available controls from the supported CLI and model.
  • Stream replies and tool activity into the conversation. Persist native session identity and resume with incremental input.
  • Keep a consistent execution directory across turns and isolate conversations and projects, including after application restart.
  • Expose OpenDirector CLI commands and skills through the existing discovery mechanisms. Apply the same revisions, locks, validation, and receipts as other runtimes.
  • Pass supported attachments and project references to Cursor. Report unsupported inputs explicitly.
  • Stop the local runtime operation and report its actual outcome. Already accepted generation jobs retain their own cancellation and recovery semantics.
  • Provide English and Chinese setup, status, and error messages.

Feasibility and integration

Cursor documents an ACP server over stdio for custom clients. The inspected CLI, version 2026.03.30-a5d3e17, exposes agent acp, headless stream-JSON output, partial text output, model selection, and explicit session resume. These capabilities provide an integration starting point. Real OpenDirector tool execution, session recovery, cancellation, image input, and reasoning controls still require validation.

Evaluate ACP first against the existing runtime adapter boundary. Reuse conversation storage, execution directories, command transport, skills, and trace presentation. Map Cursor events to shared reply and tool states and retain raw events for diagnosis. Scope credentials and permissions to the runtime invocation.

Acceptance criteria

  • Select Cursor and an available model, then complete a streamed conversation. Missing CLI, authentication failure, and unsupported versions produce actionable messages.
  • Ask Cursor to create a text node through OpenDirector CLI. Verify its stored content, object revision, and command receipt.
  • Edit the node through the UI, then ask Cursor to read and update it in the same conversation. Verify that the latest user changes are preserved.
  • Resume after application restart and verify context retention, a consistent execution directory, and isolation between conversations and projects.
  • Stop a running turn and continue without orphan processes, duplicate replies, or automatic resubmission of accepted work.
  • Verify tool events and traces against actual command results, using the same status and color conventions as other runtimes.
  • Verify supported image inputs with a real multimodal request and preserve selected model and supported reasoning settings.
  • Check English and Chinese setup and failure flows. Include CLI version, reproducible checks, actual project results, and UI screenshots in the implementation PR.

References

主要语言
TypeScript
星标
119
派生
16
平均合并
16 小时 13 分钟
30 天内合并 PR
195

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ThinkFlowLab/OpenDirector 的其他 Issue

查看 ThinkFlowLab/OpenDirector 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。