# AGENTS.md

AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs

## Setup

```
pnpm install
```

## Commands

```
pnpm dev                 # run locally
pnpm start               # run the app
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 format              # format
pnpm download:binaries
```

## Layout

- `src/`        5081 source files
- `packages/`   2028 source files
- `scripts/`    62 source files
- `tests/`      34 source files
- `migrations/` 18 source files
- `resources/`  16 source files

## Conventions

- Tests live alongside the code they cover, following `packages/ai-sdk-provider/src/__tests__/openai-compatible-reranking-model.test.ts`.
- TypeScript is not in strict mode. Turning it on catches a whole class of mistakes before they run.
- CI defines what passing means. See `.github/workflows/auto-update-catalog.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

## Gotchas

- Generated output is committed (`build/`). Search will return the compiled copy, so edit the source, not that.
- `packages/ui/src/components/icons/providers/dangbei/light.tsx` is 690KB. 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.
