Build, test and release steno from source, and measure cleanup quality.

Build and install

You need Xcode 26 with Swift 6.2 and just (brew install just).

just setup-signing     # once: a local signing identity in a dedicated keychain
just build             # the signed app at .build/steno.app
swift test             # the unit suite
just install           # build, replace /Applications/steno.app, add the steno command, relaunch

just install quits the running steno, so a dictation in progress is lost. just install-no-launch installs without opening it. To test a change without installing, run the built binary directly: .build/steno.app/Contents/MacOS/steno.

Release

On Apple silicon, with the same signing keychain as the previous release, run just release. The ZIP and its SHA-256 file are in .build/release/. Tag the GitHub release with the app’s version prefixed by v. After just release, python3 Tests/Installer/release_install.py runs the website installer against that build in a temporary home and Applications folder.

Cleanup corpus

The live cleanup corpus sends each case in Tests/StenoCoreTests to the cleanup model in your saved settings and checks the result. It is opt-in and billable:

STENO_LIVE_CLEANUP=1 STENO_LIVE_CLEANUP_KEY=<provider key> swift test --filter liveCleanupCorpus
Variable Effect
STENO_LIVE_CLEANUP_MODEL A model ID from steno models, with its provider and settings, in place of the saved one.
STENO_LIVE_CLEANUP_PRINT=1 Print every output.
STENO_LIVE_CLEANUP_CASES A JSON file of your own cases, kept outside the repository.
STENO_LIVE_CLEANUP_NO_CACHE=1 Turn off Anthropic prompt caching.
STENO_LIVE_CLEANUP_LATENCY=1 With --filter liveCleanupLatency, compare cached and uncached requests.

A case needs name and raw, and can add style, vocabulary, contains, excludes, exactExcludes (case-sensitive), capitalized, question, minWords, maxWords, screenTerms and instructions. Saved custom instructions never apply to the corpus; a case brings its own. Keep real dictations out of the repository.