# AGENTS.md

Universal memory layer for AI Agents

## Setup

```
poetry install
```

## Commands

```
make install
make install_all
make format        # format
make sort
make lint          # lint
make docs
```

## Layout

- `mem0-ts/`      222 source files
- `integrations/` 210 source files
- `mem0/`         148 source files
- `server/`       128 source files
- `examples/`     115 source files
- `tests/`        102 source files

## Conventions

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

## Gotchas

- `mem0-ts/src/oss/tests/vector-stores-compat.test.ts` is 177KB. 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.
