hex/docs/README.md
Sebastian Herrlinger f6cb4f5112 feat(record): record once for a local client, with consent
A listed web page, an Electron main process, or a native/Rune Rust client
can ask Hex for one microphone recording and receive only its transcript.
`POST /record/authorize` asks in Hex's window and, on Allow once, issues a
PKCE code bound to the caller's verified channel; `/record/token` mints one
session token that can start, observe, finish, or cancel that recording and
nothing else. Raw audio, levels, partials, dictation, History, paste, and
desktop control stay out of reach.

Web callers use the loopback API and their listed Origin. Native callers use
an owner-only `record.sock`: Hex reads the peer audit token and asks
Security.framework for its signing identifier and team, so an app name or an
Origin is never the identity, and the grant is bound to that token.

Deny, Escape, the scrim, or no answer issues no code. An allowed recording
stops itself after 120 s, the window shows a non-modal card with Stop
recording and Cancel, and a stopped recording waits 30 s for the client to
collect its transcript.

Move the local API's `/control` handlers into `local_api::control` to keep
`local_api.rs` under the code-shape limit.
2026-11-26 16:37:47 +00:00

4.7 KiB

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.
  • connect.md: browser connect's one-upload consent exchange (PKCE code, one-use token, origin scope) and its limits.
  • 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.