Reviews and pull requests
endurable gives you three ways to check an agent’s work before it lands, from light to thorough: read the diff in Changes, ask for evidence, or ask for a guided review. Then it helps you get the work merged.
Guided review
Section titled “Guided review”We still believe in reviewing changes before they land. A guided review is there to make that easier: it’s the diff arranged for reading. The agent groups the files that need your judgment into sections, explains each, and rates how risky each one is. Whatever is safe to skim, such as renames, formatting, lock files and generated code, goes into a last section called Everything else. The card says how much is left for you: “4 of 23 files need you”. If you want every file in a section, ask for a full review.
Ask for one with Guided review on a turn’s footer or an evidence card, or just ask in words. The agent stops, and a review card appears. Open review shows it over the thread.
In the review:
- The risk score is at the top: a level and a number out of 100, with what it means for you, as in “High risk · 72 · 2 sections need a close look” or “Low risk · 12 · Safe to skim”. Low is under 30, medium from 30, high from 60. Open it for the sum it came from: the riskiest section sets where it starts, and more risky sections, each kind of check that fired and the size of the change add to it.
- Sections are sorted riskiest first. Each has a High, Medium or Low pill and the agent’s reason. Low-risk sections start folded.
- The rating isn’t only the agent’s word. endurable checks each changed file itself and sets a floor the agent can’t rate below: a database migration, code whose path says auth, permissions or secrets, a file many others import, a removed export, a very large change. A section raised this way says why.
- Within a section, code comes first, then tests, docs and generated files.
- Check Viewed on a file (V) and it folds away. ⇧V marks the whole section reviewed. The header counts your progress.
- Comment on any line. The globe button in the header comments on the review as a whole.
- The agent’s notes on particular lines sit folded under those lines.
When you’re done:
- Request changes sends your comments to the agent. When it’s finished it asks for review again, and that review opens on Changes since your last review, with only the files that changed marked unviewed. Full review beside it shows the whole diff again.
- Approve closes the review. It doesn’t wake the agent unless the agent said it would do something on approval, in which case the card tells you what: “On Approve, the agent will: push the fixes and post the drafted replies”.
- Dismiss closes it without approving. The agent learns of it at its next turn.
Approve and Dismiss both have a seven-second Undo.
A review is pinned to the code as it was when requested. If the code moves on, the card says “Changed since review”.
Opening a pull request
Section titled “Opening a pull request”Pull requests need the GitHub CLI, signed in. The agent prepares the pull request and you press the button that publishes it. An agent that runs git push or gh pr create from its own shell needs your approval each time.
If you use more than one GitHub account, a profile can name the one its projects use.
Choose Preview PR from the thread’s ⋯ menu, or from the ▾ beside Guided review on a turn’s footer. The agent commits its work and writes a description, and the PR tab shows the title, the branches, the changed files and the body rendered as GitHub will render it.
- Comment on the preview to have the agent revise it, or press Edit and change the title and body yourself.
- If the branch changes after the description was written, the tab says so and offers Rewrite.
- If uncommitted files remain, they’re listed with a checkbox to commit them.
- Draft PR and Create PR push the branch and open the pull request. Mark ready takes it out of draft.
A Local thread working on your main branch has nothing to open a pull request from. The PR tab says so and offers Create a branch at HEAD, which moves the checkout to a new branch named after the thread.
endurable checks a few things before any push. It never pushes to your main branch from here. It never force-pushes without asking, and when it asks it shows the commits that would be dropped. If a pushed commit touches a file that looks like a secret, such as .env, a .pem file or an SSH key, it stops until you confirm.
Your repository’s git hooks don’t run for the commits and pushes endurable makes from the PR tab or Ship it. If you rely on a pre-commit or pre-push hook, run it yourself or make it one of your checks.
Once it’s open
Section titled “Once it’s open”The PR tab shows the pull request as GitHub has it and refreshes while you look. A second view, Update preview, shows the branch as it is now, with Update PR to push later changes.
- Checks are listed failing first, each with a link to its details.
- The conversation shows reviews and comments, line comments with their replies. Add to draft on any comment quotes it into your draft so the agent can address it.
- Comment posts your own comment to the pull request.
- The merge box says whether it can merge and offers the repository’s merge methods. It confirms before merging. If branch rules block the merge, it offers auto-merge, and a way to bypass the rules if GitHub lets you. A merge names the commit you were shown, so anything pushed since is refused, not merged unseen.
The thread’s header and list row show a chip, for example #123 · draft ✓ 2/3: the number, the state, and how many checks have passed.
sequenceDiagram
participant You
participant Agent
participant endurable
participant GitHub
You->>Agent: Preview PR
Agent->>endurable: commits, writes the description
You->>endurable: Create PR
endurable->>GitHub: push, open the pull request
loop every 30 s
endurable->>GitHub: checks, reviews, comments?
end
GitHub-->>endurable: a check failed
endurable->>Agent: wakes it with the failure
Agent->>You: fixes it, asks before pushing
CI and reviews come to the thread
Section titled “CI and reviews come to the thread”endurable watches every thread’s pull request, including archived threads’. It costs no model usage: the server polls GitHub, and the agent hears only outcomes.
- A failing check wakes the agent to read the logs and fix the problem on the branch. An archived thread comes back to the list.
- A review or comment from someone else wakes the agent to work through it. It fixes what it agrees with, drafts a reply to each comment, and then asks you before pushing or posting anything. You can review the changes first, push and post, or decline and undo the fixes. In the review, each drafted reply sits beside the comment it answers and can be rewritten, and Approve and post sends them as you left them.
- A conflict with the base branch, once the base moves and the pull request no longer merges cleanly, wakes the agent to rebase the branch onto the base and resolve it. The rebase rewrites the branch, so pushing it is a force push you confirm. The PR chip says “conflicts” until it merges cleanly again. On an archived thread it’s noted quietly.
- A bare approval, a merge or a close is noted quietly.
- After a merge, it watches CI on the merge commit and tells you if that fails too.
Ship it
Section titled “Ship it”Ship it skips the pull request. It’s for a worktree thread whose work you want on its target branch now.
It commits anything uncommitted under the thread’s title, rebases the branch onto the target if the target has moved, and fast-forwards the target, so the commits land in a straight line with no merge commit. Then it removes the worktree and its branch and archives the thread.
If the target is your main branch and the repository has an origin, it pushes there as the last step. The confirmation tells you beforehand whether it will push. The push is never forced. If it fails, the merge stands and you’re told to push it yourself.
Ship it stops before changing anything in two cases:
- The rebase conflicts. The dialog names the conflicting files and offers Ask the agent to resolve, after which you ship again.
- The checkout that has the target branch has uncommitted changes, which the merge could overwrite. Commit or stash them and try again.
It also waits for the agent’s turn to end.
Finding the thread behind a commit
Section titled “Finding the thread behind a commit”endurable remembers which thread made each commit. Paste a SHA from git blame or git log into ⌘K and it finds the conversation that explains the change. Nothing is written into commit messages for this.
Reviewing someone else’s pull request
Section titled “Reviewing someone else’s pull request”You can use a guided review on a pull request you’ve been asked to review.
Open ⌘K and choose Review a pull request…. It lists the pull requests waiting for your review. Review on one starts a worktree thread on its branch, and the agent reads it and prepares a guided review. The repository has to be one of your projects. For a pull request that isn’t in the list, Another pull request… starts the same kind of thread, and you give it the number or URL.
This review differs from a review of your own agent’s work:
- The agent’s findings appear as suggested comments on their lines, each marked Blocking, Suggestion, Question or Nit. For each, choose Keep, Edit or Dismiss. J and K step through the ones still to decide.
- You add your own comments as usual. Polish wording asks the agent to tidy your phrasing, and you choose per comment whether to use its version.
- Other reviewers’ comments from GitHub show on their lines, read-only.
- Submit review… posts everything to GitHub as your review, with a verdict of Comment, Approve or Request changes and an optional summary. Approve… is the short way to the same place.
- A comment on a line the diff doesn’t show can’t be a line comment on GitHub, so it goes in the review’s summary. Comments bound for GitHub can’t carry pictures.
Nothing reaches GitHub until you submit. If the author pushes while you’re reviewing, you’re asked whether to review what changed first.
The agent in such a thread follows the AGENTS.md of the branch the pull request targets. The pull request’s own copy is part of what’s being reviewed. The thread can’t publish anything itself, and its PR tab has no merge box: someone else’s pull request is merged on GitHub.
Afterward, archive or snooze the thread. It comes back when the author responds: a push, a reply, a merge or a close.