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 Source

Hop

Hop is a small native macOS launcher. One shortcut opens one box.

A Linux desktop edition for Spark 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.

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.

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.

What 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.

Behind 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:

ScreenWhat it does
ClipboardHistory of what you copied. Enter pastes the selected item. Encrypted on disk.
FindFiles, folders and apps on this Mac by name. Hop keeps its own index; Spotlight is not needed.
AgentKeep 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.
AccountsAPI keys and logins, kept in the macOS Keychain.
VoiceHold 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.

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.

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.

It is plain Swift (SwiftUI and AppKit), built with one script. No Electron, no web view, no outside libraries.

Free 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.

What it needs

What stays on your Mac

Everything, unless you use one of the parts listed here. Hop has no account, no telemetry, no crash reporting and no update check.

PartWhat it contacts
The box, Clipboard, Find, AccountsNothing 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.
VoiceOff 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.
A message the Claude CLI answersHop runs claude; that tool sends your message to Anthropic, an AI provider, with your own login.
A message a model you added answersThe 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").
A message a coding tool takesHop 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.
Sorting a message, and fusingBefore 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.
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.
Optional, off until you configure themOther 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).

What Hop keeps, and where.

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.

A 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.

Advanced 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.

Permissions it asks for

PermissionWhyWithout it
AccessibilityTo 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.
MicrophoneDictation.No dictation.
Speech RecognitionmacOS may ask before on-device recognition.No dictation.
Files and FoldersFind walks your home folder, so macOS may ask about Desktop, Documents and Downloads.Those folders are missing from Find.
KeychainThe clipboard key and your saved accounts live there.Clipboard history stays paused.

Passwords 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.

Install from source

git clone https://interplane.io/drakestapleton/hop.git hop
cd hop
./build.sh                      # builds build/Hop.app
./build.sh install              # copies it to ~/Applications and opens it (quit a running Hop first)

./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.

A 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.

To build and install one exact commit in a single step:

./install.sh --from-source https://interplane.io/drakestapleton/hop.git <full 40-character commit id>

Install a release and verify it

Releases 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.

V=<version>      # the newest one is at the top of the releases page
BASE=https://interplane.io/drakestapleton/hop/releases/download/v$V
curl -fsSLO $BASE/install.sh && curl -fsSLO $BASE/RELEASE.json
HOP_DOWNLOAD_BASE=$BASE sh install.sh --release RELEASE.json
# or, with a sha256 you got from somewhere you trust:
HOP_DOWNLOAD_BASE=$BASE sh install.sh $V <sha256 of the zip>

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:

git clone https://interplane.io/drakestapleton/hop.git hop && cd hop
git checkout <source_commit from RELEASE.json>
tools/release.sh
shasum -a 256 dist/Hop-<version>.zip      # must equal zip_sha256 in RELEASE.json

With 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.

Release 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.

Keys

KeysWhat happens
Cmd-SpaceOpen or close Hop. It opens on the one box, with its guesses for the moment.
Up / Down, EnterMove through the list, or through the cards when nothing is typed; Enter does the highlighted one (open, switch to, paste, send to your agent).
Cmd-EnterOn a file or an app: show it in Finder. On a copied web address: open it instead of pasting it.
Tab / Shift-TabNext / previous single screen. Left / Right do the same while the box is empty. Never needed: the box reaches everything.
Cmd-1 to Cmd-5Still jump to Clipboard, Find, Agent, Accounts, Voice, for anyone used to them (one more, after Agent, when a factory address is set). Never needed.
Shift-EnterSend what you typed to the agent, from any screen, whatever else matches. In the box, Enter on the agent line does it too.
Cmd-NNew conversation.
EscClose Hop.
Hold FnDictate; let go to type it.
Fn then Space, or Fn twiceHands-free dictation. Fn again to finish.
Fn + ControlA spoken instruction: rewrites the selected text, or with nothing selected parks it on the Agent screen and sends it from other screens.
Ctrl-Cmd-V / Ctrl-Cmd-CPaste / copy your last dictation.
Opt-1Polish the selected text.

Cmd-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.

In 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.

Configure the optional parts

Menu 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.

Tests 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/.

Hop in a terminal

Installing 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.

hop                                   # open Hop's box, starting Hop if it is not running (also: hop show)
hop ask why is my build slow          # the answer streams out; who answered is said on standard error
git diff | hop ask review this        # piped text is added under the question
hop ask -m "Claude (your subscription)" say hi
hop clip                              # 20 things you copied, numbered: pinned first, then newest
hop clip token                        # the ones with that word
hop clip 3 | pbcopy                   # item 3, exactly as it was copied
hop open --which term                 # which app the one box would open for "term"; without --which it opens it
hop find notes.md                     # files on this Mac and on every machine in the settings
hop run server uptime                 # a command on one of those machines
hop status                            # version, running or not, settings, models, machines, clipboard
hop help                              # every command; hop help <command> says more

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.

Hop 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.

What 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.

Check that it works

build/Hop.app/Contents/MacOS/Hop --selftest --no-global-hotkey

One 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.

Uninstall

  1. Menu bar icon, Quit Hop. If you switched on "Open at login", switch it off first.
  2. Delete ~/Applications/Hop.app and, if present, ~/Applications/.Hop-backups/ and the hop link in ~/.local/bin/.
  3. 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).
  4. In Keychain Access, delete the items whose service starts with com.aienos.hop (your saved accounts and the clipboard key).
  5. 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.
  6. 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.

Limits

Licence

Copyright 2026 Drake Stapleton.

Licensed 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. 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.

Agent-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.