This guide walks through setting up and running the PR convergence workflow, from a single manual round to a fully autonomous auto-converge loop that merges the PR when it’s ready.Documentation Index
Fetch the complete documentation index at: https://ade-app.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- A lane with an open GitHub PR
- At least one AI provider configured (Claude, Codex, or any supported model)
- GitHub integration configured in Settings > Integrations > GitHub
Quick Start: Manual Round
The fastest way to try PR convergence is a single manual round.Open Path to Merge
Click the Path to Merge tab (sparkle icon). ADE scans the PR and builds the issue inventory.
Run a round
Leave the mode on Manual. Optionally type instructions like “Fix the type errors mentioned in the review.” Click Run Next Round.
Watch the agent work
ADE creates a new chat session in the PR’s lane. The agent reads each issue, makes code changes, and commits. You can click View Session to watch in real time.
Setting Up Auto-Converge
Auto-converge runs the full loop without manual intervention.Toggle to Auto-Converge
In the Path to Merge panel, click the Auto-Converge toggle in the mode switcher at the top.
Configure pipeline settings
Set your preferences:
- Max Rounds — how many rounds before auto-converge pauses (default: 5)
- Merge Method — squash, merge, rebase, or repo default
- Auto-Merge — toggle ON if you want ADE to merge the PR automatically when convergence completes
- On Rebase Needed —
pause(ask you) orauto_rebase(handle automatically)
Configure AI settings
Select the model, reasoning effort, and permission mode. For auto-converge, Guarded Edit is recommended for safety — or Full Edit if you trust the model on this codebase.
Understanding Wait States
During auto-converge, the panel shows what ADE is waiting for:| State | Banner Message | What’s Happening |
|---|---|---|
| Agent running | ”Agent working on round N…” | The agent is actively making changes. Click View Session to watch. |
| Waiting for checks | ”Waiting for CI checks (3 of 8 pending)“ | CI is running after the agent’s commits. ADE polls every ~60 seconds. |
| Waiting for comments | ”Stabilizing comments…” | CI passed. ADE is waiting for 2 stable polls with no new reviewer comments before proceeding. |
| Ready | ”Ready to launch next round” | New issues appeared and the next round is about to start. |
| Paused | ”Paused: [reason]“ | Something needs attention — rebase required, max rounds reached, or manual pause. Click Resume to continue. |
| Complete | ”Convergence complete” | No new issues after the last round. If auto-merge is on, the PR will be merged. |
| Merged | ”PR merged” | Auto-merge completed successfully. |
Managing the Issue Inventory
Each item in the inventory can be managed individually:- Dismiss — Mark an issue as not actionable (e.g., a stylistic suggestion you disagree with). Click the trash icon.
- Escalate — Flag an issue for human attention. Escalated issues are shown at the top with an orange indicator.
- Reset Inventory — Re-scan the PR from scratch. Use this if the inventory seems stale or if many issues were resolved outside ADE.
CTO-Driven Convergence
The CTO agent can start and manage convergence autonomously. This is useful for workflows where the CTO monitors all PRs and drives them to merge without human interaction. Example CTO workflow:- CTO detects new review comments on PR #42 via its heartbeat
- CTO calls
startPullRequestConvergenceRoundwith scope “comments” and the project’s default model - Agent resolves the issues and commits
- CTO calls
getPullRequestConvergenceto check the result - If issues remain, CTO starts another round
- When converged, CTO merges the PR (or notifies you, depending on settings)
Convergence with Stacked PRs
When running convergence on a PR that is part of a stack:- ADE detects rebase needs when a parent PR merges and the base branch moves
- If
onRebaseNeededisauto_rebase, ADE rebases automatically before continuing - If
onRebaseNeededispause, auto-converge pauses with a “Rebase needed” message - After rebase, the poller resumes and waits for CI to re-run before starting the next round
Troubleshooting
Auto-converge paused unexpectedly
Auto-converge paused unexpectedly
Check the pause reason in the banner. Common causes:
- Max rounds reached — increase
maxRoundsin pipeline settings - Rebase needed — the base branch moved; rebase the PR or set
onRebaseNeeded: auto_rebase - Agent error — the agent session failed; check the session transcript for details
Issues are not being detected
Issues are not being detected
Click Reset Inventory to force a full re-scan. If the PR has no review comments requesting changes and all CI checks pass, the inventory will be empty — this means the PR is already converged.
Agent is not fixing the right issues
Agent is not fixing the right issues
Use the Additional Instructions field to guide the agent. Be specific: “Address the SQL injection concern in the auth handler review comment” is more effective than “fix the issues.”
Auto-merge did not trigger
Auto-merge did not trigger
Verify that
autoMerge is enabled in pipeline settings. Also check that all required GitHub branch protection rules are satisfied — ADE cannot override branch protection.