uv sync and npm install at the repo root install everything, including a git pre-commit hook. npm run dev starts the backend and the dashboard.
npm run check runs every check:
- Python: ruff (lint and format), pyright, and pytest with 80% coverage
- TypeScript: ESLint, Prettier, tsc, and vitest with 80% coverage
- Playwright end-to-end tests
The pre-commit hook runs the format, lint, type and unit test checks on every commit.
When asked to plan, as in "Please plan the pilot", write the plan to docs/PLAN.md and write no code.
- Split the work into phases, usually 5 or 6, each building on the last.
- Give each phase detailed success criteria that you can verify yourself: tests that pass, commands and their output, API calls and their responses, and pages you check in the browser with the Playwright MCP server. Write each one as a checkbox.
- Then stop and wait until you are asked to implement the plan.
When asked to implement the plan, as in "Please implement the plan for the pilot", build every phase in order without stopping. For each phase:
- Build it, with tests.
- Check every success criterion and fix whatever fails.
- Tick off its criteria in
docs/PLAN.mdand updatedocs/STATUS.md. - Commit. The pre-commit hook runs the checks; if it fails, fix the problem and commit again.
When the last phase is done, run npm run check and report the results.
- Add tests with each change. Tests never call a model; use a stub model.
- Outside a plan, commit each change once you have checked it.
- Run
npm run checkbefore you hand work over. - Never use
git commit --no-verify. - Never lower a threshold, turn off a rule or exclude a file to get a green run. If a rule looks wrong, stop and ask.
- Keep
docs/STATUS.mdup to date. - Never push.
- Don't open
data/evals/unless you're asked to. - Everything must work on Windows: write
package.jsonscripts asuv runcommands or.mjsfiles.