GitHub and Linear
Connect GitHub and Linear on the host so Octant can list your repositories, issues and pull requests, and start threads from them.
Both connections belong to the computer running Octant, not to a thread. Connecting an account never widens what a thread may do: its access level and approvals still decide that. Octant changes something on GitHub or Linear only when you, or an agent under the thread's approvals, use the pull-request or issue tools, or when you turn on Keep linked issues up to date for a Project.
Connect GitHub
Octant uses the GitHub CLI, gh, version 2.45 or later, installed on the host.
- Open Settings › Integrations. The GitHub account section shows the state, such as Not connected or Connected.
- Choose Set up GitHub. Octant shows the CLI's one-time code.
- Open the GitHub device-login link it shows, enter the code and approve.
- Back in Octant, choose Refresh status.
GitHub capabilities then lists what Octant can read: Repositories, Issues, Pull requests and Projects, each Available or Unavailable. To read GitHub Projects metadata, choose Enable Projects metadata, which asks GitHub for that extra permission.
When GitHub shows as blocked
- Blocked: insecure credential storage means the token sits in
gh's plain-text config file. Choose Move credential to secure storage. Octant keeps the same token and account, writes it to the host's credential store, and only then letsghdrop the plain-text copy. - Blocked: ambient token detected means a
GH_TOKENorGITHUB_TOKENvariable is set in the environment Octant started from. Remove it and restart Octant. - Connected (limited scopes) means the account works but lacks a permission one of the features needs. That feature reports Unavailable.
Log out or revoke access
Log out on this host removes the credential from this computer only. GitHub still lists the authorization until you remove the GitHub CLI authorization in your GitHub application settings.
What Octant does with GitHub
- Make a Code Project from a repository. Clone a repository you can reach, or attach a checkout you already have. See Clone a GitHub repository.
- Mention in a prompt. Type
#in a composer to link a pull request or issue of the Project's repository. See Mention a pull request or issue. - Browse issues. The Issues destination is a read-only list of issues across your repositories. See Issues browser.
- Work with pull requests and checks. The Pull requests destination, the dock's Pull requests tool, merges, and Auto-fix are described in Pull requests workspace and Work with pull requests. For a red check, follow Fix a failing check.
- Let a Code agent read its repository. A Code thread's agent can list and read the issues, pull requests and projects of its Project's repository. It cannot name another repository. It can comment on and close the issues linked to its thread, and nothing else on GitHub. What it reads is marked as outside content.
- Start runs from workflow runs. A routine can start when a GitHub Actions run finishes. See Start runs from integration events.
- Show what waits on you. Review requests, your open pull requests and assigned issues appear on Code Home and in the Inbox.
GitHub is a bundled plugin that is on by default. Turning it off hides these surfaces, and its part of Settings › Integrations, but keeps Git, worktrees and pull-request delivery. See Provider and access settings.
Connect Linear
Linear is a bundled plugin, on by default; turned off, it leaves Settings › Integrations. Octant asks Linear for read and write access, so it can move and comment on the issues linked to your Code threads.
If you connected Linear before Octant asked for write access, your connection can only read. Updates to linked issues then stop with "Linear lets Octant read only. Reconnect Linear in Settings › Integrations to allow updates." Choose Disconnect, then Connect again to approve write access.
- Open Settings › Integrations. The Linear workspace section shows the state.
- Connect in one of two ways:
- Choose Connect, approve access in Linear in your browser, then return to Octant. This needs a Linear OAuth client: set
OCTANT_LINEAR_OAUTH_CLIENT_IDto its public client ID in the environment the host starts in. - Or, under Linear API key, choose Personal API key, paste a key from your Linear settings, and choose Store key.
- Choose Connect, approve access in Linear in your browser, then return to Octant. This needs a Linear OAuth client: set
- Choose Refresh status. The section names the connected workspace and its source, OAuth or personal API key.
Both credentials are kept in the host's credential store. If an OAuth grant expires, Octant asks you to Reconnect and does not fall back to a personal key. Remove key deletes a stored key. Disconnect removes Octant's Linear credentials from this host and leaves your Linear workspace untouched.
What Octant does with Linear
Browse issues. Code's Linear destination lists the workspace's issues, with search and filters for team, state, assignee and project. See Linear issues workspace.
Mention in a prompt. Type
#in a composer to link an issue by its key or a title word, from the Project's linked team or, without one, any team. See Mention a pull request or issue.Show your assigned issues. Issues assigned to you appear in Up next on Code Home and under All in the Inbox. Open issues nobody has picked up appear in Start something new.
Start a thread from an issue, as described below.
Start runs when an issue is assigned to you. See Start runs from integration events.
Keep linked issues current. Octant moves and comments on the issues linked to a Code thread, as described below. It never creates or deletes Linear issues.
Start a thread from an issue
You can start a Chat, Work or Code thread from a GitHub issue or a Linear issue.
- In a new task's composer, choose Create from….
- Pick the Issues tab for GitHub or the Linear tab. A tab appears only while that connection can read issues.
- Search, then choose an issue. Octant fills the prompt with "Work on" and the issue's reference and title, and shows the issue beside Create from…. Choose Remove to start without it.
- Edit the prompt if you like, then send.
When the thread is created, Octant reads the issue again with the host's current access. It removes text that looks like a token or key, keeps the title, state, description and up to ten comments within fixed size limits, and gives the agent this text marked as outside content.
If the issue cannot be read at that moment, the thread is not created and the composer says so.
A Code thread started from an issue is linked to it. Octant writes back to the issue only as described in Linked issues.
To continue a Claude Code or Codex session instead, use the Terminal tab. See Continue a terminal session.
Linked issues
A Code thread can be linked to up to ten issues: the one it started from, and any you add. In the thread's environment panel, choose Link an issue… (or Linked issues once there are some). Type #12 for an issue in the thread's repository, owner/repo#12 for another repository, or a Linear identifier such as ENG-12, then choose Link. Unlink removes one. Only you can link or unlink, from a window on this computer or a device you paired.
Linking matters in three places:
- The agent may update linked issues, and only those. On a GitHub issue it can comment and close it as completed; on a Linear issue it can comment and move it to another state of its team. Plan refuses. At Full access it does not ask. Below Full access it asks you first and shows the whole comment, unless you turned on Agents may update linked issues for the Project and the thread has read no outside content. A comment it has to ask about must fit in the approval whole, about 1.9 KB; a longer one is refused before you are asked. If you unlink the issue before you answer, the update is refused even if you then allow it.
- The pull request names them. A pull request the thread opens through its tool adds
Fixes #12(orFixes ENG-12) for each linked issue its description does not already name. - The thread offers Merge when ready. Once the pull request is open, the thread's Pull request updates note offers Merge when ready… (it waits while a follow-up you set yourself is open). You confirm it; GitHub then merges at the current head once the required checks pass. The agent never turns it on.
Keep linked issues up to date
In the Pull requests list, open a Project's settings menu and turn on Keep linked issues up to date. A Project with no GitHub repository has both switches on its Overview page instead. It is off by default, and only a window on this computer or a device you paired can change it. With it on, Octant moves each linked issue as the thread progresses:
| When | Linear | GitHub |
|---|---|---|
| You send the thread a message (a scheduled wake-up or routine does not count) | In Progress | No change |
| The thread opens its pull request | In Review, if the team has a state with "review" in its name | No change |
| The pull request merged | Done, with the comment "Merged in [pull request URL]." | Closed as completed, with the same comment |
Octant never moves an issue backwards: an issue already in review, done or canceled stays where it is. Each move happens once per thread. If Octant cannot make one (Linear can only read, or your GitHub account cannot change the repository's issues), the thread's Pull request updates note says so and what to do. Octant tries that move again the next time you send the thread a message, not every few minutes. GitHub moves also need Octant's GitHub connection turned on.
Done needs Octant to have seen the pull request open while the switch was on, so turning the switch on doesn't close the issues of threads that merged before, since you may have reopened them. A pull request opened and merged on GitHub within a couple of minutes, before Octant looked, leaves its issues as they are. A merge made on GitHub counts as soon as Octant's pull-request refresh sees it. Linear always uses the team's own states; you can't pick a different state for each step yet.
Pick up work from Code Home
Under the Code composer, Code Home lists work you can pick up:
- Up next holds review requests, your own open pull requests, and GitHub and Linear issues assigned to you. Each card's badge says why it is there. Open Inbox is beside the heading, and the section says You're all caught up. when it is empty.
- Start something new holds open GitHub and Linear issues nobody has picked up, with Browse all issues beside the heading.
- Continue holds your latest threads and where each one stands.
Choosing an issue fills the prompt and attaches the issue, just as Create from… does. See Start screens.
Next steps
- Projects to clone a repository into a Code Project
- Git and worktrees for branches, pull requests and the issue browsers
- Inbox and Review for what waits on you