Follow AGENTS.md for context pointers, architecture invariants, commands, and documentation standards.
pnpm --dir frontend exec vitest run src/path/to/file.test.ts
pnpm --dir frontend exec vitest run -t "test name"
cargo test -p agents test_name
pnpm run electron:check && pnpm run electron:test- Path aliases:
@→frontend/src,shared→shared/. qa-modefeature:pnpm run lintcompiles Rust with--features qa-mode(QaMock); keep code compiling under both default andqa-modefeatures.- SQLx offline metadata: Install
sqlx-clionce (cargo install sqlx-cli --no-default-features --features sqlite) before runningpnpm run prepare-db. - TLS initialization order:
install_rustls_crypto_providerruns once at startup (reqwestuses no-provider mode); construct TLS clients only after startup initialization. - Dynamic dev ports:
scripts/run-electron-dev.jswrites runtime ports to local.dev-ports.json(gitignored); keep local secrets in.envfiles only. - UI & styling: Read
DESIGN.mdandfrontend/CLAUDE.mdwhen modifying frontend UI or CSS. - Documentation discipline: Always write current-state truth in place, delete retired docs, avoid historical fluff, and keep
docs/INDEX.mdin sync (seeAGENTS.md).