This document is the repo-level quick-start for coding agents. Use it for project orientation, quality gates, and safe editing workflow.
AGENTS.mdis the source of truth.CLAUDE.mdmust be a symbolic link toAGENTS.md.- Never edit
CLAUDE.mddirectly. Always updateAGENTS.md.
- Project: switch-operator
- Workspace: pnpm workspaces (
apps/,packages/,tooling/) - App workspaces:
apps/operator(Cloudflare Worker with Hono),apps/browser-scraper(Cloudflare Worker),apps/alerts(scheduled Cloudflare Worker) - Package workspaces:
packages/http-client,packages/logger,packages/telegram,packages/url-validator - Shared tooling configs:
tooling/eslint,tooling/prettier,tooling/typescript - Package manager:
pnpm(lockfile:pnpm-lock.yaml) - Required Node version:
24.12.0(from.nvmrc)
Run from project root.
- Install dependencies:
pnpm install - Dev:
pnpm dev - Build:
pnpm build - Typecheck:
pnpm typecheck - Lint:
pnpm lint - Test:
pnpm test - Operator webhook helper:
pnpm --filter @repo/operator set-webhook <url> [-- --prod] - Format all files:
pnpm format - Format check:
pnpm format:check
CI enforces the following on PRs and main:
typechecklintformat:checktest
- TypeScript strict mode
- ESLint (type-aware)
- Prettier
- Prefer minimal, targeted edits and preserve existing architecture patterns
- Read
AGENTS.mdbefore starting work. - Make minimal, targeted edits.
- Run checks:
pnpm typecheck,pnpm lint,pnpm format:check,pnpm test. - Update docs if architecture or behavior changed.