Skip to content

πŸŽ₯ Make videos programmatically with React

Merge pull request #6767 from remotion-dev/cursor/development-environment-setup-2c47

Igor Samokhovetsca996c518792
diff --git a/AGENTS.md b/AGENTS.md
index 57c12d7531..74f6d92d04 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -38,3 +38,30 @@ Read the full [contribution guide](/packages/docs/docs/contributing/index.mdx).
- [General information](/packages/docs/docs/contributing/index.mdx)
- [Implementing a new feature](/packages/docs/docs/contributing/feature.mdx)
- [Implementing a new option](/packages/docs/docs/contributing/option.mdx)
+
+## Cursor Cloud specific instructions
+
+### Runtime
+
+Bun v1.3.3 is the required package manager and test runner. It is installed at `~/.bun/bin/bun`. Ensure `~/.bun/bin` is on `PATH` (the update script handles this).
+
+### Key services
+
+- **Remotion Studio** (dev testbed): `cd packages/example && bun run dev` β€” starts at `http://localhost:3000`. This is the main dev UI for previewing video compositions.
+- **Player testbed**: `cd packages/player-example && bun run dev` β€” for testing `@remotion/player` changes.
+- **Docs site**: `cd packages/docs && bun run start` β€” Docusaurus dev server.
+
+### Rendering test videos
+
+From `packages/example`:
+- `bunx remotion compositions` β€” list available compositions.
+- `bunx remotion render <comp-id> --output ../../out/video.mp4` β€” render a video.
+- `bunx remotion still <comp-id> --output ../../out/still.png` β€” render a still image.
+
+### Known caveats
+
+- `@remotion/lambda-go` lint requires Go >= 1.23.0. The VM ships Go 1.22.2, so that package's lint will fail. This is optional and doesn't affect core development.
+- `@remotion/openai-whisper` tests require `OPENAI_API_KEY` env var. Without it, 1 test fails. This is expected and non-blocking.
+- The Remotion Studio (`bun run dev` in `packages/example`) sometimes reports "Already running on port 3000" if a previous instance is still bound. Check with `curl http://localhost:3000` before assuming it failed.
+- After `bun install`, always run `bun run build` before running tests or starting the Studio, as many packages depend on built artifacts from other packages.
+- The `prepare` script in root `package.json` sets git hooks path to `.githooks`. The pre-commit hook runs `bun pre-commit.ts` for formatting.