Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.16 KB

File metadata and controls

24 lines (16 loc) · 1.16 KB

Agent instructions (Taking Notes Agent)

Stack

  • Electron + electron-vite + React 18 + TypeScript (strict).
  • Zod for runtime validation (templates, IPC payloads where applicable).
  • better-sqlite3 in the main process only; preload exposes a minimal typed window.api.

Cost / LLM tokens

Code style

  • Never nester: prefer early returns and small functions; avoid deep if/else pyramids.
  • DRY: one source of truth for template field metadata (templateFormMeta.ts + Zod schemas).
  • React: function components + hooks; split UI vs effects; avoid premature memo/useCallback.
  • TypeScript: no any; validate external JSON (LLM) with Zod before use.
  • Electron security: keep contextIsolation: true, avoid exposing raw Node APIs to the renderer.

UI

  • Semantic HTML, labels on inputs, keyboard-friendly controls.
  • Clear loading / error / empty states for async work (recording, processing, email).