# AGENTS.md

Spec-driven development (SDD) for AI coding assistants.

## Setup

```
pnpm install
```

## Commands

```
pnpm dev                   # run locally
pnpm build                 # produce a build
pnpm test                  # run the test suite, must pass before any commit
pnpm lint                  # lint
pnpm generate:skills
pnpm regen:parity-hashes
pnpm dev:cli
pnpm test:watch
```

## Layout

- `src/`     186 source files
- `test/`    146 source files
- `website/` 28 source files
- `scripts/` 6 source files
- `bin/`     1 source file

## Conventions

- Tests live alongside the code they cover, following `openspec/changes/add-change-stacking-awareness/specs/change-creation/spec.md`.
- TypeScript runs in strict mode. Type errors are the fastest feedback available, so do not weaken it.
- CI defines what passing means. See `.github/workflows/ci.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

## Gotchas

- `test/core/archive.test.ts` is 299KB. It will not fit comfortably in context, so read it in parts.

---

Drafted by agentreadme.com from what is in this repository. Everything marked TODO
needs a human. Check it in as AGENTS.md at the root.
