"<!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>fulltext.txt — 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>fulltext.txt</b></div>\n          <h1 class=\"report-title\">fulltext.txt</h1>\n          <div class=\"report-action-buttons\">\n            <a class=\"btn-primary-dark\" href=\"?dl=1\">Download Text</a>\n          </div>\n        </div>\n        <article class=\"article-body\"><pre><code>RSIAgent: Autonomous Exploration for Recursive\nSelf-improvement in New Environments\nSibo Zhu1,2,†,‡ , Shicheng Fan1,3,†,‡ , Xinyue Wang1,2,†,‡ , Wenyi Wu1,2,‡ , Kun Zhou1,* ,\nBiwei Huang1\n\n,\n\n,\n\n1 Aether AI 2 University of California San Diego 3 University of Illinois Chicago\n\n; † Equal contribution; ‡ Work done during internship in Aether AI\n\nDigital agents must often adapt to new environments whose interfaces, tools, and failure modes\nare not fully captured by pretrained models. We introduce RSIAgent, a training-free multi-agent\nframework for recursive self-improvement through autonomous memory construction. RSIAgent\ncoordinates curriculum, actor, and verifier agents to continually explore the environment, validate\noutcomes, and retain environment-specific knowledge, including reusable causal relationships between\nactions, conditions, and consequences. It further adopts a broad-then-deep exploration strategy,\ncombining parallel broad recursive self-exploration for discovering diverse environment structures\nwith focused deep self-exploration for uncovering hard cases, hidden constraints, boundary conditions,\nand previously unknown causal dependencies. The resulting memory is frozen and can be directly\nreused for downstream tasks without updating model parameters. Experiments on OSWorld-v2 and\nAgent’s Last Exam show that RSIAgent substantially improves strong open-source models, enabling\nKimi-K3 and GLM-5.3 to outperform frontier closed-source models including GPT-6.\nKeywords: Recursive Self-Improvement, Digital Agents, Broad &amp; Deep Self-Exploration, Agentic Causal Discovery\nCorrespondence: Kun Zhou (franciskunzhou@gmail.com)\nCode: github.com/AetherLabsAI/RSIAgent\n\nWebsite: aetherlabsai.github.io/RSIAgent/\n\n(a) Recursive self-improvement\n\n(b) Benchmark performance\n\nRSIAgent\n\nOSWorld 2.0\n\nround t+1\n\nAgents’ Last Exam (ALE)\n\n0808 offline\n\nNear-term\n\n100\n\nCurriculum Agent\nTasks\n\nExplore environment\n\nand propose tasks\n\nPartial score (%)\n\narXiv:2609.15364v2 [cs.AI] 18 Sep 2026\n\n* Corresponding author and project leader\n\nFeedback\n\nResults\n\nActor Agent\nExplore the environment\n\nvia code\n\nExploration\n\nEvolving memory\nmₜ → mₜ₊₁\n\nVerifier Agent\n\n80\n64.13\n\n70.19\n\n72.60\n\n78.98\n\n78.82\n\n79.54\n\nGPT-5.6\n\nSol\n\nClaude\n\nOpus 5\n\n82.26\n\n84.82\n\n71.60\n\n60\n43.81\n\n40\n20\n\nVerify outcomes\n\nand give feedback\n\n0\n\nNew environment\n\nGPT-5.6\n\nSol\n\nClaude\n\nOpus 5\n\nGPT-6\n RSIAgent\nAstra\n\nDeepSeek\n\nV4 Pro\n\nKimi\n\nK3\n\nGPT-6\n RSIAgent\nAstra\n\nFigure 1. Overview of RSIAgent. (a) Without any gold labels or human supervision, RSIAgent autonomously\nexplores and adapts to the new environment via the recursive curriculum-action-verification loop. (b) RSIAgent\nenables open-source models (Kimi-K3 and GLM-5.3) to surpass frontier closed-source models such as GPT-6\nAstra, on the OSWorld 2.0 (0808 offline) and Agents’ Last Exam (Near-term).\n1\n\n\fRSIAgent\n\n1\n\n2\n\nIntroduction\n\nDriven by scaling laws, large language models (LLMs) and vision-language models (VLMs) have\ndemonstrated stronger abilities in perception, reasoning, planning, and tool use [55]. Building\non these advances, digital agent systems have emerged as a promising paradigm for automating\ncomplex user tasks in digital computer environments [10, 40, 41]. They interact with environments\nby observing visual or interface information, and executing actions such as clicking or generating\nprograms [1, 4, 7, 8, 25, 37, 56].\n\nHowever, in real-world applications, digital agent systems are often required to operate in new\nenvironments whose interfaces, tools, conventions, and failure modes may not be fully captured\nby their pretrained knowledge. Existing adaptation approaches commonly rely on collecting additional interaction data for further training, often with human assistance. While effective, this\nparadigm introduces substantial cost and is difficult to apply in private or continuously changing\nenvironments [10, 23, 30]. In contrast, training-free adaptation through context management offers a\nmore flexible alternative, and recent work has shown that effectively organizing memory information\nwithin the context can substantially improve agent performance [22, 54]. Beyond simply memorizing\nsuccessful trajectories, effective adaptation should also enable agents to discover stable causal relationships between actions, environment conditions, and outcomes, and organize these relationships into\nreusable causal structures. This raises a fundamental question: can an agent autonomously discover\ncausal relations from a new environment into a reusable memory to improve itself?\nHuman learning of new software often follows a recursive loop: first identifying what needs\nto be learned, then interacting with the environment to collect experience, and finally distilling\nuseful knowledge from observed outcomes. Importantly, this process is not merely experience\naccumulation, but also a form of causal discovery: by actively trying different actions and observing\ntheir consequences, humans gradually infer which factors determine success, failure, and state\ntransitions. Inspired by this process, we design a recursive self-improvement (RSI) framework for\ndigital agents in new environments. To instantiate this loop, we introduce a multi-agent framework\nwith three complementary roles that continually expand and refine memory with newly acquired\ncausal knowledge. The curriculum agent decides what to explore next, the actor agent interacts with\nthe environment and updates the memory, and the verifier agent grounds observed outcomes with\nenvironment feedback, allowing the system to progressively uncover and consolidate reusable causal\nstructures.\n\nBuilding on this multi-agent framework, we devise RSIAgent, a two-stage training-free evolving\nstrategy that autonomously explores a new environment to construct reusable memory. We adopt a\nbroad-then-deep strategy: Broad Recursive Self-exploration (BRS) explores diverse directions in parallel to acquire an overall understanding of the environment, while Deep Recursive Self-exploration (DRS)\nfocuses on important directions to uncover corner cases, hidden constraints, and boundary conditions.\nThis coarse-to-fine process first builds broad coverage and then refines critical details, resembling\nthe pretraining-then-posttraining paradigm in modern LLM development. The resulting memory is\nfinally frozen and directly reused to support downstream task execution.\nEmpirically, RSIAgent enables strong recursive self-improvement across different open-source\nmodels. On both OSWorld-v2 [47] and Agent’s Last Exam [24], RSIAgent substantially improves KimiK3 and GLM-5.3 through autonomous exploration and memory reuse, allowing these open-source\nmodels to outperform frontier closed-source models, including Claude Opus 5 and GPT-6. These\n\n\fRSIAgent\n\n3\n\nresults demonstrate that effective agent-level self-improvement can significantly narrow, and even\nreverse, the capability gap between open- and closed-source foundation models without updating\nmodel parameters.\nOur main contributions are:\n\n• We propose RSIAgent, a general multi-agent framework for recursive self-improvement, enabling\nto autonomously acquire, verify, and reuse knowledge in new environments without updating\nmodel parameters.\n• We design Broad Recursive Self-exploration and Deep Recursive Self-exploration to first acquire\ndiverse environment knowledge and then refine hard cases, hidden constraints, and boundary\nconditions.\n• We show that RSIAgent can recursively improve open-source models, enabling Kimi-K3 and\nGLM-5.3 to outperform frontier closed-source models on OSWorld-v2 and Agent’s Last Exam.\n\n2\n\nPreliminary\nIn this paper, we formalize the digital agent and define the problem studied in this work.\n\nAgent in Digital Environments. Given a task instruction 𝑞, a digital agent interacts with an\nenvironment E through a sequence of actions 𝑎1 , . . . , 𝑎𝑇 until the task requirements are satisfied. At\nstep 𝑡 , the agent 𝜋𝜃 generates an executable action 𝑎𝑡 conditioned on the durable memory 𝑀 and the\ninteraction history ℎ𝑡 = ( 𝑜0 , 𝑎1 , . . . , 𝑎𝑡 −1 , 𝑜𝑡 −1 ), where 𝑜0 denotes the initial environment observation.\nAfter executing 𝑎𝑡 , the environment transitions to a new state and returns a new observation:\n𝑎𝑡 ∼ 𝜋𝜃 (· | 𝑞, ℎ𝑡 , 𝑀 ) ,\n\n( 𝑠𝑡 , 𝑜𝑡 ) ∼ E (· | 𝑠𝑡 −1 , 𝑎𝑡 ) .\n\n(1)\n\nHere, 𝑠𝑡 denotes the underlying environment state, which may not be directly observable to the agent.\nThe resulting observation 𝑜𝑡 is appended to the interaction history to form ℎ𝑡+1 for the next decision.\nThe interaction history is reset when switching to a new task, whereas the durable memory 𝑀 persists\nand retains reusable knowledge acquired across tasks.\nIn our implementation, we adopt a code-as-policy formulation, where each action 𝑎𝑡 is represented\nas an executable program. This action space provides a general interface for controlling heterogeneous\nsoftware systems, including GUI applications. Our RSI framework builds on this paradigm by\nintroducing autonomous exploration and persistent memory updates, enabling the agent to continually\nacquire and reuse environment-specific knowledge without modifying model parameters.\n\nProblem Statement. In this paper, we study recursive self-improvement of an agent system in a\nnew environment without updating model parameters. Given a new environment E, the agent 𝜋𝜃\nfirst performs autonomous exploration to construct a persistent memory 𝑀 that captures reusable\nenvironment-specific knowledge, and then directly reuses this memory to support downstream tasks\nat test time. Accordingly, the central problem is to design an exploration strategy that can efficiently\nidentify informative experiences, ground them with reliable environment feedback, and continuously\nconsolidate the resulting knowledge into memory.\n\n\fRSIAgent\n\n4\n\nBroad Recursive\nSelf-exploration\nEnvironment: FreeCAD modeling and verification\nFreeCAD\n\nDeep Recursive\nSelf-exploration\n\nTest-time\nMemory Reuse\n\nTarget Task\n\nFreeCAD 1.0\n\nRecreate a support bracket in FreeCAD\n\nWorkpieces\n\nreference.jpg\n\ndrawing.pdf\n\nActor\n\nVerifier\n\nRound-1: Anchor a pin\n\nCurriculum Agent\n\nExperience\nSummary\n\nPython\n\nRound-2\n\nActor\n\n• Pass–fail outcomes\n• Verifier feedback\n\nPart.makeCylinder(\n5, 18)\npin.translate(v)\ndoc.recompute()\n\nRun\n\nVerifier\n\n× Anchor mismatch\n\nMemory A\nReuse memory\nfor next round\n\nFocus on alignment\n\nRound-1\n\nTasks Group A\n\nTasks Group B\n\nBracket/holes/fillet\n\nPython\n\nCounterbored flange\n\nActor\nExperience Memory A\n\nExperience Memory B\n\nTasks Group D\nPockets\n\nRun\n\nVerifier\nMemory B\nReuse memory\nfor next round\n\nAdd support geometry\n\nTasks Group E\n\nRound-3: Add a support rib\n\nChamfers\n\nPython\n\nExperience Memory E\n\nrib.extrude(\nVector(0,t,0))\nbody.fuse(rib)\ndoc.recompute()\n\nRun\n\nRetrieve\nmemory\n\nFreeCAD\n\n✓ Alignment verified\n\nExperience Memory C\n\nActor\nExperience Memory D\n\nhole.translate(\nVector(x,y,0))\nbase.cut(hole)\ndoc.recompute()\n\nMemory guided\nWorking\n\nApply\ncode fixes\n\nRound-2: Align a hole\n\nTasks Group C\n\nSlot/gusset/radii\n\nExport Successfully\n\nFreeCAD\n\nFreeCAD\n\n✓ Geometry verified\n\nVerifier\n\nBuild CAD +\nexport STEP\n\nVerify\nsuccess\nInterpret Drawing\nAnchor Dimensions\nOffset Material\nProbe\n\nMemory C\n\nProgressively Refined Memory\nBroad\nExperience\nMemory Bank\n\nTargeted\nExperience\nMemory Bank\n\nFrozen Memory\n\nFigure 2. Overview of RSIAgent, illustrated with a FreeCAD task. BRS acquires diverse experience through\nparallel exploration; DRS iteratively refines memory through going deeper. The curriculum agent proposes\ntasks, the actor agent executes code-based actions and updates memory, and the verifier agent checks outcomes.\nThe accumulated memory is frozen and reused for downstream tasks.\n\n3\n\nMethodology\n\nIn this section, we present RSIAgent, a recursive self-improvement framework that enables\nagents to autonomously explore and adapt to new environments. Section 3.2 introduces the multiagent harness framework, which decomposes the agent system into three collaborative agent roles.\nSection 3.3 then presents our broad-then-deep recursive self-exploration strategy for continually\nupdating the memory and reusing it at test time. Figure 2 provides an overview of our method.\n\n3.1\n\nUnified State and Structured Workflow\n\nReliable recursive self-improvement requires a clear representation of task progress and a consistent\nprocess for updating it. StructAgent [35] addresses this through two complementary components: a\nunified state that records task requirements, useful execution information, and verified evidence; and\na structured workflow that grounds progress updates in verification.\nBuilding on this design, RSIAgent connects curriculum generation, execution, verification, and\nmemory consolidation in a recursive workflow. The curriculum agent guides exploration with the\ntarget query as a reference, while the actor agent executes the proposed tasks and the verifier agent\ngrounds their outcomes in environment feedback. The resulting experience is consolidated into\npersistent memory and informs subsequent curriculum decisions and execution.\n\n\fRSIAgent\n\n3.2\n\n5\n\nMulti-Agent Harness Framework\n\nTo better control autonomous exploration and self-improvement in a new environment, we design a\nmulti-agent harness framework that can operate through a coordinated recursive loop. The framework\nconsists of an actor agent with evolvable memory, a verifier agent for environment feedback grounding,\nand a curriculum agent for guiding exploration.\nActor Agent with Evolvable Memory. The actor agent is the primary policy model in the multiagent system, responsible for understanding the environment and generating executable actions. To\nsupport adaptation across downstream tasks in an environment, the actor agent is equipped with a\npersistent memory that stores environment-specific knowledge, reusable procedures and scripts, and\nlessons learned from previous executions. This memory is evolvable: after the verifier agent evaluates\nan outcome, the actor agent consolidates the grounded experience by adding new knowledge and\nrevising or removing outdated information when necessary. The updated memory is then inherited by\nsubsequent actor agent instances, allowing useful knowledge to accumulate throughout exploration.\nVerifier Agent with Environment Feedback. The verifier agent serves as the independent evaluator\nin the multi-agent system, responsible for determining whether the actor agent’s execution has\nsuccessfully satisfied the task requirements. To make this judgment reliable, it directly inspects the\nfeedback from the environment, including execution results, interface states, and other observable\nevidence, and grounds its decision in these signals. The verifier agent is isolated from the actor\nagent’s private reasoning and memory, which helps reduce correlated errors during evaluation. Based\non grounded evidence, it returns a success or failure judgment together with supporting feedback,\nwhich is then used to determine whether the corresponding experience should be consolidated into\nthe memory.\nCurriculum Agent for Guiding Exploration. The curriculum agent serves as the high-level coordinator in the multi-agent system, responsible for deciding what the system should explore next.\nConcretely, it generates suitable practice tasks for the actor and verifier agents based on the current\ntarget, accumulated memory, and previous exploration outcomes. By selecting prerequisite skills,\ninformative variants, failure-driven practice, and stress-test cases, the curriculum agent determines the\ndirection of exploration and progressively expands the coverage of the evolvable memory. Exploration\ncontinues until the generated tasks are unlikely to contribute substantial new knowledge.\n\n3.3\n\nMulti-stage Autonomous Exploration for RSI\n\nBuilding on the multi-agent framework, RSIAgent organizes autonomous exploration into two complementary stages: Broad Recursive Self-exploration (BRS), which discovers diverse and reusable experiences to build a broad understanding of the environment, and Deep Recursive Self-exploration (DRS),\nwhich refines the accumulated knowledge through target-driven practice. After exploration, the\nresulting memory is frozen and directly reused for final evaluation.\nStage-1: Broad Recursive Self-exploration. Broad Recursive Self-exploration (BRS) aims to rapidly\nbuild a broad understanding of a new environment by collecting diverse interaction experiences.\nBRS follows a recursive exploration loop: the curriculum agent first generates exploration tasks,\nthe actor agents execute them, and the verifier agents evaluate the resulting outcomes. To ensure\nbroad coverage, at each iteration, the curriculum agent proposes multiple tasks spanning different\n\n\fRSIAgent\n\n6\n\nexploration directions, which are executed and verified in parallel. After collecting the resulting\ntrajectories and verified feedback, the curriculum agent uses the accumulated experience to identify\nremaining knowledge gaps and generate more informative tasks for the next iteration. Through\nthis recursive process, BRS progressively expands the coverage of environment-specific knowledge,\nreusable procedures, and failure patterns.\nStage-2: Deep Recursive Self-exploration. Deep Recursive Self-exploration (DRS) aims to refine\nthe accumulated memory by focusing on important knowledge gaps, hard cases, and boundary\nconditions revealed during task execution. DRS follows a sequential recursive loop that progressively\nincreases exploration difficulty. The curriculum agent first proposes a challenging task that is likely to\nexpose unpredictable issues, hidden constraints, or weaknesses in the current memory. The actor\nagent then attempts the task using the accumulated memory, while the verifier agent evaluates the\noutcome and provides grounded feedback. Based on the resulting successes, failures, and newly\nrevealed uncertainties, the curriculum agent generates a more challenging follow-up task for the\nnext iteration. Each verified experience is consolidated into memory before the subsequent task is\nproposed, allowing DRS to continuously push the agent toward harder and less explored cases.\nTest-time Memory Reuse. After exploration, the accumulated memory is frozen and provided to the\nactor agent for test-time use. At this stage, the curriculum agent and all memory updates are disabled.\nGiven a target task, the actor agent directly reuses the procedures, discovered constraints, and failure\nlessons stored in memory to guide its actions, while the verifier agent evaluates the resulting outcome\nagainst the task requirements. This action–verification loop continues until the verifier agent confirms\nthat all task requirements have been satisfied.\n\n4\n\nExperiments\n\n4.1\n\nExperimental Setup\n\nBenchmarks and Metrics. We evaluate RSIAgent on OSWorld 2.0 (0808 offline) and Agents’ Last\nExam (ALE) Near-term, which require agents to complete tasks in interactive software environments\n[24, 47]. Our OSWorld results are aggregated over 82 offline tasks and ALE results cover all 67 Nearterm tasks. We report partial score, the mean task score, and binary accuracy, the proportion of tasks\nreceiving full credit. Both metrics are expressed as percentages. Detailed benchmark descriptions,\nagent configurations, and RSI task-selection and reporting protocols are provided in Appendix C.\nImplementation Details. Our configuration uses a shared code-as-policy harness for RSIAgent. GLM5.3 serves as the default actor agent, while Kimi-K3 serves as the verifier agent and the curriculum\nagent in a separate context. Both exploration stages use the target query as a reference for the\ncurriculum agent. For Broad Recursive Self-exploration, we set a nominal budget of eight exploration\nprojects, with up to four projects executed concurrently. The budget is checked between completed\nwaves, without interrupting an ongoing wave. For Deep Recursive Self-exploration, exploration\nproceeds sequentially until the curriculum agent determines that no further useful practice is needed.\nIn this stage, a successful practice does not automatically terminate exploration: the curriculum\nagent reviews the verified outcome and accumulated memory to decide whether additional practice\nis worthwhile. After exploration, the accumulated memory is frozen and reused for evaluation.\n\n\fRSIAgent\n\n7\n\nTable 1. Model comparison on OSWorld 2.0 (0808 offline) and Agents’ Last Exam Near-term. Baseline results\nare mostly copied from their official technical reports or blogs.\nOSWorld 2.0\n\n0808 offline / 82 tasks\n\nAgents’ Last Exam\nNear-term / 67 tasks\n\nModel / method\n\nPartial (%)\n\nBinary (%)\n\nPartial (%)\n\nBinary (%)\n\nOpen-source Models\nKimi-K2.6\nMiMo-V2.5\nDeepSeek V4 Pro\nQwen3.8-Max\nKimi-K3\n\n22.10\n—\n—\n—\n58.30\n\n4.60\n—\n—\n—\n—\n\n21.70\n23.60\n43.81\n52.50\n71.60\n\n9.20\n8.60\n19.90\n27.00\n40.30\n\nClosed-source Models\nClaude Opus 4.8\nGemini-3.8-Flash\nGPT-5.6 Sol\nMuse Spark 1.3\nClaude Fable 5\nClaude Opus 5\nGPT-6 Astra\n\n54.80\n59.00\n64.13\n66.90\n—\n70.19\n72.60\n\n20.60\n—\n28.10\n—\n—\n34.72\n—\n\n64.00\n—\n78.82\n—\n71.10\n79.54\n82.26\n\n43.30\n—\n47.76\n—\n37.30\n46.27\n52.24\n\nOurs (Using Open-source Models)\nRSIAgent (w/o RSI)\nRSIAgent\n\n71.97\n78.98\n\n37.80\n42.68\n\n83.75\n84.82\n\n49.25\n50.75\n\n—: not reported in the cited benchmark leaderboards or its official technical reports.\n\n\fRSIAgent\n\n4.2\n\n8\n\nMain Results\n\nEffect of Recursive Self-Improvement. RSI improves the reported aggregate performance of the\nexisting agent harness on both benchmarks. As shown in Table 1, OSWorld partial score increases\nfrom 71.97 to 78.98, while binary accuracy increases from 37.80 to 42.68. On ALE, Partial increases\nfrom 83.75 to 84.82, and binary accuracy increases from 49.25 to 50.75. Two-stage evolving brings\nclear gains extending both procedure correctness and full task completion. For the tasks without a\ncompleted RSI result, we retain the baseline scores for them (see Appendix C.3 for task-selection and\naggregation details).\nComparison with Frontier Models. RSIAgent achieves the highest reported partial-credit scores\namong the systems compared in Table 1. Using GLM-5.3 and Kimi-K3, it reaches 78.98 on OSWorld\n2.0 and 84.82 on ALE, exceeding the reported GPT-6 Astra scores by 6.38 and 2.56 percentage points,\nrespectively, and also scoring above Claude Opus 5 on both benchmarks. These results highlight\nthe value of combining our multi-agent harness framework with two-stage exploration strategy and\nmemory reuse to strengthen open-source models without updating model parameters.\n\n4.3\n\nEffect of RSI Rounds\n\nPartial score (%)\n\nWe examine RSI performance on\nT044\nT049\nT065\nthree representative OSWorld 2.0 tasks:\n100\nT044 (video editing), T049 (presenta80\ntion repair), and T065 (railway book60\ning). Figure 3 presents their partial40\nscore profiles, with RSIAgent (w/o RSI)\n20\n0\nas the baseline. The horizontal axis\n0\n1\n2\n3\n4\n5\n6\n7\n8\nshows steps 0–8, with step 0 denoting\nRSI step (0 = baseline)\nthe baseline. By step 8, T044, T049, and\nFigure 3. Partial scores across RSI steps for three OSWorld 2.0 tasks.\nT065 reach scores of 100%, 80%, and Curves show T044, T049, and T065, with RSIAgent (w/o RSI) as the\n100%, respectively. BRS progressively baseline.\naccumulates diverse procedures and environment knowledge in memory, while DRS refines task-specific details. As this knowledge comes to\ncover a target task’s critical requirements, resolving a remaining bottleneck can produce a discrete\nscore increase. Such single-task evaluations reveal these breakthroughs more readily than the gradual\nmemory accumulation that precedes them. Detailed case studies of how memory grows and supports\ntask execution are provided in Appendix E.\n\n4.4\n\nAblation Study\n\nWe compare the exploration stages on four OSWorld 2.0 (0808 offline) tasks: T080 (WPS spreadsheet repair), T085 (REAPER audio editing), T089 (browser-based presentation repair), and T106 (3D\nSlicer liver segmentation). The w/o BRS variant skips Broad Recursive Self-exploration and performs\nonly Deep Recursive Self-exploration from empty memory. Conversely, w/o DRS evaluates the memory\nacquired through broad exploration alone, while w/o RSI directly evaluates the agent with empty\nmemory. Full RSI combines both stages. Figure 4 reports task-level partial scores; task selection,\nrepetition counts, and exploration budgets are detailed in Appendix C.5.\n\n\fRSIAgent\n\n9\n\nCombining broad and deep exploration yields the highest reported partial score on all four tasks.\nFull RSI reaches a mean score of 74.54%, compared with 65.52% for broad-only exploration and\n56.50% for deep-only exploration. Broad-only exploration improves over the baseline on every task,\nwhereas deep-only exploration falls below the baseline on T085 and T089. These observations support\ncombining Broad Recursive Self-exploration with subsequent Deep Recursive Self-exploration.\nw/o RSI\n\nw/o BRS\n\nPartial score (%)\n\n100\n\n91.07\n\nw/o DRS\n\nFull RSI (mean)\n\n94.15\n77.00\n\n80\n\n68.69\n60.30\n\n60\n\n55.46\n\n68.00\n\n67.50\n60.06\n\n81.25\n\n64.00\n54.06\n36.01\n\n40\n\n41.66\n\n38.55\n\n20\n5.00\n\n0\n\nT080\nSpreadsheet repair\n\nT085\nAudio editing\n\nT089\nWeb presentation\n\nT106\nLiver segmentation\n\nFigure 4. Stage comparison on four OSWorld 2.0 tasks. Full RSI bars average two historical evaluations.\n\n4.5\n\nEvaluation in Game Environments\n\nWe further evaluate whether RSIAgent generalizes beyond standard computer-use tasks to autonomous game development, an interactive setting that requires agents to repeatedly play, diagnose,\nand modify executable games. We randomly sample 40 tasks from GameCraft-Bench [17] and compare RSIAgent against Play2Code [11], a continual game-improvement baseline based on iterative\nplaytesting and code revision. Detailed model configurations and development budgets are provided\nin Appendix D.\n\nAs shown in Table 2, first, RSIAgent substantially improves game quality across all base generators.\nSecond, while Play2Code improves games from weaker generators, its benefit diminishes as the base\ngame becomes stronger and it can even degrade already high-quality games. In contrast, RSIAgent\nconsistently improves both weak and strong base games. Third, incorporating RSI experience further\nimproves quality. The accumulated experience provides reusable knowledge for diagnosing and\nediting different types of games.\n\n4.6\n\nFailure Modes Analysis\n\nOur failure mode analysis identifies three mechanisms that limit recursive self-improvement:\ninsufficiently targeted exploration, incomplete verification, and unreliable memory consolidation.\nThese mechanisms can interact, allowing an initially uncertain or potentially incorrect operations,\nto persist through practice and influence subsequent agent behaviors. Figure 5 summarizes these\nmechanisms.\n\n\fRSIAgent\n\n10\n\nTable 2. Performance on 40 GameCraft-Bench tasks. Rows are grouped by the generator of the frozen base\ngame 𝑃0 . Within each group, all development methods use the same starting game and development backbone.\nThe best score for each quality metric within each group is shown in bold.\nMethod\n\nMechanics\n\nDepth\n\nVisuals\n\nArt\n\nOverall ↑\n\nGenerator: Codex + GPT-5.5 (high)\nBaseline\n61.5\n+ Play2Code\n60.0\n+ RSIAgent (w/o RSI)\n66.4\n+ RSIAgent\n69.7\n\n53.0\n50.2\n57.1\n61.0\n\n54.7\n52.2\n59.3\n62.6\n\n47.9\n47.5\n53.8\n57.1\n\n52.77\n51.05\n57.84\n61.28\n\nGenerator: Kimi-K2.6\nBaseline\n+ Play2Code\n+ RSIAgent (w/o RSI)\n+ RSIAgent\n\n43.5\n48.9\n55.2\n59.0\n\n33.5\n36.5\n43.1\n47.2\n\n34.1\n40.9\n47.0\n50.8\n\n22.6\n27.9\n34.6\n38.1\n\n31.28\n36.02\n42.61\n46.37\n\nGenerator: GLM-5.3-Flash\nBaseline\n+ Play2Code\n+ RSIAgent (w/o RSI)\n+ RSIAgent\n\n36.5\n48.6\n55.1\n59.2\n\n29.6\n37.6\n44.0\n48.1\n\n31.4\n40.0\n47.3\n51.3\n\n28.5\n33.7\n40.1\n43.8\n\n30.55\n38.25\n44.73\n48.72\n\nGenerator: Qwen3.8-27B\nBaseline\n+ Play2Code\n+ RSIAgent (w/o RSI)\n+ RSIAgent\n\n50.5\n58.1\n64.3\n68.0\n\n36.4\n43.4\n50.2\n54.1\n\n39.7\n45.3\n52.1\n55.9\n\n42.8\n48.4\n55.0\n58.7\n\n41.30\n47.67\n53.82\n57.46\n\nInsufficiently Targeted Exploration. Additional practice may leave target-specific weaknesses\nunresolved when it does not challenge the decisions responsible for them. In the inspected trajectories,\nthe curriculum agent generated practice involving document processing, conflicting information, and\nsubmission persistence, while obtaining unavailable user information remained untested. The problematic missing-information rules consequently remained in memory. These observations highlight\nthe importance of selecting experiences that challenge uncertain knowledge and address unresolved\ntarget requirements, beyond expanding the diversity of practice tasks.\nIncomplete Verification. Local verification can approve an execution without establishing that all\ntask requirements have been satisfied. In the audited cases, the verifier agent returned PASS despite\nunsupported field values or artifact discrepancies under the official rubric. Checking that an intended\noutput was produced does not establish that the underlying interpretation or requirement checklist\nwas complete. This gap can affect both final execution and subsequent learning, because an accepted\nmistake may become the basis for future memory updates and exploration decisions.\nUnreliable Memory Consolidation. An inadequately verified decision can become a reusable rule\nthat negatively influences subsequent execution. In the inspected form-completion runs, the actor\nagent retained rules that treated missing-data markers as valid answers or interpreted unavailable\ninformation as a negative answer. Subsequent attempts reused these rules without obtaining the\nmissing facts. This failure illustrates that useful memory must preserve the conditions and uncertainty\n\n\fRSIAgent\n\n11\n\n(a) Insufficiently targeted\nexploration\n\nUnchallenged\nassumptions\n1/4 (25%)\n\nTarget-skill\nmismatch\n3/4 (75%)\n\n(b) Incomplete\nverification\n\nFidelity\ngaps\n3/6 (50%)\n\nGrounding\ngaps\n2/6 (33.3%)\n\n(c) Unreliable memory\nconsolidation\n\nUncertainty\nnot enforced\n1/3 (33.3%)\nRule\nscope loss\n2/3 (66.7%)\n\nCoverage\ngaps\n1/6 (16.7%)\n\nFigure 5. Failure-mode subtypes from selected case audits. Labels show counts and within-mode percentages;\ncases may contribute to multiple panels.\n\nof an experience, rather than treating local acceptance as evidence of general validity.\n\n\fRSIAgent\n\n5\n\n12\n\nRelated Work\n\nDigital Agents. Digital agents use language-model reasoning and tool use to complete tasks in\nsoftware environments [10, 55]. Benchmarks evaluate their capabilities across desktop applications\nand tool environments [24, 38, 40, 47], including changing user requirements and the quality of\nexecution outcomes [6, 11, 17, 18, 58]. Research has improved visual grounding and GUI interaction [4, 8, 56]. OpenCUA [30] learns from human demonstrations, UI-TARS-2 [27] uses multi-turn\nreinforcement learning, and EvoCUA [42] combines synthetic experience with policy optimization.\nCodeAct represents actions as executable programs that can be revised using execution feedback [29].\nCradle, OS-Copilot, and Agent S2 support application control, reusable skills, and coordinated\nexecution [1, 25, 37]. Other studies improve information organization, planning, and failure recovery [7, 12, 23, 34, 35], while research on external evidence and feedback incentives examines ways to\nimprove reliability [5, 19, 43]. We focus on adapting pretrained agents to new software environments\nthrough autonomous exploration. RSIAgent uses code-as-policy to acquire the environment-specific\nknowledge needed for downstream tasks, without further model training.\nRecursive Self-Improvement of Agents. Research on agent self-improvement explores changes\nto agent designs [9, 20, 21], prompts and skills [2, 45], and improvement procedures [31, 48].\nDGM evaluates self-modifications on coding benchmarks [52], while HGM [28] uses descendant\nperformance to identify agents with greater potential for further improvement. Hyperagents [53]\nallows a meta-agent to modify both itself and the task agent, enabling the improvement procedure\nto evolve alongside task-solving capabilities. These methods study self-improvement with access\nto benchmark scores or labeled reference data. Agents can also learn from generated training\nexperience [16, 39, 49] or accumulate experience in reflections, skills, manuals, and persistent\nmemory [3, 13, 22, 26]. Recent work improves how this knowledge is organized, updated, and\nretrieved [32, 33, 36, 44, 51, 54]. HyMEM combines symbolic nodes and trajectory embeddings\nin a hybrid memory graph, supporting multi-hop retrieval and inference-time memory updates for\ncomputer-use agents [57]. Voyager uses an automatic curriculum to acquire skills [26]. EchoTrailGUI and ZhuLong explore environments to collect reusable experience [14, 15], while CoEvoSkills\nand Recuris use verification feedback to refine skills and memory [46, 50]. We study recursive\nself-improvement in new digital environments without external task rewards. RSIAgent autonomously\nexplores the environment under a broad-then-deep exploration strategy and uses environment\nfeedback to construct reusable memory. This memory guides further exploration and supports\ndownstream task execution without updating model parameters.\n\n6\n\nConclusion\n\nIn this work, we introduce RSIAgent, a training-free multi-agent framework for recursive selfimprovement in new digital environments. By coordinating curriculum, actor, and verifier agents,\nRSIAgent autonomously acquires, verifies, and consolidates environment-specific knowledge into\nreusable memory. Its broad-then-deep exploration strategy first builds diverse environment coverage\nthrough broad recursive self-exploration (BRS), and then focuses on hard cases, hidden constraints,\nand boundary conditions through deep recursive self-exploration (DRS). Experiments on OSWorld-v2\nand Agent’s Last Exam show that RSIAgent can substantially improve strong open-source models and\nenable them to outperform frontier closed-source models without updating model parameters.\n\n\fRSIAgent\n\n13\n\nIn future work, we plan to extend recursive self-improvement beyond digital computer-use environments to broader interactive domains, including AI for Science, where agents must learn specialized\ntools, workflows, and scientific procedures, and games, which provide complex and continuously\nevolving environments for studying long-horizon exploration, adaptation, and self-improvement.\n\n7\n\nLimitations\n\nRSIAgent has several limitations. First, recursive self-improvement requires additional test-time\nexploration and practice, which can introduce substantial computation cost. Second, performance\ndepends on finite exploration budgets, stopping policies, and the quality of the learned memory. Third,\nthe model-based verifier agent may produce incorrect judgments that propagate into later exploration\nand memory updates. Finally, different environments may require different tools, verification signals,\nand exploration strategies, and our current experiments do not fully isolate the contribution of every\ncomponent. For ethical concerns, RSIAgent can autonomously explore software environments, execute\nprograms, and retain reusable memory, introducing risks such as unintended actions, unauthorized\naccess, and privacy leakage. Our experiments are conducted in controlled environments with permitted\ntools and data access.\n\n\fRSIAgent\n\n14\n\nReferences\n[1] Saaket Agashe, Kyle Wong, Vincent Tu, Jiachen Yang, Ang Li, and Xin Eric Wang. Agent\ns2: A compositional generalist-specialist framework for computer use agents, 2025. URL\nhttps://arxiv.org/abs/2504.00906.\n[2] Lakshya A Agrawal, Shangyin Tan, Dilara Soylu, Noah Ziems, Rishi Khare, Krista Opsahl-Ong,\nArnav Singhvi, Herumb Shandilya, Michael J Ryan, Meng Jiang, et al. Gepa: Reflective prompt\nevolution can outperform reinforcement learning. In International Conference on Learning\nRepresentations, volume 2026, pages 8479–8565, 2026.\n[3] Minghao Chen, Yihang Li, Yanting Yang, Shiyu Yu, Binbin Lin, and Xiaofei He. Automanual:\nConstructing instruction manuals by llm agents via interactive environmental learning. Advances\nin Neural Information Processing Systems, 37:589–631, 2024.\n[4] Kanzhi Cheng, Qiushi Sun, Yougang Chu, Fangzhi Xu, Yantao Li, Jianbing Zhang, and Zhiyong\nWu. Seeclick: Harnessing gui grounding for advanced visual gui agents, 2024. URL https:\n//arxiv.org/abs/2401.10935.\n[5] Shicheng Fan, Haochang Hao, Dehai Min, Weihao Liu, Philip S Yu, and Lu Cheng. Verifiable\nrewards beyond math and code: Lightweight corpus-grounded process supervision for factual\nquestion answering. arXiv preprint arXiv:2605.29648, 2026.\n[6] Shicheng Fan, Mingdai Yang, Duohao Wang, Canyu Chen, Yongfeng Zhang, Hua Wei, Manling\nLi, Julian McAuley, Kun Zhang, Philip S Yu, et al. Agentic commerce world: An auditable and\nverifiable environment for vibe commerce. arXiv preprint arXiv:2608.02441, 2026.\n[7] Qijun Han, Haoqin Tu, Zijun Wang, Haoyue Dai, Yiyang Zhou, Nancy Lau, Alvaro A. Cardenas,\nYuhui Xu, Ran Xu, Caiming Xiong, Zeyu Zheng, Huaxiu Yao, Yuyin Zhou, and Cihang Xie.\nVlaa-gui: Knowing when to stop, recover, and search, a modular framework for gui automation,\n2026. URL https://arxiv.org/abs/2604.21375.\n[8] Hongliang He, Wenlin Yao, Kaixin Ma, Wenhao Yu, Yong Dai, Hongming Zhang, Zhenzhong\nLan, and Dong Yu. Webvoyager: Building an end-to-end web agent with large multimodal\nmodels, 2024. URL https://arxiv.org/abs/2401.13919.\n[9] Shengran Hu, Cong Lu, and Jeff Clune. Automated design of agentic systems. In International\nConference on Learning Representations, volume 2025, pages 21344–21377, 2025.\n[10] Xueyu Hu, Tao Xiong, Biao Yi, Zishu Wei, Ruixuan Xiao, Yurun Chen, Jiasheng Ye, Meiling\nTao, Xiangxin Zhou, Ziyu Zhao, Yuhuai Li, Shengze Xu, Shenzhi Wang, Xinchen Xu, Shuofei\nQiao, Zhaokai Wang, Kun Kuang, Tieyong Zeng, Liang Wang, Jiwei Li, Yuchen Eleanor Jiang,\nWangchunshu Zhou, Guoyin Wang, Keting Yin, Zhou Zhao, Hongxia Yang, Fan Wu, Shengyu\nZhang, and Fei Wu. Os agents: A survey on mllm-based agents for general computing devices\nuse, 2025. URL https://arxiv.org/abs/2508.04482.\n[11] Yixu Huang, Bo Li, Na Li, Zhe Wang, Kaijie Chen, Haonan Ge, Qingyi Si, Yuanzhe Shen,\nRuihan Yang, Guangjing Wang, et al. Gui agents for continual game generation. arXiv preprint\narXiv:2605.28258, 2026.\n\n\fRSIAgent\n\n15\n\n[12] Jinhao Jiang, Kun Zhou, Zican Dong, Keming Ye, Xin Zhao, and Ji-Rong Wen. Structgpt: A\ngeneral framework for large language model to reason over structured data. In Proceedings\nof the 2023 conference on empirical methods in natural language processing, pages 9237–9251,\n2023.\n[13] Seth Karten, Alex L Zhang, Kevin Thomas, Sebastian Müller, Elie Bakouch, Daniel Auras, Mika\nSenghaas, Fares Obeid, Konstantin Dunas, Johannes Hagemann, et al. Prime agent: A selfimproving rlm harness. arXiv preprint arXiv:2608.23552, 2026.\n[14] Runze Li, Yuwen Zhai, Bo Xu, LiWu Xu, Nian Shi, Wei Zhang, Ran Lin, and Liang Wang.\nEchotrail-gui: Building actionable memory for gui agents via critic-guided self-exploration.\nIn Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages\n9347–9356, 2026.\n[15] Yang Liu, Shiwei Hou, Xiyuan Chen, Yu Wang, Sen Yuan, Qirui Gan, Shao You, Feifan Chen,\nWencheng Li, Shuyang Hu, et al. Zhulong: Execution-grounded llm agent for eda scripting with\noffline api self-exploration. arXiv preprint arXiv:2608.07925, 2026.\n[16] Shuqi Lu, Chaofan Li, Kun Luo, Zhang Zhang, Hui Wang, Hongwang Xiao, Zheng Liu, Lei\nXiong, Jiahao Wang, Sen Wang, et al. Arex: Towards a recursively self-improving agent for deep\nresearch. arXiv preprint arXiv:2607.21461, 2026.\n[17] Tongxu Luo, Rongsheng Wang, Jiaxi Bi, Chenming Xu, Zhengyang Tang, Jianlong Chen, Juhao\nLiang, Ke Ji, Shuqi Guo, Yuhao Du, et al. Gamecraft-bench: Can agents build playable games\nend-to-end in a real game engine? arXiv preprint arXiv:2606.17861, 2026.\n[18] Chunyu Miao, Henry Peng Zou, Yangning Li, Yankai Chen, Yibo Wang, Fangxin Wang, Yifan\nLi, Wooseong Yang, Bowei He, Xinni Zhang, et al. Recode-h: A benchmark for research code\ndevelopment with interactive human feedback. arXiv preprint arXiv:2510.06186, 2025.\n[19] Dehai Min, Kailin Zhang, Tongtong Wu, and Lu Cheng. Quco-rag: Quantifying uncertainty\nfrom the pre-training corpus for dynamic retrieval-augmented generation. In Findings of the\nAssociation for Computational Linguistics: ACL 2026, pages 16482–16500, 2026.\n[20] Anton Razzhigaev, Andrei Gritsaev, Andrei Kaznacheev, Nikita Dragunov, Roman Yampolskiy,\nand Andrei Kuznetsov. Ouroboros: A self-developing frontier coding agent with reviewed core\nevolution. arXiv preprint arXiv:2608.08311, 2026.\n[21] Maxime Robeyns, Martin Szummer, and Laurence Aitchison. A self-improving coding agent,\n2025. URL https://arxiv.org/abs/2504.15228.\n[22] Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language agents with verbal reinforcement learning. Advances in neural information\nprocessing systems, 36:8634–8652, 2023.\n[23] Xueqiao Sun, Xiaohan Wang, Ludwig Schmidt, Serena Yeung-Levy, and Yuhui Zhang. Learning from failure: Inference-time self-improvement for computer-use agents. arXiv preprint\narXiv:2606.31270, 2026.\n\n\fRSIAgent\n\n16\n\n[24] Yiyou Sun, Xinyang Han, Weichen Zhang, Yuanbo Pang, Tianyu Wang, Yuhan Cao, Yixiao Huang,\nChris Duroiu, Haoyun Zhang, Jeffrey Lin, Weishu Zhang, Tyler Zeng, Ying Yan, Bo Liu, Hanson\nWen, Mingyang Xu, Xiaoyuan Liu, Zimeng Chen, Weiyan Shi, Amanda Dsouza, Vincent Sunn\nChen, Patrick Bryant, Carl Boettiger, Yamini Rangan, Bradley Rothenberg, Kyle Steinfeld,\nArvind Rao, Tapio Schneider, Georgios Yannakakis, Laure Zanna, Kaan Ozbay, Ida Sim, Tarek\nZohdi, George Em Karniadakis, Jack Gallant, Teresa Head-Gordon, Yushan Li, Wenxi Deng,\nTao Sun, Huiqi Wang, Zhun Wang, Justin Xu, Chris Yuhao Liu, Yafei Cheng, Rongwang Hu,\nAras Bacho, Shengcao Cao, Zengyi Qin, Yixiong Chen, Hengduan Fan, Hao Liu, Lin Zeng,\nShashank Muralidhar Bharadwaj, Litian Gong, Yingxuan Yang, Maojia Song, Ruheng Wang,\nZongzheng Zhang, Honglin Bao, Shuo Lu, Jianhong Tu, Zhonghua Wang, Zheng Zhang, Zijiao\nChen, Yanqiong Jiang, Zhendong Li, Bohan Lyu, Chang Ma, Peiran Xu, Benran Zhang, Shangding\nGu, Haoyue Hua, Haoyang Li, Wanzhe Liao, Chengzhi Liu, Junbo Peng, Haoran Sun, Zechen\nXu, Bo Chen, Jiayi Cheng, Yi Jiang, Keying Kuang, Yuan Li, Youbang Pan, Ziyan Rao, Alexander\nSchubert, Yifan Shen, Vincent Siu, Xiatao Sun, Kangqi Zhang, Xiaopan Zhang, Yuchen Zhu,\nIshaan Singh Chandok, Lei Ding, Jingxuan Fan, Andrew Glover, Jiaming Hu, Yiran Hu, Wenbo\nHuang, Zixin Jiang, Haoran Jin, Lukas Kim, Ming Liu, Yang Liu, Alireza Rafiei, Xuhuan Shen,\nKunyang Sun, Sophia Sun, Ting Sun, Eric Wang, Yixin Wang, Hanwen Xing, Sihan Xu, Yuzheng\nXu, Zhongxing Xu, Zhiling Yan, Boqin Yuan, Ruiqi Zhang, Yifan Zhang, Zibo Zhao, Liana,\nSantanu Bosu Antu, Haoyue Bai, Carlo Bosio, Joseph Cavanagh, Patricia Cavazos-Rehg, Tianxing\nChen, Xuewen Chen, Yipu Chen, Chenyu Zhu, Chen Dai, Stefano De Castro, Yunfu Deng,\nKaustubh Dhole, Jiayuan Ding, Chenchen Du, Zhehang Du, Hao Fan, Run-Ze Fan, Hengyu\nFu, Shi Gu, Yifan Gu, Charlie Guo, Baihe Huang, Baixiang Huang, Rimika Jaiswal, Zhihan\nJiang, Ran Jin, Erin Kasson, Xin Lan, Joseph Lee, Deren Lei, Chenyu Li, Daofeng Li, Haitao\nLi, Hongwei Li, Jingyan Li, Xiao Li, Yi Li, Yinsheng Li, Yuangang Li, Zhixu Li, Wenyu Liang,\nLongtai Liao, Kevin Qinghong Lin, Andy Zeyi Liu, Che Liu, Jiaming Liu, Kaiyuan Liu, Xuan\nLiu, Pan Lu, Wenbo Lv, Yicheng Lyu, Qiuyang Mang, Kyle Montgomery, Yuzhou Nie, Ruoxi\nNing, Jorin Overwiening, Xu Pan, Layna Paraboschi, Core Francisco Park, Justin Purnomo,\nSwati Rajwal, Scott Rankin, Bixuan Ren, Yiren Rong, HaoYang Shang, Ventus Shaw, Fiona\nShen, Jiawei Shen, Minqi Shi, Shi Qiu, Huaxiu Yao, Tianneng Shi, Jonah So, Vladislav Susoy,\nHannah Szlyk, Haocheng Wang, Jialu Wang, Wei Wang, Xinyu Wang, Zehao Wang, Dowling\nWong, Angela Wu, Dehao Wu, Fangyu Wu, Mengyuan \"Millie\" Wu, Yu Wu, Yuchen Wu, Yuhao\nWu, Qingpo Wuwu, Weihang Xiao, Yongyi Xiong, Fan Xu, Ruiling Xu, Mingxuan Yan, Benjamin\nYang, Jirong Yang, Sen Yang, Xiaoli Yang, Yushi Yang, Haoran Ye, Xiaohu Yu, Zhengming Yu,\nChenlong Zhang, Chi Zhang, Hanning Zhang, Hanwen Zhang, Junge Zhang, Kunpeng Zhang,\nSong Zhang, Wenjin Zhang, Wenshuo Zhang, Ying Zhang, Yizhi Zhang, Brian Zhao, Qijian\nZhao, Yimin Zhao, Yuhaohua Zheng, Liwei Zhou, Tianyue Zhou, Sichen Zhu, Siqi Zhu, Yan\nZhu, Yishu Zhu, Jierui Zuo, Chonghao Cai, Helena Casademunt, Wenjia Chen, Cheng Cheng,\nNawen Deng, Rao Fu, Tianfu Fu, Yifan Han, He Ren, Zhenyu He, Qiao Jin, Langlang Li, Yuetai\nLi, Sylvia Liu, Lu Lu, Luqing Zhou, Subhabrata Mukherjee, Yunqi Ouyang, Yin Ren, Dawei Shi,\nHaoran Wu, Zhiyue Wu, Hannah Yao, Zhuoran Yi, Jenny Yu, Rhea Zhan, Hang Zhou, Blake\nZhu, Junfan Zhu, Alan Yuille, Yang Liu, Russell Alan Poldrack, Jiachen Li, Zhenglu Li, Molei\nTao, Jing Huang, Wenqi Shi, Costas Spanos, Lichao Sun, Chenguang Wang, Orson Xu, Zhen\nDong, Hector Gomez, Aylin Caliskan, Ali Emami, Haimin Hu, Zhi Li, Lihui Liu, Murphy Niu,\nYi Shao, Jianxin Sun, Mikko Tolonen, Ting Wang, Sanjiv Das, Yanjun Gao, Wenbo Guo, Erika J\n\n\fRSIAgent\n\n17\n\nSchneider, Zhiyong Lu, Yian Ma, Mark Mueller, Radha Poovendran, Somayeh Sojoudi, Yinglun\nZhu, and Dawn Song. Agents’ last exam, 2026. URL https://arxiv.org/abs/2606.05405.\n[25] Weihao Tan, Wentao Zhang, Xinrun Xu, Haochong Xia, Ziluo Ding, Boyu Li, Bohan Zhou,\nJunpeng Yue, Jiechuan Jiang, Yewen Li, Ruyi An, Molei Qin, Chuqiao Zong, Longtao Zheng,\nYujie Wu, Xiaoqiang Chai, Yifei Bi, Tianbao Xie, Pengjie Gu, Xiyun Li, Ceyao Zhang, Long\nTian, Chaojie Wang, Xinrun Wang, Börje F. Karlsson, Bo An, Shuicheng Yan, and Zongqing\nLu. Cradle: Empowering foundation agents towards general computer control, 2024. URL\nhttps://arxiv.org/abs/2403.03186.\n[26] Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi Fan,\nand Anima Anandkumar. Voyager: An open-ended embodied agent with large language models.\narXiv preprint arXiv:2305.16291, 2023.\n[27] Haoming Wang, Haoyang Zou, Huatong Song, Jiazhan Feng, Junjie Fang, Junting Lu, Longxiang\nLiu, Qinyu Luo, Shihao Liang, Shijue Huang, et al. Ui-tars-2 technical report: Advancing gui\nagent with multi-turn reinforcement learning. arXiv preprint arXiv:2509.02544, 2025.\n[28] Wenyi Wang, Piotr Piękos, Li Nanbo, Firas Laakom, Yimeng Chen, Mateusz Ostaszewski,\nMingchen Zhuge, and Jürgen Schmidhuber. Huxley-g\\\" odel machine: Human-level coding\nagent development by an approximation of the optimal self-improving machine. In International\nConference on Learning Representations, volume 2026, pages 80356–80386, 2026.\n[29] Xingyao Wang, Yangyi Chen, Lifan Yuan, Yizhe Zhang, Yunzhu Li, Hao Peng, and Heng Ji.\nExecutable code actions elicit better llm agents. arXiv preprint arXiv:2402.01030, 2024.\n[30] Xinyuan Wang, Bowen Wang, Dunjie Lu, Junlin Yang, Tianbao Xie, Junli Wang, Jiaqi Deng,\nXiaole Guo, Yiheng Xu, Chen Wu, et al. Opencua: Open foundations for computer-use agents.\nAdvances in Neural Information Processing Systems, 38:139756–139806, 2026.\n[31] Zefeng Wang, Minxi Yan, Jinhe Bi, Sikuan Yan, Volker Tresp, and Yunpu Ma. Metaskill-evolve:\nRecursive self-improvement of llm agents via two-timescale meta-skill evolution. arXiv preprint\narXiv:2607.05297, 2026.\n[32] Wenyi Wu, Kun Zhou, Ruoxin Yuan, Vivian Yu, Stephen Wang, Zhiting Hu, and Biwei Huang.\nAuto-scaling continuous memory for gui agent. arXiv preprint arXiv:2510.09038, 2025.\n[33] Wenyi Wu, Zixuan Song, Kun Zhou, Yifei Shao, Zhiting Hu, and Biwei Huang. Towards general\ncontinuous memory for vision-language models. Advances in Neural Information Processing\nSystems, 38:128685–128710, 2026.\n[34] Wenyi Wu, Sibo Zhu, Kun Zhou, and Biwei Huang. Planner matters! an efficient and unbalanced multi-agent collaboration framework for long-horizon planning. arXiv preprint\narXiv:2605.02168, 2026.\n[35] Wenyi Wu, Sibo Zhu, Kun Zhou, Aayush Salvi, Zixuan Song, and Biwei Huang. Structagent: Harness long-horizon digital agents with unified causal structure. arXiv preprint arXiv:2607.11388,\n2026.\n\n\fRSIAgent\n\n18\n\n[36] Zhaofen Wu, Hanrong Zhang, Fulin Lin, Wujiang Xu, Xinran Xu, Yankai Chen, Henry Peng Zou,\nShaowen Chen, Weizhi Zhang, Xue Liu, et al. Gam: Hierarchical graph-based agentic memory\nfor llm agents. In Proceedings of the 64th Annual Meeting of the Association for Computational\nLinguistics (Volume 1: Long Papers), pages 34647–34664, 2026.\n[37] Zhiyong Wu, Chengcheng Han, Zichen Ding, Zhenmin Weng, Zhoumianze Liu, Shunyu Yao, Tao\nYu, and Lingpeng Kong. Os-copilot: Towards generalist computer agents with self-improvement,\n2024. URL https://arxiv.org/abs/2402.07456.\n[38] Ziqiao Xi, Shuang Liang, Qi Liu, Jiaqing Zhang, Letian Peng, Fang Nan, Meshal Nayim, Tianhui\nZhang, Rishika Mundada, Lianhui Qin, et al. Toolgym: an open-world tool-using environment\nfor scalable agent testing and data curation. arXiv e-prints, pages arXiv–2601, 2026.\n[39] Peng Xia, Kaide Zeng, Jiaqi Liu, Can Qin, Fang Wu, Yiyang Zhou, Caiming Xiong, and Huaxiu\nYao. Agent0: Unleashing self-evolving agents from zero data via tool-integrated reasoning.\narXiv preprint arXiv:2511.16043, 2025.\n[40] Tianbao Xie, Danyang Zhang, Jixuan Chen, Xiaochuan Li, Siheng Zhao, Ruisheng Cao, Toh Jing\nHua, Zhoujun Cheng, Dongchan Shin, Fangyu Lei, Yitao Liu, Yiheng Xu, Shuyan Zhou, Silvio\nSavarese, Caiming Xiong, Victor Zhong, and Tao Yu. Osworld: Benchmarking multimodal agents\nfor open-ended tasks in real computer environments, 2024. URL https://arxiv.org/abs/2404.\n07972.\n[41] Tianbao Xie, Mengqi Yuan, Danyang Zhang, Xinzhuang Xiong, Zhennan Shen, Zilong Zhou,\nXinyuan Wang, Yanxu Chen, Jiaqi Deng, Junda Chen, Bowen Wang, Haoyuan Wu, Jixuan Chen,\nJunli Wang, Dunjie Lu, Hao Hu, and Tao Yu. Introducing osworld-verified. xlang.ai, July 2025.\nURL https://xlang.ai/blog/osworld-verified.\n[42] Taofeng Xue, Chong Peng, Mianqiu Huang, Linsen Guo, Tiancheng Han, Haozhe Wang, Jianing\nWang, Xiaocheng Zhang, Xin Yang, Dengchang Zhao, et al. Evocua: Evolving computer use\nagents via learning from scalable synthetic experience. arXiv preprint arXiv:2601.15876, 2026.\n[43] Mingdai Yang, Shicheng Fan, Kejing Yu, Duohao Wang, Li Sun, Hao Peng, Philip S Yu, and\nZhiwei Liu. Paying for honesty without knowing the truth: Reputation-penalty design for llm\nmarketplace agents. arXiv preprint arXiv:2607.28330, 2026.\n[44] Shu Yang, Junchao Wu, Derek F Wong, and Di Wang. Selfmem: Self-optimizing memory for ai\nagents. arXiv preprint arXiv:2607.03726, 2026.\n[45] Yifan Yang, Ziyang Gong, Weiquan Huang, Qihao Yang, Ziwei Zhou, Zisu Huang, Yan Li, Xuemei\nGao, Qi Dai, Bei Liu, et al. Skillopt: Executive strategy for self-evolving agent skills. arXiv\npreprint arXiv:2605.23904, 2026.\n[46] Zhaochen Yu, Yingcheng Wu, Zhenfei Yin, Kaiyuan Chen, Zhe Zhao, Mengdi Wang, Shuicheng\nYan, and Ling Yang. Recursive experiential-working memory evolution for long-horizon agent\nharnesses. arXiv preprint arXiv:2608.24876, 2026.\n[47] Mengqi Yuan, Zilong Zhou, Xinzhuang Xiong, Weiming Wu, Jiayang Sun, Jiamin Song, Kaiqian\nCui, Bowen Wang, Haoyuan Wu, Yitong Li, Dunjie Lu, Haikong Lu, Qi Zhen, Xinyuan Wang,\n\n\fRSIAgent\n\n19\n\nJiaqi Deng, Yuhao Yang, Cheng Chen, Boyuan Zheng, Alex Su, Xiao Yu, Hao Zou, Saaket Agashe,\nXing Han Lu, Manpreet Kaur, Zhengyang Qi, Vincent Sunn Chen, Frederic Sala, Dayiheng Liu,\nJunyang Lin, Zhou Yu, Yu Su, Siva Reddy, Xin Eric Wang, Peng Qi, Tianbao Xie, and Tao Yu.\nOsworld 2.0: Benchmarking computer use agents on long-horizon real-world tasks, 2026. URL\nhttps://arxiv.org/abs/2606.29537.\n[48] Eric Zelikman, Eliana Lorch, Lester Mackey, and Adam Tauman Kalai. Self-taught optimizer\n(stop): Recursively self-improving code generation, 2024. URL https://arxiv.org/abs/2310.\n02304.\n[49] Hanrong Zhang, Yankai Chen, Shicheng Fan, et al. Scaling LLM agent learning with data\nsynthesis: A comprehensive survey, 2026. URL https://www.researchgate.net/publication/\n406488336. Preprint.\n[50] Hanrong Zhang, Shicheng Fan, Henry Peng Zou, Yankai Chen, Zhenting Wang, Jiayu Zhou,\nChengze Li, Wei-Chieh Huang, Yifei Yao, Kening Zheng, Xue Liu, Xiaoxiao Li, and Philip S.\nYu. CoEvoSkills: Self-evolving agent skills via co-evolutionary verification. In Conference on\nLanguage Modeling, 2026. URL https://arxiv.org/abs/2604.01687. Accepted for publication.\n[51] Haozhen Zhang, Quanyu Long, Jianzhu Bao, Tao Feng, Weizhi Zhang, Haodong Yue, and\nWenya Wang. Memskill: Learning and evolving memory skills for self-evolving agents. arXiv\npreprint arXiv:2602.02474, 2026.\n[52] Jenny Zhang, Shengran Hu, Cong Lu, Robert Lange, and Jeff Clune. Darwin godel machine:\nOpen-ended evolution of self-improving agents, 2026. URL https://arxiv.org/abs/2505.22954.\n[53] Jenny Zhang, Bingchen Zhao, Wannan Yang, Jakob Foerster, Jeff Clune, Minqi Jiang, Sam\nDevlin, and Tatiana Shavrina. Hyperagents. arXiv preprint arXiv:2603.19461, 2026.\n[54] Qizheng Zhang, Changran Hu, Shubhangi Upasani, Boyuan Ma, Fenglu Hong, Vamsidhar\nKamanuru, Jay Rainton, Chen Wu, Mengmeng Ji, Hanchen Li, et al. Agentic context engineering:\nEvolving contexts for self-improving language models. In International Conference on Learning\nRepresentations, volume 2026, pages 86069–86100, 2026.\n[55] Wayne Xin Zhao, Kun Zhou, Junyi Li, Tianyi Tang, Xiaolei Wang, Yupeng Hou, Yingqian Min,\nBeichen Zhang, Junjie Zhang, Zican Dong, Yifan Du, Chen Yang, Yushuo Chen, Zhipeng Chen,\nJinhao Jiang, Ruiyang Ren, Yifan Li, Xinyu Tang, Zikang Liu, Peiyu Liu, Jian-Yun Nie, and\nJi-Rong Wen. A survey of large language models, 2026. URL https://arxiv.org/abs/2303.18223.\n[56] Boyuan Zheng, Boyu Gou, Jihyung Kil, Huan Sun, and Yu Su. Gpt-4v(ision) is a generalist web\nagent, if grounded, 2024. URL https://arxiv.org/abs/2401.01614.\n[57] Sibo Zhu, Wenyi WU, Kun Zhou, Stephen Wang, and Biwei Huang. Hybrid self-evolving\nstructured memory for computer-use agents. In Maria Liakata, Viviane P. Moreira, Jiajun\nZhang, and David Jurgens, editors, Findings of the Association for Computational Linguistics:\nACL 2026, pages 11287–11304, San Diego, California, United States, July 2026. Association for\nComputational Linguistics. ISBN 979-8-89176-395-1. doi: 10.18653/v1/2026.findings-acl.549.\nURL https://aclanthology.org/2026.findings-acl.549/.\n\n\fRSIAgent\n\n20\n\n[58] Henry Peng Zou, Chunyu Miao, Wei-Chieh Huang, Yankai Chen, Yue Zhou, Hanrong Zhang,\nYaozu Wu, Liancheng Fang, Zhengyao Gu, Zhen Zhang, et al. When users change their mind:\nEvaluating interruptible agents in long-horizon web navigation. arXiv preprint arXiv:2604.00892,\n2026.\n\n\fRSIAgent\n\n21\n\nAppendix\nA\n\nImplementation and Agent Interfaces\n\nRSIAgent implements recursive improvement through explicit interfaces for execution, verification,\nexperience selection, and memory updates. This appendix describes the target-conditioned reference\nimplementation: the target query guides exploration, while persistent memory carries learned\nexperience between attempts. Model configurations and execution limits are given in Appendix C;\nreporting qualifications are retained in Appendix C.4.\n\nA.1\n\nRole Interfaces and Information Boundaries\n\nRole-Specific Contexts. Separate contexts give each agent the information needed for its role\nwithout sharing private reasoning across roles. The actor agent receives the task and available\nmemory, the verifier agent inspects the candidate against the task, and the curriculum agent uses\nprevious outcomes and accumulated memory to select new experiences. Table A1 summarizes these\ninterfaces. The curriculum agent’s context persists within an exploration lineage; the verifier agent’s\ncontext persists across candidate revisions within a target attempt, but is not shared across distinct\nprojects or target attempts.\nTable A1. Agent interfaces in the reference RSI implementation.\nAgent\n\nObserved inputs\n\nactor agent\n\nTask instruction, task-visible environment,\nExecutable actions and candidate artifacts;\nexecution feedback, and available persistent after verification, memory updates and a\nmemory\nlearning diagnosis\n\nverifier agent\n\ncurriculum agent\n\nTask requirements and candidate\nenvironment; actor-private memory,\nreasoning, and execution logs are hidden\n\nTarget query, completed exploration\noutcomes, actor learning diagnoses when\navailable, and a disposable copy of current\nmemory\n\nOutputs and authority\n\nEvidence-grounded local verdict and\nfindings; no durable memory updates\n\nPractice instructions, input fixtures, and\ncontinuation or stopping decisions; no\ncandidate grades or canonical memory edits\n\nProgram-Based Actions. The actor interface exposes complete programs as the unit of action.\nA program response specifies Python or Bash code, and the runtime returns its combined output,\nexit status, and execution metadata. The actor agent can request visual evidence through look,\nask for missing information through ask when a user channel is configured, and submit a done\nresponse with read-only checks. The prompt directs the actor agent to investigate before acting, repair\nprograms using execution feedback, and check the task’s actual requirements. Code-based control\ndoes not relax requirements concerning named applications, editable artifacts, rendered appearance,\nor workflow.\nCurriculum Handoffs. Practice tasks specify the desired outcome without supplying a solution.\nFor BRS, the curriculum agent publishes a structured handoff containing a decision, a rationale,\nand a list of projects with unique identifiers and self-contained instructions. Each project has its\nown input fixtures, replayed under a common project path in an isolated environment. The actor\n\n\fRSIAgent\n\n22\n\nagent receives the project instruction and fixtures, not the curriculum agent’s private search rationale.\nFor DRS, a PROJECT handoff similarly contains the practice request and required inputs; alternative\ndecisions return control to the target attempt or record that exploration has stalled.\nIndependent Verification. The verifier interface grounds acceptance in the candidate rather than\nthe actor agent’s account of its work. Its prompt requires checks derived from the original task\nand supporting observations from the environment. Candidate inspection uses reset-and-replay or\ncheckpoint restoration to prevent verifier probes from changing the submitted artifact. The reference\npractice interface produces one grounded PASS or FAIL per project, without a same-project repair\ncycle. The target interface additionally supports UNVERIFIED: the actor agent can supply evidence\nfor independent reinspection, but an unresolved outcome does not become a successful or failed\nlearning example.\n\nA.2\n\nMemory Updates and Parallel Reconciliation\n\nExperience-Owned Learning. The actor agent that produced an experience also decides what to\nretain from it. After a grounded PASS or FAIL, its existing context receives the complete verifier\nreport and enters two learning steps. Distillation identifies useful procedures, constraints, and failure\nlessons; reconciliation checks the resulting memory against older entries, revising contradictions and\nqualifying unsupported conclusions. A failed project can contribute useful evidence without being\nrecorded as a verified success. The memory remains a collection of actor-authored files, with no\nrequired schema, file count, or length.\nCanonical Memory Ownership. Only completed actor learning updates are promoted to the\npersistent memory bank. Work-phase memory edits are discarded before learning, and the actor\nagent receives the current canonical memory at the update boundary. The curriculum agent may\ninspect a disposable copy to guide exploration, but its local edits are not synchronized back. Neither\nthe curriculum agent nor the verifier agent approves memory wording. An actor-authored learning\ndiagnosis communicates useful conclusions and uncertainties to the curriculum agent without passing\nthe actor agent’s private reasoning transcript.\nParallel Work, Sequential Updates. BRS separates concurrent experience acquisition from ordered\nmemory updates. Every project in a wave begins with the same immutable pre-wave memory snapshot\nand cannot observe sibling work or outcomes. Once all project verdicts are available, the original\nactor contexts resume one at a time in the order authored by the curriculum agent. Each update\noperates on the latest canonical memory, including preceding updates from the same wave. The next\nwave is selected only after these commits finish, allowing the curriculum agent to respond to both\nverified outcomes and the knowledge actually retained.\n\nA.3\n\nSequential Refinement and Evaluation Lifecycle\n\nTarget-Conditioned Refinement. The reference DRS implementation begins with an attempt at the\ntarget query using the memory inherited from BRS. A grounded outcome is followed by actor-owned\nlearning, after which the curriculum agent reviews the outcome, learning diagnosis, and updated\nmemory. It may select sequential practice to investigate a failure or test an uncertain successful\nprocedure. Each practice project is verified and consolidated before the next curriculum decision;\n\n\fRSIAgent\n\n23\n\nonce practice returns control, the target is attempted again in a reset environment using the updated\nmemory. All attempts retain the same agent framework.\nStopping Decisions. Stopping distinguishes the expected value of further practice from the correctness of the target candidate. Under the default curriculum_review policy, a target PASS followed\nby no additional practice can complete DRS; any additional practice requires another target attempt.\nIf the curriculum agent returns STALLED after a failed target or further practice, the runner performs\none final target attempt and records its actual verdict. The explicit verifier_pass variant instead\nends DRS after a grounded target PASS and memory consolidation, without a curriculum review.\nUnresolved verification and infrastructure failures block phase advancement rather than being labeled\nconvergence.\nFrozen-Memory Evaluation. Final evaluation reuses learned memory without continuing the\nlearning loop. The runner records the frozen memory’s file-tree hash, copies it into the evaluation\nenvironment, and disables curriculum decisions and host memory writeback. The actor–verifier\nharness then attempts the target after an environment reset, and the official evaluator scores the\nresulting candidate outside all agent contexts. The runner checks memory integrity and records the\nprotocol, stopping policy, terminal status, and evaluation result separately. Algorithm A1 summarizes\nthis reference lifecycle; historical and selected-run variants retain their own protocol records.\nAlgorithm A1. Target-conditioned RSI reference procedure.\n\nInputs: target query 𝑞, resettable environment, initial memory 𝑀0 , and declared stopping policy.\nOutputs: frozen memory, final candidate, terminal status, and externally recorded benchmark score.\n1. Initialize canonical memory 𝑀 ← 𝑀0 .\n2. BRS: repeat complete waves until a recorded curriculum stop or the complete-wave budget boundary.\n(a) The curriculum agent selects independent projects using 𝑞, 𝑀 , and completed wave outcomes.\n(b) Snapshot 𝑀 . Execute projects and obtain verifier verdicts in parallel in isolated environments.\n(c) After all verdicts are grounded, resume the same actor contexts in curriculum-authored order to\ndistill and reconcile each experience into the current 𝑀 .\n3. DRS: attempt 𝑞 after an environment reset and obtain a grounded target verdict. The same actor context\nconsolidates that outcome into 𝑀 .\n4. If the policy is verifier_pass and the target passed, proceed to Step 7. Otherwise, ask the curriculum\nagent to select the next experience.\n5. Execute each selected practice project sequentially: actor execution, verifier judgment, actor memory\nupdate, then curriculum review.\n6. If the preceding target passed and no new practice was selected, finish DRS. Otherwise, return to Step 3.\nA curriculum STALLED decision instead allows one final target attempt and learning update before\nrecording the actual terminal verdict and ending DRS.\n7. Evaluation: freeze 𝑀 , reset the environment, and execute 𝑞 with the actor–verifier harness and no\nlearning. Archive the official score outside the agents and check that frozen host memory is unchanged.\nGuard: unresolved verification or infrastructure errors suspend advancement; they are not converted into task\nverdicts. A completed lifecycle need not have a successful target verdict.\n\n\fRSIAgent\n\nB\n\n24\n\nAgent Prompt Templates\n\nThe prompts implement the role boundaries described in Appendix A through explicit instructions\nfor execution, verification, exploration, and learning. The boxes reproduce selected passages from\nthe reference implementation, not complete system messages; ellipses mark omitted passages. Task\ninstructions, current memory, project outcomes, and verifier reports are supplied at runtime as\ndescribed below. The source prompts refer to BRS and DRS as Phase 1 and Phase 2, respectively;\ntheir wording is retained in the excerpts.\n\nB.1\n\nTask Execution and Verification\n\nActor Instructions. The actor prompts combine program-based control with the task’s literal\nrequirements. The shared system message defines the action interface, while a practice charter\nsupplies the project instruction and available memory. Prompt P1 shows passages from these two\ncomponents; it does not include the model-dependent visual-action declarations or the task itself.\nPrompt P1. Program actions and task requirements\nYou solve ONE task on a real Ubuntu machine by WRITING PROGRAMS. You cannot see or click the\nscreen: your only way to act is to submit one complete program at a time (python3 or bash) — programs\nmay drive running applications where a task needs it. It runs on the machine; its combined stdout+stderr\nand exit code come back to you. Work like an engineer at a REPL: investigate first, then commit a solution,\nthen verify it.\n[. . . ]\nCode is your control channel, not a reinterpretation of the project: every action you take is a submitted\nprogram, and those programs may inspect and operate the machine or automate a required application.\nChoose the implementation yourself. Whatever method you choose, the candidate must satisfy the project’s\nliteral requirements, including any named-application, native-editable-state, behavior, rendered-output,\nworkflow, or provenance requirement.\n\nVerifier Instructions. The verifier prompt defines evidence-based acceptance independently of the\nactor agent’s self-assessment. Prompt P2 shows the target configuration with unresolved-evidence\nreporting and checkpoint-protected inspection. The authoritative task and candidate context are\nsupplied separately; practice configurations use the two-verdict interface described in Appendix A.1.\nPrompt P2. Independent candidate verification\nTreat observations as evidence, not proof by assertion. Derive every binding requirement from the\nauthoritative task and falsify nearby plausible substitutes. PASS only when every material requirement is\naffirmatively supported. Publish FAIL when concrete evidence establishes a material violation. Publish\nUNVERIFIED when a material claim remains unresolved after investigation or credible instruments\ndisagree.\n[. . . ]\nAt the beginning of this inspection the harness saved a complete QEMU checkpoint. You can observe\nits files, processes, localhost services, network, GUI, and IPC and may run arbitrary tests. When this\ninspection ends, the harness restores that checkpoint before the candidate is graded, so none of your\nin-VM effects enter the scored state.\n\n\fRSIAgent\n\nB.2\n\n25\n\nCurriculum Generation\n\nBroad Recursive Self-exploration. The BRS prompt directs the curriculum agent to acquire complementary experience around the target query. Its runtime inputs include the exact query, current\nmemory, and completed wave outcomes. The resulting handoff specifies a wave of independent\nprojects or a stopping decision, with project fixtures prepared separately.\nPrompt P3. Broad Recursive Self-exploration\nThe exact target query is disclosed only as a search direction. Derive diverse prerequisite, variant, contrast,\nand stress projects around its capability neighborhood. Do not reproduce or attempt the unchanged target\nin Phase 1; its first exact attempt is reserved for Phase 2.\n[. . . ]\nEach project should improve reusable capability or discriminate an important uncertainty; do not optimize\nfor easy passes, episode count, or memory volume. Projects in the same wave receive the same pre-wave\nmemory snapshot and cannot see or depend on sibling work or results. After the complete wave returns,\nreconsider your hypotheses and freely choose the next wave. When further target-relevant exploration\nhas insufficient expected value, you may end Phase 1. No fixed project count is a semantic convergence\nrule.\n[. . . ]\nWhen you independently judge Phase 1 complete, publish decision \"SATURATED\" with an empty projects\nlist and your evidence in rationale. Use decision \"STALLED\" only when no productive project can currently\nbe authored, also with an empty list.\n\nDeep Recursive Self-exploration. The DRS prompt makes further practice conditional on what\nthe preceding experience reveals. In addition to the target query and memory, the curriculum agent\nreceives the grounded outcome and the actor agent’s learning diagnosis. A successful attempt may\ntherefore lead to a contrastive exercise, while a failed attempt can motivate practice that distinguishes\ncompeting explanations.\nPrompt P4. Deep Recursive Self-exploration\nAfter PASS, do not create practice by default: choose PROJECT only when a contrast or stress case can\ntest an important uncertain or overgeneralized hypothesis. After FAIL, prefer practice that discriminates\namong plausible capability gaps. You choose the next experience, not memory wording and not target\ncorrectness.\n[. . . ]\nREADY_FOR_TARGET means only that no additional learning experience currently has greater expected\nvalue than returning control to the unchanged target lifecycle.\n[. . . ]\nNo action is tied to a fixed project or turn count.\n\nB.3\n\nMemory Consolidation and Learning Handoffs\n\nExperience Distillation. The distillation prompt asks the actor agent to learn from grounded\nexperience without treating a verdict as a complete causal explanation. It is delivered in the context\nthat performed the task, together with the terminal outcome and full verifier report. The actor agent\nretains control over memory contents and may also leave memory unchanged.\n\n\fRSIAgent\n\n26\n\nPrompt P5. Experience distillation\nMake causal claims only when your trajectory and evidence support them, and preserve uncertainty\nwhere they do not.\n[. . . ]\nYou may investigate remaining questions if the available project state makes that useful, and you may add,\nrevise, reorganize, delete, or leave memory unchanged. You own the content, representation, retrieval\nstrategy, scope, and stopping decision; there is no required schema, length, number of files, or number of\nturns. A FAIL may still contain valuable evidence, but must not be recorded as a verified success.\nDo not continue changing the terminal project for credit. Declare done when the memory you choose to\ncarry forward is ready.\n\nMemory Reconciliation. The reconciliation prompt asks the actor agent to review the whole memory\nbank before its update is promoted. It follows distillation in the same context, so the task trajectory,\nverifier evidence, and draft memory remain available. The instructions emphasize correcting existing\nadvice as well as adding new experience.\nPrompt P6. Memory reconciliation\nYour first-pass memory update is a draft and has not been promoted.\n[. . . ]\nLook for conflicting assertions, unsupported causal explanations, stale environment assumptions, and\nconclusions broader than the observed evidence. Investigate when that is useful; otherwise narrow or\nqualify claims, preserve uncertainty, reorganize them, or remove them. Do not merely append this episode\nwhile leaving contradicted older advice stated as fact.\n[. . . ]\nThere is no required claim table, schema, report, length, number of files, or number of turns.\n\nLearning Diagnosis. The diagnosis prompt connects actor-owned learning to the next curriculum\ndecision. The actor agent writes a separate handoff containing the conclusions and uncertainties it\nchooses to communicate, rather than sharing its private reasoning transcript. This handoff informs\nexperience selection without prescribing a fixed curriculum.\nPrompt P7. Learning diagnosis for curriculum review\nExplain the hypotheses that now seem most useful for choosing the next experience: attempted approaches,\nobserved limitations, plausible causal reasons, what appears reliable, what remains uncertain, and which\ndistinctions or stress cases could discriminate among competing explanations.\n[. . . ]\nDo not include private chain-of-thought or a turn-by-turn transcript: provide only the concise conclusions\nand hypotheses you choose to communicate. There is no required schema, length, or organization.\n\nC\n\nDetailed Experimental Setup\n\nC.1\n\nBenchmark Descriptions and Evaluation\n\nOSWorld 2.0. OSWorld 2.0 evaluates long-horizon workflows in desktop applications and task-facing\nweb services [47]. Tasks require agents to recover information from the environment, coordinate\ndependent operations, and produce a correct final state or artifact. Our experiments use the August 8,\n2026 release and report the 82-task offline subset rather than the full 108-task inventory. This subset\n\n\fRSIAgent\n\n27\n\nincludes document editing, media production, and specialized engineering and scientific software\nworkflows.\nAgents’ Last Exam. ALE evaluates professional workflows that combine software interaction, code\nexecution, and the production of verifiable deliverables [24]. We use the 67-task Near-term inventory\nspecified by the pinned task manifest, which includes computing, finance, engineering, scientific\nanalysis, and visual-media tasks. Our aggregates cover all 67 Near-term tasks.\nTable A2. Benchmark coverage used for our reported aggregates.\nBenchmark\n\nSplit\n\nOSWorld 2.0\nAgents’ Last Exam\n\n0808 offline\nNear-term\n\nInventory\n\nAggregate denominator\n\n82\n67\n\n82\n67\n\nCoverage Exceptions. Infrastructure-related missingness is recorded separately from task performance. For OSWorld, T082 has no valid official score after a setup failure; it is counted as zero in\nboth reported aggregates by the chosen reporting convention. The resulting coverage is summarized\nin Table A2.\nMetrics. Partial and Binary measure complementary aspects of task completion. For normalized\nÍ\ntask scores 𝑠𝑖 ∈ [0, 1] over 𝑁 included tasks, we compute Partial = 100 𝑖𝑁=1 𝑠𝑖 / 𝑁 and Binary =\nÍ\n100 𝑖𝑁=1 1{ 𝑠𝑖 = 1}/ 𝑁 . Each task has equal weight, and the baseline and RSI aggregates use the same\ndenominator within each benchmark. Partial captures graded progress, whereas Binary requires full\ncredit on a task.\n\nC.2\n\nAgent Harness and Configuration\n\nShared Execution Harness. The baseline and frozen-memory RSI evaluation use the same code-aspolicy actor–verifier harness. The actor agent executes programs and revises its candidate using the\nverifier agent’s findings. The verifier agent maintains a separate context and returns PASS, FAIL, or\nUNVERIFIED; an unverified outcome requests additional evidence instead of being treated as success.\nRSI adds curriculum-guided exploration and reusable memory, while the baseline disables exploration\nand persistent memory. Model weights remain fixed.\nReference Configuration. Table A3 records the checked OSWorld reference configuration and its\ntwo exploration stages. GLM-5.3 is the default actor agent, and Kimi-K3 supplies the verifier agent,\ncurriculum agent, and visual observations. The verifier and curriculum agents use separate contexts\ndespite sharing a model. The target query guides the curriculum agent in both stages: Broad Recursive\nSelf-exploration (BRS) acquires related experience before Deep Recursive Self-exploration (DRS)\nattempts the target itself.\nExploration and Stopping. The two stages use different stopping mechanisms to match their\nexploration structure. BRS checks its nominal eight-project budget only after a complete wave, so the\nrealized project count can exceed eight; four is the concurrency limit, not a required wave width. DRS\nuses curriculum_review: verified outcomes inform memory updates and the curriculum agent’s\nnext decision. A successful practice or target attempt does not by itself terminate this process. If\n\n\fRSIAgent\n\n28\n\nTable A3. Reference agent configuration and exploration settings.\nComponent\n\nSetting\n\nActor agent\nVerifier agent\nCurriculum agent\nBRS\nBroad-stage budget check\nDRS\nPrimary-call sampling\nResponse limit\nBaseline memory\nRSI evaluation memory\nModel parameters\n\nGLM-5.3 by default\nKimi-K3; separate persistent context\nKimi-K3; separate context with the target query as reference\nNominal budget of eight projects; up to four execute concurrently\nAfter completed waves; ongoing waves are not truncated\nSequential, with curriculum_review stopping\nTemperature 1.0; top- 𝑝 1.0\n65,536 tokens per primary model call\nDisabled\nFrozen after exploration; no writeback\nFixed throughout exploration and evaluation\n\nadditional practice is selected, another target attempt follows; exploration ends when the curriculum\nagent determines that no further useful practice is needed. Earlier verifier_pass runs use a\ndistinct stopping-policy variant.\nExecution Safeguards. Numerical execution limits bound individual agent runs rather than define\na fixed number of RSI rounds. The OSWorld reference target actor uses a 500-iteration limit and a\n36,000-second watchdog per run. Practice and curriculum configurations use 2,000 iterations and\n86,400 seconds; target-script execution is limited to 600 seconds per call. Consequently, the ten-hour\ntarget watchdog is not a ten-hour ceiling on the complete exploration lineage. The target harness\nalso permits one stall-triggered role switch, using Kimi-K3 as the actor agent and GLM-5.3 as the\nverifier agent when execution budget remains.\nVerification and Evaluation. Local verification is separated from the final benchmark evaluator.\nIn the OSWorld reference harness, verifier probes operate on a checkpoint-protected copy of the\ncandidate environment, which is restored after inspection. After exploration, the environment is reset\nand accumulated memory is reused without writeback for target evaluation. The official evaluator is\ninvoked after the actor–verifier loop and does not supply scores or hidden checks to the learning agents.\nThe reference evaluator uses GPT-5.4 where model-based grading is required, and the configured\nuser simulator uses GPT-4o.\n\nC.3\n\nRSI Task Selection and Reporting\n\nSelection Rationale. We direct additional exploration toward tasks with remaining room for improvement. In the documented OSWorld expansion cohort, tasks were selected when their recorded\nbaseline score was below full credit and they were not already covered by an RSI lineage. Baseline\nfull-score tasks were not assigned additional exploration in this cohort, but remain in the benchmark\naggregates. A missing or invalid baseline was not treated as evidence of an unsolved task for selection.\nDocumented Selection Cohort. The expansion cohort provides an explicit record of how the\nselection rule was applied before new runs began. Table A4 lists its task groups from the September 7,\n\n\fRSIAgent\n\n29\n\n2026 selection snapshot. It distinguishes selected tasks from previously launched lineages and from\ntasks receiving no new exploration. These groups describe this cohort only, not the complete set of\nOSWorld and ALE results included in Table 1.\nTable A4. Task selection in the documented OSWorld expansion cohort.\nSelection status\n\nTasks\n\nNew exploration\n\n17\n\nExisting RSI lineages\nBaseline full credit\nInvalid baseline\n\nTask IDs\n\nT076, T077, T079, T081, T085, T087, T089, T090, T091, T092, T093,\nT098, T100, T101, T104, T105, T107\n5 T080, T102, T103, T106, T108\n4 T073, T084, T088, T094\n1 T082\n\nSelection-Time Scores. Selection records and subsequently corrected scores serve different purposes.\nT100 entered this expansion with a recorded baseline of zero; the current main table uses its later\ncorrected baseline and RSI values of one. T082 was excluded from this expansion because it lacked a\nvalid baseline, although the benchmark aggregate counts it as zero. Neither convention changes the\noriginal selection record.\nAggregation. The reported RSI aggregate retains both improvements and regressions. For each task\nwith a reported non-diagnostic RSI entry, that score replaces the baseline; otherwise, the baseline\nscore is retained. Tasks that receive no additional exploration therefore remain in the benchmark\ndenominator, and retained baseline scores are not independent RSI evaluations. The counts of scored\nRSI entries below describe the main-table reporting set, not the number of eligible or launched tasks.\nRecorded retries and selected checkpoints retain their reporting qualifications in Appendix C.4.\n\nC.4\n\nMain-Table Reporting Details\n\nMetrics and Sources. Table 1 reports mean partial credit (Partial) and full-task success rate (Binary),\nboth as percentages. A dash indicates an unavailable or unverified result. Comparison scores come\nfrom the OSWorld and ALE leaderboards, except GPT-6 Astra’s OSWorld result, which is reported\nby OpenAI. Partial and Binary are paired within the same published configuration. For ALE, each\nmodel uses its highest-partial-score configuration covering all 67 tasks. Sources were accessed on\nSeptember 11, 2026. Published systems retain their original harnesses and execution budgets; the\ncross-system comparison does not use a matched evaluation protocol.\nOSWorld 2.0. Our provisional OSWorld aggregates cover 82 offline tasks, with T082’s setup failure\ncounted as zero. The RSI row replaces baseline scores with 41 reported non-diagnostic RSI results,\nincluding recorded retry scores and regressions; the remaining tasks retain their baseline scores.\nSelected-run budgets and evaluation scopes are not fully matched.\nAgents’ Last Exam. Our ALE aggregates cover all 67 Near-term tasks. The RSI row combines 19\nreported RSI-column scores and 48 baseline scores. These records include local corrected grades,\nECG results qualified by public-label transfer, and a separate no-BRS Tax Form variant. The aggregate\nis not a matched-protocol comparison with published leaderboard results. On Binary, RSIAgent scores\n\n\fRSIAgent\n\n30\n\n50.75, compared with 52.24 for GPT-6 Astra; the partial-credit advantage does not extend to every\nreported metric.\n\nC.5\n\nFour-Task Stage-Ablation Protocol\n\nTask selection and aggregation. The stage comparison uses four tasks from an exploratory cohort\nselected for improvements over recorded baselines: T080 (WPS spreadsheet repair), T085 (REAPER\nradio-bumper editing), T089 (browser-based presentation repair), and T106 (3D Slicer liver segmentation). The source-verified executions use GLM-5.3 for the actor agent. The w/o RSI condition\nuses the recorded historical baseline, and the single-stage conditions use their recorded scores. Full\nRSI is the mean of two historical frozen-memory evaluations: 0.6869 and 0.6869 for T080, 0.9417\nand 0.9413 for T085, 0.7950 and 0.8300 for T089, and 0.4976 and 0.5836 for T106. Scores in this\nappendix use the 0–1 scale; Figure 4 expresses the same scores as percentages.\nSingle-stage conditions and stopping. The w/o DRS condition evaluates an exact copy of the\nmemory acquired through Broad Recursive Self-exploration (BRS), without Deep Recursive Selfexploration (DRS). The w/o BRS condition starts DRS with empty memory and permits at most two\ncurriculum practice projects; target attempts and their memory updates are not counted as practice\nprojects. T080 and T085 stop at the two-project cap, while T089 reaches the curriculum-ready state\nafter one project. The archived T106 w/o BRS checkpoint also contains two practice projects. The\ncheckpoint records give the actor agent access to persistent memory but do not give the curriculum\nagent direct memory access. T085 uses the completed infrastructure-replacement w/o BRS run while\nretaining its original w/o DRS evaluation. The resulting memory is frozen before evaluation; each\nsource-verified single-stage result records one successful official grading call, no failed or corrected\ngrade, and no official feedback to the agent or memory writeback.\n\nD\n\nAutonomous Game Development Setup\n\nWe instantiate RSIAgent in the autonomous game-development setting using GameCraftBench [17], which evaluates complete playable games through executable interaction traces\nand rubric-based judging. This setting is also related to continual game generation studied by\nPlay2Code [11], where game development proceeds through repeated playtesting and code revision.\n\nWe randomly sample 40 tasks and follow the GameCraft-Bench evaluation pipeline. For each game,\nGLM-5.3-Flash serves as the development actor and verifier, Qwen3.8-27B serves as the playtesting\nagent, and Qwen3.8-27B is used for final evaluation. Each development run contains at most 15\niterative improvement rounds, with a maximum budget of 26 tool calls for the actor in each round.\nWe compare Play2Code, RSIAgent without recursive experience evolution, and the full RSIAgent.\n\nE\n\nCase Studies: From Memory Growth to Better Task Execution\n\nThis appendix follows three OSWorld 2.0 trajectories from exploratory practice to memory reuse.\nWe first examine how exploration branches turn observations into persistent records and reusable\nprocedures, and then compare execution without memory against execution with the accumulated\nmemory. T065 (railway booking) makes the acquisition process visible; T049 (presentation repair)\nconnects a recorded failure, subsequent practice, and a corrected output; T044 (video editing) shows\n\n\fRSIAgent\n\n31\n\nhow an application-specific procedure changes both the saved project and its score. The examples\ninclude screenshots and artifact views retained from the original runs.\n\nA complementary FreeCAD case in Appendix E.6 traces how drawing interpretation and geometric\nchecks are retained and reused when reconstructing a mechanical support bracket. Appendix E.7\nadds a REAPER audio-production case, connecting fragment interpretation and rendering practice to\nmemory reuse and higher partial credit on T085.\n\nFollowing the main text, we organize the cases around Broad Recursive Self-exploration (BRS),\nDeep Recursive Self-exploration (DRS), and Test-time Memory Reuse. BRS builds broad environment\nknowledge; DRS refines it through feedback-guided practice; and test-time memory reuse applies the\nfrozen corpus to task execution (Section 3.3). Model weights remain fixed throughout. In these runs,\nDRS includes practice on the target itself. The final comparisons pair RSIAgent with its historical\nmemory-free baseline, RSIAgent (w/o RSI).\n\nE.1\n\nMemory Accumulates Through Exploration and Consolidation\n\nFrom an empty directory to a working knowledge base. All three trajectories begin with empty\nmemory. During BRS, the exploration projects cover different aspects of the surrounding task family.\nEach completed project contributes an outcome and a memory update. Some updates introduce a\nnew topic or episode record; others extend an existing procedure, correct a previous interpretation,\nor refresh the index that a future actor will use to find relevant material. The resulting memory\ncontains both concrete precedents and instructions for handling the next task.\nFigure A1 follows the saved memory checkpoints. T044 completes ten BRS projects and accumulates 109,647 bytes in 12 files; T049 completes eight projects and accumulates 89,086 bytes\nin 13 files; and T065 completes eleven projects and accumulates 159,065 bytes in 17 files. DRS\nbuilds on these same corpora. At the final freeze, they contain 316,541, 141,312, and 281,085 bytes,\nrespectively. The archive contains 39 journal-linked snapshots across the three trajectories, with file\ncounts and byte totals checked against the journals. The final evaluation records match the frozen\nDRS memory in file count, byte count, and tree hash.\nT049: 13 → 16 files\n\nT044: 12 → 12 files\n\nMemory (kB)\n\n316.5\n\nBRS projects\nDRS checkpoints\nFailed outcome\n\n300\n\n200\n\n100\n\n0\n\n0\n\n5\n\n10\n\nCommit order\n\n15\n\n141.3\n\n150\n\nT065: 17 → 23 files\n\n100\n\n200\n\n50\n\n100\n\n0\n\n0\n\n2\n\n4\n\n6\n\nCommit order\n\n8\n\n10\n\n281.1\n\n300\n\n0\n\n0\n\n2\n\n4\n\n6\n\n8\n\n10\n\n12\n\n14\n\nCommit order\n\nFigure A1. Memory accumulation in the three case studies. Blue points count committed BRS projects; green\npoints count DRS target-cycle checkpoints, including any intervening practice. The dashed line marks the\ntransition between these two counting units. Red crosses mark failed outcomes that still produced memory\nupdates. File counts above each panel compare the end of BRS with the final freeze. Size is measured in\ndecimal kB. This plot is reconstructed from the saved journals; the subsequent figures show retained runtime\nimages.\n\n\fRSIAgent\n\n32\n\nTable A5. Memory checkpoints and practice volume. Sizes are the summed bytes of regular files in each\nmemory snapshot. A target cycle and a supplementary project are separate units of practice.\nTask\n\nBRS projects\n\nBRS bytes\n\nFrozen bytes\n\nT044\nT049\nT065\n\n10\n8\n11\n\n109,647\n89,086\n159,065\n\n316,541\n141,312\n281,085\n\nDRS practice\n5 target outcomes; 7 supplementary projects\n2 target outcomes; 1 supplementary project\n3 target outcomes; 2 supplementary projects\n\nGrowth also takes the form of revision within a stable set of files. For example, T044 retains twelve\nfiles throughout DRS while its memory expands from about 110 to 317 kB: the actor keeps enriching\nthe same editing manuals, verification procedures, and failure records. Conversely, T065’s third BRS\nconsolidation reduces memory from 13,243 to 11,510 bytes. The history therefore captures both\naccumulation and reorganization rather than simple concatenation of every interaction.\nDifferent branches contribute complementary lessons. The T049 BRS index gives a concrete\nview of what is being accumulated. One PDF-audit project fails because the actor applies a familiar\ncoordinate-system convention instead of the conversion explicitly given in the task. A later audit\nin the same family uses the stated mapping and obtains an exact coordinate match. Presentation\nprojects explore detached connectors, overflow repair, scaled reference figures, and alignment against\nintact elements. For example, the callout project derives connector anchors from a PDF through a\nscale of 8,000 EMU per point and validates the mapping against a declared-correct connector before\nrepairing the broken ones. These experiences populate separate coordinate-mapping notes, a PPTX\nediting playbook, interpretation rules, and project records.\nThe index itself also learns from the branch structure. One episode finds that sibling records\nhave appeared since its initial inspection; rewriting the index from its earlier view would leave those\nrecords unlisted. Its retained lesson is to enumerate the current project-record directory and topic\nheadings again at phase boundaries before updating the index. Thus, the accumulated knowledge\nincludes how to preserve and retrieve discoveries made by other branches, in addition to how to\noperate the application.\n\nA failed export becomes a reusable check. T044’s fifth BRS project asks for an untouched Shotcut timeline and a default H.264/MP4 export. The project receives an internal FAIL after the\nverifier compares the exported audio settings with a command-line render and reports a defaultsetting discrepancy. The subsequent consolidation creates shotcut-default-export-fail.md\nand media-verification-checklist.md, modifies nine existing files, and increases memory\nfrom 40,186 to 55,506 bytes. The retained editing manual distinguishes the GUI export settings from\nthe bundled engine’s no-override defaults and calls for checking the actual consumer settings and output streams. This episode illustrates how a problematic outcome can still enrich the procedures used\nin later work: a plausible-looking video is accompanied by explicit checks of its export configuration.\nRepeated visual checks across video resolutions. Other T044 branches establish the crop-andletterbox procedure itself. Figure A2 pairs the input and output frames from an 800 × 450 exercise\nand a later 1920 × 1080 exercise. The measured top bands are 36 and 44 pixels, respectively, and\nthe corresponding outputs have symmetric 18- and 22-pixel bars. The verifier also checks the image\nmapping and output streams, so the procedure is grounded in both the visible result and the saved\n\n\fRSIAgent\n\n33\n\nvideo. The later episode is recorded in the editing manual as another confirmation that a top-only\ncrop can remain centered and unscaled when the profile width is preserved. By this point, the memory\ndescribes a method tested on several clips, with the crop height measured anew for each input.\n\n(a) Project 1 input: 800 × 450.\n\n(b) Project 1 output: 18-pixel bars.\n\n(c) Project 7 input: 1920 × 1080.\n\n(d) Project 7 output: 22-pixel bars.\n\nFigure A2. Learning a reusable video-editing procedure through BRS. Each row shows input and output\nframes inspected in the same T044 practice project. The top watermark band disappears, while the color bars\nand geometric patterns provide landmarks for checking image proportions. The two projects use different\nresolutions and crop heights, supplying repeated experience for the editing manual.\n\nE.2\n\nA Branch in Detail: Learning to Observe Changing Seat Availability\n\nT065’s eighth BRS project isolates one prerequisite of railway booking: observing a changing seat\nmap and choosing the first release that satisfies the requested seating rule. The actor opens a local\npractice page in Chrome and must watch the rendered interface for at least 100 seconds. In this\nexercise, the two travelers need seats in the same row, one D and one F, simultaneously available.\nThe actor must record the releases, their first observed times, and the earliest valid choice. Page\ninformation must come from the GUI.\nWhat the branch observes. The page exposes five successive release windows. The first makes 17D\nand 17F available, so it is already a valid choice. The second offers only 8A; the third offers 9C and\n9D; the fourth offers only 14F; and the fifth offers 11D, 11F, and 12A. Although the fifth window also\ncontains a valid D/F pair, it arrives later. The third window is a useful contrast: two seats in the same\nrow do not satisfy the exercise when one of their letters is outside the allowed set. Figure A3 shows\nthe first and third releases as captured during the run.\n\n\fRSIAgent\n\n34\n\n(a) Release 1: 17D and 17F are free.\n\n(b) Release 3: 9C and 9D are free.\n\nFigure A3. Learning from a dynamic interface in T065, BRS, episode 8. These are crops of the original Chrome\nscreenshots of the local practice page, retaining the browser chrome and seat table. The first release satisfies\nthis exercise’s D/F rule; the third does not. Notice that the wider columns move with the locations of the FREE\nlabels. The original full screenshots are retained with the figure assets.\n\n\fRSIAgent\n\n35\n\nWhat goes wrong, and what is learned. The challenge extends beyond reading the seat letters.\nThe table sizes its columns from their contents: a column containing FREE is about 72 pixels wide,\nwhereas an occupied-only column is about 36 pixels wide. Consequently, seat positions shift as the\nrelease changes. A fixed pixel grid initially misclassifies the third and fourth releases. The actor\ncorrects the readings by detecting the columns separately in each state, using the wider aisle gap\nbetween C and D as a structural cue. The two screenshots make the reason for this correction visible:\nthe widened columns are D/F in the first state and C/D in the third.\n\nThe branch also encounters a monitoring failure. Its detached watcher fails twice at compilation,\nleaving the early releases unobserved. The actor restarts the deterministic practice page in a fresh\nbrowser profile and switches to an inline capture loop. The completed record contains 663 frames over\napproximately 335 seconds, together with timestamps and the first observed frame for each release.\nThe verifier checks the recorded seat sets against the page’s release schedule and independently\ninspects the captured frames, returning PASS.\nHow the observation becomes memory. Consolidation creates seatwatch_tasks.md and an\nepisode record, and extends the existing observation and environment playbooks. The memory\npreserves the specific release sequence as well as the reusable method: distinguish simultaneous\navailability from seats seen at different times, test the full seating condition, re-detect layout after\nstate changes, and confirm that the monitoring process is actually producing evidence. The episode\nrecord states the key discovery directly:\n“content-driven table column widths (FREE ~72 px, occupied ~36 px)” and “a frozen grid\nmisclassified releases #3/#4 until columns were re-detected per state”.\n\nThis commit grows the corpus from ten files and 70,513 bytes to twelve files and 91,697 bytes.\nThe additional memory is therefore tied to an observed failure, a corrected method, and a verified\ndecision.\nDRS extends observation rules into booking decisions. The later target cycles expose another\ndistinction: a completed payment and a valid itinerary require different checks. Figure A4 shows the\nactual My Bookings pages from cycles 2 and 3. Cycle 2 contains Paid orders for G102 and G118, but\nreceives an internal FAIL when the verifier requires the purchased segments to connect directly. This\noutcome enters memory as a stricter transfer rule. In cycle 3, the actor revisits that rule against the\ntask’s explicit permission to buy a longer ticket and board at an intermediate stop. It books G102\nand G122; this verifier accepts boarding the second train at Nanjing South, with a 1-hour-39-minute\ntransfer and a total price of $174.26. Memory records the successful variant alongside the earlier\nfailure, refining the conditions under which a route should be chosen. The two verdicts reflect\ndifferent interpretations of the transfer requirement during DRS.\nThe same cycle discovers a further observation failure: a scripted clipboard read can return\nincomplete results while the page is still rendering. The screen shows train cards, but the text read\ncontains none. The resulting memory adds a completeness check before treating an empty read as\nunavailable inventory. This extends the earlier seat-table lesson from locating changing columns to\nconfirming that a dynamic page has finished presenting the state being measured.\n\nChecking the persistent booking state. The detail page supplies a closer view of what the interface\nconfirms (Figure A5): G102, the two passengers, the Shanghai–Nanjing segment, and the paid\n\n\fRSIAgent\n\n36\n\n(a) DRS cycle 2: G102 and G118; internal FAIL on transfer interpretation.\n\n(b) DRS cycle 3: G102 and G122; intermediate boarding accepted.\nFigure A4. T065’s booking-state evidence during DRS. The original Chrome screenshots are cropped to\nretain the browser controls and both Paid orders. In cycle 2, the verifier evaluates the purchased endpoints\nas disconnected. In cycle 3, the verifier accepts boarding G122 at its intermediate Nanjing South stop, as\ndocumented in the accompanying diagnosis. These are successive practice cycles; the final test-time itinerary is\ndescribed separately below.\n\n\fRSIAgent\n\n37\n\namount of $49.84. The DRS records also describe a transient timeout message that conflicts with the\npersistent Paid state. The retained procedure calls for reopening My Bookings and inspecting the\norders to establish what was actually saved. Seat-letter checks belong to the seat-selection views; the\norder detail shown here supports the route and payment checks.\n\nFigure A5. T065, DRS cycle 2: the saved G102 booking detail inspected during the run. The Paid banner,\ntrain times, two passengers, and payment summary provide persistent evidence of this completed order. The\nscreenshot is cropped around the booking panels.\n\nReuse during the later booking task. After further practice, the final T065 actor reads the accumulated booking experience and the GUI capture, booking-flow, and form-filling playbooks in\nits first two iterations. Its eventual itinerary uses G98 and D756, rather than simply copying the\nG102/G122 route discussed in earlier memory. The final observation records two Paid orders for\nMarch 25, 2026, a total of $177.26, and arrival at Beijing South at 19:58. This illustrates retrieval of\nprocedural knowledge alongside fresh choices in the current interface. The recorded score changes\nfrom 0 to 1, but the final run also receives an explicit current-date clarification while the baseline\nbooks the year 2027. We therefore use T065 primarily to illustrate memory acquisition and reuse;\nT049 and T044 below provide the more direct artifact-level score comparisons.\n\nE.3\n\nDeep Recursive Self-exploration: From a Failed Repair to a Reusable Solution\n\nT049 asks the agent to repair a GoogleNet presentation using the accompanying paper as a\nreference. Slide 2 has displaced text and card elements, and slides 3 and 4 contain misarranged\nInception-module boxes and arrows. The repair must preserve non-arrow dimensions, font sizes, and\nappearance while restoring the figures. By the start of DRS, the actor already has the 89,086-byte\ncorpus acquired through eight exploratory projects. Target practice now exposes a gap in how those\nskills are applied to the actual presentation.\nFirst target cycle: precise operations under the wrong interpretation. The first attempt treats\nthe restriction on element properties as a prohibition on moving the figure boxes. It adjusts arrows\nwhile leaving the corrupted box positions in place. The live WPS screenshot in Figure A6(a) shows\nthe result: the branch boxes remain piled together, with arrows connecting an arrangement that does\nnot resemble the reference. The internal verifier rejects the candidate.\nThe memory update names the mistake explicitly:\n\n\fRSIAgent\n\n38\n\n“WHY FAIL (decisive): I FROZE THE FIGURE BOXES at their corrupted positions.”\n\nThe same record explains the intended repair: move the boxes position-only into the paper’s arrangement and then reconnect the arrows. It preserves the competing readings of the task, the observed\nlayout defects, and the decoded reference geometry. Memory increases to 110,546 bytes in fourteen\nfiles. The failure has supplied a concrete decision rule for the next attempt: interpret the preservation\nconstraints together with the defect that the task asks to repair.\nA supplementary branch tests the revised rule. Between the two target cycles, the curriculum\nintroduces a related synthetic presentation, velvet_signal_path_deck.pptx. This exercise also\nhas piled boxes and damaged connectors, but includes declared-correct elements that can anchor\nthe repair. The actor applies the newly recorded interpretation at its first render, fits a uniform\nmapping from the reference PDF to the intact slide elements, validates that mapping on an untouched\nconnector, and then moves the displaced boxes and repairs the arrows. The verifier returns PASS.\n\nTogether with the returning target attempt, this practice adds a useful distinction to the memory:\nfit a mapping when correct in-place anchors agree, and construct the layout directly from the reference\nwhen the damaged figure has no usable anchors. The stored procedure now describes when to use\neach method, as well as how to calculate the resulting coordinates.\nSecond target cycle: a verified repair becomes a precedent. Returning to the GoogleNet deck, the\nactor checks its identity against the retained failure record and uses the paper-derived arrangement.\nIt moves the boxes without changing their dimensions and connects the arrows to the appropriate\nedge-center anchors. The live application now displays a row of four branches between Previous\nlayer and Filter concatenation, as shown in Figure A6(b). The internal verifier returns PASS, and\nconsolidation adds the successful repair record. At the final freeze, memory contains sixteen files and\n141,312 bytes.\nThe failure and success records remain available together. The failure explains why an earlier\nchoice was wrong; the success specifies the working construction, the artifact identity checks, and the\nanchor convention. In this case, DRS turns broad geometric editing skills into a concrete, retrievable\nsolution for the target presentation.\n\n\fRSIAgent\n\n39\n\n(a) DRS, target cycle 1: internal FAIL; boxes remain piled.\n\n(b) DRS, target cycle 2: internal PASS after memory updates and practice.\nFigure A6. The learning sequence within T049’s DRS stage, shown in the original live WPS screenshots.\nThe first attempt leaves the boxes at their corrupted positions. After recording the interpretation failure and\ncompleting a supplementary repair exercise, the next attempt reconstructs the reference layout. Both images\nbelong to DRS practice; the separate memory-free baseline comparison appears in Figure A13.\n\n\fRSIAgent\n\nE.4\n\n40\n\nDeep Recursive Self-exploration: Refining Video Edits Through Repeated Inspection\n\nT044’s DRS history adds seven supplementary projects and five target outcomes to the editing\nknowledge acquired during BRS. The retained images show how the agent checks the same operation\nat several levels: the watermark region, the whole frame, recognizable content within the frame,\nand the relationship between the saved project and its export. These inspections enrich the existing\nediting and verification manuals, which the final actor later reads before editing the evaluation video.\nA supplementary clip isolates the watermark boundary. Figure A7 shows enlarged input and\noutput regions from the first supplementary project. The practice uses a 640 × 360 clip with an\nAI-generated badge near the upper edge. The actor removes a 68-pixel band and retains the remaining\ncontent with symmetric 34-pixel padding. The verifier checks the project, dimensions, output size,\nand the visible result, returning PASS. This adds a small, directly inspected example of choosing the\ncrop from the actual badge boundary to the broader BRS experience.\n\n(a) Enlarged source badge.\n\n(b) Processed region.\n\nFigure A7. T044, supplementary DRS project 1: runtime close-ups used to inspect the watermark region. The\noriginal badge is visible in the source; the processed view shows the resulting black padding and retained\nimage content.\n\nWhole frames establish the effect on the target video. The first target cycle inspects the portrait\nclip at a recognizable phone scene (Figure A8). The top-left badge disappears in the export, and black\nbars appear at both ends of the frame. The phone outline, spherical graphic, and application icons\nprovide visible landmarks for checking what the edit preserves. The source and output are retained\nat the same 834 × 1112 resolution. This is an early target-practice observation that subsequent cycles\nextend with more focused checks.\nContent alignment checks for distortion. Cycle 2 compares the exported content with the source\nafter accounting for the 76-pixel crop (Figure A9). This removes the expected framing difference\nfrom the comparison and lets the verifier inspect the crystal edges and nearby interface elements.\nThe recorded inspection describes nearly identical geometry with some compression softening; the\naccompanying analysis reports a median structural-similarity score of approximately 0.99. The lesson\nretained in the verification procedure is to compare corresponding content regions when checking for\nscaling or stretching.\nAnother scene checks the procedure across the clip. Cycle 4 retains a side-by-side comparison at\na later crystal scene (Figure A10). The source watermark is visible above the left crystal, while the\ncorresponding exported frame has a black top bar. The horizontal light line and crystal facets make\nthe upward displacement from cropping visible and provide another set of landmarks for inspecting\n\n\fRSIAgent\n\n41\n\n(a) Source frame inspected in cycle 1.\n\n(b) Exported frame from the same cycle.\n\nFigure A8. T044, DRS target cycle 1: whole-frame inspection of the watermark-removal result. The phone\nscene makes the retained content easy to locate, while the frame boundaries reveal the added padding. Both\nimages come from the same practice cycle.\n\nFigure A9. T044, DRS target cycle 2: the runtime comparison of corresponding content regions. The left view\nis the source after accounting for the top crop; the right is the exported content. The verifier uses the crystal\ncontours and interface details to inspect geometric fidelity, alongside numerical image checks.\n\n\fRSIAgent\n\n42\n\nproportions. Sampling this different scene extends the evidence beyond the phone frame used in the\nfirst cycle.\n\nFigure A10. T044, DRS target cycle 4: a source/export comparison assembled during the original runtime\ninspection. The source is on the left and the export on the right. The later scene exposes the watermark\nboundary, padding, and retained crystal geometry together.\n\nThe saved project and export are both inspected. The same cycle also retains a three-way check\nof the top image region (Figure A11). The source contains the badge; a render of the saved MLT\nproject and the exported video both remove it. Their framing differs in this inspection, with black\npadding visible in the exported strip. Keeping both views makes the relationship between the editable\nproject and delivered video part of the verification procedure. This is directly relevant to the final\ntask, which evaluates the native crop settings as well as the video.\nA final close-up rechecks the boundary. The fifth target cycle again inspects the original upper\nstrip, the processed strip, and an enlarged export detail (Figure A12). These views concentrate on the\nregion where a shallow crop could leave badge pixels behind. Across the DRS sequence, the memory\ntherefore accumulates a layered inspection method: measure the source boundary, check full-frame\ncomposition, align content for distortion checks, and reopen both the project and export. At the final\nfreeze, these procedures and episode records occupy 316,541 bytes in the same twelve-file corpus.\n\n\fRSIAgent\n\n43\n\nFigure A11. T044, DRS target cycle 4: the original three-way runtime inspection, with the source strip at the\ntop, saved-project render in the middle, and exported strip at the bottom. The watermark is visible only in the\nsource, and the export includes black padding. These views check both deliverables produced by the editing\nprocedure.\n\n(a) Source top strip: the badge remains visible.\n\n(b) Processed top strip: padding and retained content.\n\n(c) Additional enlarged export detail.\nFigure A12. T044, DRS target cycle 5: retained runtime views of the watermark boundary at two inspection\nscales. The input strip makes the badge location explicit; the output views support the final visual check that\nits pixels have been removed.\n\n\fRSIAgent\n\nE.5\n\n44\n\nWithout Memory Versus Frozen Memory: Which Errors Change the Score?\n\nTable A6 summarizes the two principal comparisons. We follow each score change down to the\nsaved artifact and the corresponding execution trace. These are selected historical runs, with their\nrecorded seeds and repair branches, rather than a matched-seed memory ablation.\nTable A6. Task scores in the principal memory-reuse case studies. Baseline uses no accumulated memory; the\nfinal run uses frozen memory after exploration and target practice. Scores are on a 0–1 scale.\nTask\n\nBaseline\n\nMemory\n\nGain\n\nT049\nT044\n\n0.40\n0.40\n\n0.80\n1.00\n\n+0.40\n+0.60\n\nNewly satisfied scoring checks\nSlide-3 arrows, completing its layout-and-arrow check\nNative crop height (+0.40) and Center-off setting (+0.20)\n\nT049: retrieval changes the starting point of execution. The final actor reads both the GoogleNet\nfailure and success records, together with the memory index, in iteration 2. Its next message states\nthat the same corrupted deck has appeared before and that it should verify the live file against\nthe recorded MD5 and damaged coordinates. After those checks, it reads the connector playbook,\nconfirms the reference geometry, and reuses the verified construction. The trace therefore shows\nmemory entering the repair before the main editing decisions, followed by explicit checks that the\nremembered solution applies to the current file.\n\nThe memory-free baseline also reconstructs the box layout by the end of its run. The remaining\ndifference is more specific than the dramatic DRS failure shown earlier: connector 69 on slide 3,\nrunning from Previous layer to the 5 × 5 convolution branch, is not anchored accurately enough.\nIts start differs from the source box’s top center by 121,104 EMU horizontally and 145,345 EMU\nvertically. Both exceed the scorer’s per-axis tolerance of 100,000 EMU. In the final run with memory,\nboth errors are zero. The actor applies the recorded edge-center convention and checks all nineteen\narrows across the two figure slides.\n\n(a) Without memory: task score 0.40.\n\n(b) With frozen memory: task score 0.80.\n\nFigure A13. Detail of T049’s final slide-3 diagram in the two evaluation runs, cropped from artifact renders\ninspected by the verifier during execution. Both runs restore the broad arrangement; the decisive remaining\nbaseline error is the start of connector 69, which misses the required Previous-layer anchor. The memory run\nplaces that endpoint exactly at the box’s top center.\n\nThe saved scoring breakdown makes the consequence explicit (Table A7). Slide 3 requires both its\nlayout and arrows to pass. Correcting the endpoint changes that slide’s contribution from 0 to 0.40,\naccounting for the full task-level gain. Slide 4 contributes 0.40 in both runs, and slide 2 contributes\n\n\fRSIAgent\n\n45\n\nzero in both, even though the internal verifier accepts the final repair. Thus, the observed improvement\nis a completed figure-repair component, with one presentation component still uncredited by the task\nscorer.\nTable A7. T049 scoring breakdown from the retained artifact analysis. Replaying the scoring functions on the\nsaved presentations reproduces the historical totals. EMU denotes the presentation’s coordinate unit.\nCheck\nSlide 2 contribution\nSlide 3 layout\nSlide 3 arrows\nSlide 3 contribution\nSlide 4 contribution\nConnector 69 start error, horizontal (EMU)\nConnector 69 start error, vertical (EMU)\nTotal\n\nWithout memory\n\nFrozen memory\n\n0.00\nPass\nFail\n0.00\n0.40\n\n0.00\nPass\nPass\n0.40\n0.40\n\n121,104\n145,345\n\n0\n0\n\n0.40\n\n0.80\n\nThe final repair is also visible in the live WPS application (Figure A14). In these two runs, actor\niterations decrease from 35 to 19 and recorded wall time decreases from 5,105.5 to 2,697.0 seconds.\nThis is consistent with the trace’s shift from deriving a repair afresh to checking and executing a\nretained solution.\n\nFigure A14. T049, test-time memory reuse: the repaired presentation in the live WPS window during final\nverifier inspection. This screenshot belongs to the frozen-memory evaluation whose task score is 0.80.\n\nT044: memory selects the application’s native editing procedure. T044 asks for a video with the\ntop watermark removed, symmetric padding where needed, unchanged resolution, and no stretching\nor zooming. It also requires both the saved Shotcut project and an exported video no larger than 1\n\n\fRSIAgent\n\n46\n\nMiB. The baseline removes the top 100 pixels using generic avfilter.crop and avfilter.pad\nfilters, with 50-pixel black bars above and below the remaining image. Its output is 1,019,423 bytes\nat the original 834 × 1112 resolution.\n\nThe final actor with memory reads shotcut-video-editing.md in iteration 4 and the native\nShotcut operation notes in iteration 6. These notes include the bundled rendering engine, crop-andletterbox procedures, export pitfalls, and output checks. The actor inspects the watermark region\nand uses the GUI’s Crop: Source operation, producing a project with mlt_service=crop, top=76,\nand center=0. It exports through the bundled melt engine. The final video retains the original\nresolution, has 38-pixel symmetric bars, and is 986,760 bytes.\n\n(a) Source: top watermark.\n\n(b) Baseline: 100-pixel crop.\n\n(c) Memory: 76-pixel crop.\n\nFigure A15. Video frames inspected during the original T044 runs. Panels (a) and (c) are the source/output\nviews from the memory run; panel (b) is the baseline verifier’s first-frame output view. These retained runtime\nframe views show watermark removal and symmetric padding in both outputs. The finer crop and the native\nproject filter distinguish the memory run.\n\nWhy this changes the score from 0.40 to 1.00. The task scorer inspects both the video and its\nproject structure. It awards 0.20 for the size cap and 0.20 for unchanged resolution, which both\noutputs satisfy. Its remaining checks search for a native crop or qtcrop filter: an accepted top crop\nbetween 75 and 85 pixels earns 0.40, and the Center-off condition earns 0.20. The baseline’s generic\nfilters do not enter those checks. The memory run’s native filter is recognized, its 76-pixel crop falls\nin the accepted range, and Center is disabled, so it receives all four components.\n\nThe visual comparison and project analysis tell a complementary story. Both runs remove the\nwatermark and preserve the image proportions; the improvement is a more precise crop expressed\nthrough the native Shotcut workflow. Memory supplies application-specific knowledge about which\noperation to use and how to validate its output. This case adds a fully credited task, whereas T049\nadds credit for a previously failed slide. T044 also takes more actor iterations with memory, 42 versus\n26, so its gain is in task completion rather than shorter execution.\n\n\fRSIAgent\n\nE.6\n\n47\n\nReconstructing a Mechanical Part from Engineering Drawings\n\nCAD reconstruction requires both interpretation and execution. T103 asks the agent to\nrecreate a support bracket in FreeCAD from drawing.pdf and a reference image, then export\nsupport_bracket.step. The part combines a bearing housing, stepped bore, supporting webs,\nmounting holes, and a recessed base. Completing it requires the agent to reconcile orthographic\nsections, dimension annotations, and visible features before expressing their relationships as a solid\nmodel. Figure A16 shows the supplied inputs and a retained render from the first frozen-memory\nevaluation.\n\n(a) Supplied engineering drawing, rendered upright.\n\n(b) Supplied reference part.\n\n(c) First evaluation: retained candidate render.\n\nFigure A16. T103: from an engineering drawing to a programmatically constructed CAD model. Panel (c) is an\noriginal runtime render from the first RSI evaluation (score 0.6789), not the reference or the second evaluation.\nThe rectangular supports and conical mounting-hole mouths remain visibly different from the reference.\n\nBroad Recursive Self-exploration builds complementary CAD skills. Eight projects, executed in\ntwo waves of four, cover environment setup and seven CAD exercises. A scanned-drawing project requires a gusseted bracket with counterbored holes; an angled-brace project introduces non-orthogonal\nconstruction; and a cover-plate project places a window whose dimensions must be recovered from a\nreference-image grid. These projects accumulate procedures for distinguishing scanned from vector\nPDFs, interpreting drawing notes, constructing solids through code, and checking a STEP export\n\n\fRSIAgent\n\n48\n\nafter re-import. All eight receive internal PASS judgments, leaving 77,800 bytes of memory in eight\nfiles. The shared knowledge therefore covers several prerequisites of the target, rather than a single\ncompleted bracket.\nDeep Recursive Self-exploration refines the interpretation rules. The first target attempt receives\nan internal FAIL amid disagreement about the drawing’s measurement frame. The curriculum agent\nthen proposes three flange-housing practices, whose outcomes are FAIL, PASS, and PASS. Their\nretained records distinguish printed labels, PDF coordinates, and physical dimensions, including a\nvariant whose labels are explicitly expressed in 96-dpi pixel units. A second target attempt receives\ninternal PASS and adds further procedures: anchor dimension labels to arrowheads and extension\nlines, and combine orthogonal sections to recover the recessed region, groove, taper, and small\npassage. Every target and practice outcome contributes a memory update. The resulting frozen corpus\ncontains 147,415 bytes in the same eight files. This historical run uses verifier-pass stopping for DRS.\nFrozen memory supplies methods used in the final reconstruction. The evaluation traces show\nretrieval followed by application. In the first evaluation, the actor agent reads the PDF and FreeCAD\nplaybooks, adopts their input-classification and execution rules, and later explicitly reuses the earlier\ntarget’s point-membership probes to check material and void regions in the exported solid. The\nsecond evaluation reads the memory index and the drawing-extraction, execution, FreeCAD, and\nverification playbooks within its first five turns. It then derives geometry from the current drawing\nand constructs the part through the FreeCAD Part API. Thus, the retained experience provides both\nan interpretation procedure and executable ways to check the resulting artifact.\nThe score gain reflects improved, but incomplete, reconstruction. The archived memory-free\nbaseline scores 0.2500; the two frozen-memory evaluations score 0.6789 and 0.6897, respectively.\nThe baseline already exports a valid solid, so the improvement is not simply successful file creation.\nThe first RSI construction adds a cylindrical groove and a more detailed central pad, while retaining\nincorrect support and mounting-hole geometry visible in Figure A16. These records demonstrate\nreuse of task-relevant experience alongside higher partial credit on the known target. The comparison\nuses an archival baseline rather than a matched memory ablation, and the saved scores do not resolve\nthe contribution of individual features.\n\nE.7\n\nProducing a Radio Bumper in REAPER\n\nAudio production couples content selection with precise timing. REAPER is a digital audio\nworkstation for arranging, processing, and rendering audio. T085 asks the agent to assemble a\nradio bumper from recorded takes according to a supplied fragment plan. The output must preserve\nthe specified sources and order, use approximately 0.05-second crossfades, leave 0.50-second gaps\nbetween sentences, and place a closing sting 0.50 seconds after the final sentence. That sentence\nmust also be exported separately with its pitch raised by two semitones and its duration halved. The\ntask therefore requires both interpreting which source fragments belong together and expressing that\ninterpretation through the application’s editing and rendering controls. Figure A17 connects the final\nsource-fragment arrangement to the audio delivered by the first frozen-memory evaluation.\nBroad Recursive Self-exploration acquires reusable audio procedures. In this run, seven BRS\nprojects cover source selection, precise splicing, silence measurement, pitch and duration transforma-\n\n\fRSIAgent\n\n49\n\n(a) Editing timeline reconstructed from the final recorded program\ntake 1\n\nSentence 1\n\nA1\n\nSpeech\nSting\n\nSentence 2\n\nA2\n\nC\n\n0.05 s crossfade\n\ntake 2\n\nSentence 3\n\nD\n\ntake 3\n\nSentence 4\n\nE\n\nPc\n\nH\n\ntake 4\n\nSentence 5\n\nJ\nsting.wav\n\n0.50 s gap\n\n(b) Waveform envelope of the saved first-RSI bumper\nAmplitude\n\n1\n0\n−1\n0\n\n2\n\n4\n\n6\n\n8\n\n10\n\n12\n\nTime (s)\n\nFigure A17. T085 radio-bumper assembly. (a) Source-take layout reconstructed from the final recorded\nconstruction program. (b) Waveform envelope of the saved first-RSI bumper; shaded bands mark the 0.50second gaps.\n\ntions, and complete bumper construction. They leave 13 memory files containing 109,720 bytes. The\nretained procedures include REAPER project construction and command-line rendering, audio-content\ncomparisons, and checks on the exported waveform. This supplies the actor agent with practical\nmethods for constructing and inspecting audio artifacts before attempting T085.\nDeep Recursive Self-exploration resolves ambiguity and revises rendering advice. The first\ntarget attempt receives an internal PASS and adds plan_resolution_pattern.md. This record\ndescribes how to combine phrase detection, cross-take comparisons, transcription, and sentence\ngrouping to resolve the terse fragment plan. It preserves the chosen source spans together with\nqualifications about ambiguous choices. The curriculum agent then selects six further practices. The\nfirst two compare native item-and-fade assembly against preassembled sentence sources, then repeat\nthe comparison with tightly trimmed stereo audio. The second practice exposes a mismatch between\nthe rendered audio samples; changing the saved resampling configuration to RENDER_RESAMPLE 0\n0 0 resolves it in the tested builds. Memory is revised to qualify earlier renderer explanations. Four\nadditional practices examine analogous source-selection and ordering problems in image composition.\nAfter a second target PASS and a curriculum-ready decision, memory is frozen at 17 files and 227,605\nbytes. Both exploration stages record zero official evaluator calls.\nTest-time execution reuses the retained interpretation and procedures. The first frozen-memory\nevaluation explicitly retrieves the full plan-resolution record in iteration 15. Its construction program\nlater uses all eight source spans recorded in that memory and adopts the revised resampling setting\nwhen building native REAPER projects. The actor agent checks the emitted audio through transcription,\nsource comparisons, timing measurements, and paired pitch estimates. The saved re-render check\nreports identical audio-sample payloads for both deliverables. The trace thus connects a retained\n\n\fRSIAgent\n\n50\n\nlesson to a specific construction choice and a subsequent output check. Figure A18 shows the retained\nbaseline and RSI exports for both the complete bumper and the separately processed ending.\nFull radio bumper\n\nProcessed ending\n\nAmplitude\n\n(a) Baseline: 24.849 s\n\n(b) Baseline: 1.633 s\n\n1\n\n1\n\n0\n\n0\n\n−1\n\n−1\n0\n\n5\n\n10\n\n15\n\n20\n\n25\n\n0.0\n\nAmplitude\n\n(c) RSI: 13.246 s\n\n0.5\n\n1.0\n\n1.5\n\n(d) RSI: 1.010 s\n\n1\n\n1\n\n0\n\n0\n\n−1\n\n−1\n0\n\n5\n\n10\n\n15\n\nTime (s)\n\n20\n\n25\n\n0.0\n\n0.5\n\n1.0\n\n1.5\n\nTime (s)\n\nFigure A18. Waveform envelopes of the archived T085 exports: baseline (top) and the first frozen-memory\nRSI evaluation (bottom). Each column uses shared time and amplitude scales; panel titles give file durations.\n\nThe score improvement is concentrated in sentence gaps and the processed ending. The\narchived baseline scores 0.6800, while the two frozen-memory evaluations score 0.9417 and 0.9413,\naveraging 0.9415 as reported in Section 4.4. Both evaluations reuse the same frozen memory with\nhost writeback disabled. Table A8 shows the first evaluation’s component scores: sentence-gap credit\nincreases from 0.8250 to 1.0000, and processed-final-sentence credit increases from 0.2837 to 0.8996.\nThe latter also removes the baseline’s binding 0.68 score cap; source-order credit remains unchanged.\nThe evaluator approximates sentence boundaries through acoustic activity, so these components\nmeasure its recorded criteria rather than complete semantic or perceptual correctness. This historical\ncomparison documents memory reuse on the known target, not a matched-budget estimate of each\npractice’s contribution.\nTable A8. T085 component scores and overall partial score on a 0–1 scale. RSI uses the first frozen-memory\nevaluation; the overall score includes the benchmark’s weights and caps.\nComponent\n\nBaseline\n\nRSI (draw 1)\n\nSource order\nSentence gaps\nClosing sting\nProcessed final sentence\nBasic duration\n\n0.9062\n0.8250\n1.0000\n0.2837\n1.0000\n\n0.9062\n1.0000\n1.0000\n0.8996\n1.0000\n\nOverall partial score\n\n0.6800\n\n0.9417\n\n\f</code></pre></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"