Skip to content

Tools beside the thread

Git and Worktrees

Repository identity, managed worktrees, Git operations, authority matrix, and pull requests.

  • 31 min read
  • 13 sections

Git and Worktrees ​

Code binds one folder per Project. When that folder is a Git repository, repository identity, worktrees, and Git operations are server-authoritative and fail closed at every boundary.

Repository identity ​

Each Code thread binds an immutable repository identity derived from the filesystem identity of the Git common and object directories, one explicit checkout or worktree, an execution posture, and a user-confirmed delivery target (branch intent, remote name, and proposed PR base).

Repository identity survives ordinary rename or move on the same volume. A copy or a cross-volume replacement requires an explicit audited relink; a moved checkout is unavailable until relinked. Submodules and bare repositories are reported honestly but are not eligible Code Project roots in V1.

When a bound Project has exactly one matching, credential-free GitHub remote, the host projects only its github.com owner/repository identity to the Code composer. New threads use that identity as their PR base default, so a manual Pull Requests refresh can match the thread on its first read. Credentials, non-GitHub remotes, mismatched fetch/push identities, and multiple different remotes stay unconnected; the thread then proposes the local Project as its base repository.

New-thread checkout ​

A Code Project remembers whether new threads bind the current checkout or start in a managed worktree. That habit is a Project setting, not a second workspace product: the create composer can override it for one thread without rewriting the Project, and desktop and phone both inherit it. The thread then shows which root it bound. Missing, locked, or unauthorized roots fail closed.

The conservative default is the current checkout, which creates no worktree and no host state the owner did not ask for.

In the composer, a chip shows where the new thread will work: the branch, or "New worktree · from branch". It opens a menu with This checkout and New worktree, the branch (a worktree shows Start from › instead), Subfolder ›, Remember for this Project, and Worktree options…. That last item opens a dialog with where the worktree is fetched from and its branch name (you can change the name).

From a thread that is already running, the Branch row in Environment opens a menu whose New task on another branch… opens the same draft in that Project on the New worktree choice with Start from already open, so the branch list shows the checkout's real local branches. Worktrees in the same menu opens worktree setup.

Managed worktrees ​

Code can create managed Git worktrees under <repository-parent>/.octant-worktrees/<repository-identity>/<thread-identity>, with a Start from origin default when the selected branch has a usable remote: the server fetches the remote, resolves the exact object ID, and creates the worktree from that commit. The existing checkout is never mutated.

Creating or using this sibling root requires a separately confirmed authority grant that is one-use, short-lived, and local-desktop-only. Remote clients cannot grant it, even under Full access. The server creates collision-safe names, records a durable ownership receipt in the Octant data directory before use, and verifies repository identity, Git worktree inventory, and ownership before reuse or cleanup.

Octant never silently switches, resets, unlocks, or reuses a checkout. Cleanup refuses dirty, active, locked, mismatched, unowned, or ambiguous worktrees. Ambiguous identity or inventory becomes waiting or unavailable, never pruned.

Move a thread into its own worktree ​

A Code thread that started on the Project's own folder can move onto a worktree of its own when the task grows. Open the Branch row in the thread's Environment and choose Move to a new worktree…. You can name the new branch, or leave it empty and Octant names it.

  • The thread's uncommitted changes, staged, unstaged and untracked, are copied into the new worktree. The Project's folder keeps them as they were; Octant does not remove them there.
  • Changes inside a submodule, or an untracked folder that is a Git repository of its own, cannot be copied. The move is refused and names them. Commit a submodule's changes inside the submodule first. An untracked folder that is its own repository is refused even when everything in it is committed: move it out of the Project, add it to .gitignore (folders Git ignores are skipped), or add it as a submodule.
  • The thread keeps its conversation. The current session ends, and the next message continues in the worktree with the conversation handed over as text.
  • The move waits while a turn runs or while another thread is working in the same folder, and is not offered in Plan, for a thread that already has a worktree, or in a Project on a server.
  • The agent can ask to move its thread too. Octant always asks you first, even at Full access, and only you can allow it, from a window or a device you paired. The move happens after the agent's turn finishes, not if you stop the turn, and the thread then tells you whether it moved and why not.

When you archive a thread ​

Archiving a Code thread, yourself or through Archive settled threads, removes its managed worktree only when nothing would be lost:

  • the worktree has no uncommitted or untracked changes, and
  • its latest commit is pushed (a remote branch has it) or merged (another local branch has it), and
  • no turn of the thread is still running or waiting on you. Archiving does not stop a running turn, so its worktree stays until you remove it.

The branch always stays, so its commits are never lost. Files Git ignores, such as build output and installed dependencies, go with the folder. If either condition does not hold, or Octant cannot tell, the worktree stays. A squash or rebase merge creates new commits, so the original commit is not found on the base branch and that worktree also stays.

Remove worktrees archiving kept ​

Settings → Code → Worktrees kept after archiving lists the managed worktrees that archived threads still keep, largest first, with the Project, branch, folder, and size. The size reads "more than" when the folder is too large to count fully.

Choose Remove and confirm to delete a worktree's folder. Octant still refuses one with uncommitted changes, or one whose thread still has a turn running, and says so in the section; commit or discard those changes in the thread first, or let the turn finish. The branch and its commits stay. A window on the computer running Octant can see the list and remove worktrees, and so can a browser you paired yourself, under Host settings › Permissions (the paired browser's list). The phone, and a device paired below Full or introduced by a hub, sees only that they are managed on the host.

Clean up worktrees you are not using ​

Not in a release yet

Cleanup choices and Restore worktree arrive with #2884.

Settings → Code → Worktrees decides when Octant removes a managed worktree's folder. Only the first is on unless you change it.

  • Clean up when a thread is archived works as described above. Turn it off and archiving removes nothing; the two choices below still apply to an archived thread's folder.
  • Clean up merged worktrees removes a folder a day after its last activity, once its branch has a commit of its own that is pushed or merged.
  • Clean up after inactivity removes a folder after the number of days you set under Days of inactivity (1 to 365), even when its thread is still open.

The last two leave the branch, the thread and its checkpoints in place, so the folder can be brought back. They remove a folder only when nothing would be lost, and unlike archiving they count ignored files. They keep one that has:

  • uncommitted, untracked or ignored files, or an empty folder;
  • files you told Git to skip, a sparse checkout, a submodule, or a merge, rebase or similar under way;
  • a lock, or a different repository, branch or commit than Octant recorded; or
  • anything running for it: a turn, a child run, a debug session, a shell in the Project, a queued message or a wake-up.

A worktree you restored counts as active again.

Restore a cleaned-up worktree ​

An open thread whose worktree was cleaned up says so and holds sending. Choose Restore worktree in the thread, or under Settings → Code → Worktrees › Cleaned-up worktrees. Octant makes the folder again on the recorded branch and checks the repository, branch and commit before the thread can run. Setup commands do not run again by themselves.

Restore is refused, and the message says what to do, when:

  • the branch moved or was deleted: put it back at the commit named in the message, then restore;
  • another worktree has the branch checked out; or
  • a folder is already in its place: move it away, then restore.

If Octant stops while cleaning up, the next start or the next Restore finishes or undoes it. If it stops while restoring, the thread stays blocked until you choose Restore worktree again. Nothing that is not on the branch is deleted.

You can restore at a window on the computer that runs Octant and from a browser you paired yourself at Full. Other devices see why the thread cannot run.

Worktrees other tools made ​

Settings → Code → Worktrees on this computer finds Git worktrees that other tools and agents left behind. Choose Scan: Octant looks through your home folder and your Code Projects' repositories, then asks each repository's Git for all of its worktrees, wherever they are. It skips caches, node_modules, the Trash, and app data, and stops early in a very large home folder. The result is kept until Octant restarts. This works on macOS and Linux.

Each worktree is listed under its repository with its branch, size, when Git last recorded using it, and whether its folder is gone, Git has it locked, or its work is merged or pushed. Worktrees Octant made are not listed here; they are removed through their threads. A browser you paired yourself lists and removes these worktrees from Host settings › Permissions, with the same checks; the phone does not.

Remove asks first. Octant then checks the worktree again and:

  • refuses the repository's own checkout, a locked worktree, one with uncommitted or untracked changes, and a repository whose own Git config runs commands when files are read;
  • asks you to confirm any commits that exist only on its branch (the branch stays, so they are kept), and asks once more if it was used in the last 15 minutes, since another program may be working there;
  • refuses a detached HEAD whose commits no branch keeps.

A worktree whose folder is already gone shows Forget, which removes only Git's record of it. Remove N merged or gone removes every worktree whose folder is gone or whose work is merged or pushed, and leaves the ones that need a look.

Xcode builds ​

On a Mac, Settings → Code → Xcode builds lists Xcode's build folders (DerivedData) whose project folder no longer exists, as when a worktree was deleted, and ones Xcode has not opened for 30 days. Remove one, or Remove N whose project is gone; Xcode builds them again if a project needs them. A browser you paired yourself lists and removes them from Host settings › Permissions; the phone does not.

Name a worktree's branch ​

Not in a release yet

Choosing a branch prefix, naming a branch from your prompt and Suggest name arrive with #2882.

A new managed worktree delivers on its own branch. By default the name is octant/ and a short id. Change both parts under Settings → Code → Worktrees:

  • Branch prefix is what each new branch starts with, such as henrik/ or wip-. The field refuses a prefix Git or Windows could not use.
  • Branch name is Prefix and short id or Prefix and words from the prompt. The words are picked on your computer, with no model involved.

The worded name is careful, because a branch name is pushed. Everything after a word such as password, token or key is left out to the end of that sentence or clause. If the line ends first, the lines after it are left out too, up to a blank line. So are addresses, paths, emails and name=value settings. If fewer than two words are left, or Octant could not read every branch name that is already taken, the branch gets a short id instead. Words are only used by the start screen on the host; a phone or paired browser uses your prefix and a short id.

Before you send, open Worktree options… to see the exact name and edit it. When Octant's own name is taken, it gets a number. Local and remote branches and tags count as taken, ignoring upper and lower case, and so does a name above or below one of them, such as feature beside feature/login. If you type a name that is taken or cannot be used, the field returns to the name that will be created and says why. Clear the field to return to Octant's own name. If someone takes the name just before you send, the host refuses the thread instead of choosing a different name.

Suggest name asks the model selected in the composer for a few words. It only runs when you press it, sends only the reduced words from your message, and counts toward the Project's spend limits and its usage. If the model cannot answer, or you change the message, Project or model meanwhile, its answer is not used and you keep Octant's own name, which still follows your message. Choosing another Project or base branch forgets a name you typed or were suggested.

The prefix also applies to threads you start from a paired browser or phone and to coordinator workers. Threads Octant starts by itself, such as checkpoints and automations, keep their own names.

Git operations ​

Read-only observation and mutation are separate ports. Mutation serializes per checkout and refuses an active Git index lock.

Restoring files in place and discarding tracked changes refuse while another thread has a writing turn running or waiting on approval in the same checkout folder. Discard also waits for you to finish or stop the requesting thread's own turn before you retry. The refusal names the blocking thread when it is in the same Project. Approval does not override this check: a writer that starts while you review an approval still blocks discard. A turn starting during an overwrite waits for it to finish. Plan turns and threads on a different managed worktree do not block the operation. Refresh Review before retrying if the files changed.

Unavailable in V1: broad staging, shared stash, reset, checkout-based discard, rebase, history rewriting, and force push options. Staging always receives an explicit normalized path set.

  • Commit requires an explicit staged summary and message. A commit needs an author. The checkout's own Git config is read inside the confined command; when it names no author or email, the host's recorded profile (Settings → General → Your profile) fills only the missing fields, and a checkout that names its own author keeps it. When neither source names an identity, the commit is refused with a reason that says so, rather than attributing your work to an address invented from the OS account. Merges and reverts create commits too, so they resolve their author the same way.
  • Switch branch moves an idle thread's checkout onto another existing local branch, from the Branch row in Environment. The dialog lists the checkout's local branches; the current branch, remote refs, and branches another worktree holds are left out. Switching waits for the running turn to finish and never commits on its own: on a checkout with uncommitted changes it shows the changes as they were read and offers Commit in Git (the Git pane's own stage-and-commit form — nothing is staged for you), Stash and switch — the changes stay in the stash even if the switch then fails — or Cancel, which changes nothing. If the checkout changed since the dialog read it, nothing is stashed and the list is read again for a fresh choice. The same-branch request does nothing and leaves no stash. Agents cannot switch a thread's branch.
  • Push requires an approved action or Full access, a confirmed remote and refspec, and a non-detached branch. A thread pushes only its own branch. After you amend a commit, the agent can push it with force-with-lease: Git replaces the remote branch only if it is still the commit Octant saw, so a branch someone else moved is left alone. A plain force-push, or any push to the default branch, happens only when you approve that one push; Full access does not cover it.
  • Pull requests are created through the installed authenticated gh CLI. Octant first checks for an existing PR for the same head and base, so a retry returns the same PR and never duplicates it. Octant stores no GitHub token and strips ambient token variables from ordinary Git commands. It never creates a fork automatically; you select an already configured writable head remote and the intended base repo and branch.
  • Agents and pull requests. When you ask, the agent can edit its own pull request, add or remove labels the repository already has (it never creates one), close it or reopen it (a merged one stays merged, and the branch is never deleted), and post a comment or a reply in a review thread. A comment or reply posts under your name. At Full access it posts without asking. Below Full access each one asks you first and shows the whole text, unless you turned on Agents may comment on pull requests for the Project (in the Pull requests list, beside Agents may merge). With that switch on, a thread that has read no outside content posts without asking; a thread that has read outside content, such as a web page or an issue, still asks before each post, and so does any thread when Octant cannot tell. The switch is off by default and only a window on this computer or a browser you paired yourself (beside the Project's default mode, under Default modes) turns it on. Plan never posts. The agent never approves or requests changes on a pull request. It can merge its own pull request when you ask, after you approve that one merge; Octant merges only the head you saw, and only when the repository's required checks have passed. Two choices of yours let it merge without asking each time: Agents may merge on a Project (in the Pull requests list, beside Auto-refresh), and Merge the pull requests it opens on a Code routine in Automation Center. A window on this computer or a browser you paired yourself turns on Agents may merge; only a window turns on the routine's choice. The head and required-check rules still apply. Switch the choice off and the next merge asks again. A routine's choice covers only the threads its own runs create. The agent can also ask to watch its own pull request; see A thread watching its pull request.
  • Linked issues. In the same Project settings menu, Keep linked issues up to date lets Octant move the issues linked to a thread as it progresses, and Agents may update linked issues lets an agent below Full access comment on and move them without asking, as long as the thread has read no outside content; otherwise it still asks. Plan refuses updates either way. Both are off by default. A Project with no GitHub repository has both switches on its Overview page instead. See Linked issues.
  • You merge yourself. Open a pull request's review and choose a method, then Confirm merge. Octant merges only the head you reviewed, refuses if it moved or if a required check has not passed, and uses your signed-in gh. A paired phone or web client can merge a pull request, or a whole stack from the bottom, the same way; a stack that is not one chain is refused before anything merges. Under Your actions in the review you can add or remove a label the repository already has, post a comment, reply in an open review thread, approve it or request changes (a note is needed to request changes), and close or reopen the pull request. Comments, replies, and reviews post under your name, and these controls work in the desktop window only. A review is recorded on the head you read and refused if the pull request has a newer commit; GitHub does not let you approve your own pull request. You can also turn on Merge when ready and Auto-fix there; see Automatic actions. Durable local review findings stay thread-owned; publishing them to GitHub is a later phase.

Authority matrix ​

OperationPlanApproval-gatedFull access
Read, search, status, diffAllowAllowAllow
Edit, save, rename, delete fileDenyPromptAllow
Start/stop terminal or testDenyPrompt (agent); your own terminal opens without a promptAllow
Stage, commit, push, create PRDenyPromptAllow
Merge a PRDenyPrompt for each actPrompt for each act
Comment or reply on a PRDenyPrompt, unless the Project lets agents commentAllow
Labels, close, reopen a PRDenyPromptAllow
Watch its own PRDeny (stopping a watch is allowed)AllowAllow
Create sibling managed rootSeparate local-user confirmation (denied to remote clients)

Pull requests workspace ​

Code's Pull requests destination is a Project-scoped list of active open and draft pull requests from authorized connected Code Projects. Octant resolves each Project's github.com origin from the bound root's git remotes. Projects without a github.com origin stay visible as unconnected.

The list is a cached read of a private host-local snapshot. A successful refresh survives an app or host restart. The first time you open the Pull requests page and none of its GitHub Projects has been checked yet, it checks them once, just as Refresh all does; after that, opening the page, switching Projects, and ordinary board queries do not call GitHub. Refresh all and per-Project refresh are explicit; repositories are read concurrently through the installed authenticated gh CLI, then reconciled in stable Project order. A Project can also opt into Auto-refresh with the toggle in its group header: while enabled and the Project has board-relevant pull requests, the host re-observes the snapshot on a bounded cadence (never faster than every 30 seconds, every 2 minutes by default), backs off after failures, and stops entirely when gh is missing or not authenticated. The default is off, which keeps the list to explicit refreshes after the first check. The preview bounds the refresh to 25 repositories and 100 pull requests. The workspace continues to show only active open and draft rows, while Code board cards may use the same explicit refresh to show exact linked PRs as Open, Draft, Merged, or Closed. Merge readiness also requires fresh mergeability, passing checks, and an approved review; conflicts and unknown mergeability never appear ready. Disconnect, timeout, malformed output, and rate limits keep the last authorized snapshot and label it stale. Logging out of GitHub or losing Project authority drops private actionable data. The journal never stores the list or detail cache. It retains only exact PR identities produced by Code operations, so after restart a Code card can show an identity as Unknown and stale until a user refreshes.

Thread-scoped create and observe remain on the thread. A pull request's review can merge it after you confirm; nothing here comments, closes, or force-pushes without your action.

Automatic actions on a pull request ​

A pull request's review has two switches under Automatic actions. Only you can turn them on. Auto-fix needs a click in a desktop window on the computer running Octant. Merge when ready also works from a paired phone or browser, and asks you to confirm the head you reviewed first, in a window or on the phone, before it turns on.

  • Merge when ready asks GitHub to merge the pull request itself once its required checks and reviews pass, using the merge method selected beside Merge. It is pinned to the head you were looking at, so a push in between makes GitHub refuse. If the repository does not allow auto-merge, the review says it is unsupported and turns nothing on; enable Allow auto-merge in the repository's GitHub settings first. The status line shows what it waits on, when GitHub merged it, or when GitHub turned auto-merge off.
  • Auto-fix watches the pull request about once a minute while Octant runs. When a required check fails, a reviewer leaves an unresolved comment, or the branch conflicts with its base, it wakes the linked Code thread with one turn that lists the failed checks with the end of their logs, the review comments, and the conflict. That text comes from GitHub, so it is marked as outside content and the thread's usual approvals apply. The agent is told to fix, commit, and push on the branch, never force-push or rewrite history, and to merge the base branch rather than rebase; it may reply to a review thread and resolve it after fixing it.
  • Auto-fix tries at most three times per failure (Settings › Limits › Pull requests › Auto-fix tries per failure), then stops and marks the thread for your follow-up. It waits while you are typing in that thread or a turn is running there, and stops when the pull request merges or closes, the thread is archived, the Project no longer connects the repository, or you turn it off. After Octant restarts, an ordinary Auto-fix session waits until you open the pull request’s review again. The upcoming babysitting feature can also resume from an authorized local window or when you reopen its controls from a host-paired device.

Every switch change and every wake is recorded in Octant's journal.

A thread watching its pull request ​

Instead of checking its pull request over and over, a Code thread's agent can ask to watch it, for example after it pushes or while it waits on reviewers. Watching its own pull request needs no approval at any access level. It is refused in Plan and in a turn Octant started on its own.

  • While the watch is on, Octant looks at the pull request about once a minute and starts a new turn in the thread when the checks on its latest commit finish (passed or failed), the review decision changes, someone posts a new review or comment, or the branch starts to conflict with its base. Everything it found in one look arrives in one turn. Comments posted under your own GitHub login are left out, since they are yours or the agent's.
  • The turn says what changed and leaves the next step to the agent, under the thread's usual access level and approvals. The text from GitHub is marked as outside content, as for Auto-fix. The watch never tries to fix anything by itself.
  • It waits while a turn is running in the thread or you are typing there, and it ends when the pull request merges or closes, the thread is archived, the Project no longer connects the repository, the agent or you stop it, after ten wakes, or three days after it began. Reaching the limit marks the thread for your follow-up. Change both under Settings › Limits › Pull requests. After Octant restarts, it stays quiet until you open the pull request's review again or the agent asks to watch it again.

Each watch, each wake, and why it ended are recorded in Octant's journal.

While the thread is idle, one line above its composer says what it waits on, such as Waiting · Watching pull request #372, beside any background tasks still running. Babysitting and Auto-fix that this thread repairs show there too, as Babysitting or Auto-fixing pull request #372. An entry that cannot make progress reads Paused, and Details says why:

  • Open the pull request to resume: a watch or Auto-fix after a restart.
  • GitHub is disconnected: Octant's GitHub access was revoked. The entry resumes once GitHub is connected again.
  • Octant can’t reach this pull request: the last look could not read it. The entry resumes once Octant can.

Details lists everything the thread has going, each with its state, wakes used and, for a watch, when it ends. Stop ends one of them for this thread only. The line is hidden while a turn runs and once the thread is settled or archived. In the sidebar the thread reads Waiting with how long it has waited, once you have read the turn the watch started. Only a window on this computer shows the line for now; a paired browser and the phone do not yet. This is not in a release yet.

A thread reading and rerunning its CI ​

When a check fails on a Code thread's own pull request, its agent can read the end of the failed steps' log and rerun a check that looks flaky, without you copying logs into the thread. It reaches only the thread's own linked pull request, and only its latest commit.

  • Reading logs never asks. For each failed or cancelled GitHub Actions job, the agent gets the last 200 lines of the failed steps' output (up to 2,000 if it asks, and at most four logs at a time), with secrets removed. A cancelled job with no failed step is read from its full log instead, with the same line count and size limit. A size limit can cut a long log to fewer lines than asked for. The log is marked as outside content. When a check has no log, the agent is told why: it is still running, its log has expired, it is not a GitHub Actions job (for example a deployment preview), or it passed.
  • Rerunning asks you first below Full access, naming the pull request, its commit and the checks. At Full access it does not ask. It reruns only the failed or cancelled jobs, or one named check, which must itself be a failed or cancelled GitHub Actions job. It is refused when a newer push has replaced the commit, when the run is still going, or when that check's run has already been rerun three times on the commit. Reruns started on GitHub count toward the three.
  • Plan refuses both.

A Code thread's right sidebar can also host Pull requests: it lists the active Project's active rows from the same cached snapshot and opens a selected row in Review in the same dock. The pull request named on a pane tab opens there too, so a mention in the thread reaches the request without leaving the transcript.

Issues browser ​

The GitHub plugin's Issues destination is a host-scoped, read-only browser of issues from any accessible repository. It is not a Project-bound Code surface: it does not replace Pull requests, Thread Boards, or git worktrees.

The row appears only when the GitHub plugin is enabled, its destination action is wired, and the authentication snapshot reports issue-read available. Disabled GitHub or a missing capability hides the row entirely. Search, state filter, and pagination use the existing GitHub catalogue reads.

A closed issue shows why GitHub closed it: completed, not planned, or duplicate. It shows plain Closed when GitHub gives no reason Octant recognises. With Closed selected, you can choose All closed, Completed or Not planned, for one repository or all of them. The Completed and Not planned filters use GitHub search, so GitHub's search rate limit applies and the list stops at the first 1,000 results.

Linear issues workspace ​

When the Linear plugin is enabled and a workspace is connected, Code's Linear destination lists issues from that workspace (identifier, title, state, assignee). Search and filters for team, state, assignee, and project fail closed on missing capability, expired authorization, rate limits, and network loss. Opening an issue shows its description and status. Open in Linear follows the issue's Linear URL in the system browser. The browser is read-only: it does not create, edit, or comment on issues. To start a thread from an issue, use Create from… in the composer; see Start a thread from an issue.

Next steps ​

Review what only exists on this machine ​

Open Review in the right sidebar of a Code thread, then choose Local commits. The list shows the commits on the thread's branch that its upstream does not have yet. A branch that was never pushed is compared with its base branch instead, and the list says which one it used. Select a commit to expand its diff. Octant reads this from the local checkout and never fetches, so it is only as current as the last fetch you made. The list holds the newest 100 commits; when there are more, the count reads "100+" and a note says older ones are not listed.

Ignore whitespace ​

Ignore whitespace appears above the diff in Working tree and in a commit's diff. It asks Git to leave out changes that only move or re-indent text, which makes a reformatting easier to read past. Your choice is kept for every thread in this browser or app profile. The changed-path count at the top still includes files whose only change was whitespace, so it can be higher than the number of files shown.

Leave notes on changed lines ​

A finished Code turn lists the files it changed. Choose one to open it in Review — or open a pull request's Changes tab (or the dock's pull-request review) — then answer the diff line by line:

  1. Select a line number on either side of the diff (the new or the old text). A note opens for that file, side and line.
  2. To cover several lines, enter a later line on the same side in Through line (optional).
  3. Write the note and choose Add note.

Notes wait in the view, where you can edit or remove each one. Send N notes sends them together as one ordinary follow-up message in the target Code thread. On a pull request's diff, a thread picker directly under Send notes chooses 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". Sending line notes never posts comments or reviews to GitHub.

The message lists each note with its file, side and line or lines, quotes the first line (cut to 120 characters), then gives your note. It goes through the thread's usual send, so its mode, access level and Plan apply as for anything you type. Send waits while the thread is running a turn or while you are editing a note. Notes count as sent once the host accepts the message, whatever the turn then does, so a turn that waits, stops or fails does not ask you to send them again; only a refused send keeps them. Sending notes leaves the composer's own unsent draft alone.

On a turn's change view, or on your own pull request (when the pull request's author matches your signed-in GitHub user), line notes send 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 — the host marks the thread as having read outside content before starting the turn (the same mark Auto-fix uses) and refuses the send if that mark cannot be recorded.

Pending notes are unsaved drafts in this window: Octant records nothing until you send them, and closing the view discards them. For review you want to track and resolve, use local review findings and their correction draft instead.

Browse Git history ​

Open Review in the right sidebar of a Code thread, then choose History. The list shows local commits, branch and tag labels, authors, dates, and a parent graph. Select Current branch, All branches, or a specific ref. Search matches commit messages, author names, and SHA prefixes. Use Load older commits to continue through a bounded page or search scan.

Select a commit to inspect its message and changed files. Merge commits let you choose the parent to compare. File sections collapse independently, and Side by side opens the available changed regions in a read-only comparison. Back to history preserves the loaded list and scroll position.

History works from the local checkout without GitHub or network access. Refresh rereads local state; it does not fetch from remotes. Shallow clones and preview limits are disclosed. Large unified previews show at most 2,000 lines per file; side-by-side comparison can inspect the available bounded diff. The interface keeps at most 5,000 loaded commits before asking you to narrow the branch or search. Switching threads always switches checkout authority.

Octant documentation · local-first by design