Build Your First Programmatic Coding Agent with the Cursor TypeScript SDK
Cursor has been the AI coding IDE story for the past year. Now, with the launch of the @cursor/sdk TypeScript package in public beta, it’s also becoming a platform you can build on top of. This guide walks through what the Cursor TypeScript SDK enables, how to get started, and how to structure your first programmatic coding agent. Note: The @cursor/sdk package launched in public beta in April 2026. API surface, method names, and hook signatures may change before 1.0. Always verify against the official Cursor SDK documentation before using in production — the examples below reflect the beta API as documented at launch. ...