Pull Requests
Read, review and merge a GitHub pull request in a tab beside the session.
A pull request opens in its own tab in the surfaces pane, beside the session that made it. From that tab you can read it, review it, and merge it without switching to a browser.
Before you start
Atlas talks to GitHub through the GitHub CLI and uses the account it's signed in to. Install gh and run gh auth login once. Atlas never asks for a token of its own.
If gh is missing, signed out, rate limited, or GitHub can't be reached, the tab says which one it is. It offers Retry and Open on GitHub, and when you hit the rate limit it counts down to the reset.
Open a pull request
- select the pull request badge on a session in the sidebar, or a line in its hover list
- select a row in the session's pull requests tab
- select a pull request row in the session details card
- select a row in the repository's pull request list
- create one with Create PR: its tab opens when GitHub confirms it
Opening a pull request that's already open focuses its tab. A second pull request opens in the same column as the first, so you can read down a list in one place. The tabs are saved with the project's layout and come back when you restart Atlas.
The pull request list
Every pull request in the repository, in a tab of its own. Open it with any of these:
- press ⌘T then P
- run Open pull requests from the command palette
- open the project picker at the top of the sidebar and choose the project's pull requests item
Each repository gets one list; opening it again focuses the tab.
The list is split into Authored (yours), Review requested (waiting on you) and Others. Each row shows the state, title, number, author, labels, checks, review state, lines added and removed, comment count and when it last changed. Select a row to open the pull request in its own tab.
- Search matches the title, the number, the branch and the author. It also takes the qualifiers below.
- State shows open, closed, merged or every pull request.
- Involvement shows everyone's, the ones you're reviewing, or the ones you wrote.
- Sort orders by merge readiness, blocked on you, recently updated, newest, oldest, largest or smallest.
- The filter menu narrows by author, label, draft, review state and checks.
Atlas remembers the filters and the sort, and the list itself: when you open the tab again, the rows you saw last show at once while Atlas checks GitHub for changes. Long lists load more as you scroll. With a review state or checks filter on, Atlas loads three pages on its own and then shows Load more, so a filter that matches little doesn't page through the whole repository. If a page fails to load, the end of the list says so and offers Retry. The list also refreshes when an agent finishes a turn, since the agent may have pushed or opened a pull request.
Search qualifiers
Type these in the search box, alongside any words. A qualifier replaces the filter menu's setting for the same thing.
| Qualifier | Shows |
|---|---|
label:bug | pull requests with the label. Quote a name with spaces: label:"help wanted" |
label:bug,ui | pull requests with either label. Several label: qualifiers must all match |
-label:wip | pull requests without the label |
author:octocat, author:@me | pull requests by that person, or by you |
draft:true, draft:false | only drafts, or no drafts |
review:approved | the review state: approved, changes_requested, required or none |
checks:passing, checks:failing | the checks state. status:success and status:failure work too |
Any other name:value, such as area:ui, is read as a label of that name. A qualifier Atlas can't use, such as draft:maybe, stays part of the search text.
Quick actions
Hold Shift over the list and each row shows its actions: Close and Merge on an open pull request, Close and Ready on a draft, and Reopen on a closed one. They act at once, without opening the pull request. Merge still asks you to click a second time, and it uses the merge method you picked last, if this repository allows it.
To close several at once, hold Shift, press Close on one row and drag up or down across the others. The rows turn red as you pass them and close when you let go. Only open pull requests in the same group are included. Press Esc before you let go to cancel. The message that follows has a Reopen button that puts them all back.
Row details
- Right-click a row to copy its link or open it on GitHub.
- A row with a stack marker, such as
2/3, is based on another open pull request's branch. Select the marker to see the whole chain, starting from the base, and open any pull request in it. - Hover the line counts to see how the change splits into code, tests, mocks and fixtures, generated files (lockfiles and build output) and docs. Atlas reads this for the rows on screen. A pull request with more than a hundred changed files isn't split.
Link a pull request to a session
A session keeps a list of the pull requests that belong to it. A pull request joins the list when:
- the session opens it with Create PR
- Atlas finds one opened from the session's branch in the session's own repository. A pull request from a fork that uses the same branch name isn't linked, and sessions on the repository's default branch (such as
main) aren't searched - you link it: choose Link a pull request… from the session's right-click menu in the sidebar, or + Link in the session's pull requests tab. Then paste its URL, type its number, or pick one of the repository's open pull requests
- the agent links it with the
link_pull_requesttool
A number is read in the session's repository. A URL can name any repository: Atlas looks for a checkout of it among the session's folder, the projects attached to the session, and every other project you've opened, and links it there. If none is a checkout of that repository, open it as a project first.
Selecting a linked pull request opens its tab, in a checkout of its own repository. One whose repository isn't open in Atlas opens on GitHub instead. ⌘-click opens any of them on GitHub.
Unlink one from the session's right-click menu in the sidebar, under Unlink pull request. A pull request found on the branch stays unlinked after you remove it.
Linked pull requests are kept current in the background: every minute while Atlas is in front, when you come back to the window, and when a turn ends. Open ones are checked most often, quiet and closed ones less, and merged ones not at all. A linked pull request that no longer exists is checked less and less often. The background checks pause while less than a tenth of your GitHub quota is left, so what you open yourself still loads. When GitHub's rate limit is reached, Atlas waits for the reset.
A session's pull requests
Each session has a Pull requests tab listing everything linked to it. Open it by selecting the sidebar badge on a session with more than one, or choosing Show pull requests from the session's right-click menu in the sidebar.
Each row shows the pull request's state, number and title, an eye if Atlas is watching it, its checks and review, how many lines it changes, and its branches. A pull request based on another one's branch is drawn indented under it, and the first row of the chain shows how many it holds. The footer counts the open and linked ones and says when Atlas last read them from GitHub.
- Select a row to open the pull request beside it. Its back arrow returns to the list.
- Hover a row and select ⋯, or right-click it, for Open, Open on GitHub, Copy link, Watch for changes or Stop watching, and Unlink from this session.
- Hold Shift for the same quick actions as the pull request list.
- + Link links another one.
The sidebar badge shows the number of a single pull request, or +N for several (a stack glyph when they form one chain). Hover it to list them. Selecting it opens the one pull request, or this tab when there are several. Right-click a pull request in the session details card for the same actions as the tab's rows.
Watch a pull request
A session's agent can ask Atlas to watch one of its pull requests with the watch_pull_request tool, and you can turn a watch on or off from the session's pull requests tab. The agent doesn't have to keep checking, and the session isn't left waiting on it. Atlas checks a watched pull request every two minutes, even while its window is hidden. When something needs the agent, Atlas sends the session a message:
- a check fails, is cancelled or needs action
- the required checks pass (all the checks, if none are required)
- someone other than you comments, reviews or replies, after the watch started
- the branch starts to conflict with its base
The message appears in the session as its own row, marked Pull request watch, rather than as something you typed. Open Details to see the full message the agent got. If the session isn't open, Atlas opens it first. If the agent is busy with a turn, the message waits until the turn ends, after anything you queued. Unless the session is the one on screen, Atlas sends a Pull request watch updates notification, including when no tab shows the session. Click it to open the session. While Atlas watches one of a session's pull requests, the session shows as working in the sidebar.
A watch ends when:
- the pull request merges or closes
- the session settles
- you press Stop in the session
- the agent calls
unwatch_pull_request - Atlas fails to read the pull request 8 times in a row (a GitHub rate limit only delays it)
Closing the session's tab or its project doesn't end a watch. The next update opens the session again.
The agent also gets a short note after 10 comment-only updates in a row, and the watch ends there.
The agent's other tools are unlink_pull_request and list_session_pull_requests. The list shows each linked pull request's state and checks, and how they stack on one another.
Settle on merge
When a session's pull request merges, Atlas settles the session, unless something is still running in it. Turn this off with Settle sessions when their pull request merges in Settings. Keep sessions with a pull request from settling keeps a session with any linked pull request from settling because it has been idle. A session with a watched pull request never settles that way.
The header
The header shows the repository, the number (select it to open the pull request on GitHub), the title, the author, and when it last changed. The branch row shows the base and head branches, the files changed, and the lines added and removed. gh pr checkout copies the command that checks the branch out.
A pull request opened from the list shows a back arrow before the repository name. It takes you back to the list.
- Edit the title by selecting it, if you have permission to.
- Update the branch when it's behind its base: a warning appears on the base branch, and it offers a merge or a rebase.
- Merge from the button at the top right. It changes with where the pull request stands: Ready for review on a draft, a Conflicts badge when it conflicts with its base, Auto-merge while checks are still running, and the merge method (Merge, Squash and merge or Rebase and merge) when everything is green. Once auto-merge is on, the button says so.
- Resolve conflicts appears beside the merge button when the pull request conflicts with its base. It opens a session on the pull request's branch with the task of merging the base in and resolving each conflict.
- Check out opens a session on the pull request's branch. Choose In a separate worktree to leave your checkout alone, or In this repository to switch the project itself to the branch. Atlas won't switch a checkout that has uncommitted changes, one where an agent is working, or one whose branch is already checked out in another worktree.
- Approve workflows to run appears on Summary, in place of the checks pill, when a workflow run from a fork is waiting for someone with write access. Atlas asks for a second click before approving it.
The ⋯ menu has the rest, in this order:
- Link to this session or Unlink from this session, for the session open beside the tab.
- Refresh and the agent actions: Ask a question, Explain this PR, Fix findings and Write guide.
- Mark as draft or ready, merge now, turn auto-merge on or off, and choose the merge method. Atlas remembers the last merge method you picked.
- Open on GitHub, Copy link (⌘⇧C) and Copy PR number (⌘⇧K). The shortcuts work anywhere in the tab, and you can change them in Keyboard shortcuts.
- Close or reopen. On a merged pull request, Revert changes opens a pull request that undoes it.
- Delete branch, with the branch named below it, once the pull request is merged or closed.
Merging, enabling auto-merge, closing, reverting and deleting a branch ask for a second click before they happen.
Atlas keeps the last pull requests you opened on this computer, so reopening one shows it straight away while the latest version loads.
The header folds into one line as you scroll down the tab.
Summary
Summary is the first of the tab's views.
- Reviewers shows who's been asked and the verdict each one gave. A verdict given before the newest commit is marked as stale. Add or remove a reviewer from the picker next to the list.
- Labels lists the labels. Use the picker to add or remove one.
- Description renders the description the way GitHub does, including tables, task lists, images, and links to other issues and commits. Edit it in place, with a preview, if you have permission to. React to the pull request from the heading.
- Checks lists every check. The failing ones come first, and each one links to its details. View log on a finished GitHub Actions check shows the end of its job's log, around the first error, without leaving Atlas. Atlas reads the log only when you ask for it. The checks pill at the top of the tab opens the same list.
- Comments puts loose comments and review threads in one timeline, newest first or oldest first. Bot comments and resolved threads are hidden until you choose to show them, and Atlas remembers that choice. Long conversations load the newest comments first, with a button to show older ones.
Files, tables and code in the description
File paths in the description and in comments appear as chips with your icon theme's file icons, labelled with the file's name. When two files share a name, a parent folder is added to tell them apart. A name written without its folder, such as config.default.toml, becomes a chip only when it matches a file the pull request changes. Click a chip, or press Enter on it, to open the file. A changed file opens in Code when that view is ready; otherwise it opens in a tab from your checkout. Pull request text comes from other people, so a chip opens only inside the repository. A path outside the repository, a folder or an app stays as plain text, and nothing in a pull request opens in your system's apps or your external editor.
Each table and code block has two buttons on its bottom edge. The one on the left collapses a wide table to fit, or a long code block to a few lines; it appears only when collapsing would change something. The one on the right copies the block. A table copies as Markdown or as CSV.
Edit or delete your comments
Hover a comment you wrote and a pencil and a bin appear beside it. The same goes for your line comments and the summary of a review you submitted, in Summary, Timeline and Code.
- The pencil opens the comment in an editor with a preview. Press ⌘↵ or Save to save, Esc or Cancel to leave it as it was.
- The bin asks you to click a second time before it deletes the comment. A review's summary can be edited but not deleted, as on GitHub.
The buttons appear only where GitHub lets you make the change.
Guide
Guide is a tour of the change written by an agent: numbered stops through the code in reading order, each with a short explanation, the lines that matter, notes on specific lines, the other files that belong to it, and the decisions only a maintainer can make. Use it to understand a large pull request before you review it line by line.
Press Write guide to have your default agent write one. The agent works in its own read-only checkout of the pull request's head, so your branches and working tree are left alone. A large change takes a few minutes. You can leave the tab while it runs, and Atlas tells you when the guide is ready. If the agent asks for permission to run something, the request appears in the Guide tab, with the full command or input it wants to run, because the agent's session isn't shown anywhere else.
A pull request from a fork asks before the run starts. The fork's code is its author's, and it can include agent instructions or configuration written to steer the agent. Press Write guide to go ahead, and check each permission the agent asks for.
Read the guide in order with J and K, or pick a stop from the list on the left. Select a question under a stop, or Ask about this stop, to ask about it in a session. The tab widens to the whole window while the guide is open, and goes back when you leave it.
Review from the guide as you read. Press a line number in an excerpt, or drag across several lines, then choose:
- Add to review to hold a line comment for your review, as in Code. Held comments show on their lines in the guide and in Code.
- Ask agent to ask about those lines in a session. The lines go with the question.
On the last stop, Finish review opens the composer on Review with your held comments attached. Without permission to review, the button reads Done reading.
Atlas keeps each guide with the commit it was written for, so it's still there after a restart. When new commits are pushed, the guide says it was written before the latest push and offers Rewrite. Write guide and Rewrite guide are also in the ⋯ menu.
Choose which agent and model write guides, and add your own instructions (what to show first, what to skip), in Settings. Turning Review guides off there removes the Guide tab.
Timeline
Timeline lists everything that has happened to the pull request in order: when it was opened, commits, comments, reviews and their verdicts, review threads on lines of code, label changes, review requests, force-pushes, moves to draft or ready for review, closes and reopens, the merge, and the deleted branch. Beside Newest first, which switches between newest first and oldest first, the tab counts the comments, commits and approvals.
Runs of events of one kind collapse into a single row with a count. That covers consecutive comments, consecutive commits, and one person's consecutive label changes, review requests or force-pushes. Click a comment run or a long run of commits to open it. Each commit shows its short SHA, message, authors and lines changed. A verdict given before the newest commit is shown as stale. Resolved threads and dismissed reviews start collapsed. React to a comment or review from its row, or open it on GitHub.
Atlas reads the whole history, so even a pull request with hundreds of events shows all of them. Comment text loads only when you open a comment.
Code
Code shows the pull request's diff in the same viewer as a session's diff, with the file tree, unified or split layout, word wrap, find (⌘F) and the whitespace toggle.
- Files are in reading order: source files first, each after the files it imports, then the tests in the order of the code they cover, then generated files such as lockfiles and snapshots.
- Ask about lines: press a line number, or drag across several, and choose Ask about these lines to ask about them in a session. This works even where you can't comment.
- Pick a commit from the menu at the top left to see one commit's changes, or All commits for the whole pull request. The commit links on the Timeline open Code on that commit.
- Mark a file viewed with the Viewed box on its header. The file folds away and the count at the top goes up. Viewed marks are kept on GitHub, so they're the same as on github.com and survive a restart. A file that changed after you marked it reads Changed.
- Expand hidden lines between changes from the fold markers, as in a session's diff.
Large pull requests load a hundred files at a time. The next batch loads as you scroll toward the end, and the count at the top says how many files have loaded. Binary files and files too large for GitHub to show say so in place of their diff.
Review threads
Review threads appear on the lines they belong to. Reply, resolve or unresolve a thread, and react to its comments in place. Fix in session hands an open thread to an agent, as Fix does from the Summary. A thread GitHub has marked outdated, or one on a file that hasn't loaded yet, is listed above the files. With a single commit picked, every thread is listed there.
Line comments
With All commits picked, hover a line of the diff and press the button that appears in the gutter to comment on it. Then choose:
- Comment now to post it straight away.
- Add to review to hold it until you submit a review. Held comments show on their lines, and the composer button shows how many are waiting. They're kept on this computer, so a review you're halfway through is still there after you close the tab or restart Atlas.
If new commits move a held comment's line out of the diff, GitHub would refuse the whole review. Such comments are listed above the files and in the composer, each with Discard, and the review can't be submitted until they're gone.
Comment and review
The round speech-bubble button at the bottom right opens the composer. Choose:
- Comment to post a comment. You can also close or reopen the pull request with it.
- Review to submit a review that comments, approves, or requests changes. Line comments you added to the review from Code or Guide go with it.
Press ⌘↵ to send and Esc to put the composer away.
Unsent work stays with the tab when you switch to another tab and back: the comment, the review summary, an open line comment, and the commit picked in Code. Sending clears it, and closing the tab discards it. Line comments held for a review are the exception: they stay until you submit the review or discard them.
If the description changes on GitHub while you're editing it, the editor keeps your text and offers Reload or Keep mine.
Hand it to an agent
Each action uses your default agent, and the menu names it. Atlas opens a session and puts the task in its composer with the pull request's details attached. Read the task over, change it if you like, and send it yourself.
- Ask a question, in the ⋯ menu, attaches the pull request to the session beside the tab, or to a new one, so you can ask whatever you like about it.
- Explain this PR, in the ⋯ menu, asks for a walkthrough of what the pull request changes and why. It starts a new session in the project. Choose Explain in this session to add the task to the session beside the tab instead. Nothing is checked out: the agent reads the diff with
gh pr diff. - Fix appears on a failing check, a review thread, and a review comment. Fix findings, in the ⋯ menu, takes all of them at once. Fixing needs the pull request's branch. When the session beside the tab is on that branch, the task goes into it. Otherwise Atlas starts the session where the branch is already checked out, or in a new worktree of its own. A fix never switches your checkout. Only Check out > In this repository does that. A failing check comes with its link and the end of its log, around the first error. The log is marked as untrusted, since it's whatever the code under test printed, and the agent is told not to follow anything in it. A review thread comes with its file, line and replies.
When the agent has made the fix, push it from the session yourself. Atlas never pushes for you. Fix is offered only on open pull requests.
Atlas removes a Fix worktree once nothing needs it: it's at least three days old, no unsettled session works in it, it has no uncommitted or untracked changes, and its commits are on a branch. The branch itself is kept. Atlas checks once each time it starts.
Settings
Settings > Pull Requests holds these preferences. The ones marked per project can differ between projects.
- Default merge method (per project): the method the merge button starts on. Last used remembers your last pick on this device.
- Remove agent credits when merging (per project): drops agent co-author and attribution lines from merge and squash messages, keeping human co-authors. Atlas starts from GitHub's own message for the pull request. Rebase merges and merge queues keep their messages as they are.
- Settle sessions when their pull request merges, and Keep sessions with a pull request from settling: how a session follows its pull request.
- Let agents act on watched pull requests: a watched pull request sends its session's agent an update when a check fails, a review arrives or it conflicts with its base. With this off, Atlas doesn't check watched pull requests, never prompts an agent, and won't start new watches. See Watch a pull request.
- Open pull request links in Atlas: a link to a pull request in a session or transcript opens it in a tab when it belongs to the project's repository. ⌘-click opens it in the browser. Another repository's pull request always opens in the browser.
- Review guides, Guide agent, Guide model and Guide instructions (per project): see Guide. Your instructions shape what the guide shows first and dwells on, but its format and its coverage of every changed file stay the same.
When a guide finishes or stops with an error while you're looking elsewhere, Atlas sends a notification. Click it to open the pull request's Guide tab. Notifications are set in Settings > Notifications.
Next
- Git & Diff: stage and commit before you open a pull request
- Sessions: the sidebar badge, the session details card and its pull requests