docs(agents): Cursor Cloud dev environment setup notes
Draft
TI
2mo ago+40+40+01234567890123456789-0-0-0123456789
Why
Sets up and documents the Cloud Agent development environment for this repo (Bun + Playwright/Chromium runtime for browse/make-pdf). No product code changes — only an appended ## Cursor Cloud specific instructions section in AGENTS.md capturing durable, non-obvious setup caveats for future agents.
What changed
AGENTS.md: added a## Cursor Cloud specific instructionssection documenting the Bun toolchain location/PATH, Playwright Chromium cache, the authoritative build/test/lint commands, how to run thebrowse/make-pdfCLI daemons, and — most importantly — a non-obvious gotcha.
Environment setup performed (not committed; captured in the VM)
- Installed Bun 1.3.14 (
~/.bun/bin, symlinked to/usr/local/bin/bun). bun install --frozen-lockfile(256 packages) — also registered as the startup update script.- Installed Playwright Chromium 1.62.1 + system deps into
~/.cache/ms-playwright;poppler-utils/fonts-liberationalready present. bun run build— compiledbrowse/dist/browse,make-pdf/dist/pdf, node server bundle,bin/gstack-global-discover(all gitignored).
Live evidence
- Lint:
bun run slop→ report generated (277 findings, informational scan; not a gate). - Tests:
bun run testfree suite runs. Diagnosed a flaky-failure root cause: Cursor's injected global~/.gitconfig(commit.gpgsign=trueviacursor-git-ssh-keygen+core.fsmonitor) makesgit commitin tests' temp repos intermittently stall past their shortspawnSynctimeouts. With the global/system git config neutralized, the affected file is green:GIT_CONFIG_GLOBAL=/dev/null GIT_CONFIG_SYSTEM=/dev/null bun test test/diff-scope.test.ts→ 16 pass / 0 fail in 394ms (vs 6 failures/60s otherwise).test/gstack-memory-ingest.test.ts"#2105" is a separate pre-existing flake (passes on re-run).
- Run (hello-world): the
browseheadless-Chromium daemon navigated tohttps://example.com(HTTP 200), extracted page text, and captured a 1280×720 screenshot.make-pdfrendered markdown → PDF via the same daemon.
browse Chromium screenshot of example.com
Scope
- Changed:
AGENTS.mdonly (docs). Verified live: build, lint, targeted tests, and bothbrowse/make-pdfhello-world runs. - Not tested: paid eval/e2e suites (
test:evals,test:e2e) — they requireANTHROPIC_API_KEY/provider auth and are out of scope for env setup.
To show artifacts inline, enable in settings.


Summary by cubic
Documents the Cursor Cloud dev environment in AGENTS.md so contributors can build, test, and run browse/make-pdf reliably and avoid flaky git-related tests. No product code changes.
- Adds “Cursor Cloud specific instructions” covering:
- Runtime:
bun(installed at~/.bun/bin/bun, symlinked intoPATH) andplaywright@1.62.1Chromium cache at~/.cache/ms-playwrightwith the reinstall command. - Authoritative commands:
bun run build,bun run test,bun run slop; removes stale script references and points topackage.jsonas source of truth. - How to run the CLI daemons (
browseauto-starts headless Chromium;make-pdfshells out to it) and output path restrictions (/tmpor/workspace). - Test flake mitigation: the VM’s global git config enables SSH signing and
fsmonitor, which stallsgit commitin tests; run withGIT_CONFIG_GLOBAL=/dev/null GIT_CONFIG_SYSTEM=/dev/null bun run testfor clean runs.
- Runtime: