# AGENTS.md

Developer-first error tracking and performance monitoring

## 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 typecheck            # type check without emitting
pnpm lint                 # lint
pnpm type-coverage
pnpm type-coverage-diff
pnpm test-ci
```

## Layout

- `static/`   8874 source files
- `src/`      4609 source files
- `tests/`    3256 source files
- `fixtures/` 105 source files
- `tools/`    19 source files
- `scripts/`  16 source files

## Conventions

- Tests live alongside the code they cover, following `.github/workflows/scripts/fixtures/test_find_test_imports/test_importer.py`.
- 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/acceptance.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

## Gotchas

- `src/sentry/api/helpers/android_models.py` is 780KB. 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.
