internal/

directory
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0

Directories

Path Synopsis
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.
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.
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.
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.
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.
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.
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.
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.
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.
journal
Package journal makes every write hopsesh does undoable.
Package journal makes every write hopsesh does undoable.
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.
lineage
Package lineage stores portable causal history beside native agent transcripts.
Package lineage stores portable causal history beside native agent transcripts.
lnp
Package lnp handles macOS local network privacy (macOS 15 and later).
Package lnp handles macOS local network privacy (macOS 15 and later).
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.
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).
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.
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.
proc
Package proc starts child processes.
Package proc starts child processes.
profiles
Package profiles stores local registrations of vendor-owned account roots.
Package profiles stores local registrations of vendor-owned account roots.
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).
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).
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.
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.
rewrite
Package rewrite adapts a copied session to the target machine.
Package rewrite adapts a copied session to the target machine.
scan
Package scan finds likely secrets in transcripts before they move.
Package scan finds likely secrets in transcripts before they move.
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.
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.
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.
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.
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).
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.
transport
Package transport runs commands and reads files on remote machines.
Package transport runs commands and reads files on remote machines.
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.
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.
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/.
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.
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>).
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.
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.
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.
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).
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>).
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.
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.
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.
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.
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.
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).
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).
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.
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.
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.
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.
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.
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.
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.
desktop
Package desktop owns the desktop shell lifecycle.
Package desktop owns the desktop shell lifecycle.
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).
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.
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.
Package update checks for and installs new hopsesh releases from GitHub.
Package update checks for and installs new hopsesh releases from GitHub.
Package version carries build metadata injected at link time by GoReleaser.
Package version carries build metadata injected at link time by GoReleaser.

Jump to

Keyboard shortcuts

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