hopsesh

module
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2026 License: Apache-2.0

README

hopsesh logo

hopsesh

Move a Claude Code or Codex session to another computer, continue it in the other agent, or hand it to the cloud, and bring it back.

English | 简体中文 | 日本語

Release CI OpenSSF Scorecard Go Reference

Install · Quick start · Another agent · Round trips · Push · Cloud sessions · Ask your agent · On your phone · Why not…? · FAQ

The macOS app, recorded with made-up machines and sessions (demo/).

Guides: move a Claude Code session to another computer · continue it in Codex · after moving a project folder

You started something in Claude Code on your desktop, and now you're on your laptop, or you want Codex to take over. hopsesh shows every session of every agent on all your machines and brings the one you pick here: in the same agent, or continued in the other one, with the repository, worktree and paths fixed up. Then it gives you the command to continue.

  • Finds your machines from Tailscale and ~/.ssh/config, and connects only to the ones you allow, with your own ssh, keys and agent. Reading needs nothing installed there; machines without SSH keys can log in with a password.
  • Sets itself up on your other machines when you ask: hopsesh hosts setup studio (or Machines › Set up hopsesh) copies this hopsesh there and starts it in your login session at each login. Then hopsesh sees who is signed in there (a Mac's Keychain included), protects originals left there, and runs sessions there that you work in here. See Machines.
  • Lists every session of every agent (Claude Code and Codex) by repository: machine, agent, path, branch, worktree, last prompt, last activity, whether it's running, and where else it has been.
  • Moves a session safely: finds the repo here or clones it, recreates the worktree, brings the code to the session's commit, rewrites paths, and shows a plan first. hopsesh undo reverses it.
  • Continues it in another agent: --in codex or --in claude, on another machine or this one. The plan shows exactly what carries over and what doesn't, plus the briefing the other agent gets.
  • Tracks round trips and forks: verified compatible returns can add only new work. Across account profiles, hopsesh creates a portable conversation and preserves the original protected state. If both copies changed, it offers a separate branch; it never silently merges.
  • Works with the agents' clouds: hands a session to Claude Code on the web or Codex cloud (and, experimentally, Copilot, Jules, Devin or Amp), brings their sessions home, and hands one cloud's session on to another, all through the vendors' own commands, signed in as you.
  • Works from inside your agent: ask Claude Code or Codex "bring my laptop session here" and it plans with hopsesh, then moves only after you say yes.
  • Multiple accounts: see who each tool (Claude Code, Claude desktop, Codex, the Codex app) is signed in as on every machine, add account folders on any machine with hopsesh, start a session as one, and continue any session as another. Every session shows the account that ran it. See Accounts.
  • Open a Codex conversation in its desktop app from the Resume menu, with the exact thread selected. Custom account roots use a terminal because desktop links cannot select them.
  • CLI, TUI and a desktop app for macOS and Windows on one engine, with --json output everywhere it matters. The app has a terminal of its own and also opens sessions in iTerm2, Terminal or Windows Terminal. The apps update themselves.

Status: alpha. It works end to end on macOS and Linux, and the Windows app and installer are tested in CI on Windows Server 2025, including the real window. hopsesh is an independent project, not affiliated with Anthropic or OpenAI.

Install

macOS and Linux:

curl -fsSL https://raw.githubusercontent.com/roeehrl/hopsesh/main/scripts/install.sh | sh

Windows (PowerShell):

irm https://raw.githubusercontent.com/roeehrl/hopsesh/main/scripts/install.ps1 | iex

Both check the download against the release's checksums.txt and its signature, and hopsesh update installs later releases with the same checks.

With a package manager:

brew install roeehrl/tap/hopsesh            # macOS and Linux: the command
brew install --cask roeehrl/tap/hopsesh-app # macOS: the app
scoop bucket add roeehrl https://github.com/roeehrl/scoop-bucket; scoop install hopsesh   # Windows

A copy a package manager installed is updated by it (brew upgrade, scoop update hopsesh).

  • macOS app: download the signed, notarized .dmg (macOS 13+, Apple silicon and Intel).
  • Windows app: download the installer (Windows 10/11; arm64). It installs for your user only, no administrator rights, and adds the hopsesh command to your PATH. The installer isn't code-signed yet, so Windows SmartScreen says "Windows protected your PC": click More info, then Run anyway. A portable .zip of the app is on the release page. On Windows 11 with Smart App Control turned on (mostly on new PCs), Windows blocks programs that aren't code-signed, with no "Run anyway" option. hopsesh isn't code-signed yet, so it won't run on those PCs until it is.
  • Linux packages: .deb, .rpm and .apk for amd64 and arm64 are on the release page, for example sudo apt install ./hopsesh_<version>_linux_amd64.deb.
  • From source (Go 1.26+): go install github.com/roeehrl/hopsesh/cmd/hopsesh@latest

The other machines need only an SSH server (Remote Login on macOS, OpenSSH on Windows) and their sessions. To continue in another agent, that agent must be installed here.

Upgrading from 0.3? 0.4 stores its settings in a new format and doesn't read the old file: the app offers to set it aside and start fresh (the old file stays next to the new one), and the command line names the file to move aside. Then add and allow your machines again; your sessions are not affected. Update hopsesh on each machine where you run it.

Quick start

hopsesh hosts                 # machines found in Tailscale and ~/.ssh/config (connects to nothing)
hopsesh hosts allow studio    # let hopsesh connect to one
hopsesh trust studio          # confirm its SSH host key
hopsesh                       # browse sessions and move one here
The hopsesh terminal UI lists Claude Code and Codex sessions on two machines grouped by repository, then brings a Claude Code session to this machine and prints the resume command

Recorded with VHS from demo/hopsesh.tape.

A session is named [<machine>:][<agent>/]<id-or-title>. Leave out the machine to take the newest copy anywhere, and leave out the agent when the title or id is unambiguous.

hopsesh agents                                 # supported agents and what's installed here
hopsesh ls --agent codex --json                # sessions of one agent, grouped by repo
hopsesh plan studio:"fix flaky tests"          # read-only preview of a move
hopsesh pull studio:"fix flaky tests"          # plan, confirm, move, print the command
hopsesh pull studio:claude/7f3c2a1e --in codex # continue a Claude Code session in Codex
hopsesh pull 7f3c2a1e                          # no machine name: bring back the newest copy
hopsesh push 7f3c2a1e laptop                   # send it to a machine that runs hopsesh
hopsesh cd 7f3c2a1e ~/git/app-2                # same session, another checkout here
hopsesh hosts add nas alice@192.168.1.20 --password   # a machine without SSH keys
hopsesh doctor studio                          # agents, SSH, host trust and the skill
hopsesh hosts status                           # hopsesh, receiving, hooks and skill on each machine
hopsesh undo                                   # undo the newest move (--list shows more)
Shell completion

The completion command generates scripts for Bash, Zsh, Fish and PowerShell. With hopsesh on your PATH, run the line for your current shell to enable completion in this session:

Shell Setup
Bash source <(hopsesh completion bash) (requires Bash completion support)
Zsh autoload -Uz compinit && compinit && source <(hopsesh completion zsh)
Fish hopsesh completion fish | source
PowerShell hopsesh completion powershell | Out-String | Invoke-Expression

To load it in new sessions, add the corresponding line to your shell startup file (~/.bashrc, ~/.zshrc, ~/.config/fish/config.fish, or $PROFILE). For installation options and prerequisites, run hopsesh completion <shell> --help.

The app
The hopsesh app listing Claude Code and Codex sessions from two machines, grouped by repository, with live state and the last prompt

Same engine, with a plan sheet for each move: repository, worktree mode, what gets rewritten, and what's left behind on the other machine. Sessions are grouped by repository, machine, agent, status or age, with filters you can see as chips. Each session has one row of actions: Resume in ‹place› (or Show in ‹place› while it runs, or Bring to this Mac…), Move (Continue with ‹agent›… with a preview of the conversion, Send to ‹machine›…, Hand off to ‹cloud›…) and ⋯, beside the end of its conversation and where it is open now. Sending plans on the other machine, carries it out, and one Undo reverses both sides. Settings has per-agent options, the terminal (below) and a Receive sessions switch. It can also put the hopsesh command on your PATH (no administrator password) and install the skill into your agents.

The app is the same on macOS and Windows; on Windows it says "this PC", uses Ctrl where macOS uses ⌘, opens sessions in its own terminal window (or, if you choose, Windows Terminal or PowerShell) and keeps passwords in Windows Credential Manager. It updates itself: Settings → Updates → Install and restart checks the release's signature and checksum (on macOS also the Apple developer and notarization), installs it and reopens.

The hopsesh app on Windows listing Claude Code and Codex sessions from this PC and from studio, a Linux machine, grouped by repository
The hopsesh Terminal

The app has a terminal of its own: the hopsesh Terminal, with tabs, docked below or beside your sessions or in a window of its own. Resume in hopsesh Terminal runs a session there, and so do the steps Claude Code needs a terminal for (a hand-off to its cloud, bringing a session back), cloud sign-ins and Open a shell in its folder. hopsesh starts the command; you do all the typing, and it never answers a question for you, Claude Code's trust question included. Each tab shows whether its program runs, waits for you or ended (with its exit code), and keeps Open in my terminal, which ends it and runs the same command in your own terminal app. A session runs in one tab at most, and the sessions list shows which ones run in a tab and wait for you. Ctrl+` moves between the terminal and your sessions. Quitting hopsesh ends the programs in its tabs, so it asks first, names the agents still in the middle of a turn and offers to quit once they are idle. The next time it starts, it offers to resume the sessions its tabs ran, each in a tab again (after an update, it does so by itself). For work that must outlive the app, use your terminal app.

Settings → Terminal chooses where the terminal sits (bottom panel, right panel or separate window), where sessions and steps open (In this window or In my terminal; a session's Resume menu picks another place, remembered for that agent), your terminal app, the font, its size and how much scrollback each tab keeps (in memory only). Programs in a tab can never read your clipboard, links open only after you confirm the whole address, and nothing a tab shows is written to disk or a log. Sign-in and shell tabs are recorded nowhere: hopsesh doesn't watch, match or keep what appears in them.

Your terminal app

Sessions, teleports and hand-off steps you open outside the app go to your own terminal app: on macOS a new tab in iTerm2's front window when iTerm2 is installed (else a Terminal window), on Windows Windows Terminal. hopsesh open <session> does the same from the command line (--here runs it in this terminal), and hopsesh terminals lists the apps and picks one (--use terminal-app). In iTerm2 the tab gets a badge with the session's title, agent and machine (and user.hopsesh_* variables for your own title or status bar); hopsesh leaves the tab's title to the agent.

A session that's already running is shown, not opened twice: the app's Show in iTerm2 or Show in Terminal and hopsesh open bring its tab forward. hopsesh finds the tab from the agent's own process and the terminal it runs on (for Codex, from hopsesh's record of the launch), never from anything the tab shows. It never types into a tab or reads one, and never changes iTerm2's settings: it doesn't turn on the Python API or install iTerm2's Claude Code integration.

Continue in another agent

hopsesh plan studio:"fix flaky tests" --in codex   # see what carries over, change nothing
hopsesh pull studio:"fix flaky tests" --in codex   # then do it

hopsesh converts the conversation into the other agent's own session format, on another machine or this one:

  • --fidelity history (the default) brings the conversation as text. Tool activity is labelled as the previous agent's, long outputs are shortened, and the oldest steps are summarised when the history is long.
  • --fidelity note brings only a briefing.
  • --native (experimental) replays exact shell calls as the target agent's own, where it can.
  • --via import lets Codex's own importer convert a Claude Code session; hopsesh adds its briefing and keeps it undoable.

Every plan shows a loss report (what was kept, what was shortened or summarised, which paths were mapped; reasoning from the other vendor is never carried). It also shows the briefing the other agent gets: where the session came from, what to verify first (git status, the commit at transfer time), the open plan, and instruction files only the previous agent read. --note-file adds your own handoff note, --carry-rules adds your instructions for every project, and --go starts the session with "Continue." Nothing is sent to a model unless you start it. Details: docs/design.md §8.

Round trips

Move a session to your laptop, or into Codex, work on it, and bring it back later:

  • Titles stay as they are. hopsesh never renames a session to show where it went: the copy left behind and the new copy keep the session's title. hopsesh's own list, TUI and app show the movement instead (◆ Moved out · moved to Codex on <machine>, ● Moved copy, ↩ Returned).
  • The original waits for you. By default the copy left behind refuses new prompts until you move the session back, so the two never drift apart and moving back is a clean return. Choose "Shows a warning" or "Is left alone" in Settings, or remove the block from one original with a warning (hopsesh unblock). Codex asks you to approve hopsesh's hook once (/hooks); hopsesh tells you when it is waiting.
  • One row per session. Listings combine the copies of a session across machines and agents. hopsesh pull <id-or-title> without a machine name brings back the newest one, into the folder it came from.
  • Coming back to the original agent adds only the new work. The original session's own turns, including Claude Code's signed reasoning, stay byte for byte.
  • It never merges. If both copies changed, the move stops until you choose --keep-both (a separate session) or --replace (the copy here is set aside; hopsesh undo brings it back).
  • The code follows. hopsesh fetches the session's commit, straight from the other machine if it was never pushed, and fast-forwards a clean checkout. It never merges, rebases or stashes; otherwise it says exactly what's missing.
  • The history travels with the session. A small <session>.hopsesh.json beside it records its copies and hops, so the next move works from any machine.

Details: docs/design.md §10 and §12.

Send a session to another machine

pull needs only SSH on the other machine. When that machine runs hopsesh too, you can also send a session from here:

hopsesh receive on               # on the machine that receives (off by default)
hopsesh push 7f3c2a1e laptop     # on the machine that has the session

The receiver plans with its own agents and settings against a read-only copy of that session's files; it can't read or run anything else on the sender. Nothing changes until you confirm, and hopsesh undo on the sender reverses both machines. The two machines agree on the newest protocol both speak; one that is too old is offered an update. Details: docs/design.md §11.

A session started in a folder that holds several repositories (~/git/course with course-core and course-sdk, rather than a repository itself) continues in the same folder on the other machine. Each repository in it is found there (in that folder first, then your repos folder and the usual places) or cloned into it: pull --clone, c in the TUI, or Clone … for me in the app. The plan lists each repository and what it leaves behind (unpushed commits, uncommitted files), and paths in the conversation point at each one. Other folders in it, such as worktrees, are not brought.

With hopsesh running in the login session there (hopsesh hosts setup laptop), a session can also continue right where it is, in a terminal on that machine that you use here:

hopsesh terminals run studio --resume 7f3c2a1e   # continue it on studio, work in it here
hopsesh terminals run studio --dir ~/git/app     # a new session there
hopsesh doctor --all-machines                     # hopsesh, hooks and skill on every machine
What each machine can do

hopsesh hosts status checks every machine: whether hopsesh is installed and its version against the newest on your machines, whether it runs in your login session and receives sessions, whether its command is on PATH, and the hook and skill in each agent folder, named by who is signed in there (Claude Code · you@example.com). It prints the command that fixes each check and exits 3 when a machine needs something. In the app, Settings › Machines is the one place for all of it: select a machine to see the same checks, with Up next listing only what is left, each with its fix (one Set up covers every agent folder's hooks and skill). Beside every machine is hopsesh's mark: green and filled when it receives sessions, gray and hollow when hopsesh is installed but doesn't receive, none without hopsesh, and ↑ when a newer hopsesh is on another machine.

Another folder, same session

hopsesh cd <session> <dir> continues a session in another folder on its machine (another worktree or clone of its repository) and keeps it the same session: same id, every message, tool call and reasoning block as the agent wrote them. In the app it's Change folder… in a session's ⋯ menu. Each agent does it its own way:

  • Claude Code: what its own /cd does. The transcript and its side folder move to the new folder's project folder and get a relocated record. When the session is open, hopsesh tells you to type /cd <dir> in it and waits until Claude Code has moved it.
  • Codex: Codex itself resumes the thread in the new folder (as codex resume -C does, with no turn) and records it. Codex's own /cd starts a new thread, so an open Codex session is quit first (--stop-local) or left alone.

A folder outside the session's repository needs --other-repo. hopsesh undo reverses it.

On another machine, hopsesh cd studio:7f3c2a1e ~/git/app-2 has hopsesh there make the change (set it up with hopsesh hosts setup studio; it must receive sessions), and hopsesh undo here reverses it there. hopsesh pull <session> --to <dir> for a session that is already here, in its own agent, changes its folder the same way instead of making a copy.

Cloud sessions

hopsesh works with the agents' own clouds: Claude Code on the web and Codex cloud, and, experimentally, the GitHub Copilot cloud agent, Jules, Devin and Amp. It hands a session on this machine (or on another of yours) to a cloud, brings a cloud session home into Claude Code or Codex, and hands one cloud's session on to another vendor's cloud through this machine. It doesn't replace the vendors' own commands; it runs them (claude --cloud, claude --teleport, codex cloud, gh agent-task, jules remote, devin, amp), here, signed in as you, and adds what they don't do: a session from another of your machines or the other vendor's agent, a briefing and a loss report, the branches, lineage and undo. The cloud sessions it starts are yours, on your plan, and hopsesh never reads a login or calls a vendor's servers. Each cloud is off until you allow it.

hopsesh clouds                                        # the clouds, and what a read-only look found
hopsesh clouds allow claude-cloud                     # each is off until you allow it
hopsesh clouds test claude-cloud                      # read-only: the login and the commands hopsesh uses
hopsesh plan claude/<id> --to codex-cloud --env acme-api   # what goes and what stays; changes nothing
hopsesh handoff claude/<id> --to codex-cloud --env acme-api
hopsesh ls --cloud                                    # cloud sessions hopsesh knows of
hopsesh pull claude-cloud:session_01… --run           # bring one home (or paste its link); --in codex
hopsesh handoff claude-cloud:session_01… --to codex-cloud --env acme-api   # cloud to cloud
hopsesh clouds cleanup                                # branches whose work is merged, deleted when you say so

In the app: Clouds in the sidebar, Move → Hand off to ‹cloud›… on a session (on a cloud session too), Bring to this Mac… on a cloud session, and a card per cloud under Machines (Turn on, Test and Sign in, which runs the vendor's own login command in a terminal tab that records nothing). In the terminal UI, c hands off and enter brings a cloud session here.

What goes up: a briefing and the code

No vendor's cloud takes a conversation, so a cloud session starts from a briefing: about 2,000 tokens on what was done, what is open and your latest requests, written by hopsesh (never by a model), with likely secrets masked. Tool calls, tool output and hidden reasoning stay here. The plan shows the briefing, and you can edit it.

The code goes on a branch the cloud clones. A branch that is clean and already on GitHub goes as it is (so does a cloud's own branch that a session was brought home on). Otherwise hopsesh pushes a hopsesh/handoff/<date>-<id> branch with a snapshot of the unpushed commits and changed files, without touching your checkout, index or branch. Codex cloud can take a few changes on an already pushed branch as a starting diff instead (--starting-diff), and Claude Code can take a repository that isn't on GitHub as its own upload (--bundle; the cloud then can't push its work back). Jules, Devin and Amp can't be told which branch to start from, so their briefing asks the cloud agent to check it out first.

What comes back
Cloud Status Through The conversation comes back The code comes back
Claude Code cloud Supported claude --teleport, in a terminal Whole, as Claude Code's own copy Its claude/… branch, kept here as hopsesh/from/claude-cloud/…
Codex cloud (legacy tasks) Supported codex cloud status, codex cloud diff The task's title and what came of it, written as a session Its diff, committed on hopsesh/from/codex-cloud/<id>
GitHub Copilot cloud agent Experimental gh agent-task view --log Its session log, as text Its pull request's branch
Amp Experimental amp threads markdown Its thread, as text Stays in the orb
Jules Experimental jules remote pull Stays in Jules Its patch, committed on hopsesh/from/jules/<id>
Devin Experimental devin list Stays in Devin Its pull request's branch

Experimental means unverified: hopsesh drives these four through their vendors' command lines, whose output is mostly undocumented, and has been tested against stand-ins of them only, not against the real services. Expect rough edges, and please report what you find.

The code always comes into a new worktree beside your checkout, which stays as it is. Text is written as a new session of the agent it was handed off from (else Claude Code; --in codex picks Codex), or, with --append, added to the session it was handed off from when that is as you left it. Only older Codex cloud environments work: the codex command can't use environments made in today's Codex cloud (chatgpt.com) yet. Codex cloud runs every task in an environment you made on the web: name it with --env; the plan suggests the ones your recent tasks used, and hopsesh remembers your pick for the repository (hopsesh clouds env codex-cloud).

Claude Code's steps in your terminal

Claude Code starts a cloud session, and copies one home, only in a terminal you can answer, so both steps run in one you see: a tab of the app's hopsesh Terminal window (or your own terminal app, if you chose it in Settings → Terminal), or the terminal UI's own terminal, which it hands over and comes back to. Starting one runs claude --cloud "<briefing>" in hopsesh's hand-off folder for the repository. The first time, Claude Code asks whether you trust that folder: you answer it, once per repository, and hopsesh never answers it or changes Claude Code's settings to skip it. hopsesh only reads the session's link Claude Code prints, and asks you to paste it if it sees none. Bringing one home runs claude --teleport <id> in a new worktree. Claude Code saves its copy only after you send a message in it: send one (even "ok") and hopsesh picks the copy up; keep working in it if you like. It checks the copy against the briefing hopsesh sent, when hopsesh started that cloud session; otherwise it says how many messages came, since Claude Code gives no count to check them against.

Cloud to cloud

A cloud session can go on to another vendor's cloud. No cloud hands one to another, so hopsesh brings it here first (the copy stays here, whole for Claude Code), then hands that copy off: hopsesh handoff claude-cloud:<id> --to codex-cloud starts the Codex cloud task from the claude/… branch as it is, and hopsesh handoff codex-cloud:<id> --to claude-cloud commits the task's diff here and pushes it on a handoff branch for Claude Code. The plan shows both legs and what the trip loses; the copy's lineage records both; one undo takes both back.

Undo and branch clean-up

hopsesh undo takes back what a hand-off did here: the handoff branch (only while the cloud hasn't pushed to it, and not when you chose to keep it) and its record of the hand-off. The cloud session itself stays in the vendor's list, for you to archive there: no vendor's command line can archive one. Undoing a bring-back removes the worktree, the copy and the branches it made. Once a hand-off's work is merged into the default branch, hopsesh clouds cleanup (or Activity → Look for merged branches in the app) offers to delete the handoff branch and the cloud's own claude/… or copilot/… branch: it asks the remote, read-only, and deletes only what you confirm, each only while it is where hopsesh saw it. Undo pushes them back. delete_branch = "never" or "on-undo" under [clouds.<name>] keeps them.

Privacy
  • A cloud gets the briefing and the branch, nothing else. Credential-like files (.env*, *.tfvars, id_rsa* and other SSH keys, *.pem, *.key, *.p12, .npmrc), Git LFS files and files over 50 MB never go, whatever you pick. Untracked files go only when you name them (--untracked docs/plan.md).
  • The conversation itself goes on the branch only if you ask (--history-file, which commits .hopsesh/handoff.md): anyone who can see the branch can read it.
  • Secret masking is best effort, not a guarantee; the plan shows what it masked.
  • What a cloud session holds is kept under that vendor's terms. Much of these commands' output is undocumented: hopsesh reads it defensively. It is tested against stand-ins of every tool; parts of Claude Code cloud and Codex cloud were also checked against the real tools by hand, the experimental clouds not yet.

Use it from your agent

hopsesh skill install              # your agent asks before each hopsesh command
hopsesh skill install --add-rules  # read-only hopsesh commands run without asking

Or add the skill from inside your agent, as a plugin (it still needs the hopsesh command above; hopsesh skill install makes the plugin unnecessary):

/plugin marketplace add roeehrl/hopsesh      # Claude Code, then /plugin install hopsesh@hopsesh
codex plugin marketplace add roeehrl/hopsesh # Codex
npx skills add roeehrl/hopsesh               # any agent that reads Agent Skills

The skill goes into every installed agent (Claude Code and Codex) as identical files. Then ask things like "bring my laptop session here", "continue this in Codex" or "which sessions are running on the studio?". The agent plans first and moves only after you say yes. --add-rules lets the read-only commands (ls, show, plan, agents, clouds, doctor, …) run without asking, while pull, push, handoff, followup and undo always ask, even in auto mode. "Hand this off to Claude Code cloud" (or to Codex cloud, Copilot, Jules, Devin or Amp) works the same way: the agent shows the plan and what stays behind, asks you for the environment Codex cloud needs, then hands it off after your yes (to Claude Code cloud, it gives you the command to run in your own terminal, where Claude Code starts the session). The skill never starts another agent and never handles passwords: for a machine that logs in with a password, the agent asks you to run hopsesh hosts setup-key yourself. hopsesh skill remove takes it out again. Details: docs/design.md §13 and §14.

On your phone

MyCNC is hopsesh's companion: approvals, terminals and the desktop of your Macs from iPhone, iPad or Mac. It needs MyCNC Host on the Mac (macOS 14 or later) and, like hopsesh, connects over your own network (LAN, Tailscale or ZeroTier), with no relay and no account. On a Mac with MyCNC Host, a running session's details offer Follow on your phone, and Settings › Machines says whether MyCNC Host runs there. hopsesh only links to MyCNC; it never installs it.

Other programs on the same machine can use hopsesh's client API. They can list every session and machine and watch for changes, then plan, apply and undo moves. A hopsesh://session/<machine id>/<agent>/<session> link opens a session in the hopsesh app.

How it works

  1. Discovery reads tailscale status --json and your ~/.ssh/config. It connects to nothing until you allow a machine.
  2. Listing connects with your system ssh (strict host-key checking, ControlMaster) and shows saved session metadata immediately, then discovers each source in the background. Unchanged Claude/Codex transcripts reuse parsed summaries; newly found rows appear before enrichment finishes. One batched git probe per machine adds branch, worktree and unpushed/uncommitted counts. Failed scans retain saved rows with unknown live status. hopsesh ls --cached reads saved results without SSH or agent commands. See session discovery for refresh and cache behavior.
  3. Moving builds a plan, then copies the session's files into a staging folder. It rewrites paths in one pass, so ids, signatures and encrypted content are never touched. It checks the result, installs it where the agent looks for it, and keeps an undo journal.
  4. Continuing in another agent reads the session into a neutral form (a chain of content-hashed steps), then writes it in the other agent's format with the loss report and briefing.

Each agent is a module behind a small SDK, so adding one doesn't touch the core. The details, including the file-format traps hopsesh handles, are in docs/design.md.

How it treats your data
  • Your machines only. Sessions travel over your own SSH. There's no hopsesh server, no relay and no telemetry. A session goes to a vendor's cloud only when you hand it off. The app can check GitHub once a day for new versions, only if you say yes.
  • Read-only until you say go. Each machine needs your permission, and every move is shown as a plan first.
  • Never moves credentials. Logins, keys, live sockets and account data stay where they are; each machine stays signed in on its own. A machine's SSH password is kept in the macOS Keychain or Windows Credential Manager, or asked for each time, and never written to hopsesh's files or a command line.
  • Transcripts can hold secrets. hopsesh scans for likely secrets while moving and can redact the copy (--redact). Every remote action goes to a local audit log.
  • Only your agents talk to their models. hopsesh never calls the Anthropic or OpenAI API.
  • Clouds only through your agents. A vendor's cloud is reached only through that agent's own command, signed in as you, and only once you allow it; hopsesh never reads its login or calls its servers. A hand-off sends a briefing (secrets masked, best effort) and a branch; credential-like files never go, and the snapshot commit names nothing but an opaque id.

Why not…?

  • Codex's own import of Claude Code sessions? It converts on one machine. hopsesh uses it when you ask (--via import) and adds machines, the repository, a loss report, a briefing and a way home that keeps the original session intact.
  • Claude Code's session list on every device? A session you open from another device still runs on the machine it started on, with that machine's files. hopsesh moves it: it continues where you are, in your copy of the repository, and can come back.
  • The Codex app's hand-off to an SSH host? It moves a Codex chat and its Git state to a connected host with a saved project. hopsesh does that for Claude Code and Codex alike, between any of your machines, into another agent, and to and from the clouds.
  • Remote Control? Remote Control lets you drive a session that keeps running where it is. hopsesh moves the session, so it continues on the machine you're at, with that machine's files and tools. It can turn Remote Control on for the moved session.
  • Copying the .jsonl and running claude --resume? It works only if every path is the same on both machines, the project folder name matches Claude Code's naming rules, and there's no second copy of the session. hopsesh handles those cases, plus the repository, worktree, side files and undo.
  • Syncing all of ~/.claude between machines? Sync tools copy everything, all the time. hopsesh moves the one session you pick, when you pick it, and fixes it up for the new machine.

Related projects, with different trade-offs:

  • parcels ships a repository together with a live agent session over Tailscale.
  • go-claude-teleport moves a session, its git worktree and its tmux window over SSH.
  • claude-nomad syncs your setup and history with path remapping.
  • chronicle syncs history through git.
  • sessport converts sessions between agents on one machine.

FAQ

Does anything leave my machines?

Only what you hand off to a cloud. Sessions go directly between your machines over SSH. hopsesh has no server and no telemetry, and it never calls the Anthropic or OpenAI API. A hand-off sends a briefing and a branch to the cloud you chose, through that vendor's own command, signed in as you (see Cloud sessions).

Do I need Tailscale?

No. Any machine you can ssh to works, including aliases, ProxyJump and ProxyCommand from your ~/.ssh/config. Tailscale just makes machines easy to find. When an alias's LAN name doesn't resolve, hopsesh falls back to the machine's Tailscale name.

One of my machines logs in with a password, not an SSH key

Add it with hopsesh hosts add <name> <destination> --password, or switch an existing one with hopsesh hosts auth <machine> password. In the app, use the "Login" button on the Machines screen, or tick "This machine logs in with a password" when adding it.

hopsesh asks for the password when it connects:

  • On macOS and Windows it remembers it in the Keychain or Windows Credential Manager by default (--keychain=false to be asked each time).
  • Otherwise it asks with a hidden prompt in the terminal, or a dialog in the app.
  • In scripts, --password-stdin reads it from standard input.

It's never written to hopsesh's files or put on a command line.

Better still, hopsesh hosts setup-key <machine> (in the app: "Set up key login") logs in once with the password and adds your SSH key there. It then checks that key login works, switches the machine to keys and forgets the password. This works for macOS and Linux machines. hopsesh hosts shows each machine's login method. Details: docs/design.md §16.

Does the other machine need hopsesh installed?

No. pull only needs an SSH server there. hopsesh on the other machine is needed only to push from here to there (it must also run hopsesh receive on).

What gets lost when a session continues in another agent?

The plan tells you before anything is written. Usually the conversation arrives as text, tool calls appear as the previous agent's activity, long outputs are shortened, and reasoning from the other vendor is left out. When you bring the session back, only the new work is added to the original, so nothing in the original is lost.

What if the session is still running on the other machine?

hopsesh copies it as it is and hands it off: later messages in the copy left behind stay there, and the original is blocked until you move back. hopsesh refuses to replace a session that's open on this machine, unless --stop-local quits it first. For Codex that works only between turns, because Codex has no graceful way to stop mid-turn: if it's working, hopsesh asks you to let it finish. Listings show running sessions as "live working" or "live idle".

I moved a session and kept using the old copy too. What happens?

Moving it again stops and explains: both copies changed, and hopsesh never merges them. Choose --keep-both to bring the incoming copy in as a separate session, or --replace to set the copy here aside (hopsesh undo restores it).

Different usernames, home folders or operating systems?

That's the point. Paths are rewritten for the new machine, including JSON-escaped Windows paths, and separators are converted between Windows and macOS/Linux. Paths it can't map are left as they are and listed in the plan.

Different accounts on the two machines?

hopsesh asks each agent which account it's signed in to: claude auth status for Claude Code, and Codex itself for Codex (its auth.json is never read). If the accounts differ, it leaves out what only the original account can use: Claude Code's signed thinking blocks, and Codex's encrypted reasoning and compaction records. These are removed whole, never edited, and the conversation itself stays.

Why does macOS ask about "devices on your local network"?

macOS 15 and later ask before an app may reach machines on your LAN. The hopsesh app asks when it first connects to such a machine, explains why, and if you chose Don't Allow, links to System Settings → Privacy & Security → Local Network. Tailscale connections aren't affected, and the command-line tool run from Terminal never needs this permission.

Why does macOS ask whether hopsesh may control iTerm2 or Terminal?

Opening a tab in another app, or bringing one forward, takes macOS's Automation permission, asked once per app. hopsesh uses it only to open tabs that run its own launch command and to select a session's tab. If you choose Don't Allow for iTerm2, hopsesh opens Terminal instead; if Terminal is refused too, it gives you the command to copy. You can change it later in System Settings → Privacy & Security → Automation.

Does hopsesh use iTerm2's Python API?

Only if you have turned it on yourself (iTerm2 → Settings → General → Magic → Enable Python API); hopsesh never turns it on and never changes iTerm2's or Claude Code's settings. With it on, a hand-off step opens in a split beside the session you are in, the app learns at once when you close a step's tab, and "Show" finds a running session's tab directly. It asks iTerm2 for an API cookie once per connection (macOS asks you once whether hopsesh may control iTerm2) and keeps it in memory only. hopsesh's client cannot type into a session, inject output or read what is on screen: those requests are not in it. With the API off, hopsesh uses AppleScript as before.

How do I undo a move?

hopsesh undo reverses the newest move or continuation, and hopsesh undo <id> a specific one. It removes new files, restores replaced ones, cuts off appended records and brings back set-aside copies, on other machines too. hopsesh undo --list shows what can be undone.

Contributing

Contributions are welcome. Issues labelled good first issue are a good place to start. You don't need two machines: demo/record.sh shell starts two made-up machines in Docker and drops you on one with hopsesh ready (see demo/README.md).

See CONTRIBUTING.md for the 60-second dev setup, and use Discussions for questions and ideas. Report security issues privately as described in SECURITY.md.

Add your agent

Every agent is a module behind a small SDK (sdk/agent): implement listing, bundling, planning and resuming, add the capabilities your agent supports, and run the conformance kit. Claude Code and Codex are the two templates. See Add an agent module; OpenCode is an open help wanted issue.

License

Apache License 2.0. "Claude" and "Claude Code" are trademarks of Anthropic, PBC; "Codex" and "OpenAI" are trademarks of OpenAI. hopsesh is not affiliated with, endorsed by or sponsored by Anthropic or OpenAI.

Directories

Path Synopsis
agents
amp
Package amp is the Amp module for Amp's threads and orbs, a cloud-only module: Amp keeps every thread on its servers (an orb is a cloud machine a thread runs on), and hopsesh reaches them only through the amp CLI (amp threads list, amp threads markdown), signed in as the user.
Package amp is the Amp module for Amp's threads and orbs, a cloud-only module: Amp keeps every thread on its servers (an orb is a cloud machine a thread runs on), and hopsesh reaches them only through the amp CLI (amp threads list, amp threads markdown), signed in as the user.
claude
Package claude is the Claude Code module: sessions are JSON-lines transcripts under <config>/projects/<slug of the working directory>/<id>.jsonl, with side folders for subagents and spilled tool output, and file backups under <config>/file-history/<id>.
Package claude is the Claude Code module: sessions are JSON-lines transcripts under <config>/projects/<slug of the working directory>/<id>.jsonl, with side folders for subagents and spilled tool output, and file backups under <config>/file-history/<id>.
codex
Package codex is the OpenAI Codex module (CLI, IDE extension and desktop app share one store).
Package codex is the OpenAI Codex module (CLI, IDE extension and desktop app share one store).
copilot
Package copilot is the GitHub Copilot cloud agent module, a cloud-only module: the agent works in GitHub's cloud and hands back a pull request on a copilot/… branch, and hopsesh reaches it only through the GitHub CLI's agent-task commands (gh agent-task list, gh agent-task view [--log]) and gh pr, signed in as the user.
Package copilot is the GitHub Copilot cloud agent module, a cloud-only module: the agent works in GitHub's cloud and hands back a pull request on a copilot/… branch, and hopsesh reaches it only through the GitHub CLI's agent-task commands (gh agent-task list, gh agent-task view [--log]) and gh pr, signed in as the user.
devin
Package devin is the Devin module (Cognition's coding agent), a cloud-only module for Devin's cloud sessions: hopsesh reaches them only through the Devin CLI's non-interactive commands (devin auth status, devin list --format json), signed in as the user.
Package devin is the Devin module (Cognition's coding agent), a cloud-only module for Devin's cloud sessions: hopsesh reaches them only through the Devin CLI's non-interactive commands (devin auth status, devin list --format json), signed in as the user.
jules
Package jules is the Jules module (Google's asynchronous coding agent), a cloud-only module: Jules works in Google's cloud on a GitHub repository, and hopsesh reaches it only through Jules Tools, the jules CLI (jules remote list, jules remote pull), signed in as the user.
Package jules is the Jules module (Google's asynchronous coding agent), a cloud-only module: Jules works in Google's cloud on a GitHub repository, and hopsesh reaches it only through Jules Tools, the jules CLI (jules remote list, jules remote pull), signed in as the user.
cmd
hopsesh command
Command hopsesh moves coding-agent sessions between your machines, and between agents.
Command hopsesh moves coding-agent sessions between your machines, and between agents.
hopsesh-app command
Command hopsesh-app is the hopsesh desktop app (macOS, Windows).
Command hopsesh-app is the hopsesh desktop app (macOS, Windows).
internal
agents/all
Package all is the one list of agent modules compiled into hopsesh.
Package all is the one list of agent modules compiled into hopsesh.
app
Package app is what hopsesh does, for every front end (command line, terminal UI, desktop app, the agents' skill): scan machines for sessions of every agent, plan and carry out moves and continuations, undo them, and keep the agents' integration current.
Package app is what hopsesh does, for every front end (command line, terminal UI, desktop app, the agents' skill): scan machines for sessions of every agent, plan and carry out moves and continuations, undo them, and keep the agents' integration current.
config
Package config holds hopsesh's user configuration and state locations.
Package config holds hopsesh's user configuration and state locations.
core/appicon
Package appicon reads the icon of an agent's installed desktop app on this machine, so the window can picture the agent the way a launcher does, without shipping a logo.
Package appicon reads the icon of an agent's installed desktop app on this machine, so the window can picture the agent the way a launcher does, without shipping a logo.
core/audit
Package audit keeps an append-only JSONL log (one file per day in the state folder) of every remote command, copy, install and undo.
Package audit keeps an append-only JSONL log (one file per day in the state folder) of every remote command, copy, install and undo.
core/catalog
Package catalog stores disposable browsing metadata, never authentication files, full transcript bodies, or evidence used to authorize a transfer.
Package catalog stores disposable browsing metadata, never authentication files, full transcript bodies, or evidence used to authorize a transfer.
core/clientapi
Package clientapi is hopsesh's API for other programs on the same machine, run by the same user (a phone companion's host, an editor): what sessions there are, where, and moving them.
Package clientapi is hopsesh's API for other programs on the same machine, run by the same user (a phone companion's host, an editor): what sessions there are, where, and moving them.
core/convert
Package convert renders a conversation read from one agent for another agent's writer: what the receiving agent should see (its own words and the user's as messages, the other agent's tool activity as clearly labelled text), within a budget, with a report of everything left out and a briefing at the end.
Package convert renders a conversation read from one agent for another agent's writer: what the receiving agent should see (its own words and the user's as messages, the other agent's tool activity as clearly labelled text), within a budget, with a report of everything left out and a briefing at the end.
core/host
Package host gives the core and its agent modules access to a machine: this one, or another over SSH.
Package host gives the core and its agent modules access to a machine: this one, or another over SSH.
core/hosts
Package hosts discovers the user's machines without connecting to any of them.
Package hosts discovers the user's machines without connecting to any of them.
core/installs
Package installs finds every hopsesh on a machine: the app, a command you installed, one a package manager owns, and the copy hopsesh puts in ~/.hopsesh/bin when it sets a machine up.
Package installs finds every hopsesh on a machine: the app, a command you installed, one a package manager owns, and the copy hopsesh puts in ~/.hopsesh/bin when it sets a machine up.
core/integrate
Package integrate connects hopsesh to the rest of the user's machine: the command-line tool on PATH (for app installs), the user's login environment, and the hopsesh skill for every agent.
Package integrate connects hopsesh to the rest of the user's machine: the command-line tool on PATH (for app installs), the user's login environment, and the hopsesh skill for every agent.
core/journal
Package journal makes every write hopsesh does undoable.
Package journal makes every write hopsesh does undoable.
core/launch
Package launch renders how a user continues a moved session: the first message that tells the agent what happened, and the command line for the user's shell.
Package launch renders how a user continues a moved session: the first message that tells the agent what happened, and the command line for the user's shell.
core/lineage
Package lineage stores portable causal history beside native agent transcripts.
Package lineage stores portable causal history beside native agent transcripts.
core/lnp
Package lnp handles macOS local network privacy (macOS 15 and later).
Package lnp handles macOS local network privacy (macOS 15 and later).
core/loginsvc
Package loginsvc registers hopsesh serve to start in the user's login session at each login: a LaunchAgent on macOS, a systemd user service on Linux, a task at sign-in on Windows.
Package loginsvc registers hopsesh serve to start in the user's login session at each login: a LaunchAgent on macOS, a systemd user service on Linux, a task at sign-in on Windows.
core/move
Package move moves a session between locations with the same agent: plan (pure decisions, nothing written) and apply (stage, rewrite, verify, install with a journal, record lineage).
Package move moves a session between locations with the same agent: plan (pure decisions, nothing written) and apply (stage, rewrite, verify, install with a journal, record lineage).
core/peer
Package peer is how hopsesh on two machines work together over one SSH connection: `hopsesh peer --stdio` on the other machine answers requests, one JSON object per line each way.
Package peer is how hopsesh on two machines work together over one SSH connection: `hopsesh peer --stdio` on the other machine answers requests, one JSON object per line each way.
core/presence
Package presence says where a running session on this machine is open: in a tab of hopsesh's own terminal, a terminal app, an editor, tmux, an ssh login or an agent's desktop app.
Package presence says where a running session on this machine is open: in a tab of hopsesh's own terminal, a terminal app, an editor, tmux, an ssh login or an agent's desktop app.
core/proc
Package proc starts child processes.
Package proc starts child processes.
core/profiles
Package profiles stores local registrations of vendor-owned account roots.
Package profiles stores local registrations of vendor-owned account roots.
core/pty
Package pty runs the programs of the app's terminal tabs: each in a pseudo-terminal of its own (a Unix PTY, or a Windows pseudoconsole: Microsoft's newer conpty.dll and OpenConsole.exe when the app carries them, else the system's), with its output kept in memory for the tab's window and passed to it with flow control (see Serve).
Package pty runs the programs of the app's terminal tabs: each in a pseudo-terminal of its own (a Unix PTY, or a Windows pseudoconsole: Microsoft's newer conpty.dll and OpenConsole.exe when the app carries them, else the system's), with its output kept in memory for the tab's window and passed to it with flow control (see Serve).
core/pty/ptytest
Package ptytest is a tab's window for tests: it connects to a tab through pty.Serve over an in-memory stream, draws the output in a terminal emulator (charmbracelet/x/vt) that answers the program's queries as xterm.js does in the app, acks what it drew, and types what the test types (as the user would; hopsesh never does).
Package ptytest is a tab's window for tests: it connects to a tab through pty.Serve over an in-memory stream, draws the output in a terminal emulator (charmbracelet/x/vt) that answers the program's queries as xterm.js does in the app, acks what it drew, and types what the test types (as the user would; hopsesh never does).
core/registry
Package registry holds the agent modules hopsesh was built with and checks that each one's Spec is complete.
Package registry holds the agent modules hopsesh was built with and checks that each one's Spec is complete.
core/repos
Package repos matches a session's working directory to a git repository.
Package repos matches a session's working directory to a git repository.
core/rewrite
Package rewrite adapts a copied session to the target machine.
Package rewrite adapts a copied session to the target machine.
core/scan
Package scan finds likely secrets in transcripts before they move.
Package scan finds likely secrets in transcripts before they move.
core/secrets
Package secrets keeps machine passwords in the system's password store when the user asks for it: the macOS Keychain or Windows Credential Manager.
Package secrets keeps machine passwords in the system's password store when the user asks for it: the macOS Keychain or Windows Credential Manager.
core/serve
Package serve is how hopsesh reaches the hopsesh running in the user's login session on the same machine (hopsesh serve): a private socket in a folder only the user can open, one connection per conversation.
Package serve is how hopsesh reaches the hopsesh running in the user's login session on the same machine (hopsesh serve): a private socket in a folder only the user can open, one connection per conversation.
core/term
Package term runs a vendor's interactive command in a pseudo-terminal of its own, attached to the user's terminal (a relay): the user sees the program and answers what it asks, and hopsesh only watches what it prints and how it ends.
Package term runs a vendor's interactive command in a pseudo-terminal of its own, attached to the user's terminal (a relay): the user sees the program and answers what it asks, and hopsesh only watches what it prints and how it ends.
core/termapp
Package termapp opens hopsesh's launches in the user's own terminal app (iTerm2, Terminal, Windows Terminal, a Linux terminal), finds the tab a running session is in, and brings it forward.
Package termapp opens hopsesh's launches in the user's own terminal app (iTerm2, Terminal, Windows Terminal, a Linux terminal), finds the tab a running session is in, and brings it forward.
core/termapp/iterm2api
Package iterm2api is a small, opt-in client for iTerm2's scripting API (the protocol iTerm2 calls its "Python API": protobuf messages over a WebSocket on a Unix socket).
Package iterm2api is a small, opt-in client for iTerm2's scripting API (the protocol iTerm2 calls its "Python API": protobuf messages over a WebSocket on a Unix socket).
core/termapp/iterm2api/fakeiterm2
Package fakeiterm2 is a stand-in for iTerm2's API server, for tests: it listens on a Unix socket, speaks the WebSocket subprotocol and the protobuf messages that iterm2api's client uses, and keeps a small model of windows, tabs and sessions.
Package fakeiterm2 is a stand-in for iTerm2's API server, for tests: it listens on a Unix socket, speaks the WebSocket subprotocol and the protobuf messages that iterm2api's client uses, and keeps a small model of windows, tabs and sessions.
core/transport
Package transport runs commands and reads files on remote machines.
Package transport runs commands and reads files on remote machines.
core/winshim
Package winshim finds the program behind a Windows command shim: the .cmd file npm (and pnpm, and older npm versions) writes for a package's command, such as codex.cmd.
Package winshim finds the program behind a Windows command shim: the .cmd file npm (and pnpm, and older npm versions) writes for a package's command, such as codex.cmd.
devtools/clitree
Package clitree is hopsesh's visible command tree as `--help` shows it, and the checks that hold the skill to it: every command and flag the skill names exists, and every visible flag is in the skill or allowed to be missing from it.
Package clitree is hopsesh's visible command tree as `--help` shows it, and the checks that hold the skill to it: every command and flag the skill names exists, and every visible flag is in the skill or allowed to be missing from it.
devtools/conptyfetch command
Command conptyfetch gets the pseudoconsole the Windows app carries for its terminal tabs: conpty.dll and OpenConsole.exe from Microsoft's Microsoft.Windows.Console.ConPTY NuGet package (MIT, https://github.com/microsoft/terminal), the version and hash pinned below.
Command conptyfetch gets the pseudoconsole the Windows app carries for its terminal tabs: conpty.dll and OpenConsole.exe from Microsoft's Microsoft.Windows.Console.ConPTY NuGet package (MIT, https://github.com/microsoft/terminal), the version and hash pinned below.
devtools/demoseed command
Command demoseed fills a demo machine with made-up git repositories and Claude Code sessions, for the recordings in demo/.
Command demoseed fills a demo machine with made-up git repositories and Claude Code sessions, for the recordings in demo/.
devtools/driftmanifest command
Command driftmanifest prints, as JSON, what hopsesh's agent modules rely on in each agent: its spec (versions tested, programs, data folders, secrets, instruction files), its capabilities, its test fixtures and its source files.
Command driftmanifest prints, as JSON, what hopsesh's agent modules rely on in each agent: its spec (versions tested, programs, data folders, secrets, instruction files), its capabilities, its test fixtures and its source files.
devtools/fakeagent command
Command fakeagent is the stand-in agent as a program: built as codex (or codex.exe) it answers like Codex, built as claude like Claude Code, built as gh, jules, devin or amp like those vendors' CLIs (their cloud verbs), and built as fakecloud it plays the stand-in clouds' agent (fakecloud work <id>).
Command fakeagent is the stand-in agent as a program: built as codex (or codex.exe) it answers like Codex, built as claude like Claude Code, built as gh, jules, devin or amp like those vendors' CLIs (their cloud verbs), and built as fakecloud it plays the stand-in clouds' agent (fakecloud work <id>).
devtools/hsmatrix command
Command hsmatrix runs hopsesh's scenario matrix between this machine ("here") and another one reached over ssh ("there"): moves, continuing in the other agent, pushes, round trips, conflicts, undo, skills, in every language and repository state the model names.
Command hsmatrix runs hopsesh's scenario matrix between this machine ("here") and another one reached over ssh ("there"): moves, continuing in the other agent, pushes, round trips, conflicts, undo, skills, in every language and repository state the model names.
devtools/icon command
Command icon renders hopsesh's app icon (1024×1024 PNG): a teal rounded square with a "hop" arc between two dots.
Command icon renders hopsesh's app icon (1024×1024 PNG): a teal rounded square with a "hop" arc between two dots.
devtools/idlebench command
Command idlebench holds the desktop app's idle resource use to budgets: it runs the real GUI service headless, with session watching on, on a generated busy home (many sessions, some large) while a writer appends to one session several times a second, as other agents do.
Command idlebench holds the desktop app's idle resource use to budgets: it runs the real GUI service headless, with session watching on, on a generated busy home (many sessions, some large) while a writer appends to one session several times a second, as other agents do.
devtools/itermapismoke command
Command itermapismoke is the maintainer's manual check of the iTerm2 API client against a real iTerm2 (run it through scripts/iterm-api-smoke.sh, from a tab in iTerm2, with the API already enabled by you).
Command itermapismoke is the maintainer's manual check of the iTerm2 API client against a real iTerm2 (run it through scripts/iterm-api-smoke.sh, from a tab in iTerm2, with the API already enabled by you).
devtools/linkcheck command
Command linkcheck exercises the app's command-line link from inside a .app bundle (it must run as <bundle>/Contents/MacOS/<name>).
Command linkcheck exercises the app's command-line link from inside a .app bundle (it must run as <bundle>/Contents/MacOS/<name>).
devtools/lnpcheck command
Command lnpcheck reports, for each host given, whether macOS local network privacy applies to it and what an in-process probe sees.
Command lnpcheck reports, for each host given, whether macOS local network privacy applies to it and what an in-process probe sees.
devtools/meshrdv command
Command meshrdv connects CI runners to each other for the cross-machine scenario matrix: each runner's sshd is reachable through a dumbpipe (iroh) listener, and the runners swap what they need through the workflow run's own artifacts.
Command meshrdv connects CI runners to each other for the cross-machine scenario matrix: each runner's sshd is reachable through a dumbpipe (iroh) listener, and the runners swap what they need through the workflow run's own artifacts.
devtools/realcheck command
Command realcheck reads every agent's real sessions on this machine with the compiled-in modules: listing, the conversation reader and lineage, and reports anything a module cannot read.
Command realcheck reads every agent's real sessions on this machine with the compiled-in modules: listing, the conversation reader and lineage, and reports anything a module cannot read.
devtools/schemalite
Package schemalite validates JSON documents against the small subset of JSON Schema (2020-12) that the drift manifest and the test bundle's schemas use, so that those schemas stay the single description of the formats without a third-party validator.
Package schemalite validates JSON documents against the small subset of JSON Schema (2020-12) that the drift manifest and the test bundle's schemas use, so that those schemas stay the single description of the formats without a third-party validator.
devtools/skillcheck command
Command skillcheck holds a built hopsesh program to its own skill, as the release ships it: it reads the visible command tree from the program's help (every command's `--help`), installs the skill the program writes into a throwaway home, and fails when the skill names a command or flag the program lacks, when a visible flag is neither in the skill nor in the allowlist (or an allowlist entry is stale), or when the tree differs from the checked-in golden.
Command skillcheck holds a built hopsesh program to its own skill, as the release ships it: it reads the visible command tree from the program's help (every command's `--help`), installs the skill the program writes into a throwaway home, and fails when the skill names a command or flag the program lacks, when a visible flag is neither in the skill nor in the allowlist (or an allowlist entry is stale), or when the tree differs from the checked-in golden.
devtools/termprobe command
Command termprobe is the program of a terminal check (the app's terminal window in a test build, see cmd/hopsesh-app/testport_on.go): in raw mode it prints its terminal's size, asks the terminal what it is (DA1) as agent programs do at start, prints the answer, and ends with 0 when one came (2 when none did within thirty seconds).
Command termprobe is the program of a terminal check (the app's terminal window in a test build, see cmd/hopsesh-app/testport_on.go): in raw mode it prints its terminal's size, asks the terminal what it is (DA1) as agent programs do at start, prints the answer, and ends with 0 when one came (2 when none did within thirty seconds).
devtools/testbundle command
Command testbundle checks and builds hopsesh's test bundle: the stand-in agents (the fakeagent program, built for each platform), the agents' fixtures, the specs of the compiled-in modules, and the payloads other projects contribute under testbundle/ (scrubbed hook payloads, running-session registry entries).
Command testbundle checks and builds hopsesh's test bundle: the stand-in agents (the fakeagent program, built for each platform), the agents' fixtures, the specs of the compiled-in modules, and the payloads other projects contribute under testbundle/ (scrubbed hook payloads, running-session registry entries).
devtools/webtest command
Command webtest serves the desktop app's window in a browser, for tests and screenshots: the real assets and the real service (internal/ui/gui) on a demo home made from the agents' test fixtures, with a stand-in for the Wails runtime.
Command webtest serves the desktop app's window in a browser, for tests and screenshots: the real assets and the real service (internal/ui/gui) on a demo home made from the agents' test fixtures, with a stand-in for the Wails runtime.
devtools/winres command
Command winres writes the Windows resources of a hopsesh program: the icon (at resource ID 3, where the Wails runtime loads the window and taskbar icon from), the manifest (per-monitor DPI awareness, common controls v6, no elevation) and the version information Explorer shows.
Command winres writes the Windows resources of a hopsesh program: the icon (at resource ID 3, where the Wails runtime loads the window and taskbar icon from), the manifest (per-monitor DPI awareness, common controls v6, no elevation) and the version information Explorer shows.
devtools/xtermfetch command
Command xtermfetch vendors xterm.js and the addons the app's terminal window uses into internal/ui/gui/assets/terminal/vendor: the npm packages pinned below (MIT, from https://github.com/xtermjs/xterm.js), each checked against the registry's published SHA-512 before anything is taken out of it.
Command xtermfetch vendors xterm.js and the addons the app's terminal window uses into internal/ui/gui/assets/terminal/vendor: the npm packages pinned below (MIT, from https://github.com/xtermjs/xterm.js), each checked against the registry's published SHA-512 before anything is taken out of it.
e2e/remote
Package remote holds hopsesh's remote-behaviour scenarios: hopsesh here working with another machine over real SSH as it is, with no hopsesh, with hopsesh set up but nobody logged in, with hopsesh in the login session, with an older hopsesh, and unreachable.
Package remote holds hopsesh's remote-behaviour scenarios: hopsesh here working with another machine over real SSH as it is, with no hopsesh, with hopsesh set up but nobody logged in, with hopsesh in the login session, with an older hopsesh, and unreachable.
testkit
Package testkit builds a demo home for tests and the browser test server: a git repository, Claude Code sessions and Codex threads from the agents' fixtures, with paths pointed at it.
Package testkit builds a demo home for tests and the browser test server: a git repository, Claude Code sessions and Codex threads from the agents' fixtures, with paths pointed at it.
testkit/fakeagent
Package fakeagent is the stand-in Claude Code and Codex the tests (and the Windows screenshots in CI) run in place of the real agents.
Package fakeagent is the stand-in Claude Code and Codex the tests (and the Windows screenshots in CI) run in place of the real agents.
testkit/fakecloud
Package fakecloud is the stand-in for the vendors' clouds that the tests run against: cloud sessions kept as JSON files in $FAKE_CLOUD_DIR, a local bare repository standing in for the GitHub repository the clouds clone and push, the cloud verbs of the stand-in claude and codex programs (see internal/testkit/fakeagent), a small third-party-style cloud CLI of its own (`fakecloud remote …`, driven by Stub), and `fakecloud work <id>`, which plays the cloud agent.
Package fakecloud is the stand-in for the vendors' clouds that the tests run against: cloud sessions kept as JSON files in $FAKE_CLOUD_DIR, a local bare repository standing in for the GitHub repository the clouds clone and push, the cloud verbs of the stand-in claude and codex programs (see internal/testkit/fakeagent), a small third-party-style cloud CLI of its own (`fakecloud remote …`, driven by Stub), and `fakecloud work <id>`, which plays the cloud agent.
testkit/termfake
Package termfake is a stand-in program for the terminal's tests: it runs in a tab, asks the terminal what it is (DA1 and DA2, as Claude Code does), says what came back, and then does what keys ask, so a test can drive a tab end to end through the real window.
Package termfake is a stand-in program for the terminal's tests: it runs in a tab, asks the terminal what it is (DA1 and DA2, as Claude Code does), says what came back, and then does what keys ask, so a test can drive a tab end to end through the real window.
ui/cli
Package cli is the hopsesh command line.
Package cli is the hopsesh command line.
ui/desktop
Package desktop owns the desktop shell lifecycle.
Package desktop owns the desktop shell lifecycle.
ui/gui
Package gui is the backend of the hopsesh desktop app (Wails v3).
Package gui is the backend of the hopsesh desktop app (Wails v3).
ui/skill
Package skill renders the hopsesh skill: one set of files every agent reads the same.
Package skill renders the hopsesh skill: one set of files every agent reads the same.
ui/tui
Package tui is hopsesh's interactive terminal UI: sessions of every agent grouped by repository, then plan, confirm and move (or continue in another agent), ending with the command to continue.
Package tui is hopsesh's interactive terminal UI: sessions of every agent grouped by repository, then plan, confirm and move (or continue in another agent), ending with the command to continue.
update
Package update checks for and installs new hopsesh releases from GitHub.
Package update checks for and installs new hopsesh releases from GitHub.
version
Package version carries build metadata injected at link time by GoReleaser.
Package version carries build metadata injected at link time by GoReleaser.
sdk
agent
Package agent is the contract between the hopsesh core and its agent modules.
Package agent is the contract between the hopsesh core and its agent modules.
agent/agenttest
Package agenttest is the conformance kit for agent modules: an in-memory Host and a suite every module must pass.
Package agenttest is the conformance kit for agent modules: an in-memory Host and a suite every module must pass.
ir
Package ir is the conversation representation every agent module reads into and writes from, so a session can continue in another agent: N readers and N writers instead of a converter for every pair.
Package ir is the conversation representation every agent module reads into and writes from, so a session can continue in another agent: N readers and N writers instead of a converter for every pair.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL