← 插件

Auto-fix

Rory Durrant4次安装

Watches an agent's GitHub pull request and prompts it to fix failing CI, review feedback and merge conflicts.

$ paseo plugin add rorydotgg/auto-fix
Auto-fix 截图 1

该插件的概览尚未翻译为你的语言,因此以英文显示。

Auto-fix keeps an agent's pull request moving. Turn it on for an agent whose branch has an open GitHub pull request, and it watches the PR. Whenever the agent is idle, it prompts that agent to fix failing CI, address review feedback and resolve merge conflicts. It stops when the PR is merged or closed.

How it works

Auto-fix polls the PR with the GitHub CLI (gh) every minute by default. It waits for CI on the latest commit to finish before acting, and includes the tail of the failed logs in the prompt. Review feedback is passed on thread by thread. The agent is asked to judge each point on its merits, reply in the thread, resolve what it addressed and re-request review. For merge conflicts it is asked to merge the base branch in, never force push or rewrite history.

Auto-fix never interrupts a running turn. Updates that arrive while the agent works are delivered together, in one prompt, when the turn ends. If the same problem keeps coming back after three prompts, Auto-fix pauses it and notifies you. It resumes once the problem clears, or when you turn Auto-fix off and on again.

Each action appears as a row in the agent's timeline, and Paseo notifications tell you when Auto-fix pauses, finishes or needs your attention.

Setup

Install the GitHub CLI and sign in with gh auth login on the machine running the Paseo daemon. Auto-fix uses that login for every GitHub read, and the agent uses it to reply to reviews. Requires Paseo 0.18 or later.

Turn Auto-fix on from the Auto-fix tab, which the Auto-fix pill in an agent's composer opens, or with /autofix (/autofix <PR URL> picks a PR, /autofix now checks immediately, /autofix off turns it off). Agents can also check, enable and disable it themselves with the autofix_status, autofix_enable and autofix_disable tools.

Settings

  • Poll interval (default 60 seconds, minimum 15).
  • Triggers: failing CI, requested changes, review comments, PR conversation comments (off by default) and merge conflicts.
  • Attempts per problem before pausing (default 3).
  • Whether the agent replies in threads, resolves addressed threads and re-requests review.
  • Ignore comments from bots, send notifications, and enable automatically when a branch has an open PR.
  • Custom instructions appended to every prompt.

What it reads and sends

Auto-fix reads the PR's state, checks, failed job logs, reviews, review threads and comments from GitHub through gh. It sends prompts, which include that PR content, only to the agent it watches, so they reach that agent's provider. It stores its state in that agent's metadata on your daemon. It does not post to GitHub itself; the agent does that when it follows the prompt.

Known limits

  • After a daemon restart or plugin reload, watching resumes on the plugin's first contact with Paseo (for example when the app connects, or an agent starts or ends a turn), not at the moment the daemon starts. Paseo gives plugins no connection to the daemon until then.
  • A CI failure on an unchanged commit is prompted once; a new push re-arms it.
  • Very large PRs are read partially: up to 100 checks and the latest 100 reviews, 100 review threads (50 comments each) and 100 conversation comments.