ctx_handover
Close the lid. The session goes on.
ctx_handover moves a running Hermes session, with the conversation
and the project folder it works in, from one of your machines to another, and back. Send it to your server before you
close the laptop. Pick it up again on the road. Or give the agent one more task that it finishes on the server while
the laptop is in your bag.
/handover to server after work: laptop → server
/handover to server --continue "run the tests, fix them" …and the agent keeps working there
/handover take on the road: server → laptop
/handover export no connection: one file you carry over
What you get
- The whole session. Every message, tool call and tool output arrives on the other machine, not a summary.
- Your project as it is. A git project keeps its branches, its stash and the changes you have not committed yet,
new files included. - Nothing is overwritten. If the folder on the other machine has changes of its own, your copy lands in a fresh
folder next to it. - One copy goes on. The session is locked on the machine you left, so you never continue the wrong one by accident.
- The agent knows what happened. It gets a note: what changed, what did not move, and where the files are now.
- Only your machines. No cloud service in between, no telemetry. Works without ctx.
How it works
Two machines that run Hermes and that you own, called your laptop and your server here. You pair them once. After
that a handover is one command, and it runs in six steps:
| Step | What happens |
|---|---|
| 1. Plan | The plugin shows what it would move: the project folder and its size, other files the conversation used, and what it leaves out. You say yes. |
| 2. Pause | The session is paused on this machine, so nothing changes while it travels. |
| 3. Copy and check | The conversation is copied row by row (message by message), and both machines compare hashes of every message. A git project travels as git data, other folders as files. |
| 4. Land | The other machine stores the session and puts the project into a folder. A project that came from there goes back into its old folder when nothing changed there meanwhile. |
| 5. Switch | Only when the other machine confirms that everything arrived is the session ended and archived here. If anything fails before that, the session here stays usable as before. |
| 6. Carry on | You open the session on the other machine. With --continue the agent there starts on your task by itself. |
There are three ways to move a session:
| Way | Command | Use it when |
|---|---|---|
| Send | /handover to <device> | you sit at the machine that has the session |
| Take | /handover take | you sit at the machine that should get it |
| File | /handover export, then /handover import <file> | the two machines cannot reach each other |
The laptop always opens the connection, so it works from behind a home router or a hotel Wi-Fi. The server only needs
an address the laptop can reach: its Hermes dashboard, public or inside a private network such as Tailscale.
Before you start
You need Hermes 0.22.6 or newer on both machines, and git 2.38 or newer if your project is a git repository. Tested
on Linux; macOS and Windows have had no end-to-end runs yet.
What does not work, or only partly:
- If Hermes Desktop reaches your server only through an SSH tunnel, a Nous/OAuth sign-in or Hermes Cloud, the plugin
has no sign-in it can use. Then only the handover file works. - The laptop always connects to the server, never the other way round. A machine the other one cannot reach over the
network can only get a handover file. - Running programs, subagents and scheduled (cron) jobs do not move. The agent on the other machine gets a note that
names them. - If both copies of a session go on, they are never merged.
- There is no Desktop page of its own yet. Everything runs through
/handover …in a chat orhermes handover …in a
terminal.
Not the core /handoff, which sends a session to a messaging app, and not the hermes-handoff or session-relay
plugins. Every limit, with the details, is in Limits.
Install
On both machines:
hermes plugins install ctx_handover
hermes plugins enable ctx_handover
In Hermes Desktop: Capabilities → Plugins, once for the server's gateway and once for This device.
Set up once: pair the two machines
-
Server: tell the plugin the address your laptop uses to reach the server's Hermes dashboard, then restart Hermes
there.hermes config set plugins.entries.ctx_handover.settings.listen_url https://server.example.net hermes gateway restart -
Server, in a chat:
/handover setupchecks the address and tells you which sign-in the laptop needs: a
dashboard token, or a user name and password. -
Laptop: enter that sign-in under Settings → Plugins → ctx_handover. For a user name and password, also set
How this machine signs in to the other machine's dashboard (peer_gate) tobasic_login. -
Server, in a chat:
/handover pair --name laptopprints one line that starts with/handover pair ctxh-pair:.
Paste that line into a chat on the laptop. It is valid for 10 minutes and works once. The answer on the laptop
starts with "Paired with" and the name the laptop gave the server; use that name where this page writesserver. -
Both:
/handover doctorchecks the setup and says what to fix.
The full walk-through, with every option, is in Set up.
Everyday use
| You want to | Where | Command |
|---|---|---|
| Send the session to the server after work | the laptop session | /handover to server |
| …and let the agent keep working there | the laptop session | /handover to server --continue "run the tests and fix what fails" |
| Hand over as soon as the running answer is done | the session | add --wait |
| Bring a session to the laptop | any laptop chat | /handover take |
| Move it as a file, without a connection | first machine, then the other | /handover export, then /handover import <file> |
| Take a session back | the locked session | /handover reclaim |
| See what is going on | any chat | /handover status |
Wait for the final message before you close the laptop: the laptop does the copying. The final message names the
session on the other machine and its folder.
--continue needs one switch on the server, allow_remote_continue. That turn runs with nobody there to approve
anything, so every command that would ask for your approval is refused, and the plugin does not start it when it sees
that approvals are switched off on the server. One case it cannot see: a server gateway that gets HERMES_YOLO_MODE
from its environment. Leave allow_remote_continue off there (Limits, Continuation and approvals).
All commands and options: /handover help, and Use.
What moves and what stays
| Moves to the other machine | Stays here |
|---|---|
| The whole conversation, with tool calls and tool outputs | Running programs, subagents and scheduled (cron) jobs; the note names them |
| The project folder; in a git project all branches, the stash and uncommitted changes | Files that git ignores, such as build outputs and caches |
| Large files stored with Git LFS, when git-lfs is installed there | Secret files: .env files, keys, folders such as ~/.ssh, unless you name one with --include-secret <path> |
| Files outside the project that the conversation used; the plugin asks first | Hermes' own credentials, always |
| A note for the agent on the other machine | The session itself, locked; /handover reclaim unlocks it |
Safety in short
- Nothing is blacked out. The conversation, tool outputs and project files travel as they are. Whatever the agent
saw, the other machine gets. A handover file is not encrypted. - Secret files stay unless you name each one. A general yes never sends them. A secret file that was committed
to git travels with the project's history. - A paired device can take sessions of this Hermes profile, or write project copies into the folders you allow
(~/hermes-handoverby default), depending on the right you gave it. Outside those folders it writes only where a
project returns to the folder it came from, or into a folder it delivered into before. It never writes into Hermes'
configuration or into places that hold credentials, shell or autostart settings. - The stored sign-in opens the server's whole dashboard, not only this plugin. A reverse proxy that passes only
/api/plugins/ctx_handover/limits that. If you lose the laptop, run/handover peers revoke laptopon the server
and change the dashboard token. - Your AI model is asked once per handover which files the work needs. Setting
refinetooffstops it.
Disclosure
- Network: HTTPS only to the machines you pair, and only while you pair, check, look at the status or hand over.
Plain HTTP only on loopback or for a device you mark--allow-insecure. No third-party services, no telemetry, no
update checks. - Sent to the other machine: the session and its files, unredacted, and facts about this machine (system, host and
user name, folders, versions, free disk space), never the values of environment variables. - Inbound: once a device is paired, signed routes under
/api/plugins/ctx_handover/v1/, behind the dashboard
sign-in. - Stored credentials: the other machine's dashboard sign-in and the plugin's own identity key, in the profile's
.envthrough Hermes' own reader and writer. - Commands:
git, without a shell and without your provider keys in its environment; version checks of developer
tools; with--continue, onehermes chat --resumeturn on the other machine. - Background work: threads per handover, and a cache in the plugin's data folder (up to 5 GiB for 3 days by
default).
The complete list of what the plugin reads, writes, runs and sends is in Safety and disclosure.
More
| Document | What is in it |
|---|---|
| Set up | What you need, pairing step by step, sign-in modes, proxies |
| Use | Every way to hand over, the confirmation, where projects land, all commands and exit codes |
| Safety and disclosure | Rights of a paired device, what the lock guarantees, the full disclosure |
| Limits | What does not work, or only partly |
| Reference | Words used, settings, troubleshooting |
| Development | Tests and code layout |
License
MPL-2.0, part of ctx. ctx is a separate knowledge store; the plugin works without it.
With ctx_checkpoint as memory provider and your consent in /handover setup, each handover is also recorded in ctx.
README from the reviewed commit c61c720; it updates when the author re-pins.

GottZ
