Add Cursor Cloud specific instructions to AGENTS.md
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
e6c5a4a4bb
commit
ae27e0b57f
1 file changed
+34
@@ -41,3 +41,37 @@ Docs:
|
||||
- Codex-Monitor (Tauri, feature-complete, strong reference implementation): https://github.com/Dimillian/CodexMonitor
|
||||
|
||||
Use these as implementation references when designing protocol handling, UX flows, and operational safeguards.
|
||||
|
||||
## Cursor Cloud specific instructions
|
||||
|
||||
### Runtime requirements
|
||||
|
||||
- **Bun** `^1.3.9` — package manager and dev runtime (install: `curl -fsSL https://bun.sh/install | bash -s "bun-v1.3.9"`)
|
||||
- **Node.js** `^24.13.1` — required for `node:sqlite` native bindings used by the server (install via `nvm install 24`)
|
||||
- **Codex CLI** (`@openai/codex`) — the server spawns `codex app-server` per session. Install globally: `npm install -g @openai/codex`
|
||||
|
||||
### Key commands (see README.md for full list)
|
||||
|
||||
| Task | Command |
|
||||
|---|---|
|
||||
| Install deps | `bun install` |
|
||||
| Dev (all services) | `T3CODE_NO_BROWSER=1 bun run dev --no-browser` |
|
||||
| Dev (server only) | `bun run dev:server` |
|
||||
| Dev (web only) | `bun run dev:web` |
|
||||
| Lint | `bun run lint` (oxlint) |
|
||||
| Typecheck | `bun run typecheck` (turbo → tsc across all packages) |
|
||||
| Test | `bun run test` (turbo → vitest across all packages) |
|
||||
|
||||
### Dev server ports & environment
|
||||
|
||||
- Vite dev server: `http://localhost:5733`
|
||||
- WebSocket server: `http://localhost:3773` (also serves the app in production mode)
|
||||
- Dev state is isolated to `~/.t3/dev` by default (`T3CODE_STATE_DIR`)
|
||||
- Pass `--no-browser` or set `T3CODE_NO_BROWSER=1` to prevent the server from auto-opening a browser
|
||||
|
||||
### Gotchas
|
||||
|
||||
- The `contracts` package must be built before `web` or `server` can typecheck or run. `bun run dev` and `bun run typecheck` handle this automatically via turbo dependency graph.
|
||||
- Sending messages in the UI requires a valid `OPENAI_API_KEY` (or Codex auth). Without it, turns fail with a 401 error — the rest of the UI still works fine.
|
||||
- The server uses `node:sqlite` (experimental in Node 24) — you will see `ExperimentalWarning` in test output; this is expected.
|
||||
- Avoid `bun run build` in dev — the user prefers not to run build commands as they can interfere with the dev environment. Use `bun run typecheck` instead.
|
||||
Reference in new issue
Block a user