Kit Langton df2edf84c4 feat: Hex 2.2.0 — faster dictation and the Meetings beta (#133)
* perf: bound transcription decoder threads and raise inference QoS

GGUF sessions on GPU devices now request one CPU thread instead of
transcribe.cpp's default min(8, ncpu). Parakeet's per-token TDT decoder
runs on CPU even with Metal encoding, and ggml's spin-waiting worker pool
stalls it under CPU load. CPU-only devices (Linux Backend::Auto fallback)
keep the library default so the encoder is not serialized.

The macOS inference thread moves from user-initiated to user-interactive
QoS. ggml creates workers with plain pthread_create, which starts them at
QOS_CLASS_DEFAULT rather than inheriting (confirmed with a probe); with one
thread no workers are created and decoding stays on this thread.

transcribe-cpp 0.2.4 bench, Unified English Q8, Metal, Mac Studio (18
cores, already loaded by other work), user-interactive QoS, median ms for
3/30/90 s clips:

  + 36 `yes` procs: 1 thread 170/703/1819, 2 threads 136/1907/4940,
                    4 threads 178/4304/13519
  no extra load:    1 thread 83/364/1631,  2 threads 64/705/2889

Not verified physically on the MacBook Pro or on Linux.

* fix(paste): mark transcript clipboard writes as transient

Clipboard managers such as Maccy and Raycast recorded every dictation
because the paste write carried only plain text. Publish the transcript
as one pasteboard item that also carries org.nspasteboard.TransientType
and org.nspasteboard.AutoGeneratedType so conforming managers skip it.
Generation-safe restoration of the previous clipboard is unchanged.

Refs kitlangton/Hex#223

* fix(keyboard): resolve Command shortcuts on the layout's Command layer

On "Dvorak – QWERTY ⌘" the plain layer puts V on keycode 47, but with
Command held that key is ⌘. — so synthetic ⌘V posted ⌘. and paste beeped.
Build a second snapshot map with UCKeyTranslate's cmdKey modifier state
during initialize_layout and resolve Command shortcuts against it first,
falling back to the plain snapshot. Headless lookups do the same.

Refs kitlangton/Hex#162

* fix(dictation): discard near-silent captures before inference

Holding the shortcut without speaking made Cohere (and Whisper-style
models) paste a hallucinated "thank you". Measure the loudest 30 ms
window of the captured 16 kHz audio, DC removed and excluding model
padding, and discard captures below -50 dBFS as empty: no inference,
paste, History, or last-result update. The level and threshold are
logged. The threshold is conservative so whispered speech is kept.

Covers macOS hotkey, voice-delimited, and Voice Action captures and the
Linux hotkey loop. Local API dictation and host-audio transcription
deliberately keep returning raw model output.

Refs anomalyco/hex#108

* fix(audio): keep the held press when a cold microphone glitches

With Release when idle, the first hold after minutes of idle failed with
the error tone. The cold stream reported "A buffer underrun or overrun
occurred" — cpal 0.18's ErrorKind::Xrun from CoreAudio's processor
overload listener, which does not stop the stream — and HEX treated it as
fatal: the owner closed the device without retrying and recognition
suspended the still-held gesture.

- Log and ignore Xrun and RealtimeDenied stream errors; real sample gaps
  still fail the capture as discontinuities.
- In release-when-idle mode, a stream failure before the hold threshold
  returns the press to pending and reopens, so release-before-ready
  discards and readiness captures from the original press. Later
  failures still fail the capture rather than paste a fragment.
- Cold opens retry the selected microphone twice, 100 ms apart, before
  the existing automatic fallback.

Refs anomalyco/hex#130

* feat: add pause segmenter for incremental transcription

* feat: cut intentional dictation captures at pauses

* feat: transcribe completed speech at pauses and join it with the tail

* feat: add Transcribe during pauses setting

* docs: map incremental transcription

* fix(audio): drain before checking pending cold captures

* fix: keep piece admission guard held through inference and refine segment joins

* refactor: simplify clipboard, keyboard, silence gate, and cold-audio helpers

* refactor: simplify incremental transcription state and session options

* feat(meetings): transcribe in rolling overlapping chunks with echo suppression

Stream each track through a 16 kHz resampler into pause-aware chunks
(first pause after 20 s, hard cut at 30 s with a 2 s overlap) and
transcribe them while recording on a utility-QoS session that waits for
dictation capture and inference. Tracks that fall behind are rebuilt from
their WAV after Stop. Seams drop repeated words, microphone utterances
that echo overlapping remote speech are removed, and each finished meeting
is written as Markdown to the configured folder. Remote speech is labeled
Them.

* feat(meetings): add release opt-in, call capsules, and menu-bar recording

Meetings (beta) in Settings enables detection, the Meetings pane, and
meeting paste in release builds, with a Screen Recording permission row
and a transcript folder. Offers appear as a focus-free capsule with a
countdown and stay snoozed for the call. The menu bar shows elapsed
recording time with Stop & Transcribe, and a capsule asks Keep Recording
or Stop & Transcribe when the call app leaves the microphone.

* docs: map Meetings beta and update meeting invariants

* feat(meetings): write titles, summaries, and action items with Apple Intelligence

Add a weak-linked FoundationModels Swift bridge (availability, context
size, guided-generation notes at utility priority) and a meeting notes
worker that runs after final publication: bounded map/reduce chunking
sized from the model context, a total deadline, manifest storage, and an
in-place marker-delimited Markdown update that keeps the file name.
Settings gains 'Summarize with Apple Intelligence' (default on) with a
one-line availability; the Meetings pane and ready capsule show the
generated title, notes, and a Regenerate Notes action. Debug CLI:
hex meeting summarize <id|file>.

* docs: map Apple Intelligence meeting notes

* fix(meetings): stop labeling speaker echo as You with signal-level bleed detection

Rolling chunks fell behind (packet-bounded queue) and the pane then showed the raw
Moonshine draft without any echo suppression, so microphone twins of remote speech
appeared as You. Coalesce rolling audio into one-second blocks, keep transcribed
entries of a track that fell behind, judge the live draft with the same echo rules,
split timed words into sentences, and classify microphone segments by comparing
their energy with delayed system audio so misheard bleed is dropped and double-talk
is kept.

* feat(meetings): redesign the pane with notes, conversational turns, search, rename, and delete

List rows show the generated title, time, length, app, and a status chip, grouped
by day. The detail leads with notes, then Them/You turns on opposite sides that
follow the live tail, under one action row: Copy Notes, Copy Transcript, Reveal
Markdown, Regenerate Notes, Rename, and a two-step Delete that moves the Markdown
and recording to the Trash. Adds a deterministic meetings preview.

* docs: map meeting echo suppression, pane redesign, delete, and rename

* feat(meetings): add read-only hex mcp server for meeting transcripts

* docs(meetings): map the meetings MCP server and Granola import options

* feat(meetings): provisional titles while recording and one-call short summaries

Name a recording from its opening (~90 s of speech or 600 words) with one
title-only Apple Intelligence call, refreshed once at ten minutes, shown in
the menu bar, Meetings pane, manifest, and exported file. After publication,
write the final title and a summary of at most two sentences with one call
over a bounded excerpt (opening, sampled middle, ending) instead of
map-reduce. Remove action items, decisions, and chunking; older manifests
still read. get_meeting_notes now returns the title and summary and points
agents at the transcript.

* feat(meetings): mirror another Mac's meetings for local MCP servers

One periodic rsync (scripts/sync-meetings-mirror.sh, LaunchAgent template)
replaces an SSH session per MCP client, which exhausted the Pro's sshd.
A copy of the binary named hex-meetings-mcp always runs hex mcp.

* test(dictation): prove release trimming keeps the last word and isolate the instance-lock test

Add a resampled delayed-release regression test (44.1/48 kHz, segmented and
not) and an opt-in Unified English release-boundary harness. The instance
lock test now uses a temporary directory instead of the real Application
Support folder, which accumulated test-<pid>.lock files.

* fix(dictation): preserve mid-clause pause joins, skip silent tails, and add corpus harness

* feat(dictation): keep 200 ms of audio after release

* test(dictation): apply the post-release tail in the corpus harness

* fix(dictation): transcribe short final pieces with their preceding audio

* fix(linux): borrow the model path for GGUF validation

* fix(linux): scope macOS-only history, deletion, and thread-test code out of Linux dead-code lints
2026-10-16 09:59:27 -07:00
2026-10-07 13:37:34 -07:00
2026-10-07 13:37:34 -07:00

HEX app icon

HEX

Speak. It appears.
Local-first voice dictation, built in Rust.

Download for macOS · Website · Linux beta · TypeScript SDK · Contributing

HEX is local-first voice dictation for Apple silicon Macs running macOS 15 or newer. Hold a shortcut, speak, and release. HEX transcribes on your Mac and pastes the result into the app you are using.

  • On-device transcription. Download a local speech model during setup; ordinary dictation does not require OpenCode or a cloud transcription service.
  • Your words, your way. Choose a shortcut, language, and model. Use Modes for corrections, application-specific behavior, and optional text processing.
  • Optional voice tools. Enable Voice Action or voice commands when you need them. Both start off; provider-backed rewriting is separate from local speech recognition.

The macOS app is available now. The Linux beta has a smaller feature set and requires a source build or Nix. See Privacy and local data for what stays on your device and what optional features send to a provider.

Install HEX

With Homebrew:

brew install --cask anomalyco/tap/hex

Then launch Hex from Applications and complete setup.

The cask installs the same signed app and keeps its built-in updater. Existing DMG installations can keep using Check for Updates; Homebrew does not migrate or forcibly replace another app already named Hex.app.

Or install manually:

  1. Download the latest signed DMG and open it.
  2. Drag Hex.app into Applications, then launch it.
  3. Complete the permission and model steps in setup.
  • Microphone lets HEX record while you dictate.
  • Input Monitoring lets HEX detect its shortcut globally. Drag the HEX tile into the list.
  • Accessibility lets HEX paste into the foreground app. Drag the HEX tile into the list.
  • Transcription model downloads the speech model that runs locally.

HEX checks for signed updates automatically. Use HEX > Check for Updates... to check immediately.

Organizations that manage app versions themselves can turn off in-app updates, including manual checks, with the DisableUpdates Boolean in the com.kitlangton.hex2 preference domain. Deploy it in a configuration profile (payload type com.kitlangton.hex2, key DisableUpdates, value true), or for a single Mac run defaults write com.kitlangton.hex2 DisableUpdates -bool true. Relaunch HEX to apply it. Model downloads still work.

Download blocked? Alternative download: GitHub — Hex 2.1.25 contains the identical signed DMG for Apple silicon and macOS 15+. App releases use app-v… tags; the repository also publishes separate TypeScript SDK releases. If an older installation cannot check for updates on your network, install the DMG manually over the existing Rust app.

On managed networks, ask IT to allow downloads.hex.kitlangton.dev for the app and updates. Local model setup separately needs huggingface.co and its model download CDN; optional Voice Commands needs download.moonshine.ai. A successful app download does not establish that those model hosts are reachable. After restoring access, retry model preparation in Settings (or Retry for Commands).

Coming from the original Swift app? Install the new app manually and complete setup. Settings and history are not transferred. Quit the old app before dictating in the new one so their shortcuts do not compete.

Dictate Anywhere

Hold Option, speak, then release. HEX transcribes and pastes at the current focus.

  • Double-tap Option to keep recording; press Option again to finish.
  • Press Escape to cancel.
  • Press Option-Shift-V to paste the last completed dictation again.

Settings let you change the shortcut, microphone, language, local model, recording behavior, feedback volume, launch-at-login behavior, and Dock visibility. Corrections in Modes fix names and preferred spellings before text is pasted; modes can also apply optional rewriting and text transformations.

Use menu bar > Transcription Model to switch between downloaded models without opening Settings. Each model remembers its last selected language and, for Whisper, recognition hints. Choose the language in Settings once, then switch between combinations such as English with Parakeet and French with Whisper from the menu. Manage Models… opens the full picker for downloads and language changes.

Optional OpenCode Features

OpenCode V2 beta (opencode2) is optional. Ordinary dictation does not require it.

  • Voice Action: enable it in the Voice Action pane, then hold Option-Command and describe what you want. It defaults off, independently of your dictation shortcut. HEX sends that instruction, selected text when Accessibility makes it available, and the foreground application and Brave website hostname. It pastes the result at the current focus.
  • Post-processing: enable OpenCode in Modes to rewrite a transcript before paste. HEX sends the transcript, foreground application, and Brave website hostname to the configured model provider. Modes can target applications and websites in Brave Browser.

If OpenCode rewriting fails, HEX keeps the corrected local transcript and still runs any selected text transformations. If that transformation stage fails, HEX keeps the text from before the stage, not partial transformation results. A failed Voice Action pastes nothing.

Experimental Voice Commands

Voice commands are available on macOS and disabled by default. Enabling them starts continuous local command recognition and requires a separate local command model; HEX prompts to install it when needed. Dictation remains available while command recognition is off or asleep.

The Commands pane lists built-in phrases and filters them by global, application, and Brave website context. Advanced users can create ~/.config/hex/hex.config.ts for custom TypeScript commands. Custom commands require Bun; HEX provides an Edit Config action and a prompt you can paste into a local coding agent.

Custom command files and dependencies are executable local code with your user permissions. Review agent changes and install only dependencies you trust.

To teach a coding agent how to configure personal commands and transformations, install the official HEX skill:

npx skills add anomalyco/hex --skill hex-personal-commands

Privacy And Local Data

  • Speech transcription and command recognition run locally.
  • HEX does not save dictation audio by default.
  • On macOS, History retains successfully pasted dictation and Voice Action text for seven days by default, including the local transcript, final text, and limited application and timing metadata. It never stores audio, full browser URLs, or window titles. Every retention choice has entry and byte limits.
  • Use History > Keep: Off to stop adding entries, or Clear all to remove existing history. Turning retention off does not delete existing entries or disable diagnostic logging.
  • An explicit HEX_RETAIN_DICTATION_AUDIO diagnostic setting can retain a bounded number of owner-only WAV files.
  • Local diagnostic logs can contain transcript text, recognized command speech, foreground application names, and Brave URLs. HEX does not upload these logs.
  • OpenCode features send the data described above to your configured model provider.
  • Model installation and software updates require network access.

Review and redact diagnostics before sharing them.

Troubleshooting

Symptom Check
HEX appears to disappear Open HEX from its menu-bar hexagon. If the status item could not start, HEX keeps its Dock icon visible.
The shortcut does nothing Open HEX and verify Microphone and Input Monitoring access.
Recording works but text does not paste Verify Accessibility access.
Transcription does not start Confirm that the selected local model is installed.
OpenCode features fail Verify the separate OpenCode installation and model provider.
Voice commands do not respond Confirm Commands is enabled and voice control is awake.
Website context does not match Website-aware modes and commands currently require Brave Browser.

Permission changes may require quitting and reopening HEX.

Still stuck? Report a bug with your HEX version, operating system, and steps to reproduce. Review and redact any attachments; do not upload private dictation, recordings, or full logs.

Diagnostics are stored at:

  • macOS: ~/Library/Application Support/voice-control/logs/
  • Linux: ~/.local/share/voice-control/logs/, or under XDG_DATA_HOME

Linux Beta

The Linux beta targets x86_64 Linux on i3/X11 and compatible wlroots Wayland compositors. It supports local hotkey dictation, a GPUI settings shell, and signed updates for direct installs. Native Wayland requires explicit input-device access and compositor support for clipboard, virtual-keyboard, and layer-shell protocols. Voice commands and meetings are not included.

Use the Linux installation guide to build from source until the first signed Linux release is published. It also describes the planned user-local installer, requirements, and limitations. For Nix/NixOS packaging and per-user autostart, see the Nix guide.

Build With HEX

@kitlangton/hex brings local transcription to your own application through Promise and optional Effect APIs. Your app supplies the recorded audio; HEX handles model preparation and transcription.

The SDK is published on npm, but a bundled native helper is not yet published. You must supply a compatible HEX executable. Follow the SDK guide for requirements and examples.

Contributing

Architecture, development commands, active plans, and historical research are indexed in docs/README.md. Start with CONTRIBUTING.md and AGENTS.md before changing the native application. Report vulnerabilities through the process in SECURITY.md.

HEX is available under the MIT License. Vendored icon licenses are listed in Third-Party Notices.

Languages
Rust 71.4%
Swift 17.7%
Kotlin 3.8%
JavaScript 1.7%
Python 1.3%
Other 3.7%