[feat] harness: Add Cursor Agent support

オープン
#396 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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分
マージ済み PR(30日)
195

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ThinkFlowLab/OpenDirector のほかの issue

ThinkFlowLab/OpenDirector の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。