Skip to content

Workflows

Review a pull request

Inspect a pull request, run the checks yourself, leave a reasoned review, and start a fix from the same surface.

  • 10 min read
  • 6 steps

Review a pull request ​

Use this when a pull request is waiting on your review, or when you want a second pair of eyes on your own.

Before you begin

The Project needs a GitHub connection under Settings → Integrations, and credential storage must be secure. Without a connection the Pull requests page is not shown at all; it does not claim that nothing is waiting.

Step 1: Open the list ​

Open Pull requests from the Code sidebar, or the Pull requests card on a new Code task. The list separates Waiting on your review from Yours.

Each row states checks and review status in words — passed, failed, running, none; approved, changes requested, in review, draft. Colour is never the only signal.

The list is a snapshot. It refreshes when you refresh it, or for Projects where you enabled background refresh. Until it has checked, it says so.

Step 2: Read the change, not the summary ​

Open the pull request. Read:

  • the description and the linked issue,
  • the file list, then the diff in full,
  • the commits, to see whether unrelated work is hiding in the range,
  • the checks, and whether they ran on the current head.

If the diff is large, read the tests first. They tell you what the author believed the behavior should be.

Follow a review guide ​

Review guides are in development and have not been released.

A review guide walks you through the change in order, one stop at a time. Open the pull request's Guide tab:

  • Pick a guide model first. Guides run on a model you choose under the Project's Pull request reviews › Guide model. There is no default, and until you pick one the tab says so and nothing runs. Each guide is a billed model run.
  • Write a guide. Choose Write guide. The guide is written for the pull request's current head commit, and it reads the diff only; it never edits files or touches GitHub. Only one guide is written per pull request at a time.
  • Read the stops. Each stop has a title, why that part of the change matters, and links to the lines it is about. Choose a link to open Changes at that file. A stop marked Needs your decision asks you for a judgement call, such as a risky default or a change in behavior. A stop that says Not anchored to the diff points at nothing Octant could find in the change. Press J and K to step between stops.
  • After a new push. A guide written for an older commit says Written for an older push. Choose Rewrite for a guide of the current head. If the new run finds nothing to say, your earlier guide stays.
  • Closed or merged. A closed or merged pull request keeps its guide for reading, but offers neither Write guide nor Rewrite.

On a paired phone you can read guides but not write one. A Code thread's agent can read its own pull request's guide, and can ask for a new one; below Full access it asks you first, because the run is billed.

Mark files as viewed ​

In a window on the host, each file on the Changes tab has a Viewed checkbox, and the list starts with how many files you have viewed (for example 3 of 12 viewed). This is GitHub's own Viewed state: marking a file here marks it on github.com under your GitHub account, and the other way round. Octant keeps no copy of it.

When a new push changes a file you had marked, GitHub clears the mark and Octant shows Changed beside the file, so you know to read it again. If someone pushes while you are reading, marking a file is refused until you refresh the pull request, so a mark never covers changes you didn't see.

Step 3: Run it locally when behavior matters ​

For anything user-visible, or anything touching shared code:

  1. Check out the branch in a Code Project.
  2. Run the focused checks yourself.
  3. Exercise the visible path in the Browser or the app.

If you cannot reproduce the author's result, say which command and which commit you used. "Works on my machine" is not a review.

Step 4: Leave a review that can be acted on ​

A useful review comment states the problem, the evidence, and the smallest acceptable change. Prefer one specific comment over a general objection. Mark blocking issues as blocking; leave style preferences as suggestions.

Send line notes to a linked Code thread ​

On a pull request's Changes tab — and in the dock's pull-request review — you can click any line number on the new or old side of the diff to write window-local line notes (optionally extending through a later line on the same side). Notes stay in that view until you send them, where you can edit or remove each one; closing the view discards unsent notes.

  • Pick the thread. A thread picker directly under Send notes selects which linked Code thread receives the message, defaulting to the first linked thread. With no Code thread linked, you can still write notes while Send notes stays disabled with "Link a Code thread to send notes".
  • One follow-up, nothing posted to GitHub. Send notes sends all pending notes together as one ordinary follow-up message in that Code thread (listing each file, side, line or range, the first line's text up to 120 characters, and your note), subject to the thread's normal mode, access level, and Plan rules. Sending waits while the thread is running a turn or a note is being edited. Once the host accepts the message, the notes clear; if the send is refused, your notes stay intact. Sending line notes never posts comments or reviews to GitHub.
  • Outside-content mark. Before starting the turn, Octant compares the pull request's author with your signed-in GitHub user. On your own pull request, notes travel as plain person text. On another author's pull request — or whenever either the pull request's author or your signed-in GitHub user cannot be read — Octant marks the thread as having read outside content first (the same mark Auto-fix uses) and refuses the send if that mark cannot be recorded. See also Leave notes on changed lines.

Second-model pull request review ​

You can ask a second model to review a pull request automatically alongside your own review. It is off by default on every Code Project, with a per-thread override:

  • Choose the reviewer route yourself. The reviewer route picker suggests a different provider from the authoring thread and sets no default model, so nothing is sent until you choose a provider and model.
  • Read-only at Plan, once per head. The reviewer runs read-only at Plan once for each pull request head commit, reading the diff and recording structured findings without editing files or running shell commands.
  • Optional summary comment. Turning on the per-Project summary comment option posts one summary comment on the pull request through gh. It never submits a formal GitHub review (Approve or Request changes).
  • Optional hand-back of blocking findings. Turning on the per-PR blocking-findings hand-back sends blocking findings back to the authoring thread so it can address them and push an updated head.

Step 5: When it needs work ​

  • Small fix: use Start a fix or ask in a thread on the branch.
  • Unclear cause: start a Code task with the PR and the failing check in the prompt; use Plan first.
  • Wrong approach: say so in the review before anyone spends more time on the implementation.

Babysit a pull request until it is ready ​

Babysitting is in development and has not been released. Track the application change.

In a Code thread, enter /babysit and choose a linked pull request (a thread is also linked to pull requests its agent changed through gh or a GitHub tool; see Pull requests and issues a thread worked on). You can also open Pull requests from the sidebar and use the eye button beside a PR. If several Code threads are linked to that PR, choose which one should handle repairs.

Choose Start babysitting to wait for required checks and clear review threads. Select Require all checks, including optional ones if every reported check matters. This option waits for at least one check to report. Use the default for repositories that run no checks. You can also enter a Required label, such as qa-approved, when someone needs to sign off. Octant waits for required approvals and labels.

The selected thread can fix failing checks and branch conflicts, address review feedback, and commit and push repairs under its usual permissions. For several PRs, choose Babysit multiple… in the thread or the Pull requests overview. Select the PRs, choose a repairing thread wherever more than one is linked, set the shared conditions, and start the selection. Each row reports whether its watch started, was already active, or needs another try. Retrying skips successful starts. You can stop each PR independently.

The overview shows the repairing thread, its feedback turns used and remaining budget, and what the watch is waiting for. When GitHub identifies a requested reviewer, code owner, or required deployment environment, the row names it. Choose Needs me to find PRs waiting for an approval, a label or a draft decision, along with ready commits and repairs that need attention.

Comments and review findings from repository owners, members, collaborators, and GitHub bots can start a feedback turn. An unresolved inline thread opened by someone else waits for a person to handle it. Each feedback turn counts once toward Settings › Limits › Pull requests › Wakes per pull-request watch. If more feedback arrives after that limit, or two consecutive checks after a repair see the same commit with the same failures, Octant stops the watch and marks it Needs me. After reviewing the thread, choose Resume on the row to start a new watch with the same conditions and a fresh budget. To edit the saved conditions first, open the eye button or use /babysit.

Keep Octant running while it watches. After a restart, Octant resumes on its next watch pass once a local window can access the project, its GitHub connection and the same linked thread. You can leave the PR overview closed in that window. On a headless host, open the PR’s watch controls from a device you paired with the host. Octant stops the watch if that device session loses access. When GitHub reports that the current head can merge and your conditions are met, Octant stops and leaves a follow-up in the thread with the repository, PR number, and commit ID. When several PRs finish in one thread, its open follow-up lists each one until you acknowledge it. Choose Merge… beside the ready notice or on the overview row. Check the PR, commit, and merge method, then choose Confirm merge. If the branch has moved, Octant refuses the merge. Merge when ready remains available in the PR review.

Step 6: Approve and merge deliberately ​

Approval is not delivery. Before merging, confirm:

  • [ ] Checks pass on the current head.
  • [ ] The diff contains only the intended change.
  • [ ] You have read the tests, not only the implementation.
  • [ ] The branch is up to date enough to merge safely.
  • [ ] Someone owns the post-merge verification.

Merging is a separate action with its own consequences. Octant records what it sees; it does not decide for you.

Pitfalls ​

SymptomCause
The list says nothing is waitingIt has not been refreshed, or the connection is missing
Checks look green but are staleThey ran on an earlier head commit
The diff includes unrelated filesThe branch was cut from a dirty tree or contains a drive-by change
You cannot run the branchThe repository is not connected to a Code Project, or the worktree is stale

Next ​

Octant documentation · local-first by design