This document is the repo-level quick-start for coding agents. Use it for monorepo orientation, shared 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.
- Monorepo: pnpm workspaces (
apps/,packages/,tooling/) - App workspaces: Rehoboam UI in
apps/ui, Cloudflare Worker API inapps/api, and Cloudflare Worker Jobs inapps/jobs - Package manager:
pnpm(lockfile:pnpm-lock.yaml) - Required Node version:
24.12.0(from.nvmrc)
- App workspaces:
apps/ui,apps/api,apps/jobs - Shared packages:
packages/* - Shared tooling configs:
tooling/eslint,tooling/prettier,tooling/typescript - Architecture and project docs:
docs/
- Web app detailed guidance lives in
apps/ui/AGENTS.md. - API app guidance lives in
apps/api/AGENTS.md. - Jobs app guidance lives in
apps/jobs/AGENTS.md. - Before changing a workspace, read its local
AGENTS.mdif present.
Run from repo root unless noted.
- Install dependencies:
pnpm install - Dev (all workspaces):
pnpm dev - Build (all workspaces):
pnpm build - Typecheck (all workspaces):
pnpm typecheck - Lint (all workspaces):
pnpm lint - Test (all workspaces):
pnpm test - Format all files:
pnpm format - Format check:
pnpm format:check - Run one workspace command:
pnpm --filter <workspace> <script>
CI enforces the following on PRs and main:
typechecklintformat:checktest
Workflows: .github/workflows/feature.yml and .github/workflows/main.yml.
- TypeScript strict mode via
@repo/typescript - ESLint rules via
@repo/eslint(type-aware) - Prettier rules via
@repo/prettier - Prefer minimal, targeted edits and preserve existing architecture patterns
- Keep docs in
docs/aligned with behavior and architecture changes
- Identify target workspace(s) and read local
AGENTS.mdguidance. - Make minimal edits in the correct workspace.
- Run checks for touched scope (
pnpm --filter <workspace> typecheck lint testwhen possible). - Run root checks when changes span multiple workspaces.
- Update docs if architecture or behavior changed.