These instructions are shown on any issue created when pull request creation failed
gh run download 22451371409 -n agent-artifacts -D /tmp/agent-artifacts-22451371409
# The patch file will be at agent-artifacts/tmp/gh-aw/aw-repo-assist-rebase-pr-1341.patch after download
# Apply the patch (--3way handles cross-repo patches where files may already exist)
git am --3way /tmp/agent-artifacts-22451371409/aw-repo-assist-rebase-pr-1341.patch
These should actually show the git/gh commands to create a branch, apply the patch, create the pull request.