Ai! Jack!v2026.04.01-f12
← 홈GitHub 라이징

Human-Agent-Society/reef

원문 보기
★ 72947 forksPython중국

AI 분석

•에이전트의 추론·피드백·학습·버전별 배포를 연결하는 인프라 → 지속적인 자기 개선 지원
•Slime·SGLang 기반 가중치 학습뿐 아니라 프롬프트·규칙·Skills 개선까지 포괄하는 범위
•자동 개선의 효과를 판단할 평가 체계와 성능 퇴행을 막을 배포 통제 필요

Continual learning infra for self-improving agents

검증 정보

출처
github.com
피드
GitHub 라이징
수집/분석 기준
2026. 9. 8. 오전 9:00
원문 확인
원문 열기

본문

Continual learning infra for self-improving agents

[](https://github.com/Human-Agent-Society/reef/actions/workflows/ci.yml)

[](https://pypi.org/project/reef-infra/)

[](pyproject.toml)

[](LICENSE)

English | [中文](README.zh.md)

Reef is the first open-source infrastructure for continual self-improving agents.

It connects agent inference, feedback, learning, and versioned delivery. Use it

to train model weights with Slime and SGLang, or improve an agent's harness, including its prompts, rules, and skills.

**[Get started](https://reefinfra.ai/docs/getting-started/quickstart/) |

[Roadmap](https://github.com/Human-Agent-Society/reef/issues/25) |

[Launch post](https://x.com/ao_qu18465/status/2094867930081337730) |

[Join Discord](https://discord.gg/5y8e5f937k) |

[Join WeChat Group](docs/community/wechat.md)**

## When to use Reef

Use Reef when you want your agent to keep improving simply by learning from how you interact with your agent.

Your goalLearning pathWhat you need
Keep getting stronger model designed for youModel weight trainingA trainable model, a supported GPU stack, and feedback your recipe can use
Get your harness to self-improveHarness optimizationA model endpoint, representative tasks, and an evaluator; no local training GPUs
Scientific discoveriesTest-time trainingAn execution environment, a correctness checker, and a measurable objective

## How Reef fits your stack

AbilityInference engine (vLLM, SGLang, …)RL training framework (Slime, veRL, AReaL, …)**Reef**
Serves live traffic✅❌✅
Trains weights❌✅✅
Version management❌❌✅
Stays live through updates❌❌✅
Evolves beyond weights (skills, harness)❌❌✅

## How it works

Reef processes each learning cycle in four steps. The table also shows which

modules implement each step.

StepWhat happensWhere it lives

| 1 · Serve | Serve agent requests and record interactions. | [service/](reef/service) — agent requests and interaction records

[runtime/](reef/runtime) — inference and artifact updates |

| 2 · Observe | Match feedback to recorded interactions. | [records.py](reef/records.py) — stored interactions and feedback

[train/processors/](reef/train/processors) — feedback matching and eligibility |

| 3 · Grow | Produce an update from eligible records. | [recipe/](reef/recipe) — recipe integration

[train/](reef/train) — batches and update jobs |

| 4 · Commit | Apply the configured selection policy and publish accepted updates. | [train/evaluation/](reef/train/evaluation) — candidate evaluation

[artifact/](reef/artifact) — version history

[surface/](reef/surface) — artifact delivery |

## Installation

💡 Note

>

Reef's artifact and checkpoint functionality requires the git-lfs system
package. Reef initializes Git LFS locally for its artifact repositories.

We recommend [uv](https://docs.astral.sh/uv/) for managing packages, and the

commands below use it.

### From PyPI

uv venv && source .venv/bin/activate
uv pip install reef-infra
python3 -c "import reef; print(reef.__version__)"

### From source

git lfs install
git clone https://github.com/Human-Agent-Society/reef.git
cd reef
uv venv && source .venv/bin/activate
uv pip install -e .
python3 -c "import reef; print(reef.__version__)"

Use the source checkout for development and for the training examples below.

## Using Reef

Reef supports two learning surfaces: model weights and agent harnesses.

The deployment's recipe determines which surface its scenarios update.

### Weight-training deployment

#### Start the deployment

The following example starts the SAO (arXiv:2607.07508) example deployment. Run it

from a Reef checkout in an environment that satisfies the GPU requirements in

[Evolve your model](https://reefinfra.ai/docs/user-guide/evolve-your-model/).

uv pip install -e ".[slime]" && uv pip install --no-deps --group runtime

export MODEL_PATH="Qwen/Qwen2.5-1.5B-Instruct"
export REEF_TOKEN="reef-local"

reef serve -c recipes/sao/examples/sao/serve.yaml \
  --reef.model_path "$MODEL_PATH" \
  --reef.port "8900"

curl -f http://127.0.0.1:8900/healthz          # ready to serve

#### Send an inference request and report feedback

Send inference requests through Reef and report a score for each response. The

SAO recipe uses each eligible scored rollout to run a training step.

Reef's inference endpoint is OpenAI- and Anthropic-compatible: /v1/chat/completions

and /v1/messages take the provider's own request body. A request includes the

x-reef-scenario header; a new name creates a scenario using the deployment's

configured recipe. Requests do not select recipes.

The response body uses the provider's OpenAI-compatible format. Reef adds the

x-reef-agent-record-id response header. Its value is the receipt that a

관련 아이템