- Rust 78.5%
- JavaScript 6.6%
- TypeScript 4%
- HTML 4%
- Shell 2%
- Other 4.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* iOS: open Hex instead of dictating in the keyboard when it is short of memory Testers on 4 GB iPhones (12, 12 mini, 13) saw in-keyboard dictation in other apps stop about a second after tapping Dictate and iOS switch to the system keyboard: iOS ends a keyboard extension that passes its memory limit (Apple: "The memory limits vary from model to model"; reported at ~60-70 MB by KeyboardKit, ActiveHard 77 MB by fcitx5-ios, 90 MB on a 4 GB iPad by dictus-ios #202). Starting creates the capture web view, loads its page, starts WebKit's capture and mounts the recording screen's Metal scope all at once. What changed - KeyboardLocalDictation.hasMemoryToStart: os_proc_available_memory() must leave 32 MB for the first dictation (web view, page, WebKit's first use, recording screen, Metal device and pipeline) and 16 MB once the web view is loaded (capture and recording screen only). 0 (the simulator) is enough. - KeyboardViewController.syncLocalDictationAvailability, on every bridge poll: while short, viewModel.onLocalDictateTap is nil, so Dictate, the bar's Hex mark and the full keyboard's Hex key take their existing cold start (open Hex, record there, return), as before iOS 26. A hold stays a tap there, so push to talk sends no stray stop. With room, nothing changes. The probe log notes each switch, at most every 5 s. - A web view whose WebContent process ended now also leaves the keyboard's view; before, it stayed behind (2 pt, alpha 0.02) next to the new one each later dictation made. - KeyboardProbeLog.memory() adds the process's peak footprint (ledger_phys_footprint_peak), so a tester's keyboard-capture-probe.log shows what the limit saw: [footprint, peak, headroom]. - README: the guard, and its proof limits. Tried and left out, after measuring - Releasing the capture web view after each dictation (and on memory warnings): the keyboard's footprint stayed (31.9 -> 31.8 MB; WebKit/JSC state and allocator pages stay in the process, malloc_zone_pressure_relief returned 16 KB) while the next start's spike grew (+1.9 vs +0.9 MB) and it waited for the page again (~1.5 s). The web view stays loaded, as before. - Dropping the text checker or lexicon while dictating: the full keyboard rests lower than the dictation bar in the simulator (18.3-21.0 vs 21.4-24.3 MB), so nothing showed it helps. Measured (simulator iPhone 13, iOS 27.2, Release; a temporary, uncommitted probe drove the keyboard's own Dictate and Done paths with a host field focused, logged phys_footprint at each step and every 100 ms, with footprint(1) sampling from outside; 3 runs each, MB): bar before bar after full before full after keyboard shown 21.6-24.2 21.4-24.3 18.5-21.0 18.3-20.9 web view created 25.1-27.7 24.9-27.9 22.1-24.7 22.1-24.7 web view loaded 27.5-30.0 27.5-30.5 25.5-28.7 25.8-28.6 capture started 28.5-30.8 28.1-31.3 26.7-29.6 26.8-29.4 max 3 s after tap 28.8-31.2 28.5-31.7 28.9-31.4 28.9-32.1 stop 27.8-31.8 27.7-31.0 26.0-28.6 26.1-28.6 transcriber made 27.9-31.8 27.8-31.0 26.1-28.7 26.2-28.8 lifetime peak 31.5-32.4 28.9-32.3 29.8-32.6 30.0-32.6 A second dictation adds 0.5-1.3 MB (bar) and 4.2-4.8 MB (full keyboard, which rebuilds its recording panel). With a simulated limit 24 MB above the footprint at the tap, both keyboards now hand off and stay at 21.2 / 18.3 MB instead of rising 7-13 MB; with 40 MB they dictate in the keyboard, twice. The simulator counts no GPU memory and transcription fails there ("Audio format is not supported"); a macOS stand-in put the Metal device and pipeline at ~3.5 MB and the scope's drawables at ~4.4 MB, which the thresholds allow for. Verified: xcodebuild test on the iPhone 18 Pro simulator, 212 tests pass (1 skipped as before); the Release generic iOS build with CODE_SIGNING_ALLOWED=NO succeeds. Not verified on a physical iPhone: the real limit, GPU memory, and whether 32/16 MB is the right line; the probe log's peak and headroom will show it. * iOS keyboard: need 24 MB, not 16, before a second in-keyboard dictation Leaving the full keyboard's new recording strip briefly peaked 7 MB above recording (35.5 MB in a simulated iPhone 13), and a second dictation now costs up to 8 MB, so 16 MB left little margin. Compile-checked with a generic-iOS build. |
||
| .cargo | ||
| .cloudflare/cache | ||
| .config | ||
| .github | ||
| app | ||
| assets | ||
| crates | ||
| design | ||
| docs | ||
| ios | ||
| macos/HexMicrophoneDriver | ||
| native | ||
| nix | ||
| packaging | ||
| perf | ||
| prototypes/app-shell | ||
| release-notes | ||
| resources | ||
| scripts | ||
| sdk | ||
| site | ||
| skills/hex-personal-commands | ||
| src | ||
| tests | ||
| .gitignore | ||
| .hivemind.toml | ||
| .markdownlint-cli2.jsonc | ||
| AGENTS.md | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| clippy.toml | ||
| CONTRIBUTING.md | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| README.md | ||
| ROADMAP.md | ||
| SECURITY.md | ||
| strobe.json | ||
| THIRD_PARTY_NOTICES.md | ||
Hex
Hex is local voice dictation for Mac, Windows and Linux. Hold a key, speak, and it pastes.
How it works
- hold the shortcut, speak, then let go
- Hex transcribes on your device and pastes into whatever app you're in
- the first run downloads a speech model; after that nothing leaves your machine
- experimental features live in Labs, at the bottom of the sidebar
What it does
- hold the shortcut to dictate, or set Shortcut mode to Tap to start and stop with a press
- the text lands at the cursor in whatever app you're in
- Option-Shift-V pastes the last dictation again (Ctrl-Alt-V on Windows and Linux)
- History keeps your dictations, searchable, for 7 days by default
- Output runs every dictation through steps you choose (word replacements, built-in cleanups, your own scripts, an optional OpenCode rewrite), with different steps per app or website
- Vocabulary is one list of names Hex should know; Whisper and Qwen3-ASR read it while transcribing, Parakeet models read it with Labs › Vocabulary help on, and the OpenCode rewrite uses it
- Annotate records the screen while you draw and talk, on macOS, Linux and Windows (GNOME Wayland needs Labs › Annotate on GNOME)
- an authenticated local API and the TypeScript SDK transcribe with the same model, for your own tools
- Meetings is a macOS lab that records a call and writes the transcript
Output and History:
Speech models
Hex downloads one model the first time it runs and transcribes with it on your
machine from then on. On an English system that's Parakeet Unified English: it
writes while you talk, so the text is ready when you let go. Other languages
start with the model recommended for them. That model also serves meetings and
hex transcribe.
Settings' picker offers more, among others:
- Parakeet v3: 25 European languages, and it hears which one you speak
- Cohere Transcribe: the fewest wrong words, in 14 languages; a big download
- Whisper large-v3-turbo: almost any language, and it reads your vocabulary
- Qwen3-ASR 0.6B: Chinese and 29 more, and it reads your vocabulary
- SenseVoice Small: Chinese, Japanese, Korean and English; a small download
- Nemotron 3.5 ASR: writes while you talk, in 27 languages
- Granite Speech 5.0: IBM's model, seven languages, with punctuation
- one-language models: ivrit.ai Whisper for Hebrew, GigaAM v3 for Russian, NB-Whisper for Norwegian, KB-Whisper for Swedish, QwenCleo-ASR for Egyptian Arabic
- more English models: Parakeet v2 and Underdog Bark 3.0
Add a GGUF model of your own with "Add model file…" in the picker; see your own speech models.
Downloads
Stable is the current release. Dev is the newest build of dev and updates
itself from the dev channel.
| Platform | Stable | Dev |
|---|---|---|
| macOS (Apple silicon) | DMG | DMG |
| Windows x64 | Installer | Installer |
| Windows ARM64 | Installer | Installer |
| Linux x86_64 | Executable | Executable |
| Linux x86_64 (Debian, Ubuntu) | .deb | .deb |
| Linux x86_64 (Fedora, openSUSE) | .rpm | .rpm |
| Linux ARM64 | Executable | Executable |
| Linux ARM64 (Debian, Ubuntu) | .deb | .deb |
| Linux ARM64 (Fedora, openSUSE) | .rpm | .rpm |
Or install with:
- Homebrew:
brew install --cask anomalyco/tap/hex - AUR:
yay -S hex-bin - install script (Linux):
curl -fsSL https://anoma.ly/hex/install-linux.sh | sh - Nix (Linux):
nix profile add github:anomalyco/hex
Command line
hex transcribe meeting.m4a prints a recording's transcript, whether or not
the app is running. It reads WAV, AIFF, CAF, FLAC, MP3, Ogg, WebM, and
MP4/M4A/MOV, including a video's soundtrack. The same hex controls the
running app (hex status, hex dictation, hex settings); see
docs/cli.md.
On macOS the CLI is inside the app. Homebrew links it for you; otherwise link
it somewhere on your PATH that you own:
ln -s /Applications/Hex.app/Contents/MacOS/hex ~/.local/bin/hex
Linux and Windows installs put hex on your PATH.
More docs are in docs/.
Contributing
We don't take pull requests. Open an issue describing the bug or idea, and our agents usually turn it around fast.
MIT licensed.