Auto-fix lets Claude subscribe to activity on a pull request and respond to CI failures and review comments from a cloud session.1 For each event Claude investigates, then pushes a fix when it is confident and the fix does not conflict with earlier instructions, asks you when the request is ambiguous or architecturally significant, or notes and skips duplicates.1

Turning it on

  • PR created in a cloud session: select Auto-fix in the session’s CI status bar.
  • From the terminal: /autofix-pr on the PR’s branch spawns a cloud session and enables it.
  • From mobile, or for any existing PR: ask Claude in words, or paste the PR URL into a session.

1 It is a per-PR toggle and requires the Claude GitHub App on the repository.1

Caveats

  1. Merge conflicts are invisible to it. GitHub sends no webhook when the base branch advances; open the session and ask Claude to rebase.1
  2. Replies post under your GitHub account, labelled as coming from Claude Code.1
  3. Replies can trigger comment-driven automation such as Atlantis, Terraform Cloud, or Actions on issue_comment. Review that automation first, and consider leaving auto-fix off where a comment can deploy infrastructure.1

Footnotes

  1. Claude Code Cloud Sessions 2 3 4 5 6 7