Work on another computer
Unmerged preview work
This page describes behavior in open pull requests that are not yet in a release: #2711, #2738, #2739, #2740 and #2784. The released app refuses to start a thread on another computer from this window.
From the Octant desktop app on one computer, you can start a Code thread on another of your computers and manage it from here. The thread runs on the computer you choose, in one of its Projects, with its own providers, models, sign-ins, sandbox and approvals. This window only shows it and sends your choices there. Nothing about the thread runs on the computer in front of you.
What it needs
- The Octant desktop app on this computer. A paired browser and the phone already open each computer's own threads; this page is about the desktop window.
- A connection to the other computer. Either pair this computer with it under Settings → Remote access → Other computers (see Pairing the desktop app with another computer), or make both members of the same hub (see Computers through the hub).
- Standing on that computer. If you approved this computer's pairing yourself, the other computer treats this window as you and shows the full start form. A window it does not treat as its own person sees its threads but gets no start form, like a restricted paired browser.
Start a Code thread on another computer
- Select Code and open the start screen.
- In the computer picker at the top, choose the other computer.
- Once its session is ready, the pane shows that computer's own Code start screen: its Projects, its providers and models, and its defaults. The picker stays at the top.
- Choose a Project there, write the first message, and send it.
The thread is created on that computer and never on this one. Choose this computer in the picker again to go back to your own start screen.
If this window cannot reach the computer you chose, it refuses with a sentence and runs nothing here in its place.
You cannot attach images to a thread on another computer yet.
Follow and steer it from here
An open thread on another computer behaves like one on this computer:
- its reply streams into this window;
- its approvals and the things it waits on reach this window, and you answer them here;
- where that computer treats this window as you, an agent's request for a secret shows as its card, and you type or paste the value here (Answer from another device); not in a release yet;
- Stop stops its turn on that computer;
- follow-ups go to that computer, under the thread's access level there.
This window reads the thread again within a second while it is busy, backing off to every three seconds while it is quiet, the pace the phone follows a thread at. Every answer you give is checked and recorded on the computer that runs the thread, with this computer's device named.
See every computer's work in one window
The Code sidebar has a section, On your other computers, that lists each paired computer's active Code threads under that computer's name. The Code start screen's Needs you card also lists what those computers are waiting on you for, each row naming its computer.
- Choosing a row opens that thread on its computer's Code start screen, where you answer it.
- Each computer is read again every 15 seconds while the window is visible.
- A computer that stops answering keeps its last rows, marked not connected. They cannot be opened until it answers again.
- The Environments filter decides which computers are listed.
- Only computers you paired directly are listed so far, not those you reach through the hub.
Make a Project from a folder there
To work in a folder on the other computer that is not a Project yet, choose New Project from a folder… in that computer's Code start form. Octant browses the folder there with that computer's own folder check, and the new Code Project is made on that computer, not here.
Only a device that computer's own person paired may do this: a window on this computer you paired yourself, or a browser you paired yourself. That computer refuses a device the hub introduced, a restricted device, and an agent's access grant.
Clone a repository to another computer
When a repository is already a Code Project on this computer and is not yet cloned on another connected computer where you act as its own person, you can clone it and bind the new Code Project from one dialog:
- Open Add to another computer… from the local Code Project's overview or sidebar menu, or choose Clone from this computer… on the other computer's Code start screen (which preselects that computer and lets you choose the local Project).
- Choose the destination computer and the clone transport (SSH or HTTPS). The dialog previews the derived remote URL from
originand defaults the destination folder to~/<repo>, which you can edit. - Optionally tick specific local gitignored files (such as
.envor.env.local) to copy after the clone finishes. Nothing is selected by default, OS metadata files (.DS_Store,Thumbs.db,desktop.ini) and whole ignored directories (such asnode_modules/and build output) are excluded, and secret-like filenames are marked with a Secret badge. - Select Clone to clone from
origindirectly on the receiving computer using its own Git and SSH setup, bind the folder as a Code Project there, and copy only the ticked files directly over the paired session.
The clone fetches from the repository's origin remote rather than copying your local checkout, so unpushed commits and uncommitted changes to tracked files stay on the source computer. The source repository must have a supported SSH or HTTPS origin, private repositories require Git or SSH credentials on the receiving computer, and SSH cloning requires the Git host's key to already be trusted in known_hosts on the receiving computer.
The receiving computer runs git clone non-interactively with hooks and templates disabled, refuses non-empty destination folders and unsafe remote schemes, and never overwrites tracked files when landing chosen ignored files. If one or more chosen files cannot be copied, the dialog lists the failed paths while keeping the cloned Project ready to open.
Only a window that acts as the receiving computer's own person can run this flow; hub-introduced devices without host-person standing and agent grants are refused.
Unmerged preview work
Cloning a repository to another computer with optional gitignored file copying is in open pull request #2862, which is not yet in a release.
Computers through the hub
When this computer is a member of a hub, or is the hub, its window also lists the hub's other members as computers, so you do not pair with each one. In Settings › Host, each of them reads Through the hub.
- This window makes its own key, and its computer asks the hub to introduce it to the other members. Each member then decides for itself whether to let it in, as it does for a phone that joined as a guest, and talks to this window directly over your private network. Nothing passes through the hub.
- Each member gives this window a credential of its own. No credential is shared between members.
- A computer you paired directly stays a direct pairing and keeps everything it allows you.
- The list is read when the window opens and every five minutes. A member the hub drops leaves the list.
- In a spoke's window, the hub itself is listed as a computer labelled hub.
- The hub lists a member's own window by itself, with no approval step. Every device still shows the new-device alert with the window's name, IP address and Remove. That includes the hub's own devices (#2813, not yet in a release).
Unmerged preview work
Listing the hub as hub, listing a member's window automatically, and the hub's own Act list are in open pull request #2798, which is not yet in a release.
What a computer through the hub lets you do
A member that let this window in because the hub introduced it holds it to its Act item, not to your full authority there, unless this computer is an owner on that member: then the window acts as you there (Your computer's desktop window acts as you too). Otherwise, on that member:
- you can start Code and Work threads only in the Projects its Act item names. The member checks this at every start. If Act is not ticked, or the Project is not named, the start is refused with a sentence that names the action;
- forking a Code thread is refused;
- choosing a folder or making a Project is refused;
- everything else follows What a hub member cannot do.
Unmerged preview work
Holding answers and Stop to the Act item is in open pull request #2789, which is not yet in a release.
Answering an approval or a question, and Stop, follow the same rule: they work only on a thread whose Project the Act item names, and are refused with a sentence otherwise. A message sent into an existing thread, and Chat threads, are not limited by the Act item yet.
Name the Projects (on the member)
- On the member, open Settings → Remote access → Join a hub.
- Tick Act in the hub grant.
- Under Projects a device the hub introduced may start threads in, choose the Projects.
- Choose Save the grant.
The hub has its own Act list, in Settings → Hub, which works the same way for threads a window starts on the hub itself.
Unticking Act refuses the next start, answer and Stop from every device the hub introduced, and also ends their open sessions on that member at once. They stay paired, so a new session follows the rules in force at that point.
Next steps
- Open a server from another computer to open a thread's dev server or forward a port
- Share work between computers to let an agent hand work to another computer
- Remote Access for pairing and what a paired device may do