# AGENTS.md

《深入理解 AI Agent：设计原理与工程实践》（李博杰 著）开源主仓库：全书正文、编译版 PDF 与按章配套代码

## Setup

```
uv sync
```

## Commands

```
ruff check .   # lint
```

## Layout

- `chapter9/` 1063 source files
- `chapter5/` 257 source files
- `chapter3/` 226 source files
- `chapter2/` 223 source files
- `chapter4/` 144 source files
- `chapter6/` 117 source files

## Conventions

- Tests live alongside the code they cover, following `book-ar/test_svg_lib.py`.
- CI defines what passing means. See `.github/workflows/build-latest.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

## Gotchas

- `chapter2/prompt-engineering/tau_bench/envs/retail/tasks_train.py` is 461KB. 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.
