Skip to content

Add Cursor Agent CLI as a local chat provider - #15

Open
Amanpatni211 wants to merge 2 commits into
dralkh:mainfrom
Amanpatni211:feat/cursor-agent-cli
Open

Add Cursor Agent CLI as a local chat provider#15
Amanpatni211 wants to merge 2 commits into
dralkh:mainfrom
Amanpatni211:feat/cursor-agent-cli

Conversation

@Amanpatni211

Copy link
Copy Markdown

Summary

  • Adds a Local CLI Agent for Cursor's cursor-agent binary, same contract as Codex / Claude / Antigravity: one-shot print mode, inherit the CLI login, no API key stored in seerai.
  • Chat turns use -p --mode ask --trust (read-only). Agentic mode drops --mode ask so the harness can use its own tools; never --force / --yolo.
  • The binary is cursor-agent, not agent, because that short name is shared by other tools and would silently mis-route.

Test plan

  • npx mocha --import=tsx test/cliHarness.test.ts (registry, preset wiring, buildArgs)
  • Settings → seerai → Add Configuration → Cursor Agent CLI appears
  • Detect finds cursor-agent on PATH (~/.local/bin is already prepended)
  • Detect shows the login hint when cursor-agent about says not logged in
  • After cursor-agent login, a selected paper answers in the SeerAI pane
  • Confirm a bare agent binary that is not Cursor is not invoked

Made with Cursor

Amanpatni211 and others added 2 commits August 20, 2026 18:18
seerai already delegates chat to installed CLIs; cursor-agent speaks the
same one-shot print contract, so the Zotero pane can reuse a Cursor login
instead of an HTTP API key.

Co-authored-by: Cursor <cursoragent@cursor.com>
An empty providers list left the settings form blank even after the
Cursor preset existed. First-run now attaches cursor-cli as the chat
default; no API key is stored.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant