# Labs Labs holds features we're unsure about, **especially features people asked for that we built**: they land in Labs, off by default, instead of shipping on. Each feature also has an **audience** (`labs::Feature::audience`, one `match` beside `on_this_os`, so a new feature must choose): `Everyone` ships in every build; `Dev` exists only in dev builds (`dev_build::is_dev_build`: debug, local `HEX_LOCAL_BUILD`, test `HEX_TEST_BUILD`, and dev-channel `HEX_BUILD_CHANNEL=dev` builds). A stable build never lists, accepts (`hex labs on`, `hex settings set`), or runs a Dev feature: `available()` drops it, its gate reads false even when `settings.json` says on, and the saved setting is kept untouched. In dev builds a Dev row carries a quiet "Dev" tag, and `hex labs` prints each feature's audience. Every feature below is `Everyone` today unless marked `(Dev)`. Each feature also has a **group** (`labs::Feature::group` in `src/labs/group.rs`, one exhaustive `match`, so a new feature must choose): Dictation, Output (paste, formatting, spoken punctuation), History, Meetings, Annotate, Shortcuts, or Models. There is no master switch. **Labs** is always the last item in the sidebar (Up and Down reach it from the last pane; pressing it while it shows keeps it open) and lists every Labs feature this OS has as a card (name, one-line description, toggle) under its group's collapsible header, each **off by default**, plus Send feedback and Run setup again. A card's title and line are `labs::Feature::title` and `summary` (`src/labs/card.rs`), translated by the window, and its OSes `labs::Feature::oses`. **On the web.** Every `Everyone` lab (not Dev ones, nor Screenshots, Annotate 15 s replay, or Copy captures as a zip, which only builds with the capture build option have) has a page at `anoma.ly/hex/labs/` (`dev.anoma.ly` for the dev site), listed newest first at `/hex/labs`, with a 1200 × 630 social card. The pages come from `site/src/labs.json`, which only the registry writes: ```ts Add or change a lab ├── HEX_UPDATE_LABS_JSON=1 scripts/check labs::web -> rewrites site/src/labs.json from Feature::ALL ├── commit it -> labs::web's test fails while the JSON is stale └── push to dev (site/**) -> the dev site's build writes labs/.html, labs/.png, labs.html, and the sitemap entries Page ├── Open in Hex -> hex://labs/ (Mac labs only: only the Mac app registers hex://) ├── Get Hex -> the home page when the stable release's src/labs.rs names the lab, │ else Get Hex Dev (/hex/download/dev, and dev links for its other OSes) └── hex labs on -> the same switch from a terminal, every OS ``` Checks: `labs::web` (Rust, the JSON and which labs it leaves out), `every_lab_card_string_has_every_language` (i18n), and `site/labs.test.ts` (`bun test`: links, meta, order). The site's build runs in the deploy only, not on pull requests; the live page is unverified until a deploy. ```ts Feature Pane Toggle (settings.json, hex settings) On: what it does ├── Meetings (beta) yes meetings.enabled (macOS) Meetings joins the sidebar: call detection, recording, transcripts ├── Voice Filter (Dev) yes experimental.hex_microphone (macOS, Linux) Voice Filter joins the sidebar; feeds the Hex Microphone (macOS driver, Linux PipeWire source) │ a stable build never feeds it; with the macOS driver installed it keeps the pane with Uninstall alone ├── Playground (Dev) yes labs.playground a Playground sidebar item and ⇧⌘D open the story browser ├── Live text no labs.live_text provisional words beside the HUD while dictating; its card says when the selected speech model can't stream (Linux: or Speech engine is CPU), so no words would show ├── Failure notices no labs.failure_notices when a dictation fails, its explanation sits beside the HUD for about 6 s, or until the next capture starts ├── Live typing no labs.live_typing (Linux Wayland) provisional words as an underlined input-method preedit in the focused field; the final text is committed there instead of pasted; on a compositor that offers no input method (GNOME) its card is disabled with a note and `hex labs` says so ├── Settings search no labs.settings_search a search field atop General filters its rows, Advanced's included ├── Appearance no labs.appearance + labs.appearance_theme (system/light/dark, default system) the main window is forced light or dark instead of following the system; the dictation HUD (including its onboarding and Sounds previews) and meeting recording pill remain dark. Other overlays follow the OS. On Windows the title bar follows too, through its background and light/dark mode; Windows 10 has no caption colour, so DWM keeps its own light or dark caption background (builds before 19041 keep the OS caption) while its text and buttons follow ├── Release notes link no labs.release_notes_link the sidebar footer links this build's release notes: the dev changelog on a dev build, GitHub's release on a stable version ├── Live chapters no labs.live_chapters (macOS) chapters a meeting while it records, boundary pass after Stop ├── Vocabulary biasing no labs.vocabulary_biasing Parakeet transcription biased toward the vocabulary (#452/#457) ├── Screen vocabulary no labs.screen_vocabulary (macOS) names and terms in the focused window become temporary vocabulary for each dictation; read locally through Accessibility, never saved, password fields skipped ├── Rewrite reads nearby text no labs.cursor_context (macOS) the mode's OpenCode rewrite reads the focused text element's text around the caret as context for names, terms, and where the result lands; password fields skipped ├── Switch model with keyboard language no keyboard_model_switching.enabled (macOS, Windows, X11) │ the input source picks its mapped model (#216); General shows the mappings while on ├── Switch model with app no labs.app_model_switching (macOS, Windows) │ each mode, Global included, picks a speech model and language; Modes shows the choice │ while on, and Hex switches when the app in front changes. Both OSes match by │ application, never by website, and Hex's own window is ignored; Linux has no │ runtime for it; a switch never downloads a model ├── Mouse shortcuts no labs.mouse_shortcuts (macOS) mouse buttons record as shortcuts (#209) ├── Also pause the browser no pause_browser_media (macOS) pause a playing tab too, with Pause media (#301); General shows its permission row ├── Share dictation shortcut no share_dictation_shortcut (Windows) apps such as Discord see the shortcut too (#176) ├── Unload model when idle no labs.unload_idle + labs.unload_idle_minutes (5/15/30/60, default 15) │ the engine frees the speech model after that long unused (#442) ├── Keep mic open after dictating no labs.keep_microphone_open + labs.keep_microphone_open_seconds (30/60/180/300/1800, default 60) │ with Turn off the mic when not dictating on, the microphone stays open for that │ long after a capture, so the next dictation starts at once ├── Keep dictation on clipboard no labs.keep_on_clipboard (every OS) a pasted dictation stays on the clipboard; the previous one is not restored (#200) ├── Copy dictation only no labs.copy_only (macOS, Windows) a dictation goes to the clipboard and is never pasted; Paste last dictation still pastes (#629) ├── YOLO mode no labs.yolo_mode (every OS) a shortcut dictation held at least its chosen time (2 s default), in one of its chosen apps if any, presses Return after its paste unless Escape came after the release (macOS); History records it as Send ├── Return to app no labs.return_to_app (macOS) a dictation pastes into the app it started in, switching back to it first when another app came forward ├── Print-only CLI dictation no labs.print_start (macOS) hex dictation start --print answers with the transcript however the recording ends; never pasted or copied ├── Voice prompt no labs.voice_prompt + labs.voice_prompt_phrase ("rewrite this", every OS) │ a spoken phrase inside a dictation hands the mode's OpenCode model a one-off │ instruction for that dictation; without one, processing is unchanged │ // checks: the tests in dictation/voice_prompt.rs (whole-word matching, the last │ // occurrence, the outcome table, phrase validation); a_spoken_instruction_replaces_ │ // the_rewrite_and_carries_context and a_voice_prompt_with_nothing_to_ask_pastes_ │ // nothing_and_runs_no_transformations (dictation/processor.rs); │ // voice_prompt_is_its_own_atomic_and_carries_its_phrase (labs.rs); │ // a_voice_prompt_phrase_needs_two_words_and_six_letters (control/settings.rs); │ // an_invalid_voice_prompt_phrase_loads_the_default_and_keeps_its_switch │ // (app_settings/persistence/tests.rs); voice_prompt_shows_its_phrase_on_its_card_while_on │ // (rune_ui/tests/panes.rs); not observed with a real dictation, and no request │ // ran against a live model ├── Spoken formatting no labs.spoken_formatting spoken "new line"/"line break", "new paragraph", "open/close quote", "quote … unquote" become line breaks and quotation marks; Spanish "nuevo párrafo", "nueva línea", "abre/cierra comillas", … too (#630, #1040) ├── Spoken symbols no labs.spoken_symbols spoken "hashtag", "underscore", "comma", … become symbols joined to their words: "#release", "my_variable", "done, thanks"; Spanish "arroba", "guion bajo", "coma", … too (#678, #1040) ├── Remove filler words no labs.filler_words English dictations lose um, umm, uh, uhh, erm, er, ah, with no model (#631) ├── Clean up with Apple Intelligence no labs.clean_up_with_apple_intelligence (macOS) │ one short on-device pass after the corrections fixes clearly misheard words and │ resolves spoken self-corrections ("tuesday, no wait, wednesday" → "wednesday"); │ a mode that rewrites with OpenCode keeps its model, numbers-only dictations are │ left alone, and an unavailable, late, refused, or over-reaching answer pastes the │ corrected text; its card says why Apple Intelligence can't run here, and the │ switch still turns off ├── Subtitle export no labs.subtitle_export (macOS) hex meetings show --srt|--vtt writes a meeting as timed subtitles (#633) ├── Second dictation shortcut no labs.second_dictation_shortcut + second_dictation_hotkey │ another shortcut dictates like the main one (#627); General shows its recorder while on ├── More dictation shortcuts no labs.more_dictation_shortcuts + extra_dictation_hotkeys (macOS) │ up to four more shortcuts that each dictate like the main one, each with its own │ mode; General shows a numbered row with a recorder, a shortcut mode, and Remove for each while on ├── Terminal paste shortcut no labs.terminal_paste_shortcut + terminal_paste_hotkey (Windows, Linux) │ another shortcut dictates like the main one and always pastes with Ctrl+Shift+V; General shows its recorder while on ├── Caps Lock dictation no labs.caps_lock_dictation + labs.caps_lock_light (macOS) a Caps Lock press starts and stops hands-free dictation; its light waits for the microphone, then shows recording (steady or slow blink), processing, and off ├── Smart spacing no labs.smart_spacing (macOS) a dictation pasted right after a word gets one leading space (#632) ├── Sided modifier chords no labs.sided_modifier_chords (macOS) the recorder keeps each modifier's side in a modifier-only chord: R⌘ R⌥ (#710) ├── Tap or hold no labs.tap_or_hold (macOS, Linux) in Toggle mode, a press held past 300 ms dictates until it lifts; a short tap still locks (#711, #1144) ├── Double-tap on a lone modifier no labs.double_tap_modifiers (macOS) Double-tap shortcut mode takes a shortcut without a key (one or more modifiers), such as Option, Globe, or ⌃⌥; two complete taps start hands-free, one tap or a hold does nothing ├── Sort and filter models no labs.picker_sort_filter the Local transcription picker sorts by recommendation, size, or name and can show only models for the saved language (#645) ├── Benchmark details no labs.benchmark_details picker rows show raw WER/CER (lower is better), language, dataset, source, and conditions; incomparable "Most accurate" badges drop (#647) ├── Parakeet Ultra no labs.parakeet_ultra the picker offers Moondream's Parakeet Ultra (pinned Q8_0, CC BY 4.0) with a details view; stays on while it dictates (#648) ├── Special keys alone no labs.standalone_special_keys (Linux, Windows) Linux: Menu, Pause, Scroll Lock may be a shortcut's key, alone or with modifiers (#767); Windows: Insert, Home, End, Page Up, Page Down may stand alone (#794) ├── Section key alone no labs.section_key_alone (Linux, macOS) the key left of 1 on ISO keyboards, § or a dead key such as ^, may be a shortcut with no modifier (#1050) ├── Microphone key alone no labs.microphone_key (macOS) the microphone (dictation) key in a laptop keyboard's top row, always reported as Fn with key code 176, may be a shortcut with no modifier (#181) ├── Dictation stats no labs.history_stats History's Stats button opens a summary of retained dictations; hex history stats prints it (#790) ├── Select multiple dictations no labs.history_multi_select History selects several dictations with Shift-click, Cmd-click (Ctrl on │ Windows and Linux), or a drag, and copies or deletes them together ├── Copy recent dictations no labs.recent_dictations (macOS) the menu bar's Copy Recent Dictation submenu copies one of the last five dictations (#877) ├── Skip long pauses no labs.skip_pauses (Linux, Windows) a whole-clip dictation run hears only the head and tail of each long pause (#899) ├── Stop when the call ends no labs.stop_when_call_ends (macOS) a recording Hex started on its own stops 30 s after its call app leaves the microphone and goes quiet (#835) ├── More call apps no labs.more_call_apps (every OS with Meetings) Signal, Telegram, WeChat, LINE, Webex, Element, and Phone calls are offered, │ and calls on Google Voice, Messenger, FaceTime, GroupMe, and Webex pages are named ├── Fix results in Output no labs.output_fixes Output's Try card offers Vocabulary and Fix this, which copies an agent prompt naming the wrong result (#989) ├── Process API transcripts no labs.api_processing (every OS) apps using Hex's local API can add process=global to │ POST /transcriptions and POST /streams/{id}/finish to get the text after Global │ mode's replacements, corrections, rewrite, and transformations; off, responses │ stay raw transcripts as before │ // checks: local_api::processing route tests (409, 403, 400, 429, processed, absent); │ // not observed on macOS or Windows, and no /transcriptions success without a model ├── Timestamps in API transcripts no labs.api_timestamps (every OS) apps using Hex's local API can add │ timestamps=segment|word to POST /transcriptions for the speech model's own │ segment or word times (startMs, endMs); off, a timed request answers 403 │ timestamps-disabled and responses stay as before │ // checks: local_api::timestamps (parse, 403 before the body, response fields, │ // clamping, empty arrays), transcription::service (the 422 decision), and │ // gguf_session (chunk offsets); no real-model transcript with times ├── Browser access to the local API no labs.api_browser_access + labs.api_browser_origins (every OS) │ a web page served from one of the listed origins can call Hex's local API with │ fetch: its unauthenticated OPTIONS preflight for that exact origin answers 204 │ with Access-Control-Allow-Origin, the methods and headers, and a 10-minute │ preflight cache, and every response (401, 404, and SSE streams included) carries │ Access-Control-Allow-Origin and Vary: Origin. Requests still need the API │ token, and no response allows credentials or `*`. Off, an origin not listed, │ or no Origin header answers exactly as before (OPTIONS is 401, no CORS headers). │ Entries are scheme://host[:port] only: *, null, paths, queries, fragments, │ and userinfo are ignored, a single trailing / and a default port are dropped, │ and scheme and host are lowercased. An IPv6 origin takes the browser's │ compressed form (http://[::1]:5173) and a non-ASCII host its punycode │ (xn--…), since a request's Origin is matched exactly. Errors answered before │ a request is read (400, 408, 431, and 503 when the connection queue is full) │ carry no CORS headers │ // checks: local_api::browser_access_is_off_unless_the_lab_lists_the_origin, │ // an_allowed_origin_gets_its_preflight_without_a_token, │ // a_duplicate_origin_header_never_earns_cors_but_still_routes, │ // authenticated_responses_carry_only_the_allowed_origin, │ // a_streams_events_response_carries_the_allowed_origin; │ // app_settings::browser_origins normalization tests; │ // api_browser_access_is_its_own_switch_and_keeps_normalized_origins (labs.rs); │ // browser_access_shows_its_origins_on_its_card_while_on and │ // browser_access_keeps_its_typing_through_its_own_save (rune_ui); not observed │ // from a real browser page, and no live macOS or Windows request ├── Model in use first no labs.picker_active_first the speech model picker shows the model in use first: Compare's first column, Every model's first row (#1019) ├── Use model files where they are no labs.model_in_place the picker adds a model file without copying it, so accounts can share one (#941) ├── Smaller model files no labs.k_quant_models (macOS) adding a model file also accepts Q6_K, Q5_K, and Q4_K weights, smaller than Q8_0 and unverified │ // checks: k_quants_are_known_only_where_the_caller_runs_them, │ // k_quant_tensors_are_measured_in_their_ggml_block_sizes (gguf_header); │ // a_k_quant_import_needs_the_lab_and_falls_back_without_it (custom_models); │ // smaller_model_files_is_its_own_switch_and_macos_only (labs.rs); not observed on Metal ├── Downloaded models only no labs.picker_downloaded the picker's All speech models view can show only downloaded models, with the space Hex's copies take (#1018) ├── Shell completions no labs.shell_completions (every OS) `hex completions ` prints a bash, zsh, fish, │ elvish, or PowerShell completion script for `hex`, generated at runtime from the │ same clap tree the CLI parses, so new commands and flags are in it; off, it │ answers disabled and names its toggle, and the command stays out of `hex --help` │ // checks: the_lab_off_refuses_and_names_its_toggle and │ // every_shell_gets_a_script_with_the_command_tree (control/cli/completions.rs); │ // the_cli_prints_completion_scripts (linux.rs, main.rs, windows.rs); │ // shell_completions_is_its_own_switch_and_everywhere (labs.rs); not observed as │ // a sourced script in a real shell ├── Keep recordings no labs.keep_recordings History entries keep their dictation audio; Play hears it, and Transcribe again runs it through another installed model (#1032) ├── Copy dictation audio no labs.copy_dictation_audio History entries with a kept recording gain Copy audio, and the menu bar or tray gains Copy last dictation audio: one WAV file on the clipboard, ready to attach. Needs Keep recordings and stores no audio itself ├── Hide menu bar icon no labs.hide_menu_bar_icon (macOS) the menu-bar icon hides while no meeting is under way; shortcuts keep working, reopening Hex shows Settings (#1064) ├── Pause from menu bar no labs.pause_menu (macOS) the menu bar's action block offers Pause Hex; while paused every capture shortcut and the secure-input hotkeys are inert, the event tap passes keys through, and Resume waits for a neutral keyboard (#82) ├── Upcoming meetings in menu bar no labs.calendar_menu (macOS, with Meetings on and a calendar connected) the status menu starts │ with an Upcoming section: up to five meetings from the reminder poll's own filtered list, soonest │ first, each a local start–end time and title, "Now · " while in progress, "Tomorrow " or the │ short weekday when it starts on a later day, and "No upcoming meetings" when none are left; │ choosing a row with a call link joins it through the menu's own path, which opens │ the link, records that occurrence so no reminder pops (closing a showing one), and │ does not record (a provider set to always record may still record once the call │ starts); a row without a link is informational │ // checks: an_in_progress_meeting_reads_now, meetings_on_later_days_read_tomorrow_or_their_weekday, │ // ended_meetings_are_left_out, at_most_five_meetings_show_soonest_first, an_empty_section_has_no_rows, │ // a_stale_snapshot_never_shows, publishing_keeps_at_most_32_and_none_clears, │ // the_section_hides_until_visible_and_fresh, the_menu_read_wants_a_connected_calendar, │ // a_local_date_parses_the_iso_date_part (calendar_menu.rs); │ // joining_elsewhere_before_the_lead_time_never_reminds, │ // joining_elsewhere_while_showing_withdraws_it_for_good (calendar.rs); │ // only_reminders_keep_the_titling_and_reminder_list, │ // a_menu_only_read_and_a_new_lab_both_force_an_immediate_read (meeting/watcher.rs); │ // calendar_menu_is_its_own_switch_and_macos_only (labs.rs); │ // the_menu_reads_upcoming_then_meetings_then_actions_then_the_app (macos_rune/status_item.rs); │ // not observed on a real Mac, in a real menu, or opening a real call link ├── ⌘Q closes Settings no labs.quit_closes_window (macOS) the app menu's Quit Hex (⌘Q) closes the Settings window instead of quitting Hex; dictation keeps running, the menu bar icon still quits (#1473) ├── Notch indicator no labs.notch_indicator (macOS) on a screen with a notch, the HUD widens the notch sideways in the Dynamic Island's compact style at either visible position: an orange mic and level bars, the macOS spinner, a green checkmark; Hidden still hides it, and flat screens keep the Top/Bottom setting ├── Movable meeting capsules no labs.movable_meeting_capsules (macOS) panel capsules (Meeting transcript ready, Recording automatically, offers, reminders) drag to another corner and show in the last one, shared with the recording capsule (#1093) ├── Vocabulary in meeting notes no labs.meeting_notes_vocabulary (every OS with Meetings) │ final meeting titles and summaries (and Regenerate summary) read the vocabulary ahead of the transcript (#1154) ├── Meeting finished event no labs.meeting_finished_event (every OS with Meetings) │ the local API's GET /meetings/events sends each finished meeting's id once its final transcript is written (#964) ├── Follow live transcript no labs.follow_live_transcript (every OS with Meetings) │ a recording meeting's transcript card keeps its newest line in view while scrolled to │ the bottom; scroll up to read, back to the bottom to follow again (#1332) │ // check: only_a_recording_transcript_follows_and_only_with_its_lab (rune_ui/meetings.rs, │ // Linux and Windows); not observed on a real call; Labs page goldens need regenerating ├── Import audio no labs.meeting_import (macOS) Meetings offers Import audio…: a WAV, M4A, MP3, AIFF, or CAF │ file is decoded locally, transcribed with the selected model, saved as a normal │ meeting (Speaker turns), exported as Markdown, and given notes as a finished recording ├── Descriptive meeting file names no labs.meeting_descriptive_filenames (every OS with Meetings) │ once notes or a rename give a meeting a title, its exported Markdown is renamed │ in place to