Thanks for helping! The codebase is deliberately modular — most contributions touch exactly one file plus a registry entry.
npm install
cp .env.example .env # optional: dev keys; users normally use the keychain
npm run dev # electron-vite with HMRChecks (CI runs all of these):
npm run typecheck
npm run lint
npm test
npm run buildsrc/main/ Electron main: windows, IPC, hotkeys
src/main/services/llm/ LLM providers (anthropic, openai, gemini, ollama, openai-compatible)
src/main/services/stt/ STT providers (connection descriptors; keys stay in main)
src/main/services/ profiles, prompt-builder, knowledge, settings, secrets
src/preload/ typed contextBridge API (window.unseen)
src/renderer/overlay/ the floating copilot: transcript store, trigger engine,
STT client (reconnect machine), React UI
src/renderer/settings/ settings window
src/shared/ types, IPC channel names, profile schema, template engine
profiles/ built-in profile YAMLs
tests/ vitest unit tests for the pure modules
- A new profile — one YAML in
profiles/, no code. Schema:docs/profiles.md. - Price table updates —
src/main/services/llm/prices.ts. - A trigger detector — pure function in
src/renderer/overlay/trigger-engine/detectors.ts+ name insrc/shared/profile-schema.ts+ tests. - An LLM provider — implement
LlmProviderin one file, register it inregistry.ts. Guide:docs/extending/llm-provider.md. - An STT provider — main-side descriptor + renderer-side parser. Guide:
docs/extending/stt-provider.md.
- TypeScript strict;
npm run lintandnpm testmust pass. - Pure logic (triggers, transcript, prompt building, parsers) gets unit tests.
- No telemetry, no network calls beyond the user's chosen providers.
- API keys never leave the main process; never log them.
- Keep PRs focused; one change per PR.