voxt
AGENTS.md927 starsChanged 20 days agoApache-2.0View on GitHub
VoxtMini is a macOS voice input app on local models, with remote models the user may choose instead (docs/remote-models.md): Go + MyGo (native UI, no cgo; ActNow's fork github.com/hehehai/mygo, go.mod's replace: changes to MyGo go there, never into this repository) and a small Swift helper. Speech recognition and voice activity detection come from sglang-omni's native MLX servers (sglang_omni_mlx/native), the language models from a Swift process of their own (mlx-swift-lm and a few GGUF models). It started as a copy of…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,040 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- mygo-maintenanceSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Run from VoxtMini/; Go 1.27.4 (GOTOOLCHAIN=auto fetches it).
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Working on VoxtMini
VoxtMini is a macOS voice input app on local models, with remote models the user may choose instead (docs/remote-models.md): Go + MyGo (native UI, no cgo; ActNow's fork github.com/hehehai/mygo, go.mod's replace: changes to MyGo go there, never into this repository) and a small Swift helper. Speech recognition and voice activity detection come from sglang-omni's native MLX servers (sglang_omni_mlx/native), the language models from a Swift process of their own (mlx-swift-lm and a few GGUF models). It started as a copy of Auralink, the same author's app on remote models (NOTICE). Read docs/architecture.md first, then docs/plan.md for the milestones; docs/behavior.md compares its behaviour with Voxt's.
This repository held Voxt (Swift) until the tag voxt-final; everything since is VoxtMini, and these rules apply to all of it.
Rules
- Local models first; remote models only by the user's choice (user, 2026-11-11; docs/remote-models.md). Local models are the default and "Automatic" always means a local one: audio and text leave the Mac only for a feature whose model the user picked as a remote service on its page (
settings.RemoteID;local.Choosenever picks aRemotemodel for automatic). Remote services (Voxt's providers, Auralink's code:internal/providers,internal/asr/*,internal/llm's transports) are set up on the Models page; their keys live in the macOS Keychain only (internal/secrets, behindremote.Keys), never in the settings, the database or the logs; requests follow the family's network setting (the downloads' proxy). Apple's on-device models (Apple Speech, Apple Intelligence: docs/apple-models.md, run by the helper) are local models: on-device only, never Apple's servers. Otherwise the network is for update checks and model downloads. No account or server of VoxtMini's. The local models live in the ActNow family's model library ($HUB, the Hugging Face cache, shared with the family's other apps:internal/modelsonactnowkit), and downloads follow the family's shared network settings (proxy, Hub endpoints; "automatic" = the Mac's system proxy). VoxtMini is a member of the ActNow family (internal/actnow, the spec in the actnow repositorydocs/family/actnow-family-spec.md): never delete another app's models or claims. Models are behindinternal/local(local.Services), whichinternal/remotewraps with the ready remote services: the session and the pages never talk to a runtime or a remote service directly. - Every user-visible string goes through
i18n.T(orN,X) with a literal English message, and whoever adds one adds its zh-Hans translation tointernal/i18n/locales/zh-Hans.json.TestKeyParityfails on a missing translation, an unused one, or format verbs that differ. Product words in Chinese: 转录 (Transcribe), 翻译 (Translate), 转写 (Rewrite), 应用增强 (App enhancement), 词典 (Dictionary), 本地模型 (Local models), 远程模型 (Remote models), 辅助进程 (the helper). - The build pass does no I/O. Views read
appfields, snapshots and memory-only getters (local.Services.Installedtoo). Store, runtime and helper calls run on goroutines (a.async,helperCall) and come back througha.post.appis main-thread only. - Voxt and Auralink are sources. Both are the same author's, Apache-2.0 for VoxtMini: port their code where it fits (Voxt's Omni runtime lifecycle, model request policies and prompts; Auralink's everything else), written our way (one session owner, a layered prompt composer, pure logic apart from platform code), and record a behaviour that differs from Voxt's in
docs/behavior.md(Voxt / VoxtMini / why). - The UI is AudioSmith's. Build pages from
app/ui_kit.goand the tokens inapp/ui_tokens.go(one ink primary button per view, the accent for state only, Solar icons,settingRowwith ⓘ help). No trailing "…" on labels (buttons, menu items, links, select options, palette entries; "Settings", not "Settings…"): only status texts ("Downloading…") end in one, listed ininternal/i18n/ellipsis_test.go. New icons: add the name tointernal/icons/names.txt, thengo generate ./internal/icons. - Layout: the app (package main: views, wiring) is in
app/(mygo.json"main"), its tests run from the module's root; everything else Go is underinternal/; no Go file at the root (TestNoGoAtRoot).mygo.json,resources/,testdata/(shared fixtures) stay at the root. - Pure logic in
internal/, platform code behind narrow interfaces (the helper,permission, the local runtimes), with fakes for tests: everything must be testable on Linux. A runtime's or a remote service's client is tested against a fake server on loopback; tests never reach a real service (theVOXTMINI_E2E=1tests, with keys in~/.config/voxtmini-dev/keys.env, are by hand) nor the real Keychain (newKeyringis a memory one in the app's tests). - The helper protocol changes in every place at once:
internal/helper/proto, the Swift types (helper/Sources/VoxtMiniHelperKit/Wire*.swift),helper/Fixtures, the fake helper (internal/helper/helpertest) anddocs/helper-protocol.md. Go and Swift tests decode the same fixtures. So does the language models' llm protocol:internal/llmrt/wire,llm/Sources/VoxtMiniLLMKit/Wire*.swift,llm/Fixtures,internal/llmrt/llmrttestanddocs/llm-protocol.md. - The helper does, Go decides: policy (when ⌘C may run, delays, keys after a paste, which device) goes in the params; the helper keeps no settings. The same holds for the model runtimes: Go supervises them and chooses the parameters.
- Files stay small: at most 600 lines of code (aim for 400), 800 of tests; split by topic into
<area>_<part>.go.internal/archtestchecks the sizes (a ratchet overallowlist.txt) and the import layering (imports.txtlists every internal → internal import: add a line for a new one). Refactors that move code prove it withdeclhashandscripts/snapshots.sh check(docs/architecture.md, "Code structure rules"). - Licence: VoxtMini is Apache-2.0, as the repository. Third-party code, data, models' runtimes or artwork need a licence compatible with it and an entry in
NOTICE, with its licence text inLICENSES/(a new Go module: its licence file inLICENSES/go/). No per-file licence headers. - The Mac (
mac-miniby default,MAC_HOST=mac-airfor the spare) is shared; mac-air is short of disk (about 32 GB free): build incode/VoxtMini(scripts/mac.sh), delete large build trees and models you downloaded for a test, and never touch~/code/Auralink*. The six catalogue models are in the real$HUB(~/.cache/huggingface/hub, claimed asdev.hehehai.voxtmini, or still asdev.hehehai.voxtnewuntil a VoxtMini of 0.1.0-beta.3 or later has started there once; the user's AudioSmith and Dicta use it too) and the runtimes in~/voxtmini-runtime/{omni,llm}/for every thread (its README says how to refresh it): use them instead of downloading or building again, never delete or move anything in the HF cache, and test deletions with a scratchACTNOW_FAMILY_DIR+HF_HUB_CACHE. Do not sync (scripts/mac.sh) into a checkout while it builds, nor before pulling back files the Mac made (--pull): the sync deletes what the Linux side lacks. - Code comments and commit messages in English. Keep the MyGo lifetime rules (
.agents/skills/mygo-maintenance).
Commands
Run from VoxtMini/; Go 1.27.4 (GOTOOLCHAIN=auto fetches it).
CGO_ENABLED=0 go test ./... # all tests (Linux and Mac)
scripts/test-main.sh [-n 8] [-run RE] [-v] # the app package's (app/) tests in N processes (~10 s instead of ~70 s); then go test -p 8 ./internal/... for the rest
go tool mygo vet . # vet + MyGo's UI checks
scripts/lint.sh # dead code: staticcheck U1000 + deadcode -test print nothing (CI)
CGO_ENABLED=1 go test -race ./... # needs cgo
VOXTMINI_SNAPSHOTS=/tmp/shots go test -run TestSnapshots ./app # pages as PNG
go test -run TestKeyParity ./internal/i18n # strings and zh-Hans
scripts/mac.sh '<command>' # run on the Mac (MAC_HOST, MAC_DIR=code/VoxtMini)
scripts/mac.sh 'scripts/build-helper.sh && scripts/build-llm.sh && go tool mygo build' # the Swift helper and voxtmini-llm, then the app (mygo.json gives llm/voxtmini-llm its entitlements: no app without it)
scripts/mac.sh 'scripts/build-omni.sh && go tool mygo build' # the Omni runtime (speech models) into the app; --out DIR for VOXTMINI_OMNI_RUNTIME
scripts/mac.sh 'scripts/build-llm.sh && go tool mygo build' # voxtmini-llm (language models) into the app; --out DIR for VOXTMINI_LLM; on mac-air cp -Rc ~/voxtmini-runtime/llm resources/darwin-arm64/llm is quicker
scripts/mac.sh 'scripts/release.sh --runtimes $HOME/voxtmini-runtime' # the release build: helper, omni, LLM, mygo build, release-verify.sh (docs/release.md); VOXTMINI_SIGN_IDENTITY signs it (team 779M533DL5, as the other ActNow apps: scripts/release-identity.sh), over ssh through scripts/mac-gui.sh
MAC_DIR=code/VoxtMini-xyz scripts/mac.sh 'VOXTMINI_COEXIST_OK=1 scripts/mac-hotkey-coexist.sh' # a built app's helper beside a running Auralink: synthetic keys, right ⌥ fires only VoxtMini
scripts/mac.sh scripts/mac-dev-identity.sh # once: the Mac's "VoxtMini Dev" signing identity (own keychain), so permissions survive dev installs
MAC_DIR=code/VoxtMini-test scripts/mac.sh scripts/mac-dev-install.sh # a dev build signed with it, installed into /Applications (not opened): rev <sha> … INSTALL_DONE | BUILD_FAILED
MAC_DIR=code/VoxtMini-sign scripts/mac.sh scripts/mac-sign-e2e.sh # the release's signing with a throwaway identity: every nested binary hardened and timestamped
scripts/mac.sh 'scripts/build-llm.sh --test' # its Swift tests (the same fixtures as Go)
scripts/mac.sh 'cd helper && swift test' # the helper's tests (same fixtures as Go)
MAC_DIR=code/VoxtMini-mt scripts/mac.sh scripts/mac-e2e.sh # headless Mac tests: real helper, fake models, no window or key
MAC_DIR=code/VoxtMini-logsel scripts/mac.sh scripts/mac-logs-shots.sh # the logs' selection worked with the real pointer and captured (only while nobody uses the Mac; VOXTMINI_SHOTS_DRY=1: the window only)
MAC_DIR=code/VoxtMini-xyz scripts/mac.sh scripts/mac-regress.sh # the real models ($HUB, ~/voxtmini-runtime): Swift tests, omni, LLM, quick eval, app smoke
scripts/mac.sh 'VOXTMINI_EVAL=1 VOXTMINI_OMNI_RUNTIME=$HOME/voxtmini-runtime/omni VOXTMINI_LLM=$HOME/voxtmini-runtime/llm/voxtmini-llm go test -run TestEval -v ./app' # the eval (docs/eval.md)
scripts/snapshots.sh check # every snapshot, pixel for pixel, against the merge base
go run ./internal/tools/declhash ./app ./internal/... # a hash per declaration: equal before and after a pure move
go vet -tags updatecheck ./app # the update-check buildDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

