This file provides guidance to AI agents when working with code in this repository.
Single source of truth: This file is a concise pointer document. All authoritative architecture, coding rules, commands, and conventions live in CLAUDE.md at the project root. Read that file first.
Go backend + monorepo frontend (pnpm workspaces + Turborepo) with shared packages.
server/— Go backend (Chi router, sqlc, gorilla/websocket)apps/web/— Next.js frontend (App Router)apps/desktop/— Electron desktop apppackages/core/— Headless business logic (Zustand stores, React Query hooks, API client)packages/ui/— Atomic UI components (shadcn/Base UI, zero business logic)packages/views/— Shared business pages/componentspackages/tsconfig/— Shared TypeScript config
- React Query owns all server state (issues, members, agents, inbox, workspace list)
- Zustand owns all client state (current workspace selection, view filters, drafts, modals)
- All Zustand stores live in
packages/core/— never inpackages/views/or app directories - WS events invalidate React Query — never write directly to stores
packages/core/— zero react-dom, zero localStorage, zero process.envpackages/ui/— zero@multica/coreimportspackages/views/— zeronext/*, zeroreact-router-dom, useNavigationAdapterfor routingapps/web/platform/— only place for Next.js APIs
make dev # Auto-setup + start everything
pnpm typecheck # TypeScript check
pnpm test # TS unit tests (Vitest)
make test # Go tests
make check # Full verification pipelineSee CLAUDE.md for the complete command reference.