interplane.Get Omega
Read in your language

hop

Hop: a small native macOS launcher. Clipboard history, find, on-device dictation and your coding agent behind one key.

Brought by drakestapleton

branch main Branches Tags History

hop / README.md

225 lines · 42608 bytes Raw Blame History Rendered
1# Hop
2
3Hop is a small native macOS launcher. One shortcut opens one box.
4
5A [Linux desktop edition for Spark](Linux/README.md) finds and opens applications and indexed files, and supports Ask with a configured model. Flow and the parking lot described here are currently Mac features.
6
7**The box works before you type.** When it opens there is no list: a night sky, two orbiting black holes sending out gravitational waves, and at most three cards with Hop's best guesses for the moment, most likely first. The guesses are what you just copied (Enter pastes it; a copied web address is offered to open), the app you were in a moment ago, the apps you usually open from the app you are in or at this time of day, and the apps that are open. Enter does the highlighted card; Up and Down choose another. Under the cards is a small button for each screen.
8
9**Typing brings the list.** An app's name (or part of it, its initials, or a slip of the finger) opens or switches to the app. A file or folder name finds it. Words from something you copied find it to paste. A web address is offered to open. A question goes to your agent, and so does text that matches nothing else: the agent is then the first line, and Enter sends it (see "What stays on your Mac"). Asking and getting something done are the same thing in Hop: there is one agent and one conversation, and nothing to choose between. A screen's name ("accounts", "voice") shows that screen, and "settings" opens the settings file. There is nothing to pick first: no tabs, no prefixes, no screen shortcut.
10
11What the guesses are made from: the name and id of the app in front when Hop opens, the apps that were in front lately (kept in memory only), what you copied, and Hop's own record of what you opened through it (see "What Hop keeps"). Hop does not read window titles or screen contents, and none of this needs a permission.
12
13Behind the box are five single screens, for when you want only one thing. Type a screen's name, use the grid button under the box, or press Tab:
14
15| Screen | What it does |
16|---|---|
17| **Clipboard** | History of what you copied. Enter pastes the selected item. Encrypted on disk. |
18| **Find** | Files, folders and apps on this Mac by name. Hop keeps its own index; Spotlight is not needed. |
19| **Agent** | Keep ideas coming: Enter parks them locally, even while the agent works. Shift-Enter sends a request when the agent is idle, and Sort ideas assesses the parking lot. When you send a request, Hop picks in the background who takes it: your own model on this Mac or your network, a model you added, or a coding tool installed on this Mac. A small line in the conversation says who was chosen, and the line under each answer says who answered (for an answer from one model server also where it ran: on this Mac, on your network or online). There is no model or tool to pick, and no separate screen for questions. When an answer is not good enough, **Stronger**, above the conversation, asks the same thing again of a stronger mind. |
20| **Accounts** | API keys and logins, kept in the macOS Keychain. |
21| **Voice** | Hold Fn and talk; the words are typed where your cursor is. Recognised on this Mac. Off until you turn it on. When you fix a word it got wrong, it writes it your way next time. |
22
23**Conversations read from the top.** On Agent and the Factory chat the newest message is on top and each new one pushes the others down, so the latest answer is where you are already looking and scrolling down digs into the past. Older messages dim as they sink; the one under the pointer is at full strength. While you are down among older messages nothing is put in above them: messages that arrive wait behind a button at the top ("2 new") until you press it or scroll back up, and sending a message yourself takes you back to the top. A long answer you are still reading keeps growing below what you have read.
24
25**The look.** Hop's window is dark whatever the Mac's appearance: the desktop shows through, blurred, behind a slowly drifting field of stars. The stars, orbiting black holes and outward-moving waves animate only while the window is on screen. The scene has no brightness pulse or busy-speed change; the progress indicator and menu-bar status show ongoing work. They stand still when macOS is set to Reduce Motion, and with Reduce Transparency the background is solid.
26
27It is plain Swift (SwiftUI and AppKit), built with one script. No Electron, no web view, no outside libraries.
28
29Free and open source (Apache-2.0). The only official sources are the site, https://hopbot.org, and the project page with the releases, https://interplane.io/drakestapleton/hop. Interplane is the canonical source for the code and release records. A copy from anywhere else is not from the author.
30
31## What it needs
32
33- macOS 26 or later on an Apple silicon Mac. Older systems and Intel Macs are not supported.
34- To build from source: Apple's Command Line Tools (`xcode-select --install`). Xcode is not needed.
35- For the agent: a model server of your own in the settings, or at least one of the tools named below, installed and signed in by you. Everything else works without them.
36
37## What stays on your Mac
38
39Everything, unless you use one of the parts listed here. Hop has no account, no telemetry, no crash reporting and no update check.
40
41| Part | What it contacts |
42|---|---|
43| The box, Clipboard, Find, Accounts | Nothing by themselves. The box and Find also ask other machines and Cortex if you set those up (last row): what you type in the box is searched there the same way a Find search is. Text you send from the box to your agent with Enter (a question, or text that matched nothing else, when the agent is the highlighted line) goes where the agent sends it (the rows below). A saved account is sent to a model's server if you name it as that model's `keychainKey`. |
44| Voice | Off on a fresh install; nothing is fetched or loaded. When you turn it on, macOS downloads Apple's speech model once, from Apple. After that, your voice is turned into text on this Mac and the audio is not sent anywhere. The text goes where you point it: typed at your cursor, or, when you dictate into the Agent screen, saved in the local parking lot. Sending a request or sorting ideas uses your configured agent. (`--selftest` and `hop hear` also load that model.) To learn from your corrections, Hop reads the text field it typed into twice: right after the paste, and again about 45 seconds later or when you dictate again; the field's text stays in Hop's memory and only the corrected word pair is saved, in `dictation.json`. Password fields are never read. |
45| A message the Claude CLI answers | Hop runs `claude`; that tool sends your message to Anthropic, an AI provider, with your own login. |
46| A message a model you added answers | The server address you put in the config. Every model server Hop may pick (all in the list but those marked `"rewrite": false`, your own ones when `preferOwnModel` is false, and one that failed in the last ten minutes) is also asked for its model list (`/models`) before each message, to see whether it is there; the message itself goes only to the mind Hop picks (see "Who answers"). |
47| A message a coding tool takes | Hop runs a coding tool installed on this Mac (`claude`, `codex`, `grok`, `gemini`, `agy`, `muse`, `opencode`, `cursor-agent`, `hermes`, or one you added); that tool sends your message, and whatever files it reads, to its own AI provider. Hop asks once before the first time a tool that can change files runs. |
48| Sorting a message, and fusing | Before a message is answered, a mind that only answers sorts it (is it a question or work, how hard, how much is at stake): your own model when it is there (whatever its tier), else the cheapest other one, which is a model server you added (also one reached online) or Claude's small model through the Claude CLI. That mind gets the message text and the last four messages of the conversation, each cut to 600 characters. When your own model is not there, open-ended work such as a design goes to up to three minds at once, from different makers where there are that many, and so does "Stronger" pressed on an answer from the strongest mind; their answers go to the one that fuses them. |
49| Fn + Control, Opt-1 (rewrite the selected text) | The selected text, and with Fn + Control your spoken instruction, go to an OpenAI-compatible model in your config (the picked one first). With none configured, nothing is sent and nothing changes. With nothing selected, Fn + Control parks the spoken instruction together with any typed draft when Hop is in front on Agent. From another app it sends the instruction when idle, after saving any existing draft; while busy or unable to save, both inputs stay unsent in the box. |
50| Optional, off until you configure them | Other machines and forwarded ports (`ssh`, `scp` to hosts you name), the Factory screen (the address you set in `factoryURL`; its Swarm section also reads the end of one board file on `factoryHost` over `ssh`, and swarm folders on this Mac), Cortex (the server you set). |
51
52**What Hop keeps, and where.**
53
54- In Hop's memory, gone when Hop quits: the conversation with your agent, up to 300 cached answers, the Voice screen's list of your last 100 dictations, and the Cortex access token. Copies of some of this are kept elsewhere, as the next lines say: each dictation is also saved as a clipboard item, and the Claude CLI keeps its own record of conversations. Hop's own network calls keep no cache, cookies or credentials on disk.
55- In `~/Library/Application Support/Hop/`: `config.json`, `dictation.json`, `clipboard.bin` and `clip-images/` (AES-GCM, key in the Keychain; dictations are added to this history too), `file-index.bin` (file paths, not encrypted, readable only by you), `recents.json`, `habits.json` (which app you opened through Hop, from which app, the hour and the date and time: app paths and ids only, the newest 400), `savings.json` (token counts), `hop.log` (events, permission states, word counts and settings problems; not the text you copy, type, dictate or ask), and `cortex-outbox.jsonl` (agent requests and results waiting to be sent to Cortex). That file is written to, and sent from, only while Cortex learning is on. Turning learning off stops the sending and leaves whatever is already queued in the file until you delete it or turn learning back on.
56- In the Keychain: your saved accounts and the clipboard key.
57- In `~/Library/Caches/Hop/remote/`: files you opened from another machine, only if you set up `machines`. On that machine, its file list in `~/.cache/hop/`.
58- In `~/Library/Preferences/com.aienos.hop.plist`: the window position.
59- **Not Hop's, but caused by it:** the tools Hop runs keep their own records. The Claude CLI saves each conversation it takes part in in its own session files under `~/.claude/` (Hop relies on that to continue a conversation), and other coding tools and the AI providers behind them keep whatever they keep. Hop cannot see or delete those.
60
61**Flow and the parking lot.** In Agent, keep typing or dictating ideas. Enter parks each one locally while the agent keeps working; Shift Enter explicitly sends a message when the agent is idle. Sort ideas assesses feasibility and importance in one action, leaving any draft intact. The original notes stay saved, and the assessment appears in the conversation. Open Parking lot to read the newest ideas first. A save failure leaves the idea in the box.
62
63A spoken command in Agent keeps any typed draft and parks both together. A spoken command from another app saves an existing typed draft locally before sending only the command. While the agent is busy, both inputs stay in the box unsent; if saving fails, both also stay there for retry.
64
65Advanced options live in Settings. `reviewParkedIdeasBeforeSorting` defaults to `false`; set it to `true` to inspect the full generated request before sending. Capture calls no model. Sorting uses your configured agent, which may use an online provider; with learning on, requests and results may also be stored in Cortex. Originals are saved in `parking-lot/ideas.json` under Hop's settings folder, in a private directory (not encrypted). A corrupt notebook is left untouched and capture stays blocked until it is restored; no automatic reset is performed.
66
67## Permissions it asks for
68
69| Permission | Why | Without it |
70|---|---|---|
71| Accessibility | To paste into the app you were in, to see the Fn key, to read the selected text for a rewrite, and to read back the field a dictation went into so it can learn your corrections. | Enter still copies; you paste yourself. Dictation by Fn does not work. |
72| Microphone | Dictation. | No dictation. |
73| Speech Recognition | macOS may ask before on-device recognition. | No dictation. |
74| Files and Folders | Find walks your home folder, so macOS may ask about Desktop, Documents and Downloads. | Those folders are missing from Find. |
75| Keychain | The clipboard key and your saved accounts live there. | Clipboard history stays paused. |
76
77Passwords copied from a password manager are left out when the manager marks them as concealed or transient (most do). Other text and images you copy may be saved, so do not rely on Hop to exclude passwords. Text over 512,000 bytes and PNG images over 20,000,000 bytes are skipped. A password copied from a plain text file or a web page can end up in the history; delete it there, or use "Clear clipboard history" in the menu.
78
79## Install from source
80
81```sh
82git clone https://interplane.io/drakestapleton/hop.git hop
83cd hop
84./build.sh # builds build/Hop.app
85./build.sh install # copies it to ~/Applications and opens it (quit a running Hop first)
86```
87
88`./build.sh install` keeps the previous app under `~/Applications/.Hop-backups/`. The installation step replaces the app. When Hop opens, it can update older settings as described below.
89
90A build signed ad-hoc (the default for a stranger's Mac) gets a new identity every time, so macOS asks for the permissions above again after each update. To avoid that, run `tools/signing-setup.sh` once: it makes a signing identity that exists only on your Mac, and `build.sh` uses it from then on.
91
92To build and install one exact commit in a single step:
93
94```sh
95./install.sh --from-source https://interplane.io/drakestapleton/hop.git <full 40-character commit id>
96```
97
98## Install a release and verify it
99
100Releases are on https://interplane.io/drakestapleton/hop/releases. Each one offers `Hop-<version>.zip`, `SHA256SUMS`, `RELEASE.json` (version, the source commit it was built from, sha256 of the zip and of the program inside it, compiler, SDK and macOS versions) and `install.sh`.
101
102```sh
103V=<version> # the newest one is at the top of the releases page
104BASE=https://interplane.io/drakestapleton/hop/releases/download/v$V
105curl -fsSLO $BASE/install.sh && curl -fsSLO $BASE/RELEASE.json
106HOP_DOWNLOAD_BASE=$BASE sh install.sh --release RELEASE.json
107# or, with a sha256 you got from somewhere you trust:
108HOP_DOWNLOAD_BASE=$BASE sh install.sh $V <sha256 of the zip>
109```
110
111`install.sh` downloads the zip, compares its sha256 with the expected one, refuses to install on any mismatch, checks the app's signature, puts it in `~/Applications/Hop.app` and opens it. A checksum served next to the zip only proves the download was not damaged. To know the zip really is the published source, rebuild it:
112
113```sh
114git clone https://interplane.io/drakestapleton/hop.git hop && cd hop
115git checkout <source_commit from RELEASE.json>
116tools/release.sh
117shasum -a 256 dist/Hop-<version>.zip # must equal zip_sha256 in RELEASE.json
118```
119
120With the compiler and SDK listed in `RELEASE.json` this gives the same zip and the same program, byte for byte. `tools/release.sh --same-as <sha256>` does the comparison for you and fails if the build did not reproduce. The release commit itself only adds the built files under `release-assets/` on top of the source commit.
121
122Release builds are signed ad-hoc and are not notarised by Apple. If you download the zip with a browser instead of `install.sh`, macOS will block the first launch until you allow it under System Settings, Privacy & Security.
123
124## Keys
125
126| Keys | What happens |
127|---|---|
128| Cmd-Space | Open or close Hop. It opens on the one box, with its guesses for the moment. |
129| Up / Down, Enter | Move through the list, or through the cards when nothing is typed; Enter does the highlighted one (open, switch to, paste, send to your agent). |
130| Cmd-Enter | On a file or an app: show it in Finder. On a copied web address: open it instead of pasting it. |
131| Tab / Shift-Tab | Next / previous single screen. Left / Right do the same while the box is empty. Never needed: the box reaches everything. |
132| Cmd-1 to Cmd-5 | Still jump to Clipboard, Find, Agent, Accounts, Voice, for anyone used to them (one more, after Agent, when a factory address is set). Never needed. |
133| Shift-Enter | Send what you typed to the agent, from any screen, whatever else matches. In the box, Enter on the agent line does it too. |
134| Cmd-N | New conversation. |
135| Esc | Close Hop. |
136| Hold Fn | Dictate; let go to type it. |
137| Fn then Space, or Fn twice | Hands-free dictation. Fn again to finish. |
138| Fn + Control | A spoken instruction: rewrites the selected text, or with nothing selected parks it on the Agent screen and sends it from other screens. |
139| Ctrl-Cmd-V / Ctrl-Cmd-C | Paste / copy your last dictation. |
140| Opt-1 | Polish the selected text. |
141
142Cmd-Space is Spotlight's shortcut on a new Mac. Either turn that off (System Settings, Keyboard, Keyboard Shortcuts, Spotlight) or set another `hotkey` in the config, for example `"opt+space"`. A shortcut must include Command, Control or Option (Shift alone does not count) or be a function key F1 to F20; any other value is refused with a message in Hop's window and Hop uses Cmd-Space instead, so a typo cannot take over a key you type with. The menu bar icon always opens Hop.
143
144In the box there is one agent line for a question and a request alike. It is the first line when the text is a question or matches nothing else, and Enter then sends it; below other lines you reach it with Down, or send with Shift-Enter. As the first line it is sent once this Mac has finished searching its files for the text (a moment), so a file's name typed quickly is not taken for a message; an Enter pressed in that moment is kept and carried out when the search is done, unless a file turned up on top, you typed on, or you left the box. Because the agent can do things as well as answer, Hop asks once before the first time a tool that can change files on this Mac runs. On Clipboard, Find and Accounts plain Enter never sends to the agent by itself: a search for something that is not there is not a request. If you want that, set `enterSendsToAgent` to `true`; then plain Enter on those screens also sends text of three or more words that matches nothing, which includes a multiword search for a file that does not exist. On the Agent screen Enter parks an idea locally; Shift-Enter explicitly sends when the agent is idle. You can close Hop while the agent works; the menu bar icon shows a wand while it runs and a tick when it is done.
145
146## Configure the optional parts
147
148Menu bar icon, then "Settings (edit config file)", opens `~/Library/Application Support/Hop/config.json`. Quit and reopen Hop after saving. If the file has a mistake in it (a missing comma or quote is enough), Hop does not touch it: it keeps a copy next to it as `config.json.bad-<time>`, runs on its built-in settings until you fix the file, and says so in its window and in `hop.log`. A forwarded port that is not between 1 and 65535 is skipped the same way, with a message. Do not put secrets in this file; save them on the Accounts screen and refer to them by name.
149
150- **Models** (`models`, `preferOwnModel`, `defaultModel`). Add any OpenAI-compatible server (llama.cpp, Ollama, LM Studio, vLLM, a hosted API):
151 `{"name": "My model", "baseURL": "http://127.0.0.1:8080/v1", "model": "model-id", "keychainKey": "name of an Accounts entry"}`. `keychainKey` is optional; when you set it, Hop reads that entry from the Keychain and sends it to this model's server to sign in. A model whose address is on this Mac (127.0.0.1 or localhost) or on your network (a `.local` name) is your own model: it is the first mind Hop hands a question to whenever it is there (see "Who answers"). `"preferOwnModel": false` keeps your own models out of that choice. `"tier": 1` to `4` says how strong a model is (1 instant, 2 fast, 3 strong, 4 frontier) when Hop's own rule is wrong for it: an own model counts as strong (3), one reached online as fast (2). `"rewrite": false` marks a model too small to trust with text: it is never used to rewrite or polish selected text and never picked to answer or to sort. `defaultModel` names the model that rewrites selected text first; it no longer decides who answers a message. Under each answer that one model server gave (not under one fused from several minds, which names the minds), Hop shows the address category, judged by the address alone: "on this Mac", "on your network" or "online", and then "answered by" with the model id the server named in its reply; when the server names none, Hop shows the name from your config and says that it is the configured name. An answer from a coding tool shows the time, the tokens when the tool reports them, and the tool's name (with the model id when the tool names it); an answer repeated from memory shows instant instead, and that no model was asked. Hop does not infer what a model costs. If you want a cost shown under a model server's answers, add `"cost": "free"` or `"cost": "paid"` to the model and Hop shows the word as you wrote it.
152- **Coding tools** (`agentEngines`, `agentWorkingDirectory`). Hop looks for `claude`, `codex`, `grok`, `gemini`, `agy` (Antigravity), `muse`, `opencode`, `cursor-agent` and `hermes`, in your login shell's PATH and then in the usual install folders (`~/.local/bin`, `~/.claude/local`, `/opt/homebrew/bin`, `/usr/local/bin`, `~/.bun/bin`, `~/.npm-global/bin`, `~/.cargo/bin` and a few more; it does not read `~/.zshrc`), and may hand a message to any of the ones it finds. You sign in to each tool yourself, in that tool; a tool that turns out to be signed out, out of credit or out of quota is passed over, with the reason on one line, and left alone for ten minutes. The built-in commands pass no flag that switches off a tool's approval prompts or sandbox, so some tools will only read, or will refuse to change things, until you allow more in that tool's own settings or add its flag to the command here. If you used Hop before 0.3.0, its old built-in commands for Codex, Grok, Gemini, Cursor and Hermes carried such flags and were saved in your config; 0.3.0 replaces exactly those entries with the new ones when it starts and tells you. Commands you wrote yourself are left alone, and `"keepAgentFlags": true` keeps everything as written. A tool that is new in a later Hop (Antigravity and Muse in this one) is added to your list once, when the list still holds at least one of Hop's own entries (`knownBuiltins` remembers which ones you were offered, so one you delete stays deleted; a list you emptied or filled only with your own commands is left as it is). Before the first time a command runs, Hop asks once whether agent tools may work on this Mac (`agentConfirmed`). Add your own as `{"name": "...", "command": ["tool", "{prompt}"]}`, and say what it is with `"tier"` (1 instant, 2 fast, 3 strong, 4 frontier), `"family"` (who makes the model) and `"cost"` (next to the others; only the order matters) when Hop has no entry for the tool: without them it counts as a strong tool of middling cost. `agentEngine` from older settings is no longer used: nobody picks a tool. `ownerName` is what a tool is told to call you.
153- **Who answers** (`fusionSeats`, `fusionMaxSeats`, `fusionEscalations`). You never choose a model or a tool. For each message Hop does this, in the background. A plain sum it works out itself. Anything else is sorted first (a question, something to write, or work that changes things; how hard; how much is at stake) by a mind that only answers, or from the words alone when there is none. Then: **your own model takes it first**, whenever it is there and the message is something to answer or write, however hard. When your own model is busy, gone or fails, the message goes on to the cheapest other mind that should do it right. When an answer's own closing note says it is not sure (your own model's, or another mind's, `fusionEscalations` times, 1), the message goes on to a stronger mind, which means one of a higher tier in Hop's table; a mind of the same tier is not asked, and when none stronger is ready the answer that was not sure stands. Work that changes things on this Mac never goes to a model server: it goes to the cheapest coding tool that is strong enough (Claude's middle model for standard work, the strongest tools for hard work). Claude Code itself is started with Claude's strong model by name (`--model opus`) unless your command for it names a model; a command that names one counts as that model's tier. Before one of the coding tools Hop knows by name is given a message, Hop asks it one small test question (not when the tool showed in the last ten minutes that it is ready). A tool that is signed out, out of credit or silent fails on that question: it is passed over with the reason on one line, it has not been given your message, and the next tool is tried, as many as it takes. A command of your own that Hop does not know is never asked the test question (it might do its work whatever it is asked): it is run with your message only. A command with no place for the message (`{prompt}`) is run once for a message and is never one of several minds that are fused. Once a tool has been given the message and fails, Hop starts no other tool for it, whatever the tool says went wrong: it may have changed something, Hop cannot see what, and says so. Without your own model, open-ended work such as a design goes to up to `fusionMaxSeats` (3) minds at once and one of them fuses the answers; the others then see the draft and answer with changes, or with nothing when they agree. When that work changes things, one tool carries out the plan, and only a plan the others agreed to or whose changes were put in: otherwise the plan is shown and given to no tool to carry out. The small lines in the conversation say who was chosen and why, and the line under an answer says who answered. **Stronger**, the button above the conversation, asks the same thing again one step up: a mind of a higher tier, and from the highest tier several strong minds fused; the new answer takes the place of the old one, the old one comes back if no stronger answer comes, and the button is not there when nothing stronger is ready. Before the first command of any kind runs on this Mac, Hop asks once. Two things need no yes: a model server (nothing runs on this Mac for it), and Hop's own chat-only use of Claude's small model (the Claude CLI is started on this Mac for it, with every tool switched off, so it can answer and nothing else). A short go-ahead such as "yes, do that" after a talk about how to do something is taken as work that changes things when no mind could sort it. A command of your own (`fusionSeats`) never sorts. The choosing among minds is done by a piece of seeded Omega linked into Hop (`Omega/hopfuse.om`; its rules, what the Swift side adds, and the limits are in `Omega/FUSE.md`). Tiers and costs are Hop's own table and what your settings say, not measurements, and how much of a subscription is left is not looked at. `fusionSeats` replaces the whole list of minds with your own (`name`, `command` or `model`, `tier`, `family`, `cost`, `act`; `act` says whether a command is offered work that changes things, and any command needs your yes). The chooser plans 16 minds at a time; with more set up, the ready ones are taken first and a line in the conversation names the ones left out. `fusionMaxSeats` must be 1 to 8 and `fusionEscalations` 0 to 3; another value is brought into that range and Hop's window says so. On the command line `hop fuse <what you want>` does the same and prints the answer; it runs a tool only when you have said yes in Hop's window before, asks a tool the test question every time, and on Ctrl-C stops the tools it started before it ends. `hop fuse --plan <what you want>` shows the minds, the sorting and the plan without asking anyone to do the work (the sorting still asks a cheap one).
154- **Other machines** (`machines`). Find also searches computers you can reach with `ssh`: `{"name": "Server", "ssh": "server", "roots": ["/home/me"], "homeDir": "/home/me"}`. The file list is built and kept on that machine. From Terminal, `~/Applications/Hop.app/Contents/MacOS/Hop find <words>` (also `run` and `machines`) uses the same list; link that program as `hop` on your PATH if you like.
155- **Forwarded ports** (`tunnels`). `{"localPort": 8080, "remotePort": 8080, "sshHost": "server"}` keeps `ssh -L` open so a model on another computer of yours answers on this Mac's own address.
156- **Factory screen** (`factoryURL`, `factoryHost`, `factoryActions`). Shown only when `factoryURL` is set. It is meant to be a loopback address of a compatible dashboard server (usually a forwarded port): the live workspace refuses any other address, but the status and chat requests go to whatever address you set. It then becomes Cmd-4, and Accounts and Voice move to Cmd-5 and Cmd-6. See `Omega/README.md` for the part that classifies its data.
157- **Swarm section** (`swarmFolders`, `factoryBoard`). One of the Factory screen's sections. It shows how a group of agents connects and coordinates, from their shared board, in four views: Overview (members grouped as needs you, working, waiting on someone, parked), Board (the posts, with `@name` marked and `#12` a link to post 12), Members (state, unread posts, what each is doing now) and Graph (who writes to whom, a thicker line for more posts, with a replay slider). A member's state is worked out from what it did, not from what it says about itself: stopped, waiting or working, and stuck after 10 minutes with no movement. It reads two kinds of source and never writes to either. First, any folder on this Mac that holds a `board.jsonl` (one post per line: `seq`, `agent`, `text`, `time`) and a `members.json` (the roster), found under `<folder>/<conversation>/.system_generated/swarm/` for each folder in `swarmFolders` (default `~/.gemini/antigravity/brain`), newest first. Second, when `factoryHost` is set, the text file `factoryBoard` on that computer (default `~/handoffs/BOARD.md`), one post per line as `<UTC time> <sender> (<details>) to <recipient> + <recipient>: <text>`; Hop fetches its last 400 lines over `ssh`, and nothing when the file has not grown. Set `factoryBoard` to `""` to switch that off. It shows at most 400 posts and 96 members and says so when a board has more. `Hop swarm` in Terminal prints the same as text (`Hop swarm` lists the swarms, `Hop swarm 1` or `Hop swarm board` shows one, `--posts` adds its newest posts). The rules are in `Sources/SwarmCore.swift`, plain functions with no interface code, checked by `--selftest`.
158- **Cortex knowledge base** (`cortex`). Off unless `"enabled": true` with `url`, `tokenCommand`, `readSpaces` and, to save agent results, `learn` and `learnSpace`. `lessonSpace` names one of the read spaces whose entries rank a little higher and are marked "lesson"; empty by default. If you used Cortex with Hop before 0.3.0, set `lessonSpace` yourself once: older versions had a fixed name built in, and 0.3.0 does not carry it over. When on: Find shows matching entries; messages to your agent carry up to three matching entries along when Cortex answers within about a second (for answers from Claude's chat-only small model this can be switched off with `contextForClaudeAsk`); and each finished agent request with its result is queued on disk and saved in the background, with secrets redacted (only while `learn` is true; see `cortex-outbox.jsonl` above for what happens to the queue when you turn it off). Dictation typed into another app is not sent to Cortex by Hop. Dictation into Find follows its Cortex search settings. Agent capture stays local until you send a request or sort ideas; those requests use the Agent context and learning settings. Agent requests and results are queued for learning only while `learn` is true, whether typed or dictated.
159- **Dictation** (`dictation.json`, or the Voice screen). Off until you press "Turn on dictation" (`enabled`). Your own words, fixes and snippets. Fixes are also learned from your corrections (`learnFromFixes`, on unless you switch it off): when you change a misspelled word or a short phrase Hop typed into something spelled alike, Hop writes it your way from the second time, or the first time for a new name the system dictionary does not know ("Zendoto" to "Zenodo"; a name written with a plural or joined ending, such as "Zenodos" or "Zenodo.io", waits for the second time). Only the misheard part is learned: ordinary words around it that you changed in the same edit are not. Changes to ordinary dictionary words ("a" to "an", "there" to "their", "then" to "Then") depend on the sentence and are never learned, nor are other forms of a word ("Zenodo" to "Zenodo's", "Zenodo-based" or "Zenodo.org", plurals), rewording and rewrites. Learned fixes are listed on the Voice screen; removing one there undoes it for good. If Wispr Flow is running Hop stands by, so one key press is one dictation; "Keep Wispr Flow closed" (`takeOverFromWispr`) lets Hop own the Fn key instead. `autoTakeOverFromWispr` makes Hop do that by itself once the microphone has been proved to work. Both are off by default.
160- **How much of the agent's work you see** (`agentDetail` in Settings): `"answers"` shows what the agent says; `"steps"` (the default) also names each tool it uses; `"commands"` also shows the command, file or search behind each step; `"output"` also shows what came back, the first 60 lines of each. Changing it changes what is on the screen at once, for the work already done too. The levels are read from the Claude CLI's events; another agent's plain output is shown as it prints it, at each level.
161- **Other keys**: `hotkey`, `enterSendsToAgent`, `clipboardLimit`, `indexRoots`, `indexSkipNames`.
162
163Tests can point Hop at another settings folder with the `HOP_CONFIG_DIR` environment variable. The `--uitest` modes refuse to start unless it is set to a folder under the system's temporary folder, so they do not run against the settings in `~/Library/Application Support/Hop/`.
164
165## Hop in a terminal
166
167Installing Hop also puts a `hop` command in `~/.local/bin`: a link to the program inside the app. A file or any other link named `hop` that is already there is left alone, `HOP_NO_CLI=1` skips it, and `install.sh` also skips it when `HOP_INSTALL_DIR` puts the app somewhere of your choosing. If that folder is not on your `PATH`, the installer says so. `hop link` makes the link yourself, for example for an app in another folder.
168
169```sh
170hop # open Hop's box, starting Hop if it is not running (also: hop show)
171hop ask why is my build slow # the answer streams out; who answered is said on standard error
172git diff | hop ask review this # piped text is added under the question
173hop ask -m "Claude (your subscription)" say hi
174hop clip # 20 things you copied, numbered: pinned first, then newest
175hop clip token # the ones with that word
176hop clip 3 | pbcopy # item 3, exactly as it was copied
177hop open --which term # which app the one box would open for "term"; without --which it opens it
178hop find notes.md # files on this Mac and on every machine in the settings
179hop run server uptime # a command on one of those machines
180hop status # version, running or not, settings, models, machines, clipboard
181hop help # every command; hop help <command> says more
182```
183
184`find`, `machines`, `clip` and `status` take `--json`. Results go to standard output and everything else (notes, who answered, errors, how to write a command) to standard error, so a pipe gets only the result. Exit status: 0 done, 1 nothing found or it failed, 2 the command was not written correctly; `hop run` ends with the remote command's own status. A first word that is no command, or a `--option` for starting the app that Hop does not have, is refused with status 2 instead of opening a second Hop.
185
186Hop has no Dock icon of its own while it runs, only the one in the menu bar. For an icon to click, drag `Hop.app` from `~/Applications` into the Dock: while Hop runs, clicking it opens the box, as the shortcut and `hop` do. When Hop is not running, the click starts it with the box closed (as at login), and a second click opens the box; `hop` in a terminal does both at once.
187
188What these do with your data is what the app does: `hop ask` sends the question where the chosen model's settings send it (see "What stays on your Mac"); Hop keeps no conversation of it, but the Claude CLI saves its own session files under `~/.claude/` as it does when used by Hop; `hop clip` only reads the encrypted history, with the same Keychain item as Hop, and any program you run in that terminal can read what it prints; `hop status` asks only your own models whether they answer. None of them needs Hop to be running.
189
190## Check that it works
191
192```sh
193build/Hop.app/Contents/MacOS/Hop --selftest --no-global-hotkey
194```
195
196One line per check: `PASS`, `FAIL`, `SKIP` with the reason, or `WARN` for something worth a look that is not a failure (for example an agent command of your own that switches approval prompts off). Optional parts that are not configured are skipped, and so is "Stable signature" on an ad-hoc signed build such as a release. It sends one short test question through the Claude CLI if that is installed, and loads the speech model. The checks for who answers a message (your own model first, the next mind, Stronger, stopping, the yes to tools) and for the "answered by" line talk only to small test servers Hop starts on this Mac's own loopback address and to one-line stand-in tools; `--selftest-pick` runs those checks alone, and `tools/check-pick.sh` builds copies of Hop with one of those rules changed and requires each copy to fail its check (one full build per rule: for a build machine). `sh Omega/tests/check-fuse-mac.sh` checks the piece that chooses, with a changed copy it must catch. `sh Omega/tests/check-mac.sh` checks the pinned native code under `Generated/`; the build refuses to link it if a checksum has changed.
197
198## Uninstall
199
2001. Menu bar icon, Quit Hop. If you switched on "Open at login", switch it off first.
2012. Delete `~/Applications/Hop.app` and, if present, `~/Applications/.Hop-backups/` and the `hop` link in `~/.local/bin/`.
2023. Delete `~/Library/Application Support/Hop/` (settings, clipboard history, file index), `~/Library/Preferences/com.aienos.hop.plist`, and if present `~/Library/Caches/Hop/`, `~/Library/Caches/com.aienos.hop/` and `~/Library/HTTPStorages/com.aienos.hop/` (the last two are made by macOS; Hop versions before 0.3.0 left fetched answers in the first of them).
2034. In Keychain Access, delete the items whose service starts with `com.aienos.hop` (your saved accounts and the clipboard key).
2045. Conversations the Claude CLI or another coding tool saved are that tool's files (for Claude, under `~/.claude/`); remove them with that tool if you want them gone. If you set up other machines, delete `~/.cache/hop/` there.
2056. Optional: remove Hop under System Settings, Privacy & Security (Accessibility, Microphone), and delete `~/.config/hop-signing/` and `~/Library/Keychains/hop-signing.keychain-db` if you ran `tools/signing-setup.sh`.
206
207## Limits
208
209- English dictation only. No automatic language detection, no meeting recorder, no per-app writing styles.
210- Rewrite and polish need an OpenAI-compatible model in the config; the Claude CLI alone does not serve them.
211- Only one copy of Hop may unlock clipboard history. A second copy shows a notice and writes nothing.
212- The agent is a separate tool with the same access a Terminal session of yours has. Hop launches it with your request (plus a short briefing and, if Cortex is on, matching notes) and shows its output; what it may do without asking is that tool's own setting. Hop asks once before the first run; after a yes it does not ask again.
213- Token counts are estimates when a server reports none, and they are counted by where the request went, not by price. "On this Mac" means only that the model's address is this Mac's own; a forwarded port at that address can lead to any service, including one you pay for. The same holds when Hop prefers "your own model": it is chosen by its address alone.
214- Releases are not notarised, and an ad-hoc signed build loses its macOS permissions on every update (see above).
215- Byte-for-byte rebuilds were tested with one compiler and SDK on one Mac, in two separate checkouts. A different compiler or SDK version will produce different bytes.
216- The build prints known compiler warnings (actor isolation, a non-Sendable capture, a deprecated Keychain call, a trailing closure). They do not affect the release build; some would be errors under the Swift 6 language mode, which Hop does not use yet.
217- The dictation accuracy figures behind the cleanup rules were measured on the author's own recordings, which are private and not in this repository.
218
219## Licence
220
221Copyright 2026 Drake Stapleton.
222
223Licensed under the Apache License, Version 2.0. You may not use this project except in compliance with the License; the full text is in [LICENSE](LICENSE). Unless required by applicable law or agreed to in writing, it is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
224
225Agent-tool permission is versioned. Upgrading from the older per-tool permission asks again before any file-capable tool runs. This also applies to unattended `hop fuse` calls, which decline until the current permission has been given. Sorting uses only model servers or Hop’s chat-only command, including retries and Stronger; file-capable tools are excluded.