# AGENTS.md

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

## Setup

```
pnpm install
```

## Commands

```
pnpm dev                            # run locally
pnpm check                          # lint and type check
pnpm check:fix
pnpm knip
pnpm knip:production
pnpm knip:production-unused-check
pnpm prepare
pnpm lint:oxlint
```

## Layout

- `web/`        6124 source files
- `api/`        3354 source files
- `packages/`   350 source files
- `cli/`        338 source files
- `dify-agent/` 240 source files
- `e2e/`        104 source files

## Conventions

- Tests live alongside the code they cover, following `.github/workflows/db-migration-test.yml`.
- CI defines what passing means. See `.github/workflows/accessibility-e2e.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

## Gotchas

- `web/public/vs/language/typescript/tsWorker.js` is 5615KB. 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.
