# AGENTS.md

Self-hosted AI workspace. 

## Setup

```
npm ci
```

## Commands

```
pytest   # run the test suite
```

## Layout

- `tests/`    842 source files
- `static/`   161 source files
- `src/`      149 source files
- `routes/`   86 source files
- `services/` 40 source files
- `scripts/`  23 source files

## Conventions

- Tests live alongside the code they cover, following `specs/_readme.md`.
- 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

- `static/js/document.js` is 492KB. It will not fit comfortably in context, so read it in parts.
- Copy `.env.example` before running anything that needs configuration.

---

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.
