Getting Started

Reef: continual learning for AI agents

Reef sits between an agent and its model. It records each model exchange and the feedback on it, such as a test result, a grader score or a user rating. A recipe turns that feedback into a new version of the model weights or of the agent's harness: its rules, prompts, skills and code. Reef evaluates and saves each version, decides which one serves, and records which version gave each response.

The harness sends requests and feedback through Reef. Reef returns model responses and publishes new versions. The harness sends requests and feedback through Reef. Reef returns model responses and publishes new versions.

Where to go #

Six guides cover Reef from the first call to production:

  1. Use Reef: one workload through the whole loop, from a model call to a trained version that serves.

  2. Write a recipe: define your own training method as four classes, each with a base class that says what to implement.

  3. Evolve a model: the four classes of a weight recipe, with SDFT.

  4. Evolve a harness: the four classes of a harness recipe, with GEPA.

  5. Connect an agent: any OpenAI-compatible client, the Python client, or a coding agent, and the adapters.

  6. Run Reef in production: the processes, the state, the training, the serving and the sandboxes.

To look something up, use the recipes, the settings, the services and the HTTP API.