Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 1.71 KB

File metadata and controls

59 lines (43 loc) · 1.71 KB

AGENTS.md

Purpose

This document is the repo-level quick-start for coding agents. Use it for project orientation, quality gates, and safe editing workflow.

Canonical File

  • AGENTS.md is the source of truth.
  • CLAUDE.md must be a symbolic link to AGENTS.md.
  • Never edit CLAUDE.md directly. Always update AGENTS.md.

Project Snapshot

  • 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)

Commands

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

Quality Gates

CI enforces the following on PRs and main:

  • typecheck
  • lint
  • format:check
  • test

Repo Standards

  • TypeScript strict mode
  • ESLint (type-aware)
  • Prettier
  • Prefer minimal, targeted edits and preserve existing architecture patterns

Safe Agent Workflow

  1. Read AGENTS.md before starting work.
  2. Make minimal, targeted edits.
  3. Run checks: pnpm typecheck, pnpm lint, pnpm format:check, pnpm test.
  4. Update docs if architecture or behavior changed.