Add Cursor Agent CLI as a local chat provider - #15
Open
Amanpatni211 wants to merge 2 commits into
Open
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cursor-agentbinary, same contract as Codex / Claude / Antigravity: one-shot print mode, inherit the CLI login, no API key stored in seerai.-p --mode ask --trust(read-only). Agentic mode drops--mode askso the harness can use its own tools; never--force/--yolo.cursor-agent, notagent, 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)cursor-agenton PATH (~/.local/binis already prepended)cursor-agent aboutsays not logged incursor-agent login, a selected paper answers in the SeerAI paneagentbinary that is not Cursor is not invokedMade with Cursor