hex/docs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel e85d287dac
android: Labs › Automatic listens for the language (off) (#2770)
* android: Labs › Automatic listens for the language (off)

Automatic dictated in one language it picked (the keyboard layout's, else
the phone's) and never listened, so speech in another language came out in
that one, which testers read as translation. With this lab on, Automatic
chooses among up to three languages: the keyboard's (kept unless the speech is
clearly another), the phone's other languages Hex dictates, then the last one
picked by hand. Bokmål and Nynorsk count as one; Danish and Swedish never.

whisper-language-choice.patch (applied at fetch time with -F0, so a bump it no
longer fits fails the build) runs whisper.cpp's detection step on the first
window the decode encodes anyway, at the app's window, takes a softmax over the
candidates only and writes the language and task into the decode's prompt: one
decoder step (about 3 ms on the host) instead of "auto"'s second, full-window
encoder pass (about 2 s). A switch takes 0.99 under 4 s of audio and 0.95 from
4 s. The text is formatted and inserted in the language chosen. Translate what
I say is offered while Spanish is a candidate; only Spanish is translated.
Faster English dictation isn't used while Automatic chooses among several
languages, and Dictation stops saying English uses it. With one language, or
the lab off, nothing is chosen and the decode is today's.

UI: with several candidates the Hex menu and Settings say "Automatic" and the
list's entry names them ("Automatic · English, Español"); #2749's "Automatic ·
English" stays otherwise. The Automatic entry now names Automatic's own
language even while another is picked by hand (it named the picked one).
Diagnostics' Last dictation adds the language, kept or switched, each
candidate's probability and the choice's time. New JNI entry point:
Java_ly_anoma_hex_speech_Whisper_language; imports unchanged.

The benchmark gains a guard: native.cpp's HEX_LANGS decodes each clip against
every other language with its own as the keyboard's, and score.py exits 1 on
any switch.

Verified: ./gradlew --max-workers=2 :app:testDebugUnitTest :app:assembleDebug
(282 tests; the NDK build applied the patch and passed check-imports). On the
host, a build of the pinned whisper.cpp with the repository's four patches
decoded the benchmark's 40 clips and 30 long ones byte for byte as one with the
three (app window and full window); the guard kept the clip's language in 630
of 630 pairs (and fails on a planted switch); with two candidates and the
keyboard's language kept, 80 of 80 texts matched the one-language decode; the
2,466-cut table, read through the patch's API, had 0 wrong switches at every
length (1.5-10 s, pairs and triples) and caught the other language 84.3% at
2 s and 99.1% at 5 s. All voices synthetic; not yet run on an emulator.

* docs: Automatic listens for the language's checks on the Studio and the emulator

Records #2770's checks on the rebased head in the feature map: 321 unit tests,
the host identity, wrong-switch and prompted checks, and the emulator run on
hex-detect-vogel (Spanish and English of 2, 5 and 12 s each in its own
language, 20 of 20 in a row, ✕ while recording and while transcribing, the
loop guard firing with the lab on). Docs only.
2026-11-24 22:12:05 -05:00
..
features android: Labs › Automatic listens for the language (off) (#2770) 2026-11-24 22:12:05 -05:00
images docs: describe speech models and features in readme (#1869) 2026-11-15 18:27:36 -05:00
plans reload personal config when imported .js files change (#1856) 2026-11-15 10:46:47 -05:00
releases docs(release): correct the 3.4.0 notes and add upgrade steps for Windows and Hyprland (t1510) (#1672) 2026-11-10 18:14:30 -08:00
research Add agent marker and drop internal references (#702) 2026-10-31 18:30:32 -07:00
specs docs: the Hex words file (.hexwords), version 1, with shared cases (#2776) 2026-11-24 18:47:38 -05:00
cli.md feat(meetings): launch polish for the capsules, Calls sheet, and Meetings pane (#2769) 2026-11-24 15:17:13 -08:00
design-system.md refactor(rune_ui): add unified design tokens, shared modal shell, and ratcheted lint (#2762) 2026-11-24 13:34:15 -08:00
downloads.md ci: read release secrets from aws secrets manager (#1606) 2026-11-09 15:18:26 -05:00
linux.md fix(linux): keep the RemoteDesktop paste session open on KDE (#2508) (#2510) 2026-11-23 04:12:01 -05:00
nix.md docs: nix install is linux only (#1582) 2026-11-09 05:11:35 -05:00
opencode-compatibility.md prefer a wsl opencode service when the lab is on (#2112) 2026-11-20 19:14:28 -05:00
perf.md docs(perf): strobe prints times in microseconds (#1718) 2026-11-12 05:43:43 -06:00
README.md docs: the Hex words file (.hexwords), version 1, with shared cases (#2776) 2026-11-24 18:47:38 -05:00
releasing.md windows: sign the setup engine so smart app control can run setup (#1987) 2026-11-19 02:38:03 -05:00
streams.md meetings: discard recordings with no speech (#2553) 2026-11-23 13:48:42 -05:00
test-builds.md windows: sign the setup engine so smart app control can run setup (#1987) 2026-11-19 02:38:03 -05:00
transcript-cli.md meetings: delete a finished meeting from the CLI (#2223) (#2225) 2026-11-21 11:23:51 -08:00
windows-signing.md windows: sign the setup engine so smart app control can run setup (#1987) 2026-11-19 02:38:03 -05:00
windows.md add hungarian as an interface language (#2671) 2026-11-24 06:41:08 -05:00

Project Documentation

Start with the document for your task. Plans and archived prototypes do not override shipped behavior.

User Guides

  • ../README.md: install and use Hex on macOS, Windows, and Linux.
  • windows.md: Windows x64 and ARM64 beta requirements, installation, and source builds.
  • linux.md: Linux X11 and native Wayland beta requirements and installation.
  • nix.md: Nix packaging for Linux, development, and per-user autostart.
  • ../ios/README.md: build and test the iOS prototype.
  • ../sdk/typescript/README.md: use the public TypeScript transcription SDK with an explicitly supplied native helper.

Engineering Reference

  • ../AGENTS.md: architecture, invariants, development commands, and diagnostics. This is the implementation authority.
  • ../ROADMAP.md: prioritized product and engineering work.
  • design-system.md: Rune + rune-kit + OpenCode theme components, Hex pieces, copy rules, and --snap scene verification.
  • features/README.md: existing user-facing capabilities, entry points, available verification, and gaps; detailed dictation and recovery maps.
  • perf.md: strobe benchmarks, the cases that drive the window through its accessibility tree, and how a benchmarked copy of Hex stays isolated.
  • downloads.md: public download paths, R2 custom domains, GitHub release mirrors, and network recovery.
  • opencode-compatibility.md: audited OpenCode V2 source and CLI baseline, integration contract, and validation limits.
  • plans/personal-commands.md: shipped personal command contract and remaining lifecycle work.
  • plans/quickjs.md: why and how configs run in embedded QuickJS instead of Bun, with size and latency measurements.
  • specs/local-transcription-service.md: implemented macOS local-service protocol and lifecycle guarantees.
  • specs/hex-words.md: the Hex words file (.hexwords) that carries vocabulary and word replacements between the desktop, iPhone and Android apps, with shared cases in tests/fixtures/hex-words.

Architecture Decisions And Active Plans

When a plan disagrees with AGENTS.md about shipped behavior, update the plan.

Research And Archives

Releases

releases/ contains version-specific release notes and drafts. ../release-notes/ contains legacy inputs from versions 2.0.0 through 2.0.9. Published notes and the SDK changelog describe their release, not current behavior; preserve them as historical records. A draft note is not evidence that its release has been published.