# AGENTS.md

TiDB is built for agentic workloads that grow unpredictably, with ACID guarantees and native support for transactions, analytics, and vector search. No data silos. No noisy neighbors. No infrastructure ceiling.

## Setup

```
go mod download
```

## Commands

```
make help
make help
make default
make server-admin-check
make buildsucc
make dev                  # run locally
```

## Layout

- `pkg/`       3684 source files
- `lightning/` 631 source files
- `br/`        485 source files
- `tests/`     128 source files
- `dumpling/`  116 source files
- `build/`     53 source files

## Conventions

- Tests live alongside the code they cover, following `br/COMPATIBILITY_TEST.md`.
- CI defines what passing means. See `.github/workflows/bazel-build-crossbuild.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.
- `pkg/parser/parser.go` is 8001KB. 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.
