Skip to content

Let agents commit and open draft PRs on request - #1586

Merged
cristianrgreco merged 2 commits into
mainfrom
claude/open-prs-without-approval-step
Oct 12, 2026
Merged

cristianrgreco merged 2 commits into
mainfrom
claude/open-prs-without-approval-step

Conversation

@cristianrgreco

@cristianrgreco cristianrgreco commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The "Git and GitHub" rule in AGENTS.md told agents never to commit, push or post on GitHub without explicit approval. As a result, asking an agent to commit and raise a PR produced a second round of approval for the diff, title, body and labels before anything happened.

  • AGENTS.md: agents commit, push or open a PR when the user asks for it, and do only the steps asked for. PRs open as drafts unless the user asks for one that is ready for review. Anything on GitHub that affects someone else, such as commenting on, reviewing or modifying someone else's PR or issue, still needs approval of the proposed content first.
  • open-pr skill: removed the approval step, added --draft to the gh pr create command, and the agent now reports the PR link, title and labels afterwards so the user can ask for changes.

The rules for the @claude GitHub Action are unchanged.

Verification

  • npm run format: no fixes applied
  • npm run lint: no fixes applied
  • npm run knip: no issues

Not breaking

Only agent instructions change. No package source, build config or published files are touched.

The Git and GitHub rule told agents never to commit, push or post without explicit approval, so a request to commit and raise a PR still produced a second round of approval for the diff, title, body and labels. A request to commit, push or open a PR is now enough, and PRs open as drafts by default. Other GitHub posts still need approval first.
@cristianrgreco cristianrgreco added maintenance Improvements that do not change functionality patch Backward compatible bug fix labels Oct 12, 2026
@cristianrgreco
cristianrgreco marked this pull request as ready for review October 12, 2026 18:04
@cristianrgreco
cristianrgreco merged commit b04687c into main Oct 12, 2026
15 checks passed
@cristianrgreco
cristianrgreco deleted the claude/open-prs-without-approval-step branch October 12, 2026 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Improvements that do not change functionality patch Backward compatible bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant