Skip to content

Add example for running Cursor Agent self-hosted workers in Modal Sandboxes#1532

Draft
ehdr wants to merge 1 commit intomainfrom
ehdr/cursor-self-hosted-workers
Draft

Add example for running Cursor Agent self-hosted workers in Modal Sandboxes#1532
ehdr wants to merge 1 commit intomainfrom
ehdr/cursor-self-hosted-workers

Conversation

@ehdr
Copy link
Copy Markdown
Contributor

@ehdr ehdr commented Mar 29, 2026

Example:

> python 13_sandboxes/cursor_self_hosted_worker.py --num-workers 3

Starting 3 Cursor Agent workers for modal-labs/modal-examples...

Worker 0: sandbox_id=sb-...
Worker 1: sandbox_id=sb-...
Worker 2: sandbox_id=sb-...

Modal dashboard: https://modal.com/id/ap-...
Cursor dashboard: https://cursor.com/dashboard/cloud-agents

results in cursor.com/dashboard/cloud-agents showing:
image

Type of Change

  • New example for the GitHub repo
    • New example for the documentation site (Linked from a discoverable page, e.g. via the sidebar in /docs/examples)
  • Example updates (Bug fixes, new features, etc.)
  • Other (Changes to the codebase, but not to examples)

Monitoring Checklist

  • Example is configured for testing in the synthetic monitoring system, or lambda-test: false is provided in the example frontmatter and I have gotten approval from a maintainer
    • Example is tested by executing with modal run, or an alternative cmd is provided in the example frontmatter (e.g. cmd: ["modal", "serve"])
    • Example is tested by running the cmd with no arguments, or the args are provided in the example frontmatter (e.g. args: ["--prompt", "Formula for room temperature superconductor:"]
    • Example does not require third-party dependencies besides fastapi to be installed locally (e.g. does not import requests or torch in the global scope or other code executed locally)

Documentation Site Checklist

Content

  • Example is documented with comments throughout, in a Literate Programming style
  • All media assets for the example that are rendered in the documentation site page are retrieved from modal-cdn.com

Build Stability

  • Example pins all dependencies in container images
    • Example pins container images to a stable tag like v1, not a dynamic tag like latest
    • Example specifies a python_version for the base image, if it is used
    • Example pins all dependencies to at least SemVer minor version, ~=x.y.z or ==x.y, or we expect this example to work across major versions of the dependency and are committed to maintenance across those versions
      • Example dependencies with version < 1 are pinned to patch version, ==0.y.z

Outside Contributors

You're great! Thanks for your contribution.

@ehdr ehdr force-pushed the ehdr/cursor-self-hosted-workers branch 2 times, most recently from bb90863 to 25f5aba Compare March 29, 2026 14:58
@ehdr ehdr force-pushed the ehdr/cursor-self-hosted-workers branch from 25f5aba to 569cd9d Compare March 29, 2026 16:22
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