Cursor vs Codex: IDE Agent vs Cloud Agent for TypeScript

Cursor edits code in your IDE. Codex runs in a cloud sandbox and submits PRs. Here is when to use each for TypeScript projects.