chore: add Cursor Cloud Agents environment configuration

Merged
MS
2mo ago
+5-0

Summary

Adds Cursor Cloud Agents environment configuration for sourcebot-dev/sourcebot, enabling fresh cloud agents to boot Sourcebot and run visible UI E2E tests.

Changes

.cursor/environment.json

  • Install script: Sets up Docker, git submodules, builds Zoekt binaries, installs yarn dependencies, creates minimal config.json
  • Start script: Starts Docker daemon and containers, runs database migrations, starts yarn dev, waits for port 3000 readiness
  • Ports: Exposes port 3000 (Next.js web app)

AGENTS.md

  • Added brief "Cloud Agent E2E Testing" section with merge policy

Testing Evidence

Successfully tested full boot and UI E2E workflow:

  1. Docker containers (PostgreSQL, Redis) started ✅
  2. Database migrations applied ✅
  3. yarn dev boots successfully ✅
  4. HTTP 200 on localhost:3000 ✅
  5. Onboarding flow completed ✅
  6. Code search functional ✅
  7. Repositories page shows synced repo ✅

Environment build bld-20260921-b52e2c36-3cd1-4d63-a44b-f3023c1edfc6 completed successfully.

Note

DO NOT MERGE without Michael's explicit approval.

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Summary by cubic

Adds Cursor Cloud Agents environment configuration so fresh cloud agents can boot Sourcebot and run visible UI E2E tests without coordinator intervention.

  • The install script sets up Docker, submodules, Zoekt binaries, yarn dependencies, and a minimal config.json; the start script boots Docker containers, runs migrations, starts yarn dev, and waits for port 3000 readiness. Docker operations moved to start since containers can't be created during environment builds.
  • AGENTS.md is reverted to origin/main per maintainer decision; this PR only contains .cursor/environment.json.
  • Environment setup only; do not merge without maintainer approval.

Summary by CodeRabbit

  • Chores
    • Improved development environment setup and startup workflows.
    • Automated required service initialization and application readiness checks.
    • No user-facing product changes are included in this update.