AGENTS.md
Instructions for coding agents working in this repository. Keep this file short and specific; agents read it at the start of every session.
Project overview
- What this is:
- Main languages and frameworks: <e.g. TypeScript, React, Node 22>
- Entry points: <e.g. src/server/index.ts, src/web/main.tsx>
Setup and commands
- Install:
<npm ci> - Build:
<npm run build> - Test (all):
<npm test> - Test (single file):
<npm test -- path/to/file.test.ts> - Lint and format:
<npm run lint && npm run format:check> - Type check:
<npm run typecheck>
Run the relevant tests and the linter after every change, and report the results.
Code conventions
- Follow the existing style in the file you edit; do not reformat unrelated code.
- Prefer small, focused changes. One logical change per commit.
- Add or update tests for every behavior change.
- No new dependencies without asking first.
Boundaries
- Never edit:
<generated/>,<migrations/ already applied>, lockfiles (except via the package manager). - Never commit secrets. Configuration comes from environment variables documented in
.env.example. - Ask before: deleting files, changing public APIs, touching CI configuration.
Pull requests
- Title:
<area>: <what changed> - Description: what, why, how it was tested.
Code Review Rules
- Flag missing tests for changed behavior.
- Flag unhandled errors in I/O code paths.