Skip to content

Add Cursor as an Aiden-owned Pi provider via pi-cursor-sdk - #133

Closed
sambitcreate wants to merge 4 commits into
mainfrom
cursor/pi-cursor-provider-e2e8
Closed

sambitcreate wants to merge 4 commits into
mainfrom
cursor/pi-cursor-provider-e2e8

Conversation

@sambitcreate

Copy link
Copy Markdown
Owner

Cursor is now an Aiden-owned Pi built-in, using fitchmultz/pi-cursor-sdk (v0.3.7) and @cursor/sdk 1.0.27.

This is not the CLI/--trust extension path. Aiden never loads the package default export (dist/index.js), so MCP bridging, slash commands, and parseArgs(process.argv) stay off. Settings still uses a Cursor SDK API key (CURSOR_API_KEY / the shared Pi API-key editor).

Behavior

  • Live catalog refresh through discoverModels after a key is present
  • Completions through streamCursorLazy (Cursor agent loop, not an OpenAI proxy)
  • Chat workspace cwd bound per turn; leftover SDK session state is overwritten, including an untrusted unbound scope for title/compaction/other streamSimple callers
  • Overlapping Cursor streams are serialized because SDK cwd is process-global
  • Stop maps to Pi aborted, not a provider error
  • Cursor projectTrusted only for Full-access folders (ask is not trusted)
  • Isolated subagent workers refuse Cursor HTTP fallback; child Cursor turns stay on the in-process SDK session
  • Featured Settings/onboarding placement plus desktop/iOS/Android provider marks

Tests

test:cursor plus concentrate, generation-runtime, and iOS logo-count coverage. Local npm install could not reach registry.npmjs.org in this environment (TLS reset); GitHub clone of the SDK worked. CI should regenerate the lockfile if npm ci reports drift for @earendil-works/pi-coding-agent / @cursor/sdk.

Follow-ups

Cursor remains a full SDK agent, so title/compaction jobs on a Cursor model can still invoke Cursor tools. That is the SDK contract, not a token-only complete.

Open in Web Open in Cursor 

cursoragent and others added 4 commits September 17, 2026 04:11
Wire fitchmultz/pi-cursor-sdk discovery and streaming through Aiden's
built-in registry without loading the SDK's Pi extension. Bind workspace
cwd per chat, serialize overlapping Cursor turns, treat Stop as abort,
and keep isolated subagent workers off the OpenAI-to-cursor.com fallback.

Co-authored-by: Sambit Biswas <sambitcreate@users.noreply.github.com>
Drop unused optional peer pi-coding-agent and record nested
@hono/node-server 2.0.12, undici 5.29.0, and @fastify/busboy 2.1.1
so package-lock.json matches package.json.

Co-authored-by: Sambit Biswas <sambitcreate@users.noreply.github.com>
Keep both Live papercuts from main and the Cursor SDK lockfile notes.

Co-authored-by: Sambit Biswas <sambitcreate@users.noreply.github.com>
Keep Cursor SDK dependencies, nested lockfile entries, and test
registrations while taking main's yaml dependency and new test files.

Co-authored-by: Sambit Biswas <sambitcreate@users.noreply.github.com>
@sambitcreate

Copy link
Copy Markdown
Owner Author

Closing as stale during PR triage (2026-09-29). Reopen if still wanted.

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.

2 participants