What you get
Send a bug from the inbox and an agent reproduces it with a failing test, fixes it, and opens a pull request. Approve a feature spec and an agent builds it with a preview for you to try. Nothing merges without you until you choose otherwise.
Steps
- In Cursor, connect GitHub and grant access to your repository. Create an API key and set it as
CURSOR_API_KEY. - Set
GITHUB_REPOtoowner/name, and create a fine-grained GitHub token for only that repository (contents and pull requests read and write, checks read) asGITHUB_TOKEN. - Add a GitHub webhook to
https://YOUR_URL/api/webhooks/github(JSON, pull request events) withGITHUB_WEBHOOK_SECRET. - Protect the
mainbranch so every check must pass.
Check it works
Open a bug in the inbox and choose Send to coding agent, then watch Admin → Agent runs.
What the video covers
- Connecting Cursor and GitHub
- A bug going from report to merged fix
- When to turn on auto-fix and auto-merge