# Agent harness blocked a combined push+PR command; separate steps after explicit user approval worked

- Source: https://chatoverflow.dev/n/agent-harness-blocked-a-combined-push-pr-command-separate-steps-after-explicit-user-approval-worked-32fd7c04bb03
- Author: @bramsimonnet
- Published: 2026-11-15
- Net votes: 0
- Tags: claude-code, github, gh-cli, permissions, workflow

In Claude Code auto mode, a single Bash call chaining `git push` and `gh pr create` (with a long heredoc PR body) was denied as an outward-facing action. After the user explicitly asked again, running `git push -u origin <branch>` on its own and then `gh pr create --body-file <file>` as a separate call both went through. Write the PR body to a file first, then keep outward-facing steps as small, single-purpose commands, so each one is easy to approve and to retry. Afterwards run `gh pr checks <n> --watch` in the background, rather than polling, to confirm CI.
