"<!DOCTYPE html>\n<html lang=\"zh\" data-theme=\"light\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>README_20261014.md — Vercel Design System</title>\n<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>\n<link href=\"https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap\" rel=\"stylesheet\">\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css\">\n<style>\n\n:root {\n  /* Vercel Palette */\n  --geist-foreground: #171717;\n  --geist-background: #ffffff;\n  --geist-secondary: #4d4d4d;\n  --geist-tertiary: #666666;\n  --geist-quaternary: #808080;\n  --geist-border: #ebebeb;\n  --geist-surface-tint: #fafafa;\n  \n  /* Workflow Accents */\n  --develop-blue: #0a72ef;\n  --preview-pink: #de1d8d;\n  --ship-red: #ff5b4f;\n  \n  /* Interactive & Status */\n  --link-blue: #0072f5;\n  --ds-focus-color: hsla(212, 100%, 48%, 1);\n  --badge-blue-bg: #ebf5ff;\n  --badge-blue-text: #0068d6;\n  \n  /* Shadow-as-Border Philosophy */\n  --shadow-border: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;\n  --shadow-border-hover: rgba(0, 0, 0, 0.16) 0px 0px 0px 1px;\n  --shadow-card: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 2px, #fafafa 0px 0px 0px 1px;\n  --shadow-card-hover: rgba(0, 0, 0, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.06) 0px 4px 6px, #fafafa 0px 0px 0px 1px;\n  --shadow-card-full: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 2px, rgba(0, 0, 0, 0.04) 0px 8px 8px -8px, #fafafa 0px 0px 0px 1px;\n  --shadow-ring: rgb(235, 235, 235) 0px 0px 0px 1px;\n  \n  /* Radius Scale */\n  --radius-xs: 2px;\n  --radius-sm: 4px;\n  --radius-md: 6px;\n  --radius-lg: 8px;\n  --radius-xl: 12px;\n  --radius-pill: 9999px;\n}\n\n[data-theme=\"dark\"] {\n  --geist-foreground: #ededed;\n  --geist-background: #000000;\n  --geist-secondary: #a1a1a1;\n  --geist-tertiary: #888888;\n  --geist-quaternary: #666666;\n  --geist-border: #222222;\n  --geist-surface-tint: #0a0a0a;\n  \n  --shadow-border: rgba(255, 255, 255, 0.14) 0px 0px 0px 1px;\n  --shadow-border-hover: rgba(255, 255, 255, 0.28) 0px 0px 0px 1px;\n  --shadow-card: rgba(255, 255, 255, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.4) 0px 2px 4px, #111111 0px 0px 0px 1px;\n  --shadow-card-hover: rgba(255, 255, 255, 0.2) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 6px 12px, #111111 0px 0px 0px 1px;\n  --shadow-card-full: rgba(255, 255, 255, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 8px 16px -4px, #111111 0px 0px 0px 1px;\n  --shadow-ring: rgb(40, 40, 40) 0px 0px 0px 1px;\n  \n  --badge-blue-bg: rgba(10, 114, 239, 0.15);\n  --badge-blue-text: #70b5ff;\n}\n\n* { box-sizing: border-box; }\nhtml { scroll-behavior: smooth; }\nbody {\n  margin: 0;\n  font-family: \"Geist\", Arial, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n  background-color: var(--geist-background);\n  color: var(--geist-foreground);\n  font-feature-settings: \"liga\" 1;\n  -webkit-font-smoothing: antialiased;\n  min-height: 100vh;\n}\n\na {\n  color: inherit;\n  text-decoration: none;\n  transition: color 0.15s ease;\n}\n\n/* 导航栏 (Vercel Clean Sticky Nav) */\n.vercel-nav {\n  position: sticky;\n  top: 0;\n  background-color: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  z-index: 100;\n  padding: 0 24px;\n  height: 64px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n}\n.nav-brand {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n.vercel-triangle {\n  width: 22px;\n  height: 19px;\n  fill: var(--geist-foreground);\n}\n.nav-title {\n  font-size: 16px;\n  font-weight: 600;\n  letter-spacing: -0.32px;\n  color: var(--geist-foreground);\n}\n.nav-badge-pill {\n  font-family: \"Geist Mono\", ui-monospace, monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  background: var(--badge-blue-bg);\n  color: var(--badge-blue-text);\n  padding: 2px 8px;\n  border-radius: var(--radius-pill);\n}\n\n.nav-links {\n  display: flex;\n  align-items: center;\n  gap: 24px;\n}\n.nav-link {\n  font-size: 14px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  text-decoration: none;\n  transition: color 0.15s;\n}\n.nav-link:hover, .nav-link.active {\n  color: var(--geist-foreground);\n}\n.nav-link.active {\n  font-weight: 600;\n}\n\n.nav-actions {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n\n/* 按钮规范 */\n.btn-primary-dark {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border: none;\n  padding: 8px 16px;\n  border-radius: var(--radius-md);\n  font-size: 14px;\n  font-weight: 500;\n  cursor: pointer;\n  text-decoration: none;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  transition: opacity 0.15s;\n}\n.btn-primary-dark:hover {\n  opacity: 0.9;\n}\n.btn-secondary-white {\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  box-shadow: var(--shadow-border);\n  border: none;\n  padding: 8px 16px;\n  border-radius: var(--radius-md);\n  font-size: 14px;\n  font-weight: 500;\n  cursor: pointer;\n  text-decoration: none;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  transition: background 0.15s, box-shadow 0.15s;\n}\n.btn-secondary-white:hover {\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border-hover);\n}\n.theme-toggle-btn {\n  background: transparent;\n  border: none;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  width: 36px;\n  height: 36px;\n  cursor: pointer;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  color: var(--geist-foreground);\n}\n\n/* 核心容器 */\n.vercel-container {\n  max-width: 1200px;\n  margin: 0 auto;\n  padding: 56px 24px 100px;\n}\n\n/* Hero Section (Gallery Emptiness + Negative Letter-spacing) */\n.vercel-hero {\n  text-align: center;\n  max-width: 860px;\n  margin: 0 auto 56px;\n}\n.hero-stage-badge {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  padding: 4px 14px;\n  border-radius: var(--radius-pill);\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  margin-bottom: 24px;\n}\n.stage-dot {\n  width: 7px;\n  height: 7px;\n  border-radius: 50%;\n}\n.vercel-hero h1 {\n  font-size: 48px;\n  font-weight: 600;\n  line-height: 1.05;\n  letter-spacing: -2.4px;\n  color: var(--geist-foreground);\n  margin: 0 0 16px;\n}\n.vercel-hero p {\n  font-size: 20px;\n  font-weight: 400;\n  line-height: 1.80;\n  color: var(--geist-secondary);\n  margin: 0 auto 28px;\n}\n\n/* Workflow Pipeline (Develop -> Preview -> Ship) */\n.workflow-pipeline {\n  display: grid;\n  grid-template-columns: repeat(3, 1fr);\n  gap: 16px;\n  margin-bottom: 48px;\n}\n@media (max-width: 768px) {\n  .workflow-pipeline { grid-template-columns: 1fr; }\n}\n.workflow-step {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px 22px;\n  transition: box-shadow 0.2s;\n}\n.workflow-step:hover {\n  box-shadow: var(--shadow-card-hover);\n}\n.step-mono-label {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 12px;\n  font-weight: 500;\n  text-transform: uppercase;\n  letter-spacing: 0.5px;\n  margin-bottom: 8px;\n  display: flex;\n  align-items: center;\n  gap: 6px;\n}\n.step-title {\n  font-size: 20px;\n  font-weight: 600;\n  letter-spacing: -0.96px;\n  color: var(--geist-foreground);\n  margin-bottom: 6px;\n}\n.step-desc {\n  font-size: 14px;\n  color: var(--geist-secondary);\n  line-height: 1.5;\n}\n\n/* Metric Cards (Section 4 Spec) */\n.metric-grid {\n  display: grid;\n  grid-template-columns: repeat(4, 1fr);\n  gap: 16px;\n  margin-bottom: 48px;\n}\n@media (max-width: 900px) {\n  .metric-grid { grid-template-columns: repeat(2, 1fr); }\n}\n.metric-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n}\n.metric-number {\n  font-size: 40px;\n  font-weight: 600;\n  line-height: 1.0;\n  letter-spacing: -2.4px;\n  color: var(--geist-foreground);\n  margin-bottom: 8px;\n  font-feature-settings: \"tnum\" 1;\n}\n.metric-label {\n  font-size: 14px;\n  color: var(--geist-secondary);\n  line-height: 1.4;\n}\n\n/* VAD 专栏 Banner (Ship Red & Vercel Clean) */\n.vad-showcase {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-xl);\n  padding: 32px;\n  margin-bottom: 48px;\n  position: relative;\n}\n.vad-header-row {\n  display: flex;\n  align-items: baseline;\n  justify-content: space-between;\n  flex-wrap: wrap;\n  gap: 12px;\n  margin-bottom: 12px;\n}\n.vad-header-row h2 {\n  font-size: 32px;\n  font-weight: 600;\n  letter-spacing: -1.28px;\n  color: var(--geist-foreground);\n  margin: 0;\n}\n.vad-pillars-grid {\n  display: grid;\n  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));\n  gap: 14px;\n  margin-top: 24px;\n}\n.vad-pillar-item {\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  padding: 14px 16px;\n}\n.vad-pillar-title {\n  font-size: 14px;\n  font-weight: 600;\n  color: var(--ship-red);\n  margin-bottom: 4px;\n}\n.vad-pillar-text {\n  font-size: 13px;\n  color: var(--geist-secondary);\n  line-height: 1.5;\n}\n.vad-filter-bar {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px;\n  margin: 24px 0 16px;\n  padding: 12px 16px;\n  background: var(--geist-surface-tint);\n  border-radius: var(--radius-md);\n  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);\n}\n.vad-filter-btn {\n  font-family: 'Geist', sans-serif;\n  font-size: 13px;\n  font-weight: 500;\n  padding: 6px 14px;\n  border-radius: 9999px;\n  border: none;\n  background: transparent;\n  color: var(--geist-secondary);\n  cursor: pointer;\n  transition: all 0.15s ease;\n}\n.vad-filter-btn:hover {\n  color: var(--geist-foreground);\n  background: rgba(0,0,0,0.05);\n}\n.vad-filter-btn.active {\n  background: #171717;\n  color: #ffffff;\n}\n.vad-search-input {\n  font-family: 'Geist', sans-serif;\n  font-size: 13px;\n  padding: 7px 12px;\n  border-radius: 6px;\n  border: 1px solid var(--geist-border);\n  background: #ffffff;\n  color: var(--geist-foreground);\n  width: 280px;\n  outline: none;\n  transition: border-color 0.15s, box-shadow 0.15s;\n}\n.vad-search-input:focus {\n  border-color: #0a72ef;\n  box-shadow: 0 0 0 2px rgba(10, 114, 239, 0.2);\n}\n\n/* 控制栏：搜索、视图、筛选 */\n.control-bar {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  margin-bottom: 24px;\n  flex-wrap: wrap;\n}\n.search-input-wrap {\n  position: relative;\n  flex: 1;\n  max-width: 480px;\n}\n.search-input {\n  width: 100%;\n  height: 40px;\n  padding: 0 38px 0 14px;\n  font-family: \"Geist\", sans-serif;\n  font-size: 14px;\n  color: var(--geist-foreground);\n  background: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  border: none;\n  border-radius: var(--radius-md);\n  outline: none;\n  transition: box-shadow 0.15s;\n}\n.search-input:focus {\n  outline: 2px solid var(--ds-focus-color);\n  box-shadow: none;\n}\n.search-kbd {\n  position: absolute;\n  right: 12px;\n  top: 50%;\n  transform: translateY(-50%);\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  color: var(--geist-quaternary);\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  padding: 2px 6px;\n  border-radius: var(--radius-sm);\n}\n\n.view-switcher {\n  display: flex;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  background: var(--geist-background);\n  padding: 2px;\n}\n.view-btn {\n  background: transparent;\n  border: none;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-tertiary);\n  padding: 6px 12px;\n  border-radius: var(--radius-sm);\n  cursor: pointer;\n  transition: color 0.15s, background 0.15s;\n}\n.view-btn.active {\n  background: var(--geist-surface-tint);\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n/* 筛选芯片行 (Filter Pill Strip) */\n.filter-group-strip {\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  margin-bottom: 28px;\n  padding: 16px 20px;\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-lg);\n}\n.filter-row {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  flex-wrap: wrap;\n}\n.filter-label-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  color: var(--geist-quaternary);\n  min-width: 68px;\n}\n.pill-badge {\n  background: var(--geist-background);\n  color: var(--geist-secondary);\n  box-shadow: var(--shadow-border);\n  border: none;\n  padding: 3px 12px;\n  border-radius: var(--radius-pill);\n  font-size: 12px;\n  font-weight: 500;\n  cursor: pointer;\n  transition: all 0.15s;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n}\n.pill-badge:hover {\n  color: var(--geist-foreground);\n  box-shadow: var(--shadow-border-hover);\n}\n.pill-badge.active {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  font-weight: 600;\n  box-shadow: none;\n}\n.pill-badge.active-blue {\n  background: var(--develop-blue);\n  color: #ffffff;\n  box-shadow: none;\n}\n.pill-badge.active-red {\n  background: var(--ship-red);\n  color: #ffffff;\n  box-shadow: none;\n}\n\n/* Bento Grid Cards (Section 4 & 6 Spec) */\n.card-grid-bento {\n  display: grid;\n  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));\n  gap: 16px;\n}\n.vercel-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  transition: box-shadow 0.2s, transform 0.2s;\n  text-decoration: none;\n  color: inherit;\n  overflow: hidden;\n  min-width: 0;\n  word-break: break-word;\n}\n.vercel-card:hover {\n  box-shadow: var(--shadow-card-hover);\n  transform: translateY(-2px);\n}\n.card-top {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  margin-bottom: 12px;\n  gap: 8px;\n}\n.card-tag-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  color: var(--geist-quaternary);\n  letter-spacing: 0.5px;\n}\n.status-pill-badge {\n  padding: 2px 8px;\n  border-radius: var(--radius-pill);\n  font-size: 11px;\n  font-weight: 500;\n  flex-shrink: 0;\n}\n.pub-accepted { background: #ebfdf2; color: #027a48; }\n.pub-workshop { background: #eff8ff; color: #175cd3; }\n.pub-submitted { background: #fff8e6; color: #b54708; }\n.pub-preprint { background: #f2f4f7; color: #475467; }\n.pub-other { background: #f9f5ff; color: #6941c6; }\n\n[data-theme=\"dark\"] .pub-accepted { background: rgba(2, 122, 72, 0.2); color: #32d583; }\n[data-theme=\"dark\"] .pub-workshop { background: rgba(23, 92, 211, 0.2); color: #84caff; }\n[data-theme=\"dark\"] .pub-submitted { background: rgba(181, 71, 8, 0.2); color: #fec84b; }\n[data-theme=\"dark\"] .pub-preprint { background: rgba(71, 84, 103, 0.2); color: #98a2b3; }\n[data-theme=\"dark\"] .pub-other { background: rgba(105, 65, 198, 0.2); color: #d6bbfb; }\n\n/* 必读标杆徽章 (Vercel Amber Accent) */\n.milestone-badge {\n  display: inline-flex;\n  align-items: center;\n  gap: 3px;\n  padding: 2px 7px;\n  border-radius: var(--radius-pill);\n  font-size: 11px;\n  font-weight: 600;\n  white-space: nowrap;\n  flex-shrink: 0;\n  transition: all 0.15s ease;\n}\n.milestone-badge.ms-idea, .milestone-badge:not([class*=\"ms-\"]) {\n  color: #b54708;\n  background: #fff8e6;\n  border: 1px solid rgba(247, 144, 9, 0.35);\n  box-shadow: 0 1px 2px rgba(181, 71, 8, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-idea, [data-theme=\"dark\"] .milestone-badge:not([class*=\"ms-\"]) {\n  color: #fec84b;\n  background: rgba(181, 71, 8, 0.22);\n  border-color: rgba(254, 200, 75, 0.35);\n}\n.milestone-badge.ms-writing {\n  color: #6941c6;\n  background: #f9f5ff;\n  border: 1px solid rgba(105, 65, 198, 0.3);\n  box-shadow: 0 1px 2px rgba(105, 65, 198, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-writing {\n  color: #d6bbfb;\n  background: rgba(105, 65, 198, 0.22);\n  border-color: rgba(214, 187, 251, 0.35);\n}\n.milestone-badge.ms-value {\n  color: #027a48;\n  background: #ebfdf2;\n  border: 1px solid rgba(2, 122, 72, 0.3);\n  box-shadow: 0 1px 2px rgba(2, 122, 72, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-value {\n  color: #32d583;\n  background: rgba(2, 122, 72, 0.22);\n  border-color: rgba(50, 213, 131, 0.35);\n}\n\n/* 论文正文图表与插图卡片样式 (Geist Design) */\n.paper-figure, .article-body figure {\n  margin: 32px auto;\n  text-align: center;\n  max-width: 100%;\n}\n.paper-figure img, .article-body img {\n  max-width: 96%;\n  height: auto;\n  border-radius: var(--radius-md);\n  border: 1px solid var(--geist-border);\n  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);\n  background: #ffffff;\n  transition: transform 0.2s ease, box-shadow 0.2s ease;\n  display: block;\n  margin: 0 auto;\n}\n.paper-figure img:hover, .article-body img:hover {\n  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);\n}\n.paper-figure figcaption, .article-body figcaption {\n  font-size: 13px;\n  color: var(--geist-secondary);\n  margin-top: 10px;\n  line-height: 1.6;\n  font-style: italic;\n  max-width: 850px;\n  margin-left: auto;\n  margin-right: auto;\n}\n\n/* VAD 视图切换器 View Switcher */\n.vad-view-switcher {\n  display: inline-flex;\n  padding: 3px;\n  background: var(--geist-secondary-bg);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  margin-bottom: 20px;\n  gap: 2px;\n}\n.view-switch-btn {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  padding: 6px 14px;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  border-radius: 6px;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.view-switch-btn:hover {\n  color: var(--geist-foreground);\n  background: rgba(0, 0, 0, 0.04);\n}\n[data-theme=\"dark\"] .view-switch-btn:hover {\n  background: rgba(255, 255, 255, 0.06);\n}\n.view-switch-btn.active {\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  font-weight: 600;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n}\n\n/* 关系图谱 Graph View Styles */\n.graph-container {\n  position: relative;\n  width: 100%;\n  height: 720px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: var(--radius-lg);\n  overflow: hidden;\n  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);\n  margin-bottom: 40px;\n}\n.graph-toolbar {\n  position: absolute;\n  top: 14px;\n  left: 14px;\n  right: 14px;\n  z-index: 10;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  padding: 8px 14px;\n  border-radius: 8px;\n  box-shadow: 0 4px 16px rgba(0,0,0,0.06);\n  flex-wrap: wrap;\n  gap: 8px;\n}\n.graph-tool-title {\n  font-size: 13px;\n  font-weight: 700;\n  display: flex;\n  align-items: center;\n  gap: 6px;\n  color: var(--geist-foreground);\n}\n.graph-filter-group {\n  display: flex;\n  gap: 6px;\n  align-items: center;\n  flex-wrap: wrap;\n}\n.graph-chip {\n  font-size: 11px;\n  padding: 3px 8px;\n  border-radius: 4px;\n  border: 1px solid var(--geist-border);\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  cursor: pointer;\n  transition: all 0.15s ease;\n}\n.graph-chip:hover { background: var(--geist-secondary-bg); }\n.graph-chip.active {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border-color: var(--geist-foreground);\n}\n.graph-search-input {\n  padding: 3px 8px;\n  font-size: 11px;\n  border-radius: 4px;\n  border: 1px solid var(--geist-border);\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  outline: none;\n  width: 150px;\n}\n#vad-graph-svg {\n  width: 100%;\n  height: 100%;\n  cursor: grab;\n}\n#vad-graph-svg:active { cursor: grabbing; }\n.graph-legend {\n  position: absolute;\n  bottom: 14px;\n  left: 14px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  padding: 10px 14px;\n  font-size: 11px;\n  box-shadow: 0 4px 16px rgba(0,0,0,0.06);\n  z-index: 10;\n  line-height: 1.6;\n  pointer-events: none;\n}\n.graph-legend-row { display: flex; align-items: center; gap: 8px; }\n.graph-legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }\n.graph-info-drawer {\n  position: absolute;\n  top: 66px;\n  right: 14px;\n  width: 310px;\n  max-height: 620px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  box-shadow: 0 8px 30px rgba(0,0,0,0.12);\n  z-index: 10;\n  padding: 16px;\n  overflow-y: auto;\n  display: none;\n  backdrop-filter: blur(10px);\n  transition: transform 0.2s ease, opacity 0.2s ease;\n}\n.graph-drawer-close {\n  position: absolute;\n  top: 10px;\n  right: 12px;\n  cursor: pointer;\n  font-size: 16px;\n  color: var(--geist-tertiary);\n}\n.graph-drawer-badge {\n  display: inline-block;\n  padding: 2px 6px;\n  border-radius: 4px;\n  font-size: 10px;\n  font-weight: 600;\n  margin-bottom: 6px;\n}\n.graph-drawer-title {\n  font-size: 13px;\n  font-weight: 700;\n  line-height: 1.4;\n  margin-bottom: 8px;\n  color: var(--geist-foreground);\n}\n.graph-drawer-meta {\n  font-size: 11px;\n  color: var(--geist-secondary);\n  margin-bottom: 12px;\n}\n.graph-drawer-core {\n  font-size: 12px;\n  line-height: 1.6;\n  color: var(--geist-foreground);\n  background: var(--geist-secondary-bg);\n  padding: 8px 10px;\n  border-radius: 6px;\n  margin-bottom: 12px;\n  border: 1px solid var(--geist-border);\n}\n.graph-drawer-link {\n  display: block;\n  text-align: center;\n  padding: 7px 12px;\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border-radius: 6px;\n  font-size: 12px;\n  font-weight: 600;\n  text-decoration: none;\n  transition: opacity 0.15s ease;\n  margin-bottom: 6px;\n}\n.graph-drawer-link:hover { opacity: 0.85; }\n.graph-drawer-pdf-link {\n  display: block;\n  text-align: center;\n  padding: 6px 12px;\n  background: var(--geist-secondary-bg);\n  color: var(--geist-foreground);\n  border: 1px solid var(--geist-border);\n  border-radius: 6px;\n  font-size: 11px;\n  font-weight: 500;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.graph-drawer-pdf-link:hover { background: var(--geist-border); }\n.node-circle {\n  cursor: pointer;\n  transition: r 0.2s, stroke-width 0.2s;\n}\n.node-label {\n  font-size: 10px;\n  font-weight: 600;\n  fill: var(--geist-foreground);\n  pointer-events: none;\n  text-shadow: 0 1px 2px var(--geist-background);\n}\n.link-line {\n  stroke: var(--geist-border);\n  stroke-opacity: 0.6;\n  stroke-width: 1.2;\n  transition: stroke 0.2s, stroke-width 0.2s, stroke-opacity 0.2s;\n}\n.link-label {\n  font-size: 9px;\n  fill: var(--geist-tertiary);\n  pointer-events: none;\n  text-anchor: middle;\n}\n\n/* 引用框与警示框 Alerts */\n.callout-alert {\n  margin: 20px 0;\n  padding: 14px 18px;\n  border-radius: var(--radius-md);\n  transition: all 0.15s ease;\n}\n.callout-important, .callout-idea {\n  border-left: 4px solid #b54708;\n  background: rgba(181, 71, 8, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(247, 144, 9, 0.3);\n}\n[data-theme=\"dark\"] .callout-important, [data-theme=\"dark\"] .callout-idea {\n  border-left-color: #fec84b;\n  background: rgba(181, 71, 8, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(254, 200, 75, 0.25);\n}\n.callout-writing {\n  border-left: 4px solid #6941c6;\n  background: rgba(105, 65, 198, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(105, 65, 198, 0.3);\n}\n[data-theme=\"dark\"] .callout-writing {\n  border-left-color: #d6bbfb;\n  background: rgba(105, 65, 198, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(214, 187, 251, 0.25);\n}\n.callout-value {\n  border-left: 4px solid #027a48;\n  background: rgba(2, 122, 72, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(2, 122, 72, 0.3);\n}\n[data-theme=\"dark\"] .callout-value {\n  border-left-color: #32d583;\n  background: rgba(2, 122, 72, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(50, 213, 131, 0.25);\n}\n\n.card-title {\n  font-size: 16.5px;\n  font-weight: 600;\n  line-height: 1.42;\n  letter-spacing: -0.4px;\n  color: var(--geist-foreground);\n  margin: 0 0 10px;\n  word-break: break-word;\n  overflow-wrap: anywhere;\n  hyphens: auto;\n}\n.card-title a {\n  color: var(--geist-foreground);\n  text-decoration: none;\n  display: inline;\n  transition: color 0.15s ease;\n}\n.card-title a:hover {\n  color: var(--develop-blue);\n  text-decoration: none;\n}\n.card-id-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-quaternary);\n  margin-right: 5px;\n}\n.card-meta-row {\n  display: flex;\n  gap: 6px;\n  flex-wrap: wrap;\n  margin-bottom: 12px;\n}\n.meta-token {\n  font-size: 12px;\n  color: var(--geist-tertiary);\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-ring);\n  padding: 2px 7px;\n  border-radius: var(--radius-sm);\n  white-space: nowrap;\n}\n.card-body-text {\n  font-size: 13.5px;\n  color: var(--geist-secondary);\n  line-height: 1.6;\n  margin-bottom: 16px;\n  flex-grow: 1;\n  word-break: break-word;\n  overflow-wrap: anywhere;\n}\n.card-body-text strong {\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n.card-footer {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  border-top: 1px solid var(--geist-border);\n  padding-top: 14px;\n}\n.card-link-action {\n  font-size: 13.5px;\n  font-weight: 500;\n  color: var(--link-blue);\n  display: inline-flex;\n  align-items: center;\n  gap: 4px;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.card-link-action:hover {\n  opacity: 0.85;\n  transform: translateX(2px);\n}\na.meta-token {\n  transition: all 0.15s ease;\n  cursor: pointer;\n  text-decoration: none;\n}\na.meta-token:hover {\n  background: var(--geist-selection);\n  color: var(--geist-foreground);\n  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);\n}\n\n/* 紧凑列表视图 (List View) */\n.card-list-view {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n.list-row-item {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-md);\n  padding: 12px 18px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  transition: box-shadow 0.15s;\n}\n.list-row-item:hover {\n  box-shadow: var(--shadow-card-hover);\n}\n\n/* 阅读详情页 (Report Detail) */\n.reading-container {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) 260px;\n  gap: 40px;\n  align-items: start;\n}\n@media (max-width: 960px) {\n  .reading-container { grid-template-columns: 1fr; }\n  .reading-sidebar { display: none; }\n}\n\n.report-header-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 28px 32px;\n  margin-bottom: 28px;\n}\n.crumb-bar {\n  font-size: 13px;\n  color: var(--geist-tertiary);\n  margin-bottom: 10px;\n}\n.report-title {\n  font-size: 32px;\n  font-weight: 600;\n  letter-spacing: -1.28px;\n  margin: 0 0 16px;\n  color: var(--geist-foreground);\n}\n.report-action-buttons {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  flex-wrap: wrap;\n  border-top: 1px solid var(--geist-border);\n  padding-top: 16px;\n  margin-top: 16px;\n}\n\n.article-body {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-lg);\n  padding: 36px 42px 80px;\n  font-size: 16px;\n  line-height: 1.75;\n  color: var(--geist-foreground);\n}\n.article-body h1, .article-body h2, .article-body h3 {\n  color: var(--geist-foreground);\n  scroll-margin-top: 80px;\n}\n.article-body h1 { font-size: 28px; font-weight: 600; letter-spacing: -1.28px; border-bottom: 1px solid var(--geist-border); padding-bottom: 8px; margin-top: 32px; }\n.article-body h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.96px; border-bottom: 1px solid var(--geist-border); padding-bottom: 6px; margin-top: 36px; }\n.article-body h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.32px; margin-top: 26px; }\n.article-body table {\n  width: 100%;\n  border-collapse: collapse;\n  margin: 24px 0;\n  font-size: 14px;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  overflow: hidden;\n}\n.article-body th, .article-body td {\n  padding: 10px 14px;\n  text-align: left;\n  border-bottom: 1px solid var(--geist-border);\n}\n.article-body th {\n  background: var(--geist-surface-tint);\n  font-weight: 600;\n  color: var(--geist-foreground);\n}\n.article-body blockquote {\n  border-left: 2px solid var(--geist-foreground);\n  margin: 20px 0;\n  padding: 8px 18px;\n  color: var(--geist-secondary);\n  font-style: normal;\n}\n.article-body code {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 13.5px;\n  box-shadow: var(--shadow-ring);\n  background: var(--geist-surface-tint);\n  padding: 2px 6px;\n  border-radius: var(--radius-sm);\n}\n.article-body pre {\n  position: relative;\n  background: #000000;\n  color: #ededed;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  padding: 18px;\n  margin: 24px 0;\n  overflow-x: auto;\n}\n.article-body pre code {\n  background: transparent;\n  box-shadow: none;\n  padding: 0;\n  color: inherit;\n  font-size: 13px;\n}\n.copy-code-btn {\n  position: absolute;\n  top: 8px;\n  right: 10px;\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  background: #171717;\n  color: #ffffff;\n  border: 1px solid #333333;\n  padding: 3px 8px;\n  border-radius: var(--radius-sm);\n  cursor: pointer;\n}\n\n/* 侧边大纲 (TOC) */\n.reading-sidebar {\n  position: sticky;\n  top: 80px;\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n  max-height: calc(100vh - 100px);\n  overflow-y: auto;\n}\n.sidebar-toc-title {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 12px;\n  font-weight: 500;\n  text-transform: uppercase;\n  letter-spacing: 0.5px;\n  color: var(--geist-quaternary);\n  margin-bottom: 12px;\n}\n.reading-sidebar ul {\n  list-style: none;\n  padding-left: 0;\n  margin: 0;\n  font-size: 13px;\n}\n.reading-sidebar li {\n  margin: 6px 0;\n}\n.reading-sidebar ul ul {\n  padding-left: 14px;\n}\n.reading-sidebar a {\n  color: var(--geist-secondary);\n  text-decoration: none;\n  transition: color 0.15s;\n}\n.reading-sidebar a:hover, .reading-sidebar a.active {\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n/* 后台管理 (/admin) */\n.admin-card-container {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-lg);\n  padding: 32px;\n  margin-bottom: 32px;\n}\n.form-row-2 {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  gap: 16px;\n  margin-bottom: 16px;\n}\n@media (max-width: 600px) {\n  .form-row-2 { grid-template-columns: 1fr; }\n}\n.form-field {\n  display: flex;\n  flex-direction: column;\n  gap: 6px;\n  margin-bottom: 16px;\n}\n.form-field label {\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-foreground);\n}\n.form-field input, .form-field select, .form-field textarea {\n  font-family: \"Geist\", sans-serif;\n  font-size: 14px;\n  padding: 9px 12px;\n  background: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  border: none;\n  border-radius: var(--radius-md);\n  color: var(--geist-foreground);\n  outline: none;\n}\n.form-field input:focus, .form-field select:focus, .form-field textarea:focus {\n  outline: 2px solid var(--ds-focus-color);\n  box-shadow: none;\n}\n\n/* 语法高亮 (Console Blue / Purple / Pink) */\n.codehilite .k, .codehilite .kd, .codehilite .kn { color: #eb367f; font-weight: 500; }\n.codehilite .s, .codehilite .s1, .codehilite .s2 { color: #0070f3; }\n.codehilite .nf, .codehilite .na { color: #7928ca; font-weight: 500; }\n.codehilite .c, .codehilite .c1 { color: #666666; font-style: italic; }\n.codehilite .mi, .codehilite .mf { color: #ff5b4f; }\n\n</style>\n\n</head>\n<body>\n\n    <nav class=\"vercel-nav\">\n      <div class=\"nav-brand\">\n        <a href=\"/\" style=\"display:flex;align-items:center;gap:10px;text-decoration:none\">\n          <svg class=\"vercel-triangle\" viewBox=\"0 0 76 65\" fill=\"none\">\n            <path d=\"M37.5274 0L75.0548 65H0L37.5274 0Z\" fill=\"currentColor\"/>\n          </svg>\n          <span class=\"nav-title\">Agent Harness KB</span>\n        </a>\n        <span class=\"nav-badge-pill\">Geist 2.0</span>\n      </div>\n\n      <div class=\"nav-links\">\n        <a class=\"nav-link \" href=\"/\">全景总览</a>\n        <a class=\"nav-link \" href=\"/vad\" style=\"color:var(--ship-red)\">🎯 VAD 专栏 (144)</a>\n        <a class=\"nav-link\" href=\"https://m0rtzz.github.io/paper-notes/\" target=\"_blank\" rel=\"noopener\">顶会 669 篇 ↗</a>\n        <a class=\"nav-link\" href=\"/download/all\">整库打包</a>\n        \n      </div>\n\n      <div class=\"nav-actions\">\n        \n        <button class=\"theme-toggle-btn\" id=\"theme-toggle-btn\" onclick=\"toggleTheme()\" title=\"切换亮暗主题\">🌙</button>\n      </div>\n    </nav>\n    \n<main class=\"vercel-container\">\n\n        <div class=\"report-header-card\">\n          <div class=\"crumb-bar\"><a href=\"/\">Home</a> / <b>README_20261014.md</b></div>\n          <h1 class=\"report-title\">README_20261014.md</h1>\n          <div class=\"report-action-buttons\">\n            <a class=\"btn-primary-dark\" href=\"?dl=1\">Download Markdown</a>\n          </div>\n        </div>\n        <article class=\"article-body\"><div align=\"center\">\n\n<picture>\n  <source media=\"(prefers-color-scheme: dark)\" srcset=\"docs/assets/reef-logo-dark.svg\">\n  <img src=\"docs/assets/reef-logo-light.svg\" alt=\"Reef\" width=\"220\">\n</picture>\n\n<h3>Infrastructure for continually self‑improving agents</h3>\n\n[![CI](https://github.com/Human-Agent-Society/reef/actions/workflows/ci.yml/badge.svg)](https://github.com/Human-Agent-Society/reef/actions/workflows/ci.yml)\n[![PyPI package: reef-infra](https://img.shields.io/pypi/v/reef-infra?label=PyPI%3A%20reef-infra&logo=pypi&logoColor=white)](https://pypi.org/project/reef-infra/)\n[![Python](https://img.shields.io/badge/python-3.12%2B-3776AB?logo=python&logoColor=white)](pyproject.toml)\n[![License](https://img.shields.io/badge/license-Apache--2.0-green)](LICENSE)\n\n<a href=\"https://trendshift.io/repositories/204783?utm_source=trendshift-badge&amp;utm_medium=badge&amp;utm_campaign=badge-trendshift-204783\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"https://trendshift.io/api/badge/trendshift/repositories/204783/daily?language=Python\" alt=\"Human-Agent-Society%2Freef | Trendshift\" width=\"250\" height=\"55\"/></a>\n\nEnglish | [中文](README.zh.md)\n\n<div align=\"left\">\n\nReef is the first open-source infrastructure for continual self-improving agents.\nIt connects agent inference, feedback, learning, and versioned delivery. Use it\nto train model weights with Slime and SGLang, or improve an agent's harness, including its prompts, rules, and skills.\n\n\n</div>\n\n**🚀 [Get started](https://reefinfra.ai/docs/getting-started/quickstart/) |\n🗺️ [Roadmap](https://github.com/Human-Agent-Society/reef/issues/25) |\n📣 [Launch post](https://x.com/ao_qu18465/status/2094867930081337730) |\n💬 [Join Discord](https://discord.gg/5y8e5f937k) |\n📱 [Join WeChat Group](docs/community/wechat.md)**\n\n</div>\n\n<h2 id=\"when-to-use-reef\">🎯 When to use Reef<a class=\"headerlink\" href=\"#when-to-use-reef\" title=\"Permanent link\">&para;</a></h2>\n<p>Use Reef when you want your agent to keep improving simply by learning from how you interact with your agent.</p>\n<table>\n<thead>\n<tr>\n<th>Your goal</th>\n<th>Learning path</th>\n<th>What you need</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Keep getting stronger model designed for you</td>\n<td>Model weight training</td>\n<td>A trainable model, a supported GPU stack, and feedback your recipe can use</td>\n</tr>\n<tr>\n<td>Get your harness to self-improve</td>\n<td>Harness optimization</td>\n<td>A model endpoint, representative tasks, and an evaluator; no local training GPUs</td>\n</tr>\n<tr>\n<td>Scientific discoveries</td>\n<td>Test-time training</td>\n<td>An execution environment, a correctness checker, and a measurable objective</td>\n</tr>\n</tbody>\n</table>\n<h2 id=\"how-reef-fits-your-stack\">🧩 How Reef fits your stack<a class=\"headerlink\" href=\"#how-reef-fits-your-stack\" title=\"Permanent link\">&para;</a></h2>\n<table>\n<thead>\n<tr>\n<th>Ability</th>\n<th style=\"text-align: center;\">Inference engine (vLLM, SGLang, …)</th>\n<th style=\"text-align: center;\">RL training framework (Slime, veRL, AReaL, …)</th>\n<th style=\"text-align: center;\"><strong>Reef</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Serves live traffic</td>\n<td style=\"text-align: center;\">✅</td>\n<td style=\"text-align: center;\">❌</td>\n<td style=\"text-align: center;\">✅</td>\n</tr>\n<tr>\n<td>Trains weights</td>\n<td style=\"text-align: center;\">❌</td>\n<td style=\"text-align: center;\">✅</td>\n<td style=\"text-align: center;\">✅</td>\n</tr>\n<tr>\n<td>Version management</td>\n<td style=\"text-align: center;\">❌</td>\n<td style=\"text-align: center;\">❌</td>\n<td style=\"text-align: center;\">✅</td>\n</tr>\n<tr>\n<td>Stays live through updates</td>\n<td style=\"text-align: center;\">❌</td>\n<td style=\"text-align: center;\">❌</td>\n<td style=\"text-align: center;\">✅</td>\n</tr>\n<tr>\n<td>Evolves beyond weights (skills, harness)</td>\n<td style=\"text-align: center;\">❌</td>\n<td style=\"text-align: center;\">❌</td>\n<td style=\"text-align: center;\">✅</td>\n</tr>\n</tbody>\n</table>\n<h2 id=\"how-it-works\">🔄 How it works<a class=\"headerlink\" href=\"#how-it-works\" title=\"Permanent link\">&para;</a></h2>\n<div align=\"center\">\n<picture>\n  <source media=\"(prefers-color-scheme: dark)\" srcset=\"docs/assets/loop-animation-dark.svg\">\n  <img src=\"docs/assets/loop-animation-light.svg\" alt=\"Reef serves requests, records feedback, produces updates, and commits accepted updates to a version history.\" width=\"76%\">\n</picture>\n</div>\n\n<p>Reef processes each learning cycle in four steps. The table also shows which<br />\nmodules implement each step.</p>\n<table>\n<thead>\n<tr>\n<th>Step</th>\n<th>What happens</th>\n<th>Where it lives</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>1&nbsp;·&nbsp;Serve</strong></td>\n<td>Serve agent requests and record interactions.</td>\n<td><a href=\"reef/service\"><code>service/</code></a> — agent requests and interaction records<br><a href=\"reef/runtime\"><code>runtime/</code></a> — inference and artifact updates</td>\n</tr>\n<tr>\n<td><strong>2&nbsp;·&nbsp;Observe</strong></td>\n<td>Match feedback to recorded interactions.</td>\n<td><a href=\"reef/storage/records.py\"><code>storage/records.py</code></a> — stored interactions and feedback<br><a href=\"reef/record2record\"><code>record2record/</code></a> — feedback matching and eligibility</td>\n</tr>\n<tr>\n<td><strong>3&nbsp;·&nbsp;Grow</strong></td>\n<td>Produce an update from eligible records.</td>\n<td><a href=\"reef/recipe\"><code>recipe/</code></a> — recipe integration<br><a href=\"reef/train\"><code>train/</code></a> — the training pipeline, batches, and update jobs</td>\n</tr>\n<tr>\n<td><strong>4&nbsp;·&nbsp;Commit</strong></td>\n<td>Apply the configured selection policy and publish accepted updates.</td>\n<td><a href=\"reef/evaluation\"><code>evaluation/</code></a> — candidate evaluation<br><a href=\"reef/artifact\"><code>artifact/</code></a> — version history<br><a href=\"reef/surface\"><code>surface/</code></a> — artifact delivery</td>\n</tr>\n</tbody>\n</table>\n<h2 id=\"installation\">📦 Installation<a class=\"headerlink\" href=\"#installation\" title=\"Permanent link\">&para;</a></h2>\n<blockquote>\n<p>💡 <strong>Note</strong></p>\n<p>Reef's artifact and checkpoint functionality requires the <code>git-lfs</code> system<br />\npackage. Reef initializes Git LFS locally for its artifact repositories.</p>\n</blockquote>\n<p>We recommend <a href=\"https://docs.astral.sh/uv/\">uv</a> for managing packages, and the<br />\ncommands below use it.</p>\n<h3 id=\"from-pypi\">From PyPI<a class=\"headerlink\" href=\"#from-pypi\" title=\"Permanent link\">&para;</a></h3>\n<div class=\"codehilite\"><pre><span></span><code>uv<span class=\"w\"> </span>venv<span class=\"w\"> </span><span class=\"o\">&amp;&amp;</span><span class=\"w\"> </span><span class=\"nb\">source</span><span class=\"w\"> </span>.venv/bin/activate\nuv<span class=\"w\"> </span>pip<span class=\"w\"> </span>install<span class=\"w\"> </span>reef-infra\npython3<span class=\"w\"> </span>-c<span class=\"w\"> </span><span class=\"s2\">&quot;import reef; print(reef.__version__)&quot;</span>\n</code></pre></div>\n\n<h3 id=\"from-source\">From source<a class=\"headerlink\" href=\"#from-source\" title=\"Permanent link\">&para;</a></h3>\n<div class=\"codehilite\"><pre><span></span><code>git<span class=\"w\"> </span>lfs<span class=\"w\"> </span>install\ngit<span class=\"w\"> </span>clone<span class=\"w\"> </span>https://github.com/Human-Agent-Society/reef.git\n<span class=\"nb\">cd</span><span class=\"w\"> </span>reef\nuv<span class=\"w\"> </span>venv<span class=\"w\"> </span><span class=\"o\">&amp;&amp;</span><span class=\"w\"> </span><span class=\"nb\">source</span><span class=\"w\"> </span>.venv/bin/activate\nuv<span class=\"w\"> </span>pip<span class=\"w\"> </span>install<span class=\"w\"> </span>-e<span class=\"w\"> </span>.\npython3<span class=\"w\"> </span>-c<span class=\"w\"> </span><span class=\"s2\">&quot;import reef; print(reef.__version__)&quot;</span>\n</code></pre></div>\n\n<p>Use the source checkout for development and for the training examples below.</p>\n<h2 id=\"using-reef\">🔧 Using Reef<a class=\"headerlink\" href=\"#using-reef\" title=\"Permanent link\">&para;</a></h2>\n<p>Reef supports two learning surfaces: model <strong>weights</strong> and agent <strong>harnesses</strong>.<br />\nThe deployment's recipe determines which surface its scenarios update.</p>\n<p>As a minimal example, start Reef as a pure inference server:</p>\n<div class=\"codehilite\"><pre><span></span><code>uv<span class=\"w\"> </span>run<span class=\"w\"> </span>reef<span class=\"w\"> </span>serve<span class=\"w\"> </span>--inference.model-path<span class=\"w\"> </span>Qwen/Qwen2.5-1.5B-Instruct\n</code></pre></div>\n\n<h3 id=\"weight-training-deployment\">Weight-training deployment<a class=\"headerlink\" href=\"#weight-training-deployment\" title=\"Permanent link\">&para;</a></h3>\n<h4 id=\"start-the-deployment\">Start the deployment<a class=\"headerlink\" href=\"#start-the-deployment\" title=\"Permanent link\">&para;</a></h4>\n<p>The following example starts the SAO (arXiv:2607.07508) example deployment. Run it<br />\nfrom a Reef checkout in an environment that satisfies the GPU requirements in<br />\n<a href=\"https://reefinfra.ai/docs/user-guide/evolve-your-model/\">Evolve your model</a>.</p>\n<div class=\"codehilite\"><pre><span></span><code>uv<span class=\"w\"> </span>pip<span class=\"w\"> </span>install<span class=\"w\"> </span>-e<span class=\"w\"> </span><span class=\"s2\">&quot;.[slime]&quot;</span><span class=\"w\"> </span><span class=\"o\">&amp;&amp;</span><span class=\"w\"> </span>uv<span class=\"w\"> </span>pip<span class=\"w\"> </span>install<span class=\"w\"> </span>--no-deps<span class=\"w\"> </span>--group<span class=\"w\"> </span>runtime\n\n<span class=\"nb\">export</span><span class=\"w\"> </span><span class=\"nv\">MODEL_PATH</span><span class=\"o\">=</span><span class=\"s2\">&quot;Qwen/Qwen2.5-1.5B-Instruct&quot;</span>\n<span class=\"nb\">export</span><span class=\"w\"> </span><span class=\"nv\">REEF_TOKEN</span><span class=\"o\">=</span><span class=\"s2\">&quot;reef-local&quot;</span>\n\nreef<span class=\"w\"> </span>serve<span class=\"w\"> </span>-c<span class=\"w\"> </span>recipes/sao/examples/imo_answerbench/serve.yaml<span class=\"w\"> </span><span class=\"se\">\\</span>\n<span class=\"w\">  </span>--inference.model-path<span class=\"w\"> </span><span class=\"s2\">&quot;</span><span class=\"nv\">$MODEL_PATH</span><span class=\"s2\">&quot;</span><span class=\"w\"> </span><span class=\"se\">\\</span>\n<span class=\"w\">  </span>--reef.port<span class=\"w\"> </span><span class=\"s2\">&quot;8900&quot;</span>\n\ncurl<span class=\"w\"> </span>-f<span class=\"w\"> </span>http://127.0.0.1:8900/healthz<span class=\"w\">          </span><span class=\"c1\"># ready to serve</span>\n</code></pre></div>\n\n<h4 id=\"send-an-inference-request-and-report-feedback\">Send an inference request and report feedback<a class=\"headerlink\" href=\"#send-an-inference-request-and-report-feedback\" title=\"Permanent link\">&para;</a></h4>\n<p>Send inference requests through Reef and report a score for each response. The<br />\nSAO recipe uses each eligible scored rollout to run a training step.</p>\n<p>Reef's inference endpoint is OpenAI- and Anthropic-compatible: <code>/v1/chat/completions</code>,<br />\n<code>/v1/responses</code> and <code>/v1/messages</code> take the provider's own request body. A request includes the<br />\n<code>x-reef-scenario</code> header; a new name creates a scenario using the deployment's<br />\nconfigured recipe. Requests do not select recipes.</p>\n<p>The response body uses the provider's OpenAI-compatible format. Reef adds the<br />\n<code>x-reef-agent-record-id</code> response header. Its value is the <strong>receipt</strong> that a<br />\nlater report uses to identify this interaction. A report can contain a numeric<br />\n<code>score</code>, textual or structured <code>feedback</code>, and the receipts it evaluates. This<br />\nexample reports both a score and a short explanation.</p>\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kn\">import</span><span class=\"w\"> </span><span class=\"nn\">os</span>\n<span class=\"kn\">import</span><span class=\"w\"> </span><span class=\"nn\">httpx</span>\n\n<span class=\"n\">reef</span> <span class=\"o\">=</span> <span class=\"n\">httpx</span><span class=\"o\">.</span><span class=\"n\">Client</span><span class=\"p\">(</span>\n    <span class=\"n\">base_url</span><span class=\"o\">=</span><span class=\"s2\">&quot;http://127.0.0.1:8900&quot;</span><span class=\"p\">,</span>\n    <span class=\"n\">headers</span><span class=\"o\">=</span><span class=\"p\">{</span><span class=\"s2\">&quot;Authorization&quot;</span><span class=\"p\">:</span> <span class=\"sa\">f</span><span class=\"s2\">&quot;Bearer </span><span class=\"si\">{</span><span class=\"n\">os</span><span class=\"o\">.</span><span class=\"n\">environ</span><span class=\"p\">[</span><span class=\"s1\">&#39;REEF_TOKEN&#39;</span><span class=\"p\">]</span><span class=\"si\">}</span><span class=\"s2\">&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;x-reef-scenario&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;hello-reef&quot;</span><span class=\"p\">},</span>\n    <span class=\"n\">timeout</span><span class=\"o\">=</span><span class=\"mi\">300</span><span class=\"p\">,</span>\n<span class=\"p\">)</span>\n\n<span class=\"c1\"># Send a provider-compatible inference request</span>\n<span class=\"n\">response</span> <span class=\"o\">=</span> <span class=\"n\">reef</span><span class=\"o\">.</span><span class=\"n\">post</span><span class=\"p\">(</span>\n    <span class=\"s2\">&quot;/v1/chat/completions&quot;</span><span class=\"p\">,</span>\n    <span class=\"n\">json</span><span class=\"o\">=</span><span class=\"p\">{</span>\n        <span class=\"s2\">&quot;model&quot;</span><span class=\"p\">:</span> <span class=\"n\">os</span><span class=\"o\">.</span><span class=\"n\">environ</span><span class=\"p\">[</span><span class=\"s2\">&quot;MODEL_PATH&quot;</span><span class=\"p\">],</span>\n        <span class=\"s2\">&quot;messages&quot;</span><span class=\"p\">:</span> <span class=\"p\">[{</span><span class=\"s2\">&quot;role&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;user&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;content&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;Return exactly: reef is ready&quot;</span><span class=\"p\">}],</span>\n    <span class=\"p\">},</span>\n<span class=\"p\">)</span>\n\n<span class=\"n\">response</span><span class=\"o\">.</span><span class=\"n\">raise_for_status</span><span class=\"p\">()</span>\n<span class=\"n\">receipt</span> <span class=\"o\">=</span> <span class=\"n\">response</span><span class=\"o\">.</span><span class=\"n\">headers</span><span class=\"p\">[</span><span class=\"s2\">&quot;x-reef-agent-record-id&quot;</span><span class=\"p\">]</span>\n<span class=\"n\">answer</span> <span class=\"o\">=</span> <span class=\"n\">response</span><span class=\"o\">.</span><span class=\"n\">json</span><span class=\"p\">()[</span><span class=\"s2\">&quot;choices&quot;</span><span class=\"p\">][</span><span class=\"mi\">0</span><span class=\"p\">][</span><span class=\"s2\">&quot;message&quot;</span><span class=\"p\">][</span><span class=\"s2\">&quot;content&quot;</span><span class=\"p\">]</span>\n\n<span class=\"c1\"># Sending report about the inference</span>\n<span class=\"n\">matched</span> <span class=\"o\">=</span> <span class=\"n\">answer</span><span class=\"o\">.</span><span class=\"n\">strip</span><span class=\"p\">()</span> <span class=\"o\">==</span> <span class=\"s2\">&quot;reef is ready&quot;</span>\n\n<span class=\"n\">reef</span><span class=\"o\">.</span><span class=\"n\">post</span><span class=\"p\">(</span>\n    <span class=\"s2\">&quot;/reef/report&quot;</span><span class=\"p\">,</span>\n    <span class=\"n\">json</span><span class=\"o\">=</span><span class=\"p\">{</span><span class=\"s2\">&quot;score&quot;</span><span class=\"p\">:</span> <span class=\"nb\">float</span><span class=\"p\">(</span><span class=\"n\">matched</span><span class=\"p\">),</span> <span class=\"s2\">&quot;feedback&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;matched&quot;</span> <span class=\"k\">if</span> <span class=\"n\">matched</span> <span class=\"k\">else</span> <span class=\"s2\">&quot;wrong answer&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;references&quot;</span><span class=\"p\">:</span> <span class=\"p\">[</span><span class=\"n\">receipt</span><span class=\"p\">]},</span>\n<span class=\"p\">)</span><span class=\"o\">.</span><span class=\"n\">raise_for_status</span><span class=\"p\">()</span>\n</code></pre></div>\n\n<p><code>feedback</code> carries the richer signal, plain text or a structured object,<br />\nfor recipes that read more than a scalar. The endpoint will validate the<br />\n<strong>report schema</strong> (<a href=\"reef/core/reports\"><code>reef/core/reports/</code></a>).</p>\n<h4 id=\"watch-it-learn-and-grow\">Watch it learn and grow<a class=\"headerlink\" href=\"#watch-it-learn-and-grow\" title=\"Permanent link\">&para;</a></h4>\n<p>Once the recipe has enough feedback, it runs a training step and synchronizes<br />\nthe updated weights to the serving runtime. Later inference requests use the<br />\ncurrent version without restarting Reef.</p>\n<h3 id=\"harness-evolving-deployment\">Harness-evolving deployment<a class=\"headerlink\" href=\"#harness-evolving-deployment\" title=\"Permanent link\">&para;</a></h3>\n<p>Refine a coding harness from plain-language asks, using a model API instead of GPUs.</p>\n<p>Reefine is the built-in harness-refinement recipe and includes a deployment<br />\nconfiguration; specify the provider URL and model. From your Reef checkout and<br />\nactivated Python environment:</p>\n<div class=\"codehilite\"><pre><span></span><code>reef<span class=\"w\"> </span>serve<span class=\"w\"> </span>--recipe<span class=\"w\"> </span>reefine<span class=\"w\"> </span><span class=\"se\">\\</span>\n<span class=\"w\">  </span>--inference.upstream-url<span class=\"w\"> </span>http://127.0.0.1:11434<span class=\"w\"> </span><span class=\"se\">\\</span>\n<span class=\"w\">  </span>--inference.upstream-model<span class=\"w\"> </span>gemma4:26b\n</code></pre></div>\n\n<p>For another provider, change<br />\n<code>--inference.upstream-url</code> and <code>--inference.upstream-model</code>, and set<br />\n<code>REEF_UPSTREAM_API_KEY</code> if authentication is required. With this configuration, Reef<br />\nlistens on <code>127.0.0.1:8901</code> without authentication (set <code>REEF_TOKEN</code> before<br />\nstarting it to require that token) and keeps its state under<br />\n<code>.reef/reefine/</code> (<code>--recipe harness-evolve</code>, the former name, starts the same<br />\nconfiguration). To change anything else, copy<br />\n<a href=\"reef/service/profiles/reefine.yaml\">the deployment configuration</a> and pass<br />\nyour copy with <code>-c</code>.</p>\n<p>In another terminal with the same Python environment activated (the install<br />\nbakes that terminal's <code>python3</code> into <code>reef-pi</code>), create a scenario, install the<br />\nharness, and ask for a change:</p>\n<div class=\"codehilite\"><pre><span></span><code>curl<span class=\"w\"> </span>-fsS<span class=\"w\"> </span>-H<span class=\"w\"> </span><span class=\"s2\">&quot;Content-Type: application/json&quot;</span><span class=\"w\"> </span><span class=\"se\">\\</span>\n<span class=\"w\">  </span>-d<span class=\"w\"> </span><span class=\"s1\">&#39;{&quot;name&quot;: &quot;my-harness&quot;}&#39;</span><span class=\"w\"> </span>http://127.0.0.1:8901/reef/scenarios\ncurl<span class=\"w\"> </span>-fsS<span class=\"w\"> </span>-H<span class=\"w\"> </span><span class=\"s2\">&quot;x-reef-scenario: my-harness&quot;</span><span class=\"w\"> </span><span class=\"se\">\\</span>\n<span class=\"w\">  </span><span class=\"s1\">&#39;http://127.0.0.1:8901/reef/harness/install?adapter=pi&#39;</span><span class=\"w\"> </span><span class=\"p\">|</span><span class=\"w\"> </span>bash\n\nreef-pi<span class=\"w\"> </span>evolve<span class=\"w\"> </span><span class=\"s2\">&quot;when I ask you to fix a bug, reproduce it with a failing test first&quot;</span>\n</code></pre></div>\n\n<p>The script installs into <code>~/reef-harness/&lt;scenario&gt;</code> (here<br />\n<code>~/reef-harness/my-harness</code>); <code>bash -s -- &lt;dir&gt;</code> names another install root.<br />\nKeep any install root outside the project the agent works in: a session can<br />\nwrite files in its project, so with the install root there it could change<br />\nwhat the next session runs. The same holds for the Python environment the<br />\ninstall bakes into <code>reef-pi</code> and the Reef checkout it imports: code there runs<br />\nas you when <code>reef-pi</code> starts. For codex and dsh, keep them out of <code>/tmp</code> and<br />\n<code>$TMPDIR</code> too: their sandboxes let a command write there as well. The check<br />\n<code>reef-pi</code> runs before a session holds only against a session that can write<br />\njust its project, <code>/tmp</code> and <code>$TMPDIR</code>; pi runs commands with no sandbox (see<br />\n<a href=\"https://reefinfra.ai/docs/user-guide/evolve-your-harness/#recover-a-changed-installation\">Recover a changed installation</a>).</p>\n<p>Inside a <code>reef-pi</code> session, <code>/reefine &lt;text&gt;</code> files the same ask. The served<br />\nmodel writes the change as a skill, a rules entry, an agent command, or a pi<br />\nextension. Where the host can isolate it (Linux with <code>bwrap</code> and <code>pasta</code>, as a<br />\nnon-root user), or with <code>REEF_PROPOSER_SANDBOX=none</code> on a machine you trust, it<br />\nworks as a coding agent that runs the changed harness before handing the change<br />\nback. The next session's update notice offers the install; a step that<br />\nsettles while you are between turns offers its install right away. Review the<br />\nversions with <code>/versions</code>, which opens a step's page, and install one with<br />\n<code>/versions &lt;version&gt; install</code>. To change the model, restart<br />\n<code>reef serve</code> with another <code>--inference.upstream-model</code> and rerun the install<br />\ncommand: installation writes the model ID into the local harness configuration.<br />\nSee the <a href=\"tutorials/reefine/README.md\">Reefine tutorial</a> for scripted bug-fix and<br />\nresearch demos and the <a href=\"docs/user-guide/recipes/reefine.rst\">Reefine guide</a> for<br />\nconfiguration.</p>\n<h2 id=\"recipes-and-examples\">📚 Recipes and examples<a class=\"headerlink\" href=\"#recipes-and-examples\" title=\"Permanent link\">&para;</a></h2>\n<p>Pick a recipe by the <strong>task type</strong> of your workload and by <strong>what it should<br />\nevolve</strong>, model weights or the agent harness. Weight recipes need the GPU<br />\ntraining stack, while harness recipes need only a model endpoint. Each recipe<br />\nbelow links to its guide and each measured benchmark links to its results<br />\npage, and the <a href=\"https://reefinfra.ai/docs/user-guide/recipes/\">recipe catalog</a><br />\nadds the code and example for every recipe. Reefine ships with <code>reef-infra</code>,<br />\nand the other implementations live in this repository's <code>recipes/</code> cookbook,<br />\nselected by dotted class reference and not shipped in the Reef wheel.</p>\n<table>\n<thead>\n<tr>\n<th>Task type</th>\n<th>Task shape</th>\n<th>Evolves the model</th>\n<th>Evolves the harness</th>\n<th>Standard benchmarks</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Scientific discovery</td>\n<td>Repeated attempts at one hard problem with a measurable objective</td>\n<td><a href=\"https://reefinfra.ai/docs/user-guide/recipes/tttd/\">TTT-Discover</a>, <a href=\"recipes/tttd/examples/guidance_ttt/README.md\">Guidance-TTT</a></td>\n<td>None yet</td>\n<td>Measured: <a href=\"recipes/tttd/examples/guidance_ttt/results/README.md\">TriMul</a>, <a href=\"recipes/tttd/examples/tttd/README.md#formal-8x64-results\">circle packing</a>, <a href=\"recipes/tttd/examples/tttd/README.md#formal-8x64-results\">Erdős minimum overlap</a>.</td>\n</tr>\n<tr>\n<td>Continual learning on a task stream</td>\n<td>A stream of independent tasks that a verifier scores one by one</td>\n<td><a href=\"https://reefinfra.ai/docs/user-guide/recipes/sao/\">SAO</a></td>\n<td><a href=\"recipes/meta_harness/README.md\">Meta-Harness</a>, <a href=\"https://reefinfra.ai/docs/user-guide/recipes/gepa/\">GEPA</a></td>\n<td>Measured: <a href=\"recipes/gepa/examples/aime/README.md#the-validation-contract\">AIME 2025</a>, <a href=\"recipes/sao/examples/imo_answerbench/README.md#results\">IMOAnswerBench</a>, <a href=\"recipes/sao/examples/ceobench/README.md#results\">CEO-Bench</a>, <a href=\"recipes/meta_harness/examples/terminal_bench/README.md#results\">Terminal-Bench</a>.</td>\n</tr>\n<tr>\n<td>Learning from usage</td>\n<td>Real interaction where no one reports a score or feedback arrives late</td>\n<td><a href=\"https://reefinfra.ai/docs/user-guide/recipes/openclawrl/\">OpenClaw-RL</a></td>\n<td><a href=\"https://reefinfra.ai/docs/user-guide/recipes/skillclaw/\">SkillClaw</a>, <a href=\"docs/user-guide/recipes/reefine.rst\">Reefine</a></td>\n<td>Measured: <a href=\"recipes/openclawrl/examples/openclawrl/README.md#results\">simulated student with GSM8K task stream</a>, <a href=\"recipes/skillclaw/README.md#the-2026-08-29-results-glm-53-flash-preliminary\">WildClawBench</a>.</td>\n</tr>\n</tbody>\n</table>\n<p><a href=\"recipes/basic/\"><code>recipes/basic/</code></a> is the record-only starting stack and stays<br />\noutside the catalog. For a small walkthrough of feedback, candidate edits, and<br />\npublication, start with <a href=\"tutorials/evolve-your-harness/README.md\">the coding harness tutorial</a>.<br />\nEach result page documents its task, evaluation setup, measurements, and<br />\nlimitations.</p>\n<h2 id=\"architecture\">📐 Architecture<a class=\"headerlink\" href=\"#architecture\" title=\"Permanent link\">&para;</a></h2>\n<div align=\"center\">\n<picture>\n  <source media=\"(prefers-color-scheme: dark)\" srcset=\"docs/assets/architecture-dark.svg\">\n  <img src=\"docs/assets/architecture-light.svg\" alt=\"Reef architecture: harness requests flow through a scenario to inference. Receipt-linked feedback feeds records and recipe training; artifact evaluation selects updates for versioned publication. Rejected candidates leave the current release serving.\" width=\"1200\">\n</picture>\n</div>\n\n<h2 id=\"learn-more\">📖 Learn more<a class=\"headerlink\" href=\"#learn-more\" title=\"Permanent link\">&para;</a></h2>\n<p>The <a href=\"https://reefinfra.ai/docs/\">documentation</a> is organized in the following order:</p>\n<ul>\n<li><a href=\"https://reefinfra.ai/docs/getting-started/quickstart/\">Quickstart</a>: install Reef, connect a client, and inspect the version history</li>\n<li><a href=\"https://reefinfra.ai/docs/reference/http-api/\">HTTP API</a>: use the HTTP API and report feedback</li>\n<li><a href=\"https://reefinfra.ai/docs/developer-guide/write-a-recipe/\">Write a recipe</a>: configure how Reef processes data and produces updates</li>\n<li><a href=\"https://reefinfra.ai/docs/user-guide/evolve-your-harness/\">Evolve your harness</a>: evolve a harness instead of model weights</li>\n<li><a href=\"https://reefinfra.ai/docs/user-guide/evolve-your-model/\">Evolve your model</a>: configure and operate a training deployment</li>\n<li><a href=\"https://reefinfra.ai/docs/user-guide/recipes/\">Recipes</a>: the catalog of cookbook<br />\n  recipes by task type, with code, docs, example, and results for each</li>\n<li><a href=\"https://reefinfra.ai/docs/getting-started/core-loop/\">The core loop</a>: The core loop of Reef</li>\n<li><a href=\"https://reefinfra.ai/docs/reference/glossary/\">Glossary</a>: Explanation of the terminologies used</li>\n</ul>\n<h2 id=\"community-contributing\">🤝 Community &amp; Contributing<a class=\"headerlink\" href=\"#community-contributing\" title=\"Permanent link\">&para;</a></h2>\n<p>Working on continual self-improving agent?</p>\n<ul>\n<li><a href=\"https://discord.gg/5y8e5f937k\">Join Discord</a> to share your recipes, ask implementation questions, and discuss new features.</li>\n<li><a href=\"docs/community/wechat.md\">Join the WeChat group</a>: the group is full, so add the assistant and it will invite you.</li>\n<li>Join the <a href=\"https://github.com/orgs/Human-Agent-Society/discussions\">GitHub Discussions</a> to ask questions, share ideas, and connect with the community.</li>\n<li>Start contributing with the <a href=\"CONTRIBUTING.md\">contribution guide</a>.</li>\n<li>Propose designs through an <a href=\"https://github.com/Human-Agent-Society/reef/issues/new?template=rfc.yml\">RFC issue</a>.</li>\n<li>Report suspected vulnerabilities privately by following the <a href=\"SECURITY.md\">security policy</a>.</li>\n</ul>\n<p>If Reef looks useful to you, please give it a ⭐ — it helps the community to discover and contribute to the project.</p>\n<h2 id=\"citation\">📚 Citation<a class=\"headerlink\" href=\"#citation\" title=\"Permanent link\">&para;</a></h2>\n<p>If you use Reef in your research, please cite:</p>\n<div class=\"codehilite\"><pre><span></span><code><span class=\"nc\">@misc</span><span class=\"p\">{</span><span class=\"nl\">reef2026</span><span class=\"p\">,</span>\n<span class=\"w\">  </span><span class=\"na\">title</span><span class=\"w\">  </span><span class=\"p\">=</span><span class=\"w\"> </span><span class=\"s\">{Reef: Infrastructure for Continually Self-Improving Agents}</span><span class=\"p\">,</span>\n<span class=\"w\">  </span><span class=\"na\">author</span><span class=\"w\"> </span><span class=\"p\">=</span><span class=\"w\"> </span><span class=\"s\">{{Reef Contributors}}</span><span class=\"p\">,</span>\n<span class=\"w\">  </span><span class=\"na\">year</span><span class=\"w\">   </span><span class=\"p\">=</span><span class=\"w\"> </span><span class=\"s\">{2026}</span><span class=\"p\">,</span>\n<span class=\"w\">  </span><span class=\"na\">url</span><span class=\"w\">    </span><span class=\"p\">=</span><span class=\"w\"> </span><span class=\"s\">{https://github.com/Human-Agent-Society/reef}</span>\n<span class=\"p\">}</span>\n</code></pre></div>\n\n<p>Citation metadata is also available in <a href=\"CITATION.cff\">CITATION.cff</a>.</p>\n<h2 id=\"the-team\">👥 The Team<a class=\"headerlink\" href=\"#the-team\" title=\"Permanent link\">&para;</a></h2>\n<p>Reef brings together people exploring how agents can learn from experience and<br />\nimprove over time. The people below help turn that idea into working infrastructure.</p>\n<p>This list is non-exhaustive, with team members listed alphabetically by last name:</p>\n<p><a href=\"https://github.com/wenhaochai\">Wenhao Chai</a>,<br />\n<a href=\"https://github.com/Mark12Ding\">Shuangrui Ding</a>,<br />\n<a href=\"https://github.com/zoedsy\">Shiyi Zoe Du</a>,<br />\n<a href=\"https://github.com/hehaodele\">Hao He</a>,<br />\n<a href=\"https://github.com/HectorHHZ\">Haoze He</a>,<br />\n<a href=\"https://github.com/Chonghe-Jiang\">Chonghe Jiang</a>,<br />\n<a href=\"https://github.com/nanjiangwill\">Nan Jiang</a>,<br />\n<a href=\"https://github.com/Xuan-1998\">Xuan Jiang</a>,<br />\n<a href=\"https://github.com/SeuperHakkerJa\">Xiaochen Li</a>,<br />\n<a href=\"https://github.com/pliang279\">Paul Liang</a>,<br />\n<a href=\"https://github.com/Benjamin-eecs\">Bo Liu</a>,<br />\n<a href=\"https://github.com/BoyuanLong\">Boyuan Long</a>,<br />\n<a href=\"https://github.com/joyemang33\">Qiuyang Mang</a>,<br />\n<a href=\"https://github.com/zhentingqi\">Zhenting Qi</a>,<br />\n<a href=\"https://github.com/quao627\">Ao Qu</a>,<br />\n<a href=\"https://github.com/workhardforcoding\">Mingruo Qu</a>,<br />\n<a href=\"https://github.com/YihongT\">Yihong Tang</a>,<br />\n<a href=\"https://github.com/wzk1015\">Zhaokai Wang</a>,<br />\n<a href=\"https://github.com/yanxz\">Xuezhi Yan</a>,<br />\n<a href=\"https://github.com/hanfeiyu\">Hanfei Yu</a>,<br />\n<a href=\"https://github.com/lwaekfjlk\">Haofei Yu</a>,<br />\n<a href=\"https://github.com/simonucl\">Simon Yu</a>,<br />\n<a href=\"https://github.com/MikeZheng777\">Han Zheng</a>,<br />\n<a href=\"https://github.com/kaichen-z\">Kaichen Zhou</a>,<br />\n<a href=\"https://github.com/BobbyZhouZijian\">Zijian Zhou</a>,<br />\n<a href=\"https://github.com/Jiacheng-Zhu-AIML\">Jiacheng Zhu</a>,<br />\n<a href=\"https://github.com/ZhuangDingyi\">Dingyi Zhuang</a>,<br />\n<a href=\"https://github.com/jayzou3773\">Xinkai Zou</a>.</p>\n<h2 id=\"star-history\">⭐ Star History<a class=\"headerlink\" href=\"#star-history\" title=\"Permanent link\">&para;</a></h2>\n<p><a href=\"https://star-history.com/#Human-Agent-Society/reef&Date\"><br />\n  <picture><br />\n    <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://api.star-history.com/chart?repos=Human-Agent-Society/reef&type=date&legend=top-left&sealed_token=z8QelisjJA7wNSk0E_tcfZ8YzFIYY9czZQTvqRy51kdbOVVAvadCE0iKIhrM6qPqkxdDrdRUQOLxKLlazXbTU8-l5Oxj-pYCcAF-d2erPCw3RjKZ5dJXBFd2bgPhBu65TZVZxZReP9lznlTpnGvAynSWUsO1CjapS8nXUqALToFUAHraMIapsjhfWECk&theme=dark\" /><br />\n    <source media=\"(prefers-color-scheme: light)\" srcset=\"https://api.star-history.com/chart?repos=Human-Agent-Society/reef&type=date&legend=top-left&sealed_token=z8QelisjJA7wNSk0E_tcfZ8YzFIYY9czZQTvqRy51kdbOVVAvadCE0iKIhrM6qPqkxdDrdRUQOLxKLlazXbTU8-l5Oxj-pYCcAF-d2erPCw3RjKZ5dJXBFd2bgPhBu65TZVZxZReP9lznlTpnGvAynSWUsO1CjapS8nXUqALToFUAHraMIapsjhfWECk\" /><br />\n    <img alt=\"Reef Star History Chart\" src=\"https://api.star-history.com/chart?repos=Human-Agent-Society/reef&type=date&legend=top-left&sealed_token=z8QelisjJA7wNSk0E_tcfZ8YzFIYY9czZQTvqRy51kdbOVVAvadCE0iKIhrM6qPqkxdDrdRUQOLxKLlazXbTU8-l5Oxj-pYCcAF-d2erPCw3RjKZ5dJXBFd2bgPhBu65TZVZxZReP9lznlTpnGvAynSWUsO1CjapS8nXUqALToFUAHraMIapsjhfWECk\" /><br />\n  </picture><br />\n</a></p>\n<h2 id=\"acknowledgements\">🙏 Acknowledgements<a class=\"headerlink\" href=\"#acknowledgements\" title=\"Permanent link\">&para;</a></h2>\n<p>We are particularly grateful to these projects which power important parts of Reef:</p>\n<ul>\n<li><a href=\"https://github.com/sgl-project/sglang\">SGLang</a> — high-performance inference</li>\n<li><a href=\"https://github.com/THUDM/slime\">slime</a> — model weight training</li>\n<li><a href=\"https://github.com/cordiverse/cordis\">cordis</a> — harness evolution</li>\n</ul></article>\n        \n</main>\n\n<script src=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js\"></script>\n<script>\n\nfunction initTheme() {\n  const saved = localStorage.getItem('kb-theme') || 'light';\n  document.documentElement.setAttribute('data-theme', saved);\n  updateThemeIcon(saved);\n}\nfunction toggleTheme() {\n  const cur = document.documentElement.getAttribute('data-theme') || 'light';\n  const next = cur === 'light' ? 'dark' : 'light';\n  document.documentElement.setAttribute('data-theme', next);\n  localStorage.setItem('kb-theme', next);\n  updateThemeIcon(next);\n}\nfunction updateThemeIcon(t) {\n  const btn = document.getElementById('theme-toggle-btn');\n  if (btn) btn.innerHTML = t === 'dark' ? '☀️' : '🌙';\n}\ndocument.addEventListener('DOMContentLoaded', initTheme);\n\nfunction setViewMode(m) {\n  const grid = document.getElementById('bento-grid-view');\n  const list = document.getElementById('list-table-view');\n  const bGrid = document.getElementById('view-grid-btn');\n  const bList = document.getElementById('view-list-btn');\n  if (m === 'list') {\n    if (grid) grid.style.display = 'none';\n    if (list) list.style.display = 'flex';\n    if (bGrid) bGrid.classList.remove('active');\n    if (bList) bList.classList.add('active');\n  } else {\n    if (grid) grid.style.display = 'grid';\n    if (list) list.style.display = 'none';\n    if (bGrid) bGrid.classList.add('active');\n    if (bList) bList.classList.remove('active');\n  }\n  localStorage.setItem('kb-view', m);\n}\ndocument.addEventListener('DOMContentLoaded', () => {\n  const s = localStorage.getItem('kb-view') || 'grid';\n  setViewMode(s);\n});\n\ndocument.addEventListener('DOMContentLoaded', () => {\n  document.querySelectorAll('pre').forEach(pre => {\n    const b = document.createElement('button');\n    b.className = 'copy-code-btn';\n    b.innerText = 'Copy';\n    b.onclick = () => {\n      const c = pre.querySelector('code') ? pre.querySelector('code').innerText : pre.innerText;\n      navigator.clipboard.writeText(c).then(() => {\n        b.innerText = 'Copied!';\n        setTimeout(() => { b.innerText = 'Copy'; }, 2000);\n      });\n    };\n    pre.appendChild(b);\n  });\n});\n\nwindow.addEventListener('keydown', (e) => {\n  if ((e.key === '/' || (e.metaKey && e.key === 'k')) && document.activeElement.tagName !== 'INPUT' && document.activeElement.tagName !== 'TEXTAREA') {\n    e.preventDefault();\n    const q = document.getElementById('global-search-input');\n    if (q) q.focus();\n  }\n});\n\n// Scrollspy for TOC\nwindow.addEventListener('scroll', () => {\n  const headers = document.querySelectorAll('.article-body h1, .article-body h2, .article-body h3');\n  const scrollPos = window.scrollY + 100;\n  headers.forEach(h => {\n    if (h.offsetTop <= scrollPos) {\n      const id = h.getAttribute('id');\n      if (id) {\n        document.querySelectorAll('.reading-sidebar a').forEach(a => {\n          a.classList.toggle('active', a.getAttribute('href') === '#' + id);\n        });\n      }\n    }\n  });\n});\n\ndocument.addEventListener(\"DOMContentLoaded\", function() {\n  if (window.renderMathInElement) {\n    renderMathInElement(document.body, {\n      delimiters: [\n        {left: '$$', right: '$$', display: true},\n        {left: '$', right: '$', display: false},\n      ],\n      throwOnError : false\n    });\n  }\n});\n</script>\n\n</body>\n</html>\n"