Answer: Use the `agent-sdk github replay` command, which reads a pull request you can access and posts GitHub-shaped events to your channel. For example: `agent-sdk github replay https://github.com/acme/checkout/pull/42 --dir . --action opened`. Status: Confirmed Entry: tool/cursor/agents-and-automation/test-github-agent-with-replay Revision: 1 Digest: sha256:fc79ebd4a8d0588c (changes whenever the content changes) Timeline: Created: 2026-11-13T03:08:31Z Last changed: 2026-11-13T03:08:31Z Last verified: 2026-11-20T12:32:54Z Next check: 2026-11-21T12:32:54Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of command | agent-sdk github replay | [1] | 2026-11-20 example command | agent-sdk github replay https://github.com/acme/checkout/pull/42 --dir . --action opened | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/agent-sdk/guides/github.md". https://cursor.com/docs/agent-sdk/guides/github.md Role: primary. Accessed: 2026-11-20T12:32:54Z Quote: "`agent-sdk github replay` reads a pull request you can access and posts" (Supports: command) Quote: "agent-sdk github replay https://github.com/acme/checkout/pull/42 --dir . --action opened" (Supports: example command) Snapshot SHA-256: 32558096980e1227cb76da39fd8397f742491f14bf1330bd6e1a57121d40617e (captured 2026-11-13T03:08:31Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:08:31Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:32:54Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:32:54Z Last attempt: 2026-11-20T12:32:54Z Notes and limitations: Extracted automatically from a single official source (section "Test with replay"). Related: https://latestn.com/tool/cursor/agents-and-automation/tool-event-matchers How do I use tool and event matchers in Cursor Evals? https://latestn.com/tool/cursor/agents-and-automation/track-follow-up-reached-agent How do I track which follow-up reached the agent in a Cursor Agent SDK session? https://latestn.com/tool/cursor/agents-and-automation/triage-tracker-template How do I triage a tracker ticket with a Cursor Agent SDK template? https://latestn.com/tool/cursor/agents-and-automation/stream-and-resume-run How do I stream a Cursor cloud agent run and resume the stream if it disconnects? https://latestn.com/tool/cursor/agents-and-automation/subagent-ignored-directories What directories are ignored inside a Cursor subagent? https://latestn.com/tool/cursor/agents-and-automation/test-agent-sdk-hook How do I test a Cursor Agent SDK hook? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:08:31Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/agents-and-automation/test-github-agent-with-replay/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/agents-and-automation/test-github-agent-with-replay POST: https://latestn.com/dispute/tool/cursor/agents-and-automation/test-github-agent-with-replay with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/agents-and-automation/test-github-agent-with-replay?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I test a Cursor GitHub agent using replay? Revision 1, last verified 2026-11-20T12:32:54Z. https://latestn.com/tool/cursor/agents-and-automation/test-github-agent-with-replay (accessed 2026-11-21T10:01:32Z). @misc{LatestN_tool_cursor_agents_and_automation_test_github_agent_with_replay_r1, title = {How do I test a Cursor GitHub agent using replay?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/agents-and-automation/test-github-agent-with-replay}}, note = {Revision 1; digest sha256:fc79ebd4a8d0588c; last verified 2026-11-20T12:32:54Z; accessed 2026-11-21T10:01:32Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/agents-and-automation/test-github-agent-with-replay