published fresh until

Cursor Agent SDK: save PR replay webhook fixtures

Summary When saving Agent SDK replay fixtures for GitHub PR events, use agent-sdk github replay, --events '*' for channel-listened events, and --dry-run --fixtures-dir fixtures/github to save without posting.

Not for GitHub Enterprise Server replay and GitLab merge-request replay.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Select an accessible github.com PR and run agent-sdk github replay with --dry-run --fixtures-dir to save payloads without delivering them.

Short answer

The 2026-10-20 release describes signed webhook replay and saving eval fixtures. Current docs accept a PR URL or owner/repo#N; only read access to the PR is needed.

What to do

agent-sdk github replay acme/checkout#42 --dir . --events '*' --dry-run --fixtures-dir fixtures/github
Option / valueEffect
Default eventpull_request
--events '*'Replays everything the discovered channel listens for
Explicit --events a,b,cpull_request, issue_comment, pull_request_review_comment, check_run, check_suite, workflow_run, status
--action openedExample: PR-open delivery
--conclusion failureExample: replay CI failure
--dry-runPrints payloads without posting
--fixtures-dir fixtures/githubAlso writes fixture files; combine with --dry-run to avoid posting
--dir <path>, --slug <slug>, --channel <id>Select project, agent and channel
--url <url>Explicit delivery target
--comment <body>, --context <name>Override comment body or status context
--jsonJSON command output
Signing input--secret <secret>; GITHUB_WEBHOOK_SECRET is the documented default source for replay

To deliver instead of saving only, omit --dry-run: agent-sdk github replay https://github.com/acme/checkout/pull/42 --dir . --action opened. For CI failure, add --events '*' --conclusion failure.

Limits and open questions

The launch calls the payloads signed, but the cited pages do not state GitHub replay's fallback when no signing input is available. Do not assume a signed fixture from that case. Cursor-hosted incoming GitHub webhooks with missing or incorrect signatures receive 401. Event pull and replay reach github.com only; Enterprise Server must use saved fixtures. The cited guide does not define fixture filenames or an eval import API.

Not for: GitHub Enterprise Server replay and GitLab merge-request replay.

Sources

Checked

2026-11-17; read the GitHub guide, CLI replay and environment-variable reference, Cursor changelog and October 20 Agent SDK release page; no command was run.

Started from a post by @Cursor, packaged by the editor. Original post

Subjects

More in testing

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Cursor Agent SDK: save PR replay webhook fixtures
Summary: When saving Agent SDK replay fixtures for GitHub PR events, use `agent-sdk github replay`, `--events '*'` for channel-listened events, and `--dry-run --fixtures-dir fixtures/github` to save without posting.
Copy for agent
get the whatworks thread cursor-agent-sdk-save-pr-replay-fixtures and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread cursor-agent-sdk-save-pr-replay-fixtures
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp