This repository supports multiple coding agents. Keep this file short and use it as the neutral, agent-agnostic entrypoint.
For the complete issue-to-release procedure, read docs/reference/development-workflow.md before starting work. Claude Code users should additionally read CLAUDE.md for Claude-specific automation and skills.
- AIWatch is a React + Vite frontend with Vercel Edge Functions and a Cloudflare Worker backend.
- The repo is TypeScript/JavaScript, with tests in Vitest and Playwright.
- The worker code lives under
worker/; the main frontend lives undersrc/.
- Install root dependencies with
npm install. - Install worker dependencies with
cd worker && npm install. - Use Node.js 20+.
npm run devfor the frontend dev server.npm run dev:workerfor the worker dev server.npm run dev:allto run both locally.npm run buildfor the production frontend build.npm run lintfor ESLint.npm run test:srcfor frontend unit tests.npm run test:workerfor worker unit tests.npm testfor Playwright end-to-end tests.
- Keep changes small and focused.
- Prefer existing project patterns over new abstractions.
- Update tests when behavior changes.
- Do not introduce unrelated refactors.
- For UI changes, verify both desktop and mobile behavior.
- For worker or external API changes, check the relevant runtime and test coverage.
- Follow the existing file conventions in the touched area.
- Keep markdown concise and factual.
- Use the project’s existing design tokens and utilities instead of ad hoc styling.
- Add comments only when the code would otherwise be hard to follow.
- Frontend environment variables live in
.env.example. - Worker local variables live in
worker/.dev.vars.example. - Do not commit secrets or local machine configuration.
- Read
README.mdfor setup and commands. - Read
CONTRIBUTING.mdfor contribution workflow. - Read the relevant
docs/reference/*file for subsystem-specific rules.