Skip to content

Pull requests and reviews

Kestrel works with GitHub and GitLab through their own command line tools, which need to be installed and signed in:

HostToolSign in with
GitHubghgh auth login
GitLab, including one you host yourselfglabglab auth login

Kestrel uses each host’s own words: pull request on GitHub, merge request on GitLab. This page says pull request for both.

When a session’s branch has no pull request, the bar at the top of the session shows Create PR. Its menu offers:

ChoiceWhat happens
ManuallyOpens the form empty, for you to fill in
GeneratedOpens the form with a title and description written from the changes
Commit and createShown when there are uncommitted files: asks the agent to commit first

The form has the title, the description (Markdown), the base and head branches, and Create as draft.

If you have given the Review role to a different agent from the one that wrote the change (see The right model for each job), the form offers a review:

  • Review before opening PR
  • Open PR and start review
  • Skip review

The reviewer reads the change in the same worktree and never writes there. Kestrel passes its findings to the author and the author’s answers back, in rounds. Findings are advice: they never block you from opening or merging. When the review ends you can add it to the description.

The session shows its pull request’s review state, checks, and whether it can merge. The same state appears as a mark on the session’s row in the sidebar. Kestrel keeps this current in the background; Refresh asks the host again at once.

Pull requests, in the menu at the top of the sidebar, lists every pull request that belongs to a session, grouped by project, with filters for Open, Needs attention, Ready to merge, Draft and Merged/closed.

When a pull request is ready, Merge now appears. Choose the merge method (only the ones the repository allows are offered) and Confirm merge. Kestrel checks once more that it is still ready before merging.

Kestrel lists the pull requests where you were asked to review by name. Requests made to a team you are on are not listed.

Code reviews, in the menu at the top of the sidebar, opens the page. The number beside it is how many need a look.

  • Reviewing comes first: the requests you have a review session for. Click one to open the session.
  • Not started follows. Each row shows the title, then the project or repository, the number, who asked and how long ago it was opened. Start review begins one.

A request you have not opened has a green dot and a bolder title, as unread mail does. A review whose agent has finished, or is waiting on your answer, shows up again the same way.

You can filter by who asked, by project and by how recently the request was opened, and search by text. The search is forgiving: wbhk finds webhook. Sort by orders the list by last activity or by date opened.

ActionWhat it does
DismissHides a request you do not mean to review. Nothing is posted to GitHub or GitLab. Find it again under Dismissed, with Restore
Dismiss all, Mark all readAct on the requests shown, so set a filter first to narrow them
Mark as read, Mark as unreadIn a request’s menu

Each of these shows a note with Undo.

A review session works in a copy of the repository at exactly the commit you were asked to review. Its Changes pane shows the request’s own diff, and where other sessions have Create PR it has View PR.

The agent reviews by reading: the diff, and as much of the code around it as it needs. It does not build the project or run its tests. That is your CI’s work, and the results are already on the pull request.

You can also ask for a review in words. Start a session and make its first message something like review this PR, with the link. Kestrel asks Make this a review session? and, on a yes, turns it into one.

When the agent is finished it hands you a review card. Nothing has been posted yet.

  • The summary is a few sentences: what the change does, and why the agent recommends what it does. Edit summary lets you change it.
  • Each finding is one problem, on a card of its own. It leads with a plain sentence or two, then a suggested fix. Why this happens unfolds the technical explanation, and each code reference opens the code at that line. A finding is marked Blocking, Needs attention or Suggestion.
  • You can edit any part of a finding, or dismiss it. A dismissed finding is struck through and is not posted. Restore brings it back.

At the foot of the card, choose your verdict:

VerdictWhat is posted
CommentThe summary and the findings, with no approval or rejection
Approve without commentOnly the approval. The summary and findings stay in Kestrel, for you
Approve with summaryThe approval, the summary and the findings you kept
Request changesThe summary and the findings, asking for changes

The card proposes a verdict from the findings: request changes while a blocking finding is kept, and approve without comment when the review is clean. Preview shows exactly what will be submitted. Submit review posts it, with each finding as a comment on its line of code.

If you approve while a blocking finding is still kept, Kestrel names it and asks you to confirm. An approval is only ever posted for the commit that was reviewed.

Settings → Code reviews decides what happens to review requests.

Review requests sets how much Kestrel does by itself:

SettingWhat happens
OffGitHub and GitLab are not asked, and nothing is listed
List themRequests are listed, and you start each review. This is the default
Start reviews on their ownKestrel starts a review session for each request, in the projects you choose
Review and reply on their ownKestrel starts the review and posts it without showing you first, in the projects you choose
SettingWhat it does
Where requests appearOn their own page (the default), in a Code reviews section of the sidebar, or both
Sidebar limitHow many requests nobody has started the sidebar section lists before Show more. Reviews under way are always listed
Review permissionsThe mode reviews start in. Auto unless you change it, so a review can read the change without stopping to ask
When a review beginsWhether to post a “Reviewing” comment on the pull request in your name. Off by default
Review instructionsHow the agent should review and write up what it finds. Edit them, or Reset to default

When the sidebar section is on, a review session is listed there, not in its project, for as long as the request is waiting on you.

If your team lets reviews start on their own, one request could set several agents off at once. Before Kestrel starts a review by itself, it reads the request’s recent comments. If somebody else said they are reviewing within the last day (any comment that begins with the word “Reviewing”), Kestrel holds back and tells you who. You can still start the review by hand.

No more than two reviews that Kestrel started run at the same time.