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.
Where to go #
Six guides cover Reef from the first call to production:
-
Use Reef: one workload through the whole loop, from a model call to a trained version that serves.
-
Write a recipe: define your own training method as four classes, each with a base class that says what to implement.
-
Evolve a model: the four classes of a weight recipe, with SDFT.
-
Evolve a harness: the four classes of a harness recipe, with GEPA.
-
Connect an agent: any OpenAI-compatible client, the Python client, or a coding agent, and the adapters.
-
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.