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

dce324f Answers to the tenth review of hop/pick (Codex, MERGE_AFTER_FIX on 386d0a16, three low findings): the contract says when a seat is replaced and which Claude seats exist; the replacement test counts the proposals Drake Stapleton committed 2026-11-12
..
tests/
ui/
FUSE.md23390
README.md44766
gen-core.sh3519
gen-ui.sh3506
gen.sh3722
hopcore.om97566
hopfact.om7794
hopfuse.om12289

README.md

Omega in Hop

Hop is being moved into Omega, piece by piece. Two pieces are Omega today: hopcore (the core: names, paths, text decisions, corrected words and the Swarm logic, below) and hopfact (the factory command-center core, after it). The windows, keys, microphone and Keychain are still Swift.

hopcore: the matching core

Omega/hopcore.om decides what matches what you type in the one box, and how well. It is compiled by Omega NG, the next Omega compiler, which is itself Omega built by the seeded compiler: source to ΩIR (@ng front-ir), the optimizer (@ng opt), then a macOS arm64 program (@ng a64 macho). The result, Generated/hopcore, is copied into the app beside Hop and signed with it. No C and no Swift is involved in the matching rules. The old seeded compiler cannot build this unit (error 12, its 16-register limit); Omega NG can.

Hop starts hopcore once and talks to it over a pipe. Sources/OmegaCore.swift is the whole host side: it lowercases the text, turns each character into one number, sends cases and reads answers. If the core cannot be started Hop shows no app matches; it never falls back to a guess.

Protocol

A request is 8 bytes, then a body: the kind and the body's length n, both 32-bit little-endian; n is at most

  1. The answer is 8 bytes, then a body: a status and the length m. Status 0 is an answer, 1 an unknown kind, 2 a malformed body (m is then 0). A body over the limit or a short read ends the core; Hop starts a fresh one.

Kind 1: names

The body is 1 to 512 cases of 2048 bytes: 256 little-endian 64-bit words.

WordMeaning
0magic 1212568922
1version 1
2number of characters typed, 0 to 64
3number of characters in the name, 0 to 184
4..70
8..71the typed characters, then 0
72..255the name's characters, then 0

A character word: bits 0..31 an id (equal characters get equal ids, never 0; a space is 32), bit 32 set for a letter or number, bit 33 set for white space that is trimmed from the ends of what was typed.

The answer is 3 bytes a case: the verdict (0 no match, 1 match, 2 the case was malformed or over the limits), then the score, low byte first. A longer text is refused, never cut short.

Kind 2: paths

Scores paths found on another machine against the typed terms. All fields are 16-bit little-endian: the number of terms (at most 64), the number of paths (at most 16000), each term as its length then its bytes, then each path as three lengths (its lowercased bytes, the lowercased bytes of its last component, the path as written), the path bytes and the name bytes. Hop does the lowercasing and finds the last component; the terms are used as given.

The answer is 4 bytes a path, a 32-bit little-endian number: 0 for no match, else the score plus 1000000.

Kind 3: text decisions

The body is four 32-bit little-endian numbers (the op, the number of characters n, at most 16384, a number the op uses, and a second such number), then one 8-byte word per character of the lowercased text: a 32-bit id (equal characters get equal ids; a character of one Unicode scalar has that scalar's number), then a flag byte (1 letter or number, 2 trimmable white space, 4 white space, 8 white space or line end, 16 the last character of a run) and three zero bytes.

OpQuestionAnswer
1Is this a question for the model? It ends with "?" and is longer than that, or it has three words or more and starts with a question word.one byte, 0 or 1
2Which words should be searched for? Three characters or more, common words left out, each once, the longest four, longest first.a count, then for each word where it starts and its length, as two 16-bit numbers
3Is this a web address? The third number is the text's length in bytes.one byte: 0 no; 1 it starts with http:// or https://; 2 a bare address such as example.com/page
4How alike are two spellings? The text is the first, then the second; the third number is the first one's length. Only letters and numbers count.two 16-bit numbers: the single-character edits between them, and the longer length. Hop divides to get 0 to 1.
5Which typed words are the fix for what was heard? The text is what was heard (the third number is its length), then the first typed word, the first two, the first three and the first four; flag 16 marks the last character of each run. The fourth number says which runs are the very text that was heard (bit k-1).one byte: which run (1 to 4), the most alike, the shorter among equals; 0 for no fix (less than half alike, or nothing changed); 255 when a spelling has more than 4096 letters and numbers

For op 3 Hop then asks macOS whether the address parses (and, with a scheme, names a machine). That last step is Apple's parser, so it stays in Swift; the word lists and every other rule are in the Omega source.

Kind 4: corrected words

After Hop types a dictation into a field, it reads the field again later. Hop splits three texts into words (what was dictated, the field before, the field after), drops the punctuation around each word and gives equal words equal numbers. The body is three 32-bit little-endian counts, then that many 32-bit word numbers for each text.

The core finds the dictation in the field (its last whole occurrence), sets aside the words that are the same at both ends, lines the rest up word by word (longest common subsequence) and answers a 16-bit count, then 14 bytes a replaced run: where the removed words start in the field before (32-bit), how many (16-bit), where the typed words start in the field after (32-bit) and how many (32-bit). A run counts when 1 to 3 words were removed, all of them inside the dictation, and something was typed in their place. The answer is empty when the dictation is not in the field, when the changed part is too large (words before times words after over 250000), or when more than half of the dictation was removed (a rewrite, not a fix). Hop then asks kind 3 op 5 which of the typed words are the fix.

Kind 5: a board line, a time

A swarm's board is a text file with one post a line (`<time> <sender> (<detail>) to <recipient> + <recipient>: <text>, and the looser forms Sources/SwarmCore.swift` documents). The body is two 32-bit little-endian numbers (the op and a number the op uses), then the bytes of the text (70000 at most for op 1 and 2).

OpQuestionAnswer
1What does this board line say?344 bytes. Byte 0: 1 when the line is a post; 1: it is to all; 2: something went over a limit and was cut; 3: senders (4 at most); 4: recipients (16 at most). Byte 8: the time, 64-bit, seconds since 1970 plus 100000. Byte 16: the text. From byte 24 sixteen bytes a sender (name, then the bracket after it), from byte 88 sixteen a recipient. Each part is two 32-bit numbers: where it starts in the line and how long it is.
2Is there a time at byte number?16 bytes. Byte 0: 1 when there is; 1: it names its zone; 4: the first byte after it (32-bit); 8: seconds since 1970 plus 100000 (64-bit).
3Who does this post call, and which posts does it cite? number is the highest post number that may be cited (0: none). The bytes are a 16-bit count of member names (96 at most), each name as a 16-bit length and its bytes, then the text of the post.A 16-bit count of parts, a byte that is 1 when the post has more than 128 parts (the rest is not marked), then from byte 8 sixteen bytes a part, four 32-bit numbers: where it starts in the text, its length, its kind (1 @name, 2 @all, 3 @#channel, 4 #seq) and its value (the member's number, or the post's). A mention counts only at a word start, and @worker calls every worker-<n>.
4Who does this post address? The bytes: 16-bit counts of members (96 at most), parts (128) and header recipients (16); a byte that is 1 when the header says all; a byte 0; the sender as a 32-bit member number; a byte a member (0 for a worker); the header's recipients, 32 bits each; the parts as op 3 gives them; for each member a count of channels it follows and each as a 16-bit length and its bytes; then the text of the post.A byte that is 1 when the post is to everyone, a count, then that many member numbers: the members the header names, the text calls by name or reaches through a channel, without the sender. A member with no channel list follows every channel unless it is a worker.

Hop sends at most the first 65537 bytes of a line (one past the limit, so the core can see it is too long and cut it at a whole character) and 64 bytes for a time.

Kind 6: a whole board

Turns the lines of a plain-text board into members and posts. Hop reads each line with kind 5 op 1 and sends what the lines name: a 32-bit count of lines (400 at most), then for each line a byte that is 1 for a post, a byte that is 1 when it was cut, the number of senders and of recipients, and each sender and recipient as a 16-bit length and the name, then a 16-bit length and the bracket after it.

Two spellings are one member when they share a key (no leading "@", ASCII lower case, each run of spaces one "-"); when one stands in the brackets of one agent only and is used as a sender or recipient elsewhere; or when it is that agent's name without its lane and exactly one sender posts under a name that ends that way. At most 192 spellings and 96 members; a bracket's first 8 comma-separated items are looked at; a ledger number such as "L1122" is never a name.

The answer: 16-bit counts of members, of joined spellings and of posts; four 32-bit counts (lines that are not posts, posts that were cut, agents beyond 96 members, names met after the spellings were full); eight bytes a member (the line, side and entry of its newest spelling; the line and entry of the newest bracket after it as a sender, line 65535 for none); six bytes a joined spelling (its member, then line, side and entry); then for each post its sender (255: not a member), how many others signed it and how many members its header names, and those members.

Kind 7: the members' state, and the graph

The body is an op and a count as two 32-bit numbers, then that many 64-bit numbers, then bytes when the op reads a text. Every number, in and out, is the value plus 1099511627776 (2^40), so that -1 ("not known", "none") travels as an unsigned number.

OpQuestionNumbers inAnswer
1A member's state (1 working, 2 waiting, 3 stopped)killed, turn, wake, has a roster, age of its last postone number
2What needs a look (0 nothing, 1 stuck over 600 seconds, 2 error, 3 quota)state, failure, idle secondsone number
3Unread posts (-1 not known)newest post, last one readone number
4The Overview group (1 needs you, 2 working, 3 waiting on someone, 4 parked)state, attention, asks you, waits on someoneone number
5Does a post start a visual group (another sender, or over 600 seconds later)?previous sender and time, sender and time0 or 1
6How the newest step failed (a model error at once, a failed tool step after 60 seconds; 3 for quota)kind, status, idle seconds, quotaone number
7The line weight of an edge, 1 to 5its count, the heaviest countone number
8Has the member's own run ended (0 not known, 1 mid-turn, 2 ended)?four counts, then kinds, statuses, tools and waits of its newest stepsone number
9Which step says what the member is doing now (-1 none)?three counts, then kinds, waits and labelsone number
10Does an error text speak of quota or a rate limit?none; the text follows as bytes0 or 1
11The role code of a roster member (0 worker, 1 coordinator, 2 helper)the lengths of its role and name; both follow as bytesone number
12Who addressed whom, for the graphmembers, upTo, four counts, helper flags, then a post eachsix bytes a pair: from, to, posts that named the receiver, posts that reached it through "all"
13How many posts each member sent to everyonemembers, upTo, two counts, then sender and to-all a posta number a member
14Which members to draw when there are too manymembers, with-all, keep, a count, then the pairs as rows of fivea byte a member
16The whole picture: every member's posts, state, attention, idle time, unread posts, who it waits on, its group, and the two orders the lists are shown inroster, now, members, posts, nine a member, then a post each; the names follow as bytesa list of numbers (Omega/hopcore.om, fn swderive)
17The rows of the one box for a typed text, and their orderwhat Hop knows about each candidate as numbers (how well an app matched, how much it is used, whether the text is a web address or a question, and so on), then the text and the words of the screens and commandsthe count of rows, then four numbers a row: kind, place in its list, score, promoted (Omega/hopcore.om, fn swrank, which lists every score)
18What the one box offers before anything is typedwhat was copied and how long ago, whether it is a web address, whether a browser is in front, the other copied things, and for each app its lifts from habit, its use, whether it runs, was in front before or latelythe count of rows, then four numbers a row: kind, place, score, why it is offered (Omega/hopcore.om, fn swsuggest, which lists every score)
19How much habit lifts each appthe hour, whether an app is in front, then for each remembered launch whether it was made from that app, its hour and which app it openedthe count of apps, then two numbers an app: the lift from the app in front (up to 60) and from the hour (up to 25) (fn swlifts)
20AES-256-GCM: seal and unseal1 to seal or 0 to unseal, the count of data bytes (4096 at most through a request; the panel calls the functions on up to 16 MiB), then the key, the nonce, the data and to unseal the tagunseal: 1 and the data, or 0 alone when the tag is not the data's; seal: 1, the sealed bytes and the tag (fn swgcm, fn gcunlock, fn gclock)

Before op 16 Hop asks kind 5 op 3 and op 4 for each post (who it calls and addresses) and checks that its own lists have matching lengths; a request the core cannot read is refused, never guessed at.

Scores

A whole match is 200. A prefix is 160 less the extra length (at most 30). A later word that starts with the text is 120 less a third of the name's length (at most 20). Initials are 110. Text found inside is 80 less the same. One wrong, missing, extra or swapped letter in the first letters is 70 (4 letters or more). Letters in order with gaps are 60 less 6 a gap and 3 a place from the start, never under 15 (3 letters or more). Several words: each must match; the score is their average less 10.

Paths: a term found in the name scores 60 when the name starts with it and 30 otherwise; found only in the folders it scores 5; a term found nowhere, or an empty term, means no match. One point less for every 20 bytes of the path as written, and 40 more when the name is exactly as long as the terms together. Terms are compared byte for byte.

Checks

sh Omega/tests/check-core.sh on a Mac: the pinned bytes, then the core against the Swift code Hop shipped before (kept only as Omega/tests/FuzzyReference.swift, FileScoreReference.swift, TextReference.swift, SwarmReference.swift and SmartRankReference.swift), through the host code the app itself uses (Sources/OmegaCore.swift, Sources/OmegaText.swift, Sources/SwarmCore.swift, Sources/SmartRank.swift): names on this Mac's app names, paths on real paths under the home folder, text decisions on generated sentences, addresses and spellings, corrected words on generated dictations and edited fields, the board part on generated and damaged lines, posts and whole boards, the status part on generated members, runs and pictures built from those boards, the rows of the one box on 6000 generated sets of candidates, what it offers before anything is typed on 5000 generated moments, the lift from habit on 3000 generated histories (against SuggestReference.swift), and AES-256-GCM against CryptoKit on 1500 random keys, nonces and data of 0 to 4096 bytes: sealing gives the same bytes and tag, unsealing gives the data back, and one changed bit in the data, the tag, the nonce or the key is refused by both. Then thirteen cores built from a source with one changed rule each, which must be told apart: each in its own part, and the two that change who a post calls or addresses also in the status part that builds on them. Measured 2026-11-11 on macOS 26.6.2: names 41041 of 41041 the same, paths 199693 of 199693, text decisions 75666 of 75666, corrected words 16008 of 16008 fields, board 74792 of 74792, status 67437 of 67437 (604 whole pictures, 41348 graph rows, the rows of the one box, what it offers, the lifts and the cipher); the changed cores differ in 401 names, 44321 paths, 427 text decisions, 529 fields, 789, 345, 7864 and 140 board cases, and 25, 900, 1306, 289 and 2952 status cases (the cases are generated afresh, so the counts differ a little from run to run). Hop's own self-test passes with the core in place.

Omega/gen-core.sh regenerates Generated/hopcore on Linux AArch64. It pins the ng compiler by sha256. That compiler is built from omega-mv main at commit 3f719770, which adds the macOS output to Omega NG.

Limits: a text over 64 typed characters or a name over 184 is "no match"; so is a path or term over 65535 bytes, or more than 64 terms. A text over 16384 characters is not a question, has no search words and is not an address. Corrected words: nothing is learned from texts of more than 262141 words in all, from more than 4096 fixes in one field, or from a spelling of more than 4096 letters and numbers. A character made of several Unicode scalars is one id, as Swift compares characters. Signing the program is done on the Mac by codesign.

hopfact: the factory command-center core

One piece of the factory command center is written in seeded Omega: Omega/hopfact.om. That piece validates a factory snapshot, categorizes its rows, orders the attention view and derives the totals. Swift links it as native code through the generated C binding in Generated/.

Host boundary

The host adapter is Swift. It stays transparent and outside the core:

  • It does the HTTP and /stream transport, JSON decoding, Keychain and settings, and all SwiftUI/AppKit rendering.
  • It maps each server string to the codes below. A string it does not recognize becomes state 0. A field it cannot decode becomes valid 0.
  • It sends one row per station and one row per review or merge group the server reported. It does not invent rows. An absent group gets no row.
  • It displays the server's raw labels and agent details (name, station, idle) as they arrive. It renders the core's verdict, order and counts unchanged.

The core decides validity, staleness, coverage, categories, ordering and the summary. It takes no actions: no approvals, no agent starts, no sends. Sending stays an explicit user action that the server handles.

Native ABI (bridge native call ABI v1, profile OM-1)

/* fn hopfact inp view ulong 256 res edit ulong 256 to ulong */
uint32_t omega_hopfact(uint64_t *result, const void *o_inp, uint64_t o_inp_len, void *o_res, uint64_t o_res_len);
  • Both lengths must be 256. The buffers are two distinct [UInt64](256) buffers, 8-aligned and non-overlapping, and each word holds Int64 bits.
  • Status 0 means *result holds the verdict. Any other status means the call was refused or trapped, and *result and res are untouched: 32 is a refused argument (length, alignment, null, overlap), 33 is reentry, 1..14 are traps. The host must show any nonzero status as INVALID.
  • The call is synchronous, holds no state between calls and allocates nothing.

Input inp[256]

WordMeaning
0magic 1213157446
1version 1
2nrows, from 0 to 48
3now_ms: the Mac's Unix time in milliseconds
4generated_ms: the server's generated × 1000; 0 means absent
5link: 0 unknown, 1 up, 2 health failed, 3 stream disconnected or HTTP unavailable
6source mask: bit0 floor /stream full frame received (required); bit1 /api/usage, bit2 /api/settings, bit3 /api/chat (optional, needed only by kinds 12, 13, 14)
70
8+5r … 12+5rrow r: id (host display index, 0..65535, unique), kind, state, count, valid (1 decoded, 0 host decode failure)
248..255, unused rows0

Kinds and states (state 0 always means unknown):

KindNameStatescount
1STATION1 idle, 2 waiting, 3 queued, 4 running, 5 bottleneckopen
2, 3, 4REVIEW_BAY, REVIEW_QUOTA, REVIEW_DECISION1 reportedgroup size
5, 6, 7MERGE_READY, MERGE_OWNER, MERGE_DECISION1 reportedgroup size
8, 9MERGE_ELSEWHERE, MERGE_SUPERSEDED1 reportedgroup size
10GROUP_OTHER: a review or merge group key the host does not know1 reportedgroup size
15MERGE_TRIAGE1 reportedgroup size
11AGENT (optional)1 reportedidle seconds, at most 4,000,000,000
12QUOTA_WINDOW (optional, needs bit1)1 reportedremaining permille, at most 1000
13ACCOUNT (optional, needs bit2)1 OK, 2 MISSING, 3 EXPIRED, 4 RELOGIN, 5 BLOCKED, 6 RUNNING, 7 SAVED0
14CHAT (optional, needs bit3)1 thinking, 2 sending, 3 ask, 4 delivered, 5 error0

Kinds 1 to 11 and 15 need bit0. Any other count is limited to 1,000,000.

Output res[256]

-1 below means all bits set (UInt64.max). It means unknown or absent, never zero.

WordMeaning
0, 1magic, version
2verdict (equal to *result)
3reason
4INVALID: the first faulting input word. PARTIAL with reason 29 to 31: the first missing kind. Otherwise 0.
5nrows
6age in ms (-1 when generated is absent or more than 30 s in the future)
7kind presence mask (bit k)
8+cnumber of rows in category c, for c from 1 to 12
24+ksum of count over the rows of kind k, for k from 1 to 15; -1 when no row of that kind was sent
40, 41agents working (idle under 90 s) and agents total; -1 when no agent rows were sent
42minimum quota permille; -1 when none was sent
43attention rows (categories 1 to 7 and 10)
45read-freshness admission: 1 only when the snapshot is valid, the link is up, generated is current and the floor stream is present (group coverage is not required); 0 for INVALID, OFFLINE, UNAVAILABLE, STALE and a missing floor. It is not an authorization: a direct message still needs a live selected session, explicit user confirmation and the server's own agent validation, and the host re-evaluates the current input immediately before confirming and sending (no timer, no automatic action).
48+ithe id of the i-th row in attention order (category ascending, then input order), for i < nrows
96+rcategory of input row r

On INVALID, only words 0 to 4 are set and the rest are zero.

Categories, in attention order:

#CategoryRows
1UNKNOWNvalid 0 or state 0
2DECISIONreview or merge decision, chat ask
3ACCESSaccount missing, expired or relogin
4QUOTAreview quota, quota window under 100 permille, account blocked
5TRIAGEstation bottleneck, merge triage, chat error
6READYmerge ready
7OWNERmerge owner
8WORKstation running or queued, review bay, agent under 90 s, chat thinking or sending
9BACKLOGstation waiting
10OTHERGROUP_OTHER with a count above 0
11NEUTRALelsewhere, superseded
12IDLEanything else, including any group with count 0

Verdicts and reasons. The rows are categorized under every verdict except INVALID. The precedence runs from the top of this table down.

VerdictNameReasons
1INVALID1 magic, 2 version, 3 nrows over 48, 4 negative word (bit 63), 5 count over the limit, 6 kind, 7 valid flag, 8 duplicate id, 9 kind without its source bit, 10 nonzero padding, 11 link code, 12 source mask bits, 13 word 7 nonzero, 14 state code, 15 id over 65535
2OFFLINE20 health failed
3UNAVAILABLE21 link unknown, 22 stream disconnected or HTTP unavailable
4STALE23 generated absent, 24 older than 60,000 ms, 25 more than 30,000 ms in the future
5PARTIAL26 floor stream missing, 29 no station rows, 30 a review group (kind 2, 3 or 4) absent, 31 a merge group (kind 5, 6 or 7) absent
6ATTENTION40 plus the first category present among 1 to 7, or 50 when only OTHER is present
7WORKING60: only WORK and BACKLOG apart from NEUTRAL and IDLE
8CLEAR0: no reported blockers within the declared coverage (stations plus kinds 2 to 7)

The core never returns CLEAR or WORKING without:

  • a live link;
  • a fresh generated;
  • the floor stream;
  • at least one station;
  • all six review and merge group kinds.

It also never returns them when any row is unknown. Kinds 8, 9 and 15 are optional: when they are absent, their totals are -1.

Build integration (Hop)

clang -std=gnu11 -O2 -Wall -Wextra -Werror -target arm64-apple-macos14.0 \
  -include Generated/omega_native.h -c Generated/omega_native.c -o build/omega_native.o
swiftc ... -import-objc-header Generated/omega_native.h build/omega_native.o Sources/*.swift ...

The -vfsoverlay workaround in build.sh applies to this swiftc call as before. There are no new frameworks or libraries; the binding uses only libSystem.

Provenance

ItemValue
SourceOmega/hopfact.om, sha256 recorded in Generated/SHA256SUMS and Generated/ident.txt
Compilerseeded omc, sha256 734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61, profile OM-1. This is the pin that the bridge's tools/native enforces.
Generatoromega-bridge d8174eddf953ad53e16f19eb5841459df99e24bb (tools/native sha256 14b2b51e…, src/native.om sha256 e2077722…). The bridge is used unmodified.
Regenerateon Linux AArch64, run OMEGA_NATIVE_OMC=… BRIDGE=… sh Omega/gen.sh OUT, then copy OUT/Generated/* to Generated/ and OUT/mutant/* to Omega/tests/mutant/
Checkon macOS arm64, run sh Omega/tests/check-mac.sh

check-mac.sh runs these checks:

  • the hashes;
  • the embedded code against omc's bytes;
  • that the code never names x18;
  • the Swift caller (Omega/tests/HopFactCheck.swift);
  • an unknown-to-idle mutant, which must be caught by both the byte check and the behavior checks.

Limits

  • The macOS evidence is native ABI v1 only. The bridge exercises ABI v2 on Linux, not on macOS.
  • Generation runs only on Linux AArch64. The Mac only compiles the generated C.
  • Each call runs on the calling thread, on a stack that the binding maps once per thread. Nested calls return status 33.
  • A snapshot holds at most 48 rows.
  • Staleness is fixed at 60 s, and the allowed future skew at 30 s. Changing either one means changing the core and regenerating.
  • The core's verdict covers only what the host sent and declared. It cannot detect a server row that the host dropped. The host contract is to send every station and every reported group.

The launcher panel in Omega (Omega/ui/hoppanel.om, first cut)

Everything above is logic that Swift screens call. hoppanel is the first screen that is Omega itself: one program, no Swift and no C, that opens a window through AppKit. It has a search field and a list. With nothing typed the list is this Mac's apps (the names in /Applications and /System/Applications). Typed text shows what the one box's own rules give for it: the eight best apps, a row that opens the text when it is a web address, and up to twelve files and folders. The files come from Hop's file index (file-index.bin in Hop's folder, which Hop builds): the panel reads it, lower-cases a copy and searches it by the rule of Hop's file search, with the search itself (memmem) done by libSystem and the scoring by Omega code in the panel.

Before anything is typed the list offers up to six apps, by the rule Hop itself uses (fn swsuggest): the ones you usually open from the app in front or around this hour (habits.json, through fn swlifts), the ones you use most (recents.json, with the same halving every three days), the running ones and the one you were just in, each with the reason after its name. For typed text an app's use, its lifts from habit and whether it was in front before count as in Hop. The app in front is the one that was in front when the panel was brought forward; it is never offered (opened from the Dock or Finder the panel is itself in front by then, so no app is left out; by the key the app you were in is). What the panel opens it remembers in those two files as Hop does (an app: one more launch with the app in front and the hour, the newest 400 kept, and its count of openings; a file: its count; over 500 entries the one that weighs least goes). Each file is read again at that moment and written whole at once; a file that is not what Hop writes is left alone. While Hop itself is running it keeps its own copy and writes it over the file the next time it remembers something, so what the panel added in between is lost: the two are not meant to run side by side for long. By hand on this Mac's own files: with another app in front it was left out and the most used other app came first, then the running ones.

Copied things come from Hop's own clipboard history, which the panel reads and never writes. The file is sealed with AES-256-GCM; the key is a Keychain item of Apple's security tool that Hop reads through that tool, and the panel reads it the same way (no prompt, and nothing about it changes when either program is rebuilt). The cipher is Omega code in the core (Omega/hopcore.om, fn gcunlock: AES by its definition, counter mode, the tag by GHASH), checked against CryptoKit; the key and the unsealed bytes are wiped from the core's buffers as soon as they are used. Before anything is typed the newest copied thing is offered (and, when it is a web address, a row to open it), then the apps, then up to 20 more copied things, by fn swsuggest; typed words find the copied things that have them all, pinned ones first, and the one box's rule places them (fn swrank). Enter puts the text, or the picture unsealed as PNG data, on the clipboard and hides the panel; when the program is allowed to control the Mac (Accessibility) it then presses Command V for the app in front, as Hop does. Hop, when it runs, sees that like anything else that is copied and keeps the history.

While Hop is not running the program that stays keeps the history itself, as Hop does (Sources/Clipboard.swift, poll): twice a second it looks whether the clipboard changed; text that is already in the history moves to the front, new text (up to 512,000 bytes) or a picture (as a PNG, sealed in a file of its own) is added in front with the app it came from; what a password manager marks concealed or transient is never kept; the unpinned things over the limit of Hop's settings go, oldest first. The history is read again at that moment and written whole, sealed under the same key with a fresh nonce by the core (fn gclock), for the owner only; before the program's first change in a run the history as it was is set aside next to it (clipboard.before-hop-omega.bin). A history or a picture over 16 MiB is not read or written (the largest array of the compiler); a history that the key does not open is left alone.

Saved accounts are Hop's keys and logins: generic passwords in the login Keychain under Hop's service, the account being the name, the description the kind and the comment the note (Sources/Vault.swift). The panel lists them through SecItemCopyMatching (no secret is read for that), the one box's rule places the ones whose name has the typed text, and Enter reads that one's secret and puts it on the clipboard marked concealed, as Hop does, so that clipboard histories pass it over. macOS asks the person the first time this program reads an item that Hop made, and again after the program is rebuilt, because it has no Apple team ID. A model of Hop's settings whose key is such an account is asked with that key (Authorization: Bearer); when the key cannot be read the answer says so. The panel can also save and delete an account the way Hop does (fn uvaultsave, fn uvaultdelete); so far only the check uses that, to make accounts of its own under a service of its own: a check never reads Hop's items and tells the Keychain to raise no dialog.

The panel has two screens and two commands of Hop's, found by the same words (the one box's rule places them, fn swrank): "clipboard", "copied" or "clipboard history" and Enter shows the copied things alone, pinned first, and typing then looks in them; "accounts", "keys", "api keys", "passwords" or "logins" shows the saved accounts. Escape leaves a screen, and a second Escape puts the panel away. "settings" (also "preferences", "config") opens Hop's settings file in TextEdit, as Hop's own Settings does (Hop has no settings window); "quit hop" quits the panel. The Clipboard menu has Pin or Unpin (Command P) and Delete from History (Command D) for the selected copied thing; like recording they change the history only while Hop is not running.

The file index is built by the same program run with the one argument index: it walks the folders of Hop's settings (indexRoots; without settings the home folder, /Applications and /System/Applications) at throttled disk priority with the walker Hop uses (NSFileManager's, hidden things left out) and writes every path, a line each, as file-index.bin, all at once, for the owner only. A folder with one of the names to skip (indexSkipNames) or one that is a link is left out with all in it; a package is one line; three million lines at most. It is a program of its own beside the panel, because the panel does one thing at a time. The panel starts it when it starts and every half hour, when the index is missing or older than half an hour and Hop is not running to build it, and for the command Rebuild file index ("reindex", "index files"); while it runs the status line says so, and when it ends the new index is read.

A program that stays has Hop's icon in the menu bar with Hop's menu (Sources/main.swift): Open Hop Omega, Rebuild file index, Allow paste into apps (macOS shows its own question about Accessibility), Open at login (macOS's login items, for this app), Settings, Clear clipboard history (every copied thing that is not pinned, only while Hop is not running) and Quit. Settings opens Hop's settings file in TextEdit, as Hop does: Hop has no settings window either. When there is no settings file yet an empty one is made (mode 600), which Hop reads as all its built-in settings; unlike Hop the panel does not write the settings back out in full first. Not here: Recover older clipboard history.

A program that stays keeps Hop's forwarded ports open (Sources/Factory.swift, TunnelManager): the tunnels of Hop's settings, and the port of the knowledge base when it runs on another computer. Half a second after the start and every 20 seconds, each port whose link is not running and that nothing on this Mac serves (nc -z is asked, as a program of its own with a two second limit, so the panel never waits on a port) gets /usr/bin/ssh -N with Hop's options and -L 127.0.0.1:port:127.0.0.1:far-port host; a port something else serves is left alone, so Hop and the panel never fight over one. Quitting ends the links. A port must be a whole number from 1 to 65535 written as a number, and a yes is JSON's own true, as in Hop. One difference: Hop refuses a whole settings file in which any value has the wrong kind and runs on its built-in settings, saying so; the panel passes over only the entry or value that is wrong and says nothing. Not here yet: dropping the links at once when the network changes (ssh notices by itself within 45 seconds and the link is made anew).

Files on other machines are found as Hop finds them (Sources/Machines.swift). Each machine of Hop's settings keeps its own list of files, built there by the command Hop sends when the list is missing or older than half an hour; a moment after typing pauses every machine is asked through ssh, all at once, for the lines that hold every typed word, and those are scored here by the rule this Mac's files are scored by and ranked with them ("name - folder on Machine"). Enter on such a file asks its size, brings it over with scp into the cache folder (nothing over 2 GB) and opens it; Enter on a folder puts "ssh name:path" on the clipboard, and so does a copy that fails. The status line says when a machine cannot be reached, is building its list, or a file is on its way. Not here yet: Command Enter (copy the path instead of opening), and remembering such a file as used.

The agent's row ("Agent fixes it: ...") sends the typed text to the person's coding agent on this Mac, as Hop does (Sources/Model.swift, runAgent). Hop's settings name the agents (each a name and a command, {prompt} standing for the request) and the one to use; only that one is ever run, and only when it is installed (the login shell is asked for each tool, with the usual tool folders added). A saved command that is exactly one of the old built-in ones that switched a tool's approval prompts or sandbox off is brought to today's built-in one unless keepAgentFlags is set, as Hop does on reading its settings. The command runs through Hop's wrapper (zsh -lc, TERM dumb, colours off) in the folder of the settings, with Hop's standing instructions before the request (for Claude Code as its system prompt, and a follow-up within 15 minutes carries on from its last run). What it prints is shown as it comes: the lines of Claude Code's stream are read for their text and the tools they name, anything on the error stream is marked "! ", and a failed end is said. Until Hop's settings say the person has said yes to the agent, the panel asks, each time it is started. "agent" and Enter shows what the agent said again; the Agent menu has Stop the Agent (Command period). Not here yet: what the knowledge base (Cortex) knows about the request, remembering the result there, the count of tokens, and Shift Enter.

The Ask row sends the typed text to a model and shows the answer as it arrives, in place of the list. The model is the default one of Hop's settings (config.json) when it is an HTTP one, else the first such (a model run through a command-line program is passed over); the request is the one Hop sends (POST base/chat/completions with the model, one user message and stream true), built and read with Foundation, and the pieces of the answer are taken from the server's data: lines by Omega code in the session's two delegate methods. Ask is a conversation: each question is sent with the questions and answers before it, and the answer view shows them all; a question that got no answer (an error, or typing before it came) is left out of what the model is sent. "new chat" or "clear chat" starts over. A busy server (429, 503) says so. The arrows move the selection and Enter opens the selected row. Like Hop it then stays: Enter and Escape put the panel away and give the app before it the keyboard back; Option Space (a Carbon hot key; Hop itself has Command Space), a click on its Dock icon or opening it again brings it back. It has a small menu (Quit, and Edit with cut, copy, paste, select all) and runs in AppKit's own event loop. hop panel starts it (build.sh puts it beside Hop in the bundle).

The rules are not written twice. Omega/gen-ui.sh puts every function of Omega/hopcore.om but its main into the panel where the source says note @hopcore, so the panel calls the same hopfuzz (does a name match), weba (is it a web address) and swrank (which rows, in which order) that Hop's Swift screens reach through the helper process, and Omega/tests/check-ui.sh fails when hopcore.om has changed since the panel was built.

build.sh also makes build/HopOmega.app, "Hop Omega": an app whose one executable is this program, so nothing in that app is Swift or C. ./build.sh install-omega puts it in ~/Applications beside Hop (Hop.app is not touched). Opened like any app it comes to the front with its window; with another app in front, opening it again brings it back (the reopen method); it keeps running and quits on request (run 2026-11-11).

How an Omega program does this (omega-mv seed/ng/a64/DESIGN.md s13 and s14): the unit begins target macos, which gives it libfn, libptr and libcall to call any library function, and one function libback that library code calls back. The panel makes an Objective-C class whose six methods are callback entries: the field's delegate methods (the text changed; a command key such as an arrow or Escape), the list's two data-source methods (how many rows; the text of a row), the field's action (Enter) and the application's reopen method (the Dock icon). Entry 5 is not a method but a C function: the hot key's handler, given to Carbon. om2 on the second line lets a text be handed to a helper, so class and message names are written once as text lines. The panel's own functions begin with u so that none shares a name with a function or a variable of the core.

sh Omega/tests/check-ui.sh on a Mac with a desktop session: the pinned bytes; then the panel run with HOPCHECK=1, where it stays in the background and opens nothing. The text "sa" goes in through the field's own editor, so it is AppKit that tells the Omega delegate the text changed; arrow down, Enter and Escape are commands sent to that editor, which reach the Omega methods the way keys do (Enter arrives at the field's action with the field as sender). The panel must report that typing narrowed the apps, that the first row came back from the list's own data source, that the arrow moved the list's selection, that Enter chose the selected app, that Escape put the panel away, that a spare global key could be registered and that its handler brought the panel back; then a panel that throws the matcher's answer away, which must not pass. Measured 2026-11-11 on macOS 26.6.2: hoppanel apps 75 shown 2 first Safari selected 1 enter Messages key 0 hid 1 back 1, status 1; the changed panel shows 0 and ends with status 9. With HOPCHECK=type:example.com/page the first row is Open https://example.com/page and Enter chooses it; plain text gets no address row. With a file index of four paths, type:quarterly shows the two files that match, best first, and type:example.com shows a folder of exactly that name before the web address. On this Mac's own index (49 MB) loading and a search add about 0.4 s to a run in all. Ask: with settings that name a keyed model and one without a key, played by nc with a streaming server's lines, ask:what is omega? sends Hop's request to the second and shows Omega is a language.; by hand against a small local model the question "what is the capital of France?" was answered "The capital of France is Paris."

HOPCHECK=open:TEXT is the same run with TEXT typed and the app really opened. It is not part of the check (it changes what is in front). Run by hand 2026-11-11 with open:ghostty, an app that was already running: hoppanel apps 75 shown 1 first Ghostty selected 0 enter Ghostty opened 1, status 1, and the app in front changed from the one before to Ghostty.

What it is not yet: it is not Hop's window. Hop's own panel, settings, dictation, clipboard and factory screens are still Swift (SwiftUI). Not in the panel: making the clipboard key when there is none yet, the Find, Factory and Voice screens, adding, changing and deleting accounts, screens, commands, how often a file was opened (Recents), the agent, a way to choose its key, non-English letters as letters (it gives hopfuzz bytes, not characters). NOT_RUN: a person's own key presses, Option Space among them (the checks send text and commands to the field's editor from inside the program and call the hot key's handler themselves; no key of the keyboard was pressed), and the menu's items. The core has one name changed for this: a variable called out, a reserved word in an om2 unit, is outv (the core's bytes are the same).