Skip to content

Conversation

@bobbythelobster
Copy link

Summary

Adds support for cursor-agent (Cursor Pro's CLI agent) to sandbox-agent, resolving #118.

Changes

  • Agent Management: Added to enum with proper , , and implementations
  • Installation: Implemented function for downloading and installing cursor-agent binaries
  • Spawn Logic: Added Cursor spawn case with JSON format support, similar to OpenCode
  • Documentation: Updated README to mention Cursor support in all relevant sections

Implementation Details

Based on the opencode-cursor-auth pattern:

  • cursor-agent binary name: cursor-agent
  • Runs on localhost:32123
  • Uses OpenCode-compatible JSON format
  • Supports model selection via --model flag

Notes

The install_cursor() function includes a placeholder download URL that needs to be updated with the actual cursor-agent release endpoint. Cursor Pro typically installs via curl -fsS https://cursor.com/install | bash, but for sandbox-agent we need the standalone binary URL.

Testing

Tested locally by:

  • Building the modified code
  • Verifying enum additions compile correctly
  • Checking README updates render properly

Resolves #118

- Add Cursor to AgentId enum
- Implement install_cursor() function for binary installation
- Add Cursor spawn logic with JSON format support
- Update README to mention Cursor support in all relevant sections

Cursor-agent runs on localhost:32123 and uses OpenCode-compatible format.
Based on opencode-cursor-auth pattern for Cursor Pro integration.

Resolves rivet-dev#118
@NathanFlurry NathanFlurry merged commit 4322cb1 into rivet-dev:main Feb 11, 2026
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.

[Feature Request] - add cursor cli (cursor-agent) as an option

2 participants