"<!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>Meta-Harness: End-to-End Optimization of Model Harnesses\nYoonho Lee\nStanford\n\nRoshen Nair\nStanford\n\nQizheng Zhang\nStanford\n\nOmar Khattab\nMIT\n\nKangwook Lee\nKRAFTON\n\nChelsea Finn\nStanford\n\nHarness Optimizer Search Progress\n\nTerminalBench-2 Harness Performance\nMeta-Harness\n\n55\n\n40\n\n50\nTTT-Discover\nOpenEvolve\n\n45\n\nACE\n\n40\n35\n\nFew-shot\n\nPass Rate (%)\n\nBest Performance (%)\n\narXiv:2603.28052v1 [cs.AI] 30 Mar 2026\n\nProject page w/ interactive demo: https://yoonholee.com/meta-harness/\nOptimized harness: https://github.com/stanford-iris-lab/meta-harness-tbench2-artifact\n\nZero-shot\n\n30\n0\n\n10\n\n20\n\n30\n\nHarness Evaluations\n\n35\n\n30\n\nHuman-written\nModel-optimized (ours)\n\nMeta-Harness\n(ours)\n37.6\n\nGoose\n35.5\n\nTerminus-KIRA\n33.7\n\nMini-SWEAgent\n29.8\n\nTerminus-2\n28.3\n\nClaude\nCode\n27.5\n\n25\n\n40\n20\n\nFigure 1: (Left) On text classification, Meta-Harness outperforms the best prior handdesigned harnesses (ACE) and existing text optimizers (TTT-Discover, OpenEvolve), matching the next-best method’s final accuracy after just 4 evaluations. (Right) On TerminalBench2, Meta-Harness outperforms all reported Claude Haiku 4.5 harnesses.\n\nAbstract\nThe performance of large language model (LLM) systems depends not\nonly on model weights, but also on their harness: the code that determines\nwhat information to store, retrieve, and present to the model. Yet harnesses\nare still designed largely by hand, and existing text optimizers are poorly\nmatched to this setting because they compress feedback too aggressively:\nthey are memoryless, condition only on scalar scores, or restrict feedback to\nshort templates or summaries. We introduce Meta-Harness, an outer-loop\nsystem that searches over harness code for LLM applications. It uses an\nagentic proposer that accesses the source code, scores, and execution traces\nof all prior candidates through a filesystem. On online text classification,\nMeta-Harness improves over a state-of-the-art context management system\nby 7.7 points while using 4× fewer context tokens. On retrieval-augmented\nmath reasoning, a single discovered harness improves accuracy on 200\nIMO-level problems by 4.7 points on average across five held-out models.\nOn agentic coding, discovered harnesses surpass the best hand-engineered\nbaselines on TerminalBench-2. Together, these results show that richer\naccess to prior experience can enable automated harness engineering.\n\n1\n\nIntroduction\n\nChanging the harness around a fixed large language model (LLM) can produce a 6×\nperformance gap on the same benchmark [47]. The harness—the code that determines what\nto store, retrieve, and show to the model—often matters as much as the model itself. This\nsensitivity has led to growing interest in harness engineering, the practice of refining the\ncode around an LLM to improve the overall system’s performance [36; 21; 10; 9]. But despite\nits importance, harness engineering remains largely manual: practitioners inspect failures,\n1\n\n\fFilesystem w8\nAll Experience\n\nMaximize\n\nHarness\n\nHarness+LLM\n\nTasks\n\n/\n\n1\n\n2\n\nEvaluate\n\nPropose\u0013\nHarness Code\n\nStore all Logs to Filesystem\nProposed Reasoning\nCode\nTraces\n\nEvag\nScore\n\nFigure 2: Meta-Harness search loop. (1) An agent reads a filesystem containing all prior\ncandidates’ source code, execution traces, and scores, and proposes a new harness. (2) We\nevaluate the proposed harness on evaluation tasks. (3) All logs (proposed code, reasoning\ntraces, evaluation scores) are stored in the filesystem in a new directory, and the loop repeats.\nMethod\n\nHistory\n\nLog content\n\nMTok/iter\n\nOPRO [51]\nTextGrad [53]\nAlphaEvolve [35]\nGEPA [1]\nFeedback Descent [26]\nTTT-Discover [54]\n\nWindow\nLast\nWindow\nSummary\nSummary\nWindow\n\npast (solution, score) pairs\ntextual feedback on current artifact\nprogram database + eval. scores\nreflective feedback from rollout traces\ncomparison + textual feedback\nprev. solution fragment\n\n0.002\n0.015\n0.022\n0.008\n0.012\n0.026\n\nMeta-Harness\n\nFull\n\nall logs and scores\n\n10.0\n\nTable 1: Comparison of text optimization methods and their settings. Each row represents\na method collapsed across tasks. Mtok/iter is our best estimate of the full context generated\nfrom one evaluation of a text artifact in the largest setting considered in each paper. This paper\nconsiders settings that yield orders-of-magnitude more context per artifact evaluation.\nadjust heuristics, and iterate on a small number of designs. In this paper, we ask whether\nthis process itself can be automated.\nA natural starting point is recent work on text optimization, since harness engineering also\ninvolves iteratively improving text and code artifacts using feedback from prior attempts [38;\n39; 35; 26; 1]. However, these methods are poorly matched to harness engineering because\nthey typically operate with short-horizon or heavily compressed feedback: some condition\nonly on the current candidate [31; 51; 53], others rely primarily on scalar scores [35; 12], and\nothers restrict feedback to short templates or LLM-generated summaries [1; 26]. This is a\npragmatic scalability choice, not evidence that longer-range dependencies are uninformative.\nHarnesses act over long horizons: a single choice about what to store, when to retrieve it, or\nhow to present it can affect behavior many reasoning steps later. Compressed feedback often\nremoves the information needed to trace downstream failures to earlier harness decisions.\nAcross the tasks studied by several representative text optimizers, the available context per\noptimization step ranges from only 100 to 30,000 tokens (Table 1), far below the diagnostic\nfootprint of harness search. More broadly, work on retrieval and memory-augmented\nlanguage models suggests that useful context should often be accessed adaptively rather\nthan monolithically packed into a single prompt [28; 48; 37; 56].\nWe address this limitation with Meta-Harness, an agentic harness for optimizing harnesses\nvia end-to-end search (Figure 2). Its proposer is a coding agent, i.e., a language-model-based\nsystem that can invoke developer tools and modify code. The choice of coding agent (rather\nthan raw LLM) matters because the amount of experience quickly exceeds context limits, so\nthe proposer must decide what to inspect and validate edits through direct interaction with\nthe codebase. Its key design choice is to expose full history through a filesystem, enabling\nselective diagnosis of raw prior code and execution traces rather than optimization from\ncompressed per-candidate summaries. For every previous candidate harness, the filesystem\nstores the source code, evaluation scores, and execution traces, which the proposer retrieves\nvia standard operations such as grep and cat rather than ingesting them as a single prompt.\nIn practice, the proposer reads a median of 82 files per iteration in our most demanding\nsetting, referencing over 20 prior candidates per step (Appendix A). In the settings we\n2\n\n\fstudy, a single evaluation can produce up to 10,000,000 tokens of diagnostic information,\nroughly three orders of magnitude beyond the largest feedback budgets used in prior text\noptimization settings (Table 1).\nWe evaluate Meta-Harness on online text classification, mathematical reasoning, and agentic\ncoding. On online text classification, harnesses discovered by Meta-Harness improve over\nAgentic Context Engineering (ACE, Zhang et al. [59]) by 7.7 points while using 4× fewer\ncontext tokens, and match the next-best text optimizer’s final performance after 60 proposals\nwith only four (Figure 1). On retrieval-augmented math reasoning, a single discovered\nharness improves accuracy on 200 IMO-level problems by 4.7 points on average across five\nheld-out models. On TerminalBench-2, the discovered harness surpasses Terminus-KIRA\nand ranks #1 among all Haiku 4.5 agents.\n\n2\n\nRelated Work\n\nAt a high level, Meta-Harness brings ideas from the broader literature on credit assignment\nand meta-learning [40; 46; 3; 17; 44; 2] in a new regime enabled by recent advances in coding\nagents. Rather than updating model weights, the system assigns credit at the harness\nlevel: it uses experience from past rollouts to deliberately reason about which steps and\ncomponents are responsible for failures, then rewrites the external code that governs future\nbehavior. More specifically, the method lies at the intersection of several recent research\nthreads; it is most directly related to work on adaptive access to external context, executable\ncode search, and text optimization.\nExternal memory and adaptive access. Several prior works note the benefits of treating\nlarge knowledge sources or long inputs as external resources that a language model accesses\nadaptively, rather than consuming them in a single pass. Specifically, retrieval-augmented\ngeneration [28], interleaved retrieval and reasoning [48], memory-based agents [37], or\nrecursive language models [56] are mechanisms for adaptive access to external context.\nMeta-Harness uses a similar access pattern, but in the more demanding setting of harness\nengineering, where the proposer selectively inspects a large external history of code, scores,\nand execution traces to improve context-management procedures themselves.\nExecutable code search. Recent methods search over executable code for functions, workflows, or agent designs. Early work proposes using large models as mutation and crossover\noperators in evolutionary program search [27]. Later methods evolve designated functions\nwithin fixed program scaffolds [39], use meta-agents to program new agents from prior discoveries [20], or search over workflow graphs for agentic systems [58]. Another line of work\nsearches over memory designs for continual-learning agents, where memory persists across\ntask streams [57; 50]. In contrast, Meta-Harness searches over domain-specific harnesses,\nincluding prompt construction, retrieval, and state update strategies that reset between\ntasks. Its outer loop is deliberately minimal: instead of relying on a fixed scaffold, an archive\nof prior discoveries, or a persistent memory mechanism, it gives the proposer unrestricted\nfilesystem access to prior experience. This lets the agent decide what information to inspect\nand enables search over full harness implementations rather than a predefined space of\ncontext-management procedures.\nText optimization methods. Meta-Harness is also closely related to methods such as\nProTeGi, TextGrad, OPRO, GEPA, AlphaEvolve/OpenEvolve, and Feedback Descent, which\niteratively improve prompts or other text artifacts using feedback from prior attempts [38;\n31; 53; 51; 1; 35; 43; 26]. However, these methods are less well suited to harness engineering,\nwhere optimization targets a complete executable procedure, and the relevant environmental\nfeedback is distributed across code, scores, and execution traces in a way that is hard to\nsummarize up front. Rather than reacting only to aggregate scores or summaries, the\nproposer in Meta-Harness can reason over failed examples and their execution traces to\npropose targeted edits. See Table 1 for a comparison of problem scale considered in those\npapers and ours, and Figures 1 and 4 for a direct comparison with OpenEvolve, GEPA, and\nTTT-Discover in our problem setting.\n3\n\n\f3\n\nMeta-Harness: A Harness for Optimizing Harnesses\n\nThis section describes Meta-Harness, our outer-loop procedure for searching over taskspecific harnesses. Meta-Harness is built on the idea that harness optimization benefits from\nallowing a proposer to selectively inspect prior code and execution traces via filesystem\naccess, rather than optimizing from lossy summaries or an additional hand-designed search\nstructure. At a high level, it repeatedly proposes, evaluates, and logs new harnesses.\nMeta-Harness is itself a harness in the broad sense (hence the name), since it determines\nwhat information the proposer model sees during search. Unless otherwise noted, we use\nharness to refer to the task-specific programs being optimized.\nObjective. A harness is a stateful program that wraps a language model and determines\nwhat context the model sees at each step. The goal is simple: find the harness that makes\nthe underlying model perform best on the target task distribution. Formally, let M denote a\nfixed language model and X a task distribution. For a harness H and task instance x ∼ X ,\nwe execute a rollout trajectory τ ∼ p M ( H, x ). The harness constructs prompts for M, the\nmodel responds, and the harness updates its state after each interaction. A task-specific\nreward function r (τ, x ) scores the trajectory. The objective of harness optimization is to find\nthe harness that maximizes the expected final reward:\nH ∗ = arg max Ex∼X ,τ ∼ p M ( H,x) r (τ, x ),\nH\n\nWhen multiple objectives are relevant (e.g., accuracy and context cost), we evaluate candidates under Pareto dominance and report the resulting frontier. In practice, this search has\ntraditionally been carried out by human engineers and researchers, who iteratively refine\nprompts, context-management rules, and tool-use logic by hand.\nMeta-Harness search loop. Meta-Harness uses a single coding-agent proposer with access\nto a growing filesystem D that serves as its feedback channel1 . Here, a coding agent is a\nlanguage-model-based system that can invoke developer tools and modify code. Unlike\nprior systems that externalize the improvement logic in a hand-designed search loop, MetaHarness delegates diagnosis and proposal to the coding agent itself: it decides which prior\nartifacts to inspect, which failure modes to address, and whether to make a local edit or a\nmore substantial rewrite. Equivalently, the proposer is not a raw next-token model operating\non a fixed prompt assembled by the outer loop; it is an agent that retrieves information,\nnavigates prior artifacts, and edits code as part of the search itself. Each evaluated harness\ncontributes a directory containing its source code, scores, and execution traces (such as\nprompts, tool calls, model outputs, and state updates). The filesystem is typically far larger\nthan the proposer’s context window, so the proposer queries it through terminal tools such\nas grep and cat rather than ingesting it as a single prompt. At each iteration, the proposer\nfirst inspects prior code, scores, and execution traces, then reasons about likely failure modes\nbefore generating a new harness.\nMeta-Harness maintains a population H and a Pareto frontier over evaluated harnesses, but\nimposes no parent-selection rule: the proposer is free to inspect any prior harness and its\nexecution trace when proposing new ones. We run evolution for a fixed number of iterations\nand perform a final test-set evaluation on the Pareto frontier. This simplicity is deliberate:\nby leaving diagnosis and edit decisions to the proposer rather than hard-coding search\nheuristics, Meta-Harness can improve automatically as coding agents become more capable.\nThe proposer never sees test-set results; its only feedback comes from the search set, the\nsubset of task instances used to evaluate candidate harnesses during search and generate\nthe feedback signal for improvement, and from execution traces logged during those search\nruns.\nAdvantages of code-space search. Harness optimization occurs in code space, where small\nchanges to retrieval, memory, or prompt-construction logic can affect behavior many steps\nlater, making local search heuristics poorly matched to the problem. By inspecting execution\n1 Based on earlier exploration, we think this workflow only became practical recently, following\nmajor improvements in coding-agent capabilities around early 2026.\n\n4\n\n\fAlgorithm 1 Meta-Harness outer loop over harnesses\n1: Input: tasks X , LLM M, proposer P, iterations N\n2: Initialize: population H\n3: Initialize: filesystem D ← ∅\n4: for H ∈ H do\n5:\nEH ← Evaluate( H, M, X )\n6:\nD ← D ∪ {( H, EH )}\n\n▷ Initial set of valid harnesses\n▷ stores code, scores, traces\n\n7: for t = 1 . . . N do\n8:\nProposer P queries filesystem D\n▷ inspects prior harnesses and scores\n9:\nProposer P proposes k new harnesses { H1 , . . . , Hk }\n10:\nfor H in { H1 , . . . , Hk } do\n11:\nif H passes interface validation then\n12:\nD ← D ∪ {( H, E VALUATE ( H, M, X ))}\n13: return Pareto frontier of harnesses stored in D\n\ntraces, the proposer can often infer why a harness failed and which earlier design choices\nlikely contributed to the failure, not just that it failed, as illustrated by the search trajectories\nin Appendices A and A.2. There, we see that the proposer reads broadly across prior\ncode and logs, then uses those traces to identify confounded edits, isolate likely causal\nchanges, and shift toward safer modifications after repeated regressions. The proposer can\ntherefore modify the harness at the level of algorithmic structure, ranging from changes\nto retrieval, memory, or prompt-construction logic to full program rewrites, rather than\nfilling in templates or applying predefined mutation operators. In practice, it often starts\nfrom a strong prior harness, but this is an emergent strategy rather than a hard-coded\nrule. Although the search space is large, representing harnesses as programs provides a\nnatural regularization bias: coding models tend to propose coherent algorithms rather than\nbrittle, hard-coded solutions, which biases the search toward reusable context-management\nprocedures. This action space is closely aligned with the read–write–execute workflows on\nwhich frontier coding assistants are trained.\nPractical implementation. In our experiments, each harness is a single-file Python program\nthat modifies task-specific prompting, retrieval, memory, and orchestration logic. In our\nexperiments, the proposer P is Claude Code [4] with Opus-4.6. The proposer is guided by a\nminimal domain-specific skill that describes where to write new harnesses, how to inspect\nprevious harnesses and their execution traces, and what files it can and cannot modify.\nThe base model M varies by domain and is always frozen; see Section 4 for details. In our\nexperiments, a typical run evaluates roughly 60 harnesses over 20 iterations. We provide\nadditional tips for implementing Meta-Harness in a new domain in Appendix D.\n\n4\n\nExperiments\n\nWe evaluate Meta-Harness on three task domains: online text classification, math reasoning,\nand agentic coding. In each domain, we compare harnesses discovered by our search against\ndomain-appropriate baselines using the standard evaluation metric. Please refer to each\nsubsection for the precise experimental setup.\nWe compare against two main classes of methods. (1) Human-designed strategies: these\nare hand-crafted harnesses for each domain, representing the current state of the art in\ncontext construction. We describe these baselines in the corresponding subsections. (2)\nProgram-search methods: these methods search over candidate harnesses using feedback\nand reward signals, but are designed for smaller-scale settings than harness engineering.\n4.1\n\nOnline Text Classification\n\nWe follow the online text classification setup of Zhang et al. [59]; Ye et al. [52]: an LLM\nreceives labeled examples one at a time, updates its memory, and is evaluated on a heldout test set. We use GPT-OSS-120B as the LLM text classifier, and consider the problem of\n5\n\n\fDatasets\n\n50\n\nUSPTO S2D Law Acc Ctx ↓\n\nZero-Shot\nFew-Shot (8)\nFew-Shot (32)\nFew-Shot (all)\nMCE [52]†\nACE [59]†\n\n12.0\n14.0\n13.0\n15.0\n14.0\n16.0\n\n63.2\n67.9\n72.2\n78.3\n83.0\n77.8\n\n7.0\n21.0\n21.0\n29.0\n23.0\n29.0\n\n27.4\n34.3\n35.4\n40.8\n40.0\n40.9\n\n0\n2.0\n7.9\n12.3\n28.5\n50.8\n\nMeta-Harness\n\n14.0\n\n86.8 45.0 48.6\n\n11.4\n\nTest accuracy\n\nHarness\n\nAvg.\n45\n40\n35\n\nOurs (Pareto)\nOurs (non-Pareto)\nMCE\nACE\nZero-shot\nFew-shot\n\n30\n25\n0\n\n10k\n\n20k\n\n30k\n\n40k\n\n50k\n\nAdditional context (chars)\n\n115k\n\n200k\n\nTable 2: Test-set metrics for all harnesses on the\nthree datasets. Ctx denotes additional input to- Figure 3: Pareto frontier of accuracy vs.\nkens in context (thousands). †: implementation context tokens on online text classificafrom Ye et al. [52]. ↓: lower is better. Meta- tion. Meta-Harness achieves a stronger\nHarness improves online text classification ac- accuracy-context Pareto frontier than all\ncuracy while using a smaller input context.\ncomparison methods.\ndesigning a harness for text classification. We use three datasets, chosen for difficulty and\ndomain diversity: LawBench (Law) [16] predicts criminal charges from case descriptions\n(215 classes); Symptom2Disease (S2D) [19] predicts diseases from symptom descriptions\n(22 classes); and USPTO-50k [41] predicts precursor reactants from product molecules\n(180 classes). We initialize the search population H from the main baseline harnesses in\nthis setting: zero-shot, few-shot, ACE, and MCE. We ran 20 evolution iterations with two\ncandidates per iteration, producing 40 candidate harnesses.\nComparison vs text optimizers. We compare Meta-Harness against representative methods\nfor optimizing text. For a fair comparison, we use the same proposer configuration (Opus-4.6\nwith max reasoning), select candidates solely based on search-set performance, and hold out\nthe test sets until the final evaluation. Since evaluation is the main computational bottleneck,\nwe give each method the same budget of proposal harness evaluations. We consider the\nfollowing points of comparison:\n• Best-of-N: independent samples from the seed with no search structure; a computematched control for whether search matters at all.\n• OpenEvolve [43]: evolutionary search over programs with LLM mutation.\n• TTT-Discover [55]: we use only the text-optimization component of their method, i.e.,\nproposal selection via the PUCT reuse rule.\nIn this setting, Meta-Harness matches the best prior text optimizers (OpenEvolve, TTTDiscover) in 0.1× the evaluations, and its final accuracy surpasses theirs by more than 10\npoints (Figure 1 and Table 4). We attribute this speedup to the intentional design choices\nthat impose minimum necessary structure on the outer loop (Section 3). In particular,\nMeta-Harness preserves full experience history using a filesystem and allows the proposer to\ninspect anything necessary, whereas both OpenEvolve and TTT-Discover operate with more\nstructured and substantially more limited proposer inputs than full filesystem access. We\nnote that online text classification is the smallest-context setting we study (Table 1), so if\nstructure-heavy text optimizers already lag here, their limitations may only grow in harder\nregimes.\nMeta-Harness is 10× Faster and Converges to a Better Harness\nIn this setting, Meta-Harness matches the best prior text optimizers (OpenEvolve, TTTDiscover) with 10× fewer full evaluations, and its final accuracy surpasses theirs by\nmore than 10 points.\nTo isolate which parts of the proposer interface matter most, we compare three conditions\nin online text classification: a scores-only condition, a scores-plus-summary condition in\nwhich the proposer receives LLM-generated summaries but no raw traces, and the full\nMeta-Harness interface with access to execution traces (Table 3). The results show a large\ngap in favor of the full interface: scores-only reaches 34.6 median and 41.3 best accuracy,\nwhile scores-plus-summary reaches 34.9 median and 38.7 best. By contrast, Meta-Harness\n6\n\n\fScores\n\nCode\n\nSumm.\n\nTraces\n\nMedian ↑\n\nBest Acc ↑\n\n&gt; ZS\n\nScores Only\nScores + Summary\n\n✓\n✓\n\n✓\n✓\n\n×\n✓\n\n×\n×\n\n34.6\n34.9\n\n41.3\n38.7\n\n26\n23\n\nMeta-Harness (full)\n\n✓\n\n✓\n\n-\n\n✓\n\n50.0\n\n56.7\n\n39\n\nMethod\n\nTable 3: Ablation of the information available to the proposer in online text classification. &gt;\nZS: number of runs whose accuracy exceeded the zero-shot baseline. The full Meta-Harness\ninterface substantially outperforms scores-only and scores-plus-summary ablations. Access\nto raw execution traces is the key ingredient for enabling harness search.\nreaches 50.0 median and 56.7 best accuracy, and even its median candidate outperforms the\nbest candidate found under either ablation. We interpret this as evidence that full access\nto execution traces is the most important component of the interface: summaries do not\nrecover the missing signal, and may even hurt by compressing away diagnostically useful\ndetails.\nComparison vs state-of-the-art harnesses. Our priMedian Best\nmary points of comparison are hand-designed har- Method\nnesses for this problem setting: Agentic Context Engi- GEPA [1]\n32.6\n40.2\n34.0\n44.2\nneering (ACE, Zhang et al. [59]), which uses reflective Best-of-N\n39.1\n43.3\nmemory curation to build context over time, and Meta OpenEvolve [43]\n34.1\n45.6\nContext Engineering (MCE, Ye et al. [52]), which main- TTT-Discover [55]\ntains and evolves a library of natural-language skills Meta-Harness\n50.0\n56.7\nfor context construction. As additional baselines, we\nevaluate zero-shot prompting and few-shot prompting Table 4: Text classification accuwith N ∈ {4, 8, 16, 32, all} examples. Results in Ta- racies of the harnesses proposed\nble 2 show that Meta-Harness improves substantially by different text optimizers (search\nover prior hand-designed harnesses. The selected set). Meta-Harness is substanMeta-Harness2 reaches 48.6% accuracy, outperforming tially more effective at harness opACE by 7.7 points and MCE by 8.6 points. These gains timization.\ndo not come from using more context: Meta-Harness uses only 11.4K context tokens, versus\n50.8K for ACE and 28.5K for MCE.\nAccuracy–Context Tradeoffs. Because Meta-Harness performs free-form optimization over\nharness code, we can express a joint preference for both accuracy and context cost rather\nthan committing to a single scalar objective in advance. Given only the current metrics and\nthe desired trade-off, the proposer is able to discover harnesses across a broad range of the\nfrontier, yielding a smooth accuracy–context Pareto curve in Figure 3. This allows us to\ntrade additional context for higher test accuracy in a controlled way, rather than committing\nto a single hand-designed operating point.\nOut-of-distribution (OOD) task evaluation. We evaluate whether the discovered harness generalizes to entirely new datasets unseen during search. We consider nine diverse\ndatasets, and describe them in detail in Appendix C.1. The selected Meta-Harness system\nachieves the best average accuracy (73.1%), outperforming ACE (70.2%) and all few-shot\nbaselines (Table 5). Notably, we observe that naively adding more few-shot examples beyond 32 hurts performance in 7/9 tasks. Meta-Harness shows the highest performance on\n6/9 datasets, suggesting that the discovered harness captures generally effective strategies\nfor text classification rather than overfitting to the specific datasets used during search.\n4.2\n\nHarnesses for Retrieval-Augmented Reasoning\n\nWe study a somewhat non-standard setup for olympiad math solving: augmenting the\nmodel with the ability to retrieve examples from a large corpus. There is a good reason to\nexpect retrieval to help mathematical reasoning in principle, because solutions often share\nreusable proof patterns, so previous reasoning traces contain information that a model may\n2We slightly overload terminology for brevity: in the tables, Meta-Harness denotes the best discovered harness, whereas elsewhere it refers to the entire harness search procedure.\n\n7\n\n\fHarness\n\nSciC\n\nFiNER\n\nAmz5\n\nFPB\n\nGoEmo\n\nBank77\n\nNews\n\nSciT\n\nTwHate\n\nAvg Acc\n\nCtx ↓\n\nZero-shot\nFew-shot (8)\nFew-shot (32)\nFew-shot (all)\nACE [59]\n\n32.7\n34.0\n38.7\n35.3\n40.7\n\n56.0\n63.0\n62.0\n61.0\n74.0\n\n52.7\n54.0\n53.3\n50.0\n48.0\n\n90.0\n90.0\n90.7\n93.3\n96.7\n\n42.0\n44.0\n43.3\n42.7\n44.0\n\n80.7\n82.7\n86.0\n80.7\n83.3\n\n84.7\n84.7\n85.3\n84.0\n86.0\n\n89.3\n91.3\n90.7\n90.0\n90.7\n\n75.3\n76.7\n76.7\n76.7\n68.7\n\n67.0\n68.9\n69.6\n68.2\n70.2\n\n2.2\n5.2\n7.4\n11.7\n\nMeta-Harness\n\n53.3\n\n67.0\n\n60.0\n\n94.0\n\n46.0\n\n82.7\n\n86.7\n\n91.3\n\n77.3\n\n73.1\n\n7.3\n\nTable 5: OOD text classification dataset evaluation. We report test accuracy for each\ndataset and the average additional context tokens across all nine datasets. Meta-Harness\noutperforms the next best method by 2.9 points on these 9 previously unseen tasks.\nMethod\nNo Retriever\n\nGPT-5.4n GPT-5.4m Gem-3.1FL\n23.0\n\nGem-3F\n\nGPT-20B\n\nAvg.\n\n42.6\n\n47.6\n\n34.1\n\n28.8\n\n28.6\n\nDense Retrieval (k =1) 27.1 (+4.1)\nDense Retrieval (k =5) 31.1 (+8.1)\n\n24.5 (-4.3)\n28.3 (-0.5)\n\n31.3 (+2.7)\n37.1 (+8.5)\n\n42.3 (-0.3) 46.9 (-0.7)\n47.2 (+4.6) 46.7 (-0.9)\n\nRandom Few-shot\nBM25 Retrieval\nMeta-Harness\n\n24.5 (-4.3)\n29.2 (+0.4)\n30.4 (+1.6)\n\n31.0 (+2.4)\n32.8 (+4.2)\n34.9 (+6.3)\n\n40.4 (-2.2) 41.8 (-5.8) 32.2 (-1.9)\n46.6 (+4.0) 48.9 (+1.3) 37.5 (+3.4)\n46.3 (+3.7) 50.6 (+3.0) 38.8 (+4.7)\n\n23.1 (+0.1)\n30.2 (+7.2)\n31.7 (+8.7)\n\n34.4 (+0.3)\n38.1 (+4.0)\n\nTable 6: Retrieval-augmented math problem solving on 200 IMO-level math problems. We\nshow pass@1 averaged over three samples per problem, with absolute improvement over\nthe baseline in parentheses. The discovered Meta-Harness retrieval strategy improves\nreasoning on these IMO-level problems across all five held-out models, with a 4.7-point\naverage gain over no retriever.\nbe able to exploit at inference time. Yet retrieval has not become a standard ingredient in this\nsetting, and prior work suggests that it has been much less successful on reasoning-intensive\nmath benchmarks than in more fact-grounded domains [42; 49; 6]. The difficulty is that\nnaive retrieval rarely surfaces the right traces in the right form. This suggests that success\ndepends less on adding retrieval per se than on discovering the right retrieval policy. Rather\nthan hand-designing that policy, we give Meta-Harness a hard set of olympiad problems\nand allow the retrieval behavior itself to emerge from search.\nThe retrieval corpus contains ≥500,000 solved problems from eight open-source datasets.\nWe carefully deduplicated and decontaminated it against both evaluation benchmarks and\nthe search set, confirmed that held-out problems have no exact prefix matches under our\nstring-based filter, and manually inspected top BM25 retrievals for held-out examples (appendix C.2). We use Meta-Harness to optimize a harness for 40 iterations over a 250-problem\nsearch set of Olympiad-difficulty math problems (OlympiadBench + Omni-MATH hard),\nproducing 109 candidate retrieval harnesses. We initialize the search population H from\nthe main baseline harnesses in this setting: zero-shot, few-shot, and ACE. We select a single\nharness based on search-set performance using GPT-OSS-20B (Appendix B.2). We evaluate\nthis harness on 200 previously unseen IMO-level problems drawn from IMO-AnswerBench,\nIMO-ProofBench, and ArXivMath [30; 6]. In addition to GPT-OSS-20B, we evaluate the\nsame retrieval harness on four models not seen during search: GPT-5.4-nano, GPT-5.4-mini,\nGemini-3.1-Flash-Lite, and Gemini-3-Flash. We follow the standard evaluation protocol\nof prior work [30] and report accuracy averaged over three samples per problem.\nResults. Table 6 compares the discovered harness against no retrieval, dense retrieval using\nthe separate embedding model text-embedding-3-small, random few-shot prompting, and\nBM25 retrieval. In contrast, Meta-Harness operates entirely in code space on top of the\nsame BM25-based lexical retrieval stack as the sparse baseline, rather than introducing an\nadditional dense encoder. The discovered retrieval harness outperforms the no-retrieval\nbaseline across all five held-out models, with an average gain of 4.7 points. It also matches\nor exceeds the strongest fixed baselines on average, outperforming BM25 retrieval by 1.3\npoints overall, while avoiding the regressions observed with dense retrieval and random\nfew-shot prompting across several models.\nMeta-Harness Improves Reasoning on IMO-Level Math Problems\nIn retrieval-augmented math reasoning, a single discovered retrieval harness transfers\nacross five held-out models, improving accuracy by 4.7 points on average over no\nretrieval and yielding the strongest overall average among the compared methods.\n\n8\n\n\f4.3\n\nEvaluating Agentic Coding Harnesses on TerminalBench-2\n\nTerminalBench-2 [33] evaluates LLM agents on 89 challenging tasks that require longhorizon, fully autonomous execution under complex dependencies, and substantial domain\nknowledge. Prior work has shown that the choice agent harness has a large effect on\nperformance on this benchmark. We initialize search from two strong open baselines,\nTerminus 2 [33] and Terminus-KIRA [25]. For this experiment, we perform search and final\nevaluation on the same 89-task benchmark. We use this benchmark as a discovery problem [54]\nin which the goal is to discover a harness configuration that improves performance on a\nhard, publicly contested benchmark. This is standard practice: public writeups already\ndescribe repeated benchmark-specific harness iteration on TerminalBench itself [18; 34; 25],\nand the benchmark is small and expensive enough that introducing a separate split would\nmaterially weaken the search signal. We additionally check for overfitting by manual\ninspection and regex-based audits for task-specific string leakage into evolved harnesses.\nWe note that although the resulting harness is specialized to the TerminalBench-2 regime,\nautonomous completion of difficult long-horizon tasks from a single instruction is a core\ncapability, and the benchmark consists of many tasks that frontier models and heavily\nengineered harnesses struggle with.\nResults. We report results on the full benchmark in Table 7, evaluated on two base models:\nClaude Opus 4.6 and Claude Haiku 4.5. On Opus\n4.6, Meta-Harness discovers a harness achieving\n76.4% pass rate, surpassing the hand-engineered\nTerminus-KIRA (74.7%) and ranking #2 among all\nOpus 4.6 agents on the TerminalBench-2 leaderboard. The only higher-scoring Opus 4.6 agent is\nForgeCode (81.8%); however, we were unable to\nreproduce their reported result from the publicly\navailable code alone, suggesting their leaderboard\nscores depend on components beyond the published repository. On the weaker Haiku 4.5 model,\nthe improvement is larger: Meta-Harness achieves\n37.6%, outperforming the next-best reported agent\n(Goose, 35.5%) by 2.1 points. TerminalBench-2 is\nan actively contested benchmark with multiple\nteams directly optimizing for it, so the fact that\nan automatic search method can achieve benefits\nat this frontier is encouraging for long-horizon textoptimization loops.\n\nHarness\n\nAuto\n\nClaude Opus 4.6\nClaude Code\n×\nTerminus 2\n×\nMux\n×\nDroid\n×\nTongAgents\n×\nMAYA-V2\n×\nTerminus-KIRA\n×\nCapy\n×\nForgeCode\n×\nMeta-Harness\n\n✓\n\nClaude Haiku 4.5\nOpenHands\n×\nClaude Code\n×\nTerminus 2\n×\nMini-SWE-Agent\n×\nTerminus-KIRA\n×\nGoose\n×\nMeta-Harness\n\n✓\n\nPass (%)\n58.0\n62.9\n66.5\n69.9\n71.9\n72.1\n74.7\n75.3\n81.8\n76.4\n13.9\n27.5\n28.3\n29.8\n33.7\n35.5\n37.6\n\nQualitative behavior of the proposer. The harness Table 7: Pass rate on TerminalBenchsearch trajectory helps explain why Meta-Harness 2. Results or others are from the offiachieves these gains; we provide a detailed sum- cial leaderboard. Meta-Harness ranks\nmary in Appendix A. In early iterations, the pro- #2 among all Opus-4.6 agents and #1\nposer combined plausible structural fixes with among all Haiku-4.5 agents on this\nprompt-template edits and observed that both can- competitive task.\ndidates regressed. It then explicitly hypothesized\nthat the regressions were confounded by the shared prompt intervention, isolated the structural changes from the prompt rewrite, and ultimately pivoted toward a safer additive\nmodification that became the best candidate in the run. This provides qualitative evidence\nthat filesystem access enables the proposer to inspect prior experience in enough detail to\nform causal hypotheses and revise the harness accordingly.\nMeta-Harness Surpasses Hand-Engineered Agents on TerminalBench-2\nOn TerminalBench-2, Meta-Harness automatically discovers harnesses that surpass\nTerminus-KIRA on Opus 4.6 and rank #1 among all Haiku 4.5 agents.\n\n9\n\n\f5\n\nDiscussion\n\nBeyond outperforming existing harnesses, Meta-Harness has several practical advantages.\nDiscovered harnesses generalize to out-of-distribution classification datasets (Table 5) and\nto unseen base models in the math setting (Table 6). A search run completes in a few\nhours of wall-clock time, yet produces readable, transferable strategies that can be reused\nacross models, including future, stronger ones. Overfitting in code space is also more\ninspectable: brittle if-chains or hard-coded class mappings are visible on inspection in a\nway that weight-space overfitting is not. More broadly, our results suggest that the main\nadvantage of Meta-Harness is not just search over code, but search with selective access to\nprior diagnostic experience. The proposer is not limited to scalar rewards or fixed summaries;\nit can inspect raw code, execution traces, and prior failures, then use that information\nto form and test hypotheses about what to change. The qualitative search trajectories in\nAppendix A.2 illustrate this behavior directly.\nOur findings reflect a recurring pattern in machine learning [45]: once a search space\nbecomes accessible, stronger general-purpose agents can outperform hand-engineered\nsolutions. A natural next step for future work is to co-evolve the harness and the model\nweights, letting the strategy shape what the model learns and vice versa. While we evaluate\non three diverse domains, our experiments demonstrate that harness search can work with\none particularly strong coding-agent proposer (Claude Code); a broader study of how the\neffect varies across proposer agents remains for future work.\n\n10\n\n\fAcknowledgements\nWe thank KRAFTON AI for providing API credit support. This work is supported by\nOpenAI, KFAS, and Schmidt Sciences AI2050. We thank Anikait Singh and Jubayer Ibn\nHamid for their valuable feedback and suggestions, and Sienna J. Lee for patiently listening\nto YL’s half-formed thoughts during the early stages of this work.\n\nReferences\n[1] Lakshya A Agrawal, Shangyin Tan, Dilara Soylu, Noah Ziems, Rishi Khare, Krista\nOpsahl-Ong, Arnav Singhvi, Herumb Shandilya, Michael J Ryan, Meng Jiang, et al.\nGepa: Reflective prompt evolution can outperform reinforcement learning. arXiv\npreprint arXiv:2507.19457, 2025.\n[2] Ekin Akyürek, Dale Schuurmans, Jacob Andreas, Tengyu Ma, and Denny Zhou. What\nlearning algorithm is in-context learning? investigations with linear models, 2023. URL\nhttps://arxiv.org/abs/2211.15661.\n[3] Marcin Andrychowicz, Misha Denil, Sergio Gomez, Matthew W Hoffman, David Pfau,\nTom Schaul, Brendan Shillingford, and Nando De Freitas. Learning to learn by gradient\ndescent by gradient descent. Advances in neural information processing systems, 29, 2016.\n[4] Anthropic. Claude code: An agentic coding tool. https://www.anthropic.com/claude\n-code, 2025.\n[5] Anthropic and community contributors. agentskills/agentskills. GitHub repository\nhttps://github.com/agentskills/agentskills. Specification and documentation for\nAgent Skills, accessed March 27, 2026.\n[6] Mislav Balunović, Jasper Dekoninck, Ivo Petrov, Nikola Jovanović, and Martin Vechev.\nMatharena: Evaluating llms on uncontaminated math competitions, February 2025.\nURL https://matharena.ai/.\n[7] Francesco Barbieri, Jose Camacho-Collados, Leonardo Neves, and Luis Espinosa-Anke.\nTweeteval: Unified benchmark and comparative evaluation for tweet classification,\n2020. URL https://arxiv.org/abs/2010.12421.\n[8] Luca Beurer-Kellner, Marc Fischer, and Martin Vechev. Prompting is programming:\nA query language for large language models. Proceedings of the ACM on Programming\nLanguages, 7(PLDI):1946–1969, June 2023. ISSN 2475-1421. doi: 10.1145/3591300. URL\nhttp://dx.doi.org/10.1145/3591300.\n[9] Birgitta Böckeler. Harness engineering. https://martinfowler.com/articles/explor\ning-gen-ai/harness-engineering.html, March 2026. martinfowler.com.\n[10] Can Bölük. I improved 15 LLMs at coding in one afternoon. only the harness changed.\nhttps://blog.can.ac/2026/02/12/the-harness-problem/, February 2026.\n[11] Iñigo Casanueva, Tadas Temčinas, Daniela Gerz, Matthew Henderson, and Ivan Vulić.\nEfficient intent detection with dual sentence encoders, 2020. URL https://arxiv.org/\nabs/2003.04807.\n[12] Mert Cemri, Shubham Agrawal, Akshat Gupta, Shu Liu, Audrey Cheng, Qiuyang\nMang, Ashwin Naren, Lutfi Eren Erdogan, Koushik Sen, Matei Zaharia, et al. Adaevolve: Adaptive llm driven zeroth-order optimization. arXiv preprint arXiv:2602.20133,\n2026.\n[13] Harrison Chase. Langchain, October 2022. URL https://github.com/langchain-ai/\nlangchain. Software, released 2022-10-17.\n[14] Arman Cohan, Waleed Ammar, Madeleine van Zuylen, and Field Cady. Structural\nscaffolds for citation intent classification in scientific publications, 2019. URL https:\n//arxiv.org/abs/1904.01608.\n11\n\n\f[15] Dorottya Demszky, Dana Movshovitz-Attias, Jeongwoo Ko, Alan Cowen, Gaurav\nNemade, and Sujith Ravi. Goemotions: A dataset of fine-grained emotions, 2020. URL\nhttps://arxiv.org/abs/2005.00547.\n[16] Zhiwei Fei, Xiaoyu Shen, Dawei Zhu, Fengzhe Zhou, Zhuo Han, Alan Huang,\nSongyang Zhang, Kai Chen, Zhixin Yin, Zongwen Shen, et al. Lawbench: Benchmarking legal knowledge of large language models. In Proceedings of the 2024 conference\non empirical methods in natural language processing, pp. 7933–7962, 2024.\n[17] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast\nadaptation of deep networks. In International Conference on Machine Learning, 2017.\n[18] ForgeCode. Benchmarks don’t matter, 2025. URL https://forgecode.dev/blog/bench\nmarks-dont-matter/.\n[19] Gretel AI. Symptom to diagnosis dataset. https://huggingface.co/datasets/gretel\nai/symptom to diagnosis, 2023. Accessed: 2026-01-22.\n[20] Shengran Hu, Cong Lu, and Jeff Clune. Automated design of agentic systems. In\nThe Thirteenth International Conference on Learning Representations, 2025. URL https:\n//openreview.net/forum?id=t9U3LW7JVX.\n[21] Anthropic Justin Young. Effective harnesses for long-running agents. https://anthro\npic.com/engineering/effective-harnesses-for-long-running-agents, November\n2025. Anthropic Engineering Blog.\n[22] Phillip Keung, Yichao Lu, György Szarvas, and Noah A. Smith. The multilingual\namazon reviews corpus, 2020. URL https://arxiv.org/abs/2010.02573.\n[23] Omar Khattab, Arnav Singhvi, Paridhi Maheshwari, Zhiyuan Zhang, Keshav Santhanam, Sri Vardhamanan, Saiful Haq, Ashutosh Sharma, Thomas T. Joshi, Hanna\nMoazam, Heather Miller, Matei Zaharia, and Christopher Potts. Dspy: Compiling declarative language model calls into self-improving pipelines, 2023. URL\nhttps://arxiv.org/abs/2310.03714.\n[24] Tushar Khot, Ashish Sabharwal, and Peter Clark. Scitail: A textual entailment\ndataset from science question answering. Proceedings of the AAAI Conference on\nArtificial Intelligence, 32(1), Apr. 2018. doi: 10.1609/aaai.v32i1.12022. URL\nhttps://ojs.aaai.org/index.php/AAAI/article/view/12022.\n[25] KRAFTON AI and Ludo Robotics. Terminus-kira: Boosting frontier model performance\non terminal-bench with minimal harness, 2026. URL https://github.com/krafton-a\ni/kira.\n[26] Yoonho Lee, Joseph Boen, and Chelsea Finn. Feedback descent: Open-ended text\noptimization via pairwise comparison. In arXiv preprint arXiv:2511.07919, 2025.\n[27] Joel Lehman, Jonathan Gordon, Shawn Jain, Kamal Ndousse, Cathy Yeh, and Kenneth O. Stanley. Evolution through large models, 2022. URL https://arxiv.org/abs/\n2206.08896.\n[28] Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin,\nNaman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al.\nRetrieval-augmented generation for knowledge-intensive nlp tasks. Advances in neural\ninformation processing systems, 33:9459–9474, 2020.\n[29] Lefteris Loukas, Manos Fergadiotis, Ilias Chalkidis, Eirini Spyropoulou, Prodromos\nMalakasiotis, Ion Androutsopoulos, and Georgios Paliouras. Finer: Financial numeric\nentity recognition for xbrl tagging. In Proceedings of the 60th Annual Meeting of the\nAssociation for Computational Linguistics (Volume 1: Long Papers), pp. 4419–4431. Association for Computational Linguistics, 2022. doi: 10.18653/v1/2022.acl-long.303. URL\nhttp://dx.doi.org/10.18653/v1/2022.acl-long.303.\n12\n\n\f[30] Thang Luong, Dawsen Hwang, Hoang H. Nguyen, Golnaz Ghiasi, Yuri Chervonyi, Insuk Seo, Junsu Kim, Garrett Bingham, Jonathan Lee, Swaroop Mishra, Alex Zhai,\nClara Huiyi Hu, Henryk Michalewski, Jimin Kim, Jeonghyun Ahn, Junhwi Bae,\nXingyou Song, Trieu H. Trinh, Quoc V. Le, and Junehyuk Jung. Towards robust mathematical reasoning. In Proceedings of the 2025 Conference on Empirical Methods in Natural\nLanguage Processing, 2025. URL https://aclanthology.org/2025.emnlp-main.1794/.\n[31] Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah\nWiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, et al. Self-refine:\nIterative refinement with self-feedback. Advances in neural information processing systems,\n36:46534–46594, 2023.\n[32] Pekka Malo, Ankur Sinha, Pyry Takala, Pekka Korhonen, and Jyrki Wallenius. Good\ndebt or bad debt: Detecting semantic orientations in economic texts, 2013. URL\nhttps://arxiv.org/abs/1307.5336.\n[33] Mike A Merrill, Alexander G Shaw, Nicholas Carlini, Boxuan Li, Harsh Raj, Ivan\nBercovich, Lin Shi, Jeong Yeon Shin, Thomas Walshe, E Kelly Buchanan, et al. Terminalbench: Benchmarking agents on hard, realistic tasks in command line interfaces. arXiv\npreprint arXiv:2601.11868, 2026.\n[34] Jack Nichols. How we scored #1 on terminal-bench (52%), Jun 2025. URL https:\n//www.warp.dev/blog/terminal-bench.\n[35] Alexander Novikov, Ngân Vũ, Marvin Eisenberger, Emilien Dupont, Po-Sen Huang,\nAdam Zsolt Wagner, Sergey Shirobokov, Borislav Kozlovskii, Francisco JR Ruiz, Abbas\nMehrabian, et al. Alphaevolve: A coding agent for scientific and algorithmic discovery.\narXiv preprint arXiv:2506.13131, 2025.\n[36] OpenAI. Harness engineering: leveraging Codex in an agent-first world. https:\n//openai.com/index/harness-engineering/, February 2026. OpenAI Blog.\n[37] Charles Packer, Vivian Fang, Shishir G Patil, Kevin Lin, Sarah Wooders, and Joseph E\nGonzalez. Memgpt: Towards llms as operating systems. 2023.\n[38] Reid Pryzant, Dan Iter, Jerry Li, Yin Tat Lee, Chenguang Zhu, and Michael Zeng.\nAutomatic prompt optimization with “gradient descent” and beam search. arXiv\npreprint arXiv:2305.03495, 2023.\n[39] Bernardino Romera-Paredes, Mohammadamin Barekatain, Alexander Novikov, Matej\nBalog, M Pawan Kumar, Emilien Dupont, Francisco JR Ruiz, Jordan S Ellenberg,\nPengming Wang, Omar Fawzi, et al. Mathematical discoveries from program search\nwith large language models. Nature, 625(7995):468–475, 2024.\n[40] Jurgen Schmidhuber. A neural network that embeds its own meta-levels. In IEEE\nInternational Conference on Neural Networks, 1993.\n[41] Nadine Schneider, Nikolaus Stiefl, and Gregory A Landrum. What’s what: The (nearly)\ndefinitive guide to reaction role assignment. Journal of chemical information and modeling,\n56(12):2336–2346, 2016.\n[42] Srijan Shakya, Anamaria-Roberta Hartl, Sepp Hochreiter, and Korbinian Pöppel.\nAdaptive retrieval helps reasoning in llms – but mostly if it’s not used, 2026. URL\nhttps://arxiv.org/abs/2602.07213.\n[43] Asankhaya Sharma. Openevolve: an open-source evolutionary coding agent. https:\n//github.com/algorithmicsuperintelligence/openevolve, 2025. URL https:\n//github.com/algorithmicsuperintelligence/openevolve. GitHub repository.\n[44] Jake Snell, Kevin Swersky, and Richard S. Zemel. Prototypical networks for few-shot\nlearning. In Advances in Neural Information Processing Systems, 2017.\n[45] Rich Sutton. The bitter lesson, 2019. URL http://www. incompleteideas. net/IncIdeas/BitterLesson. html, 2019.\n13\n\n\f[46] Sebastian Thrun and Lorien Pratt. Learning to learn: Introduction and overview. In\nLearning to learn, pp. 3–17. Springer, 1998.\n[47] Muxin Tian, Zhe Wang, Blair Yang, Zhenwei Tang, Kunlun Zhu, Honghua Dong,\nHanchen Li, Xinni Xie, Guangjing Wang, and Jiaxuan You. Swe-bench mobile: Can\nlarge language model agents develop industry-level mobile applications? In arXiv\npreprint, 2026. URL https://api.semanticscholar.org/CorpusID:285462974.\n[48] Harsh Trivedi, Niranjan Balasubramanian, Tushar Khot, and Ashish Sabharwal. Interleaving retrieval with chain-of-thought reasoning for knowledge-intensive multi-step\nquestions, 2023. URL https://arxiv.org/abs/2212.10509.\n[49] Chenghao Xiao, G Thomas Hudson, and Noura Al Moubayed. Rar-b: Reasoning as\nretrieval benchmark, 2024. URL https://arxiv.org/abs/2404.06347.\n[50] Yiming Xiong, Shengran Hu, and Jeff Clune. Learning to continually learn via metalearning agentic memory designs. In OpenReview, 2026. URL https://api.semanticsc\nholar.org/CorpusID:285454009.\n[51] Chengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu, Quoc V Le, Denny Zhou,\nand Xinyun Chen. Large language models as optimizers. In The Twelfth International\nConference on Learning Representations, 2023.\n[52] Haoran Ye, Xuning He, Vincent Arak, Haonan Dong, and Guojie Song. Meta context\nengineering via agentic skill evolution. arXiv preprint arXiv:2601.21557, 2026.\n[53] Mert Yuksekgonul, Federico Bianchi, Joseph Boen, Sheng Liu, Zhi Huang, Carlos\nGuestrin, and James Zou. Textgrad: Automatic ”differentiation” via text, 2024. URL\nhttps://arxiv.org/abs/2406.07496.\n[54] Mert Yuksekgonul, Daniel Koceja, Xinhao Li, Federico Bianchi, Jed McCaleb, Xiaolong\nWang, Jan Kautz, Yejin Choi, James Zou, Carlos Guestrin, and Yu Sun. Learning to\ndiscover at test time, 2026. URL https://arxiv.org/abs/2601.16175.\n[55] Mert Yuksekgonul, Daniel Koceja, Xinhao Li, Federico Bianchi, Jed McCaleb, Xiaolong\nWang, Jan Kautz, Yejin Choi, James Zou, Carlos Guestrin, et al. Learning to discover at\ntest time. arXiv preprint arXiv:2601.16175, 2026.\n[56] Alex L. Zhang, Tim Kraska, and Omar Khattab. Recursive language models, 2026. URL\nhttps://arxiv.org/abs/2512.24601.\n[57] Guibin Zhang, Haotian Ren, Chong Zhan, Zhenhong Zhou, Junhao Wang, He Zhu,\nWangchunshu Zhou, and Shuicheng Yan. Memevolve: Meta-evolution of agent memory systems. arXiv preprint arXiv:2512.18746, 2025.\n[58] Jiayi Zhang, Jinyu Xiang, Zhaoyang Yu, Fengwei Teng, Xionghui Chen, Jiaqi Chen,\nMingchen Zhuge, Xin Cheng, Sirui Hong, Jinlin Wang, Bingnan Zheng, Bang Liu, Yuyu\nLuo, and Chenglin Wu. Aflow: Automating agentic workflow generation, 2025. URL\nhttps://arxiv.org/abs/2410.10762.\n[59] Qizheng Zhang, Changran Hu, Shubhangi Upasani, Boyuan Ma, Fenglu Hong, V. Kamanuru, Jay Rainton, Chen Wu, Mengmeng Ji, Hanchen Li, Urmish Thakker, James\nZou, and K. Olukotun. Agentic context engineering: Evolving contexts for selfimproving language models. In arXiv preprint arXiv:2510.04618, 2025.\n[60] Xiang Zhang, Junbo Zhao, and Yann LeCun. Character-level convolutional networks\nfor text classification, 2016. URL https://arxiv.org/abs/1509.01626.\n\n14\n\n\fHarness Optimizer Search Progress\nMeta-Harness\n\nBest Performance (%)\n\n55\n\n50\n\nTTT-Discover\n\n45\n\nBest-of-N\nOpenEvolve\nACE\nGEPA\n\n40\n\n35\n\nFew-shot\n\nZero-shot\n\n30\n0\n\n10\n\n20\n\nHarness Evaluations\n\n30\n\n40\n\nFigure 4: Search-set accuracy over evaluations for all compared text optimizers on online\ntext classification. Each point is one candidate harness; lines track the best-so-far. Per-dataset\ncurves are shown alongside the aggregate. Meta-Harness reaches the final accuracy of\nOpenEvolve and TTT-Discover within the first 4 evaluations and continues improving,\nending more than 10 points above all baselines.\n\nA\n\nQualitative Proposer Behavior\n\nThis section examines how the proposer uses the filesystem during search, drawing on the\nTerminalBench-2 run (10 iterations, Claude Opus 4.6).\nA.1\n\nFile Access Statistics\n\nTo verify that the proposer makes substantive use of the filesystem rather than defaulting to\nlocal edits, we recorded all file reads per iteration.\nTable 8 summarizes the results. The proposer reads a median of 82 files per iteration\n(range 69–99), roughly evenly split between prior harness source code (41%) and execution\ntraces (40%), with the remainder going to score summaries (6%) and other files (13%). This\nconfirms that the proposer’s access pattern is non-Markovian: it routinely inspects the\nmajority of available history rather than conditioning only on the most recent parent.\nStatistic\n\nValue\n\nFiles read per iteration (median)\nFiles read per iteration (range)\n\n82\n69–99\n\nFile type breakdown\nHarness source code\nExecution traces\nScore/summary files\nOther\n\n41%\n40%\n6%\n13%\n\nTable 8: Proposer file access statistics from the TerminalBench-2 search run (10 iterations,\nClaude Opus 4.6). The proposer reads extensively from the filesystem, with roughly equal\nattention to prior source code and execution traces.\n\n15\n\n\fA.2\n\nQualitative Behavior: Causal Reasoning Over Prior Failures\n\nThe TerminalBench-2 search log reveals a clear narrative arc in which the proposer learns\nfrom its own regressions. Rather than wandering randomly through local edits, it forms\nan explicit diagnosis of why early candidates failed, then shifts toward a safer design\npattern. All text inside the log boxes below is quoted verbatim from the proposer’s recorded\nreasoning at each iteration (emphasis ours).\nIterations 1–2: promising bugfixes are confounded by prompt edits. The first two iterations\nboth bundle plausible structural fixes with prompt-template modifications, and both regress\nsharply from the 64.4% Terminus-KIRA baseline. Iteration 1 targets observation corruption\nfrom leaked terminal markers and adds a loop breaker:\nHypothesis:\nCMDEND marker fragments leak into LLM observations on long-running\ntasks, causing the model to get confused and enter infinite no-tool-call loops.\nStripping these markers + adding a loop breaker will recover wasted steps.\n\nThat candidate also introduced a new cleanup-oriented prompt template and a verification\nchecklist. Iteration 2 proposes a different state-machine fix:\nDouble-confirmation completion mechanism causes verification spirals. Observed in\ntrajectories where the agent solves the task early but burns 15--40+ additional steps\nre-verifying because each verification command resets pending completion, requiring\nanother task complete → checklist → verify cycle.\n\nThis second candidate removes the pending-completion mechanism entirely, while also\ncarrying over the marker stripping and the new prompt. It still regresses, which gives the\nproposer two failed candidates with different structural changes but one shared prompt\nintervention.\nIteration 3: the proposer identifies the confound. By iteration 3, the proposer explicitly\ninfers that the regressions are not primarily due to the structural bugfixes themselves:\nPrior attempts: evo marker fix (58.9%, -5.6pp), evo single confirm (57.8%, -6.7pp)\n--- both regressed. Root cause of regressions: Prompt template changes (cleanup\ndirectives) caused the agent to delete necessary state before task completion. The\nstructural bugfixes were confounded with harmful prompt changes. evo strip only\nisolates the two proven structural fixes.\n\nThis is the key causal step in the trajectory. The proposer notices that the common factor\nacross the first two failures is not the particular bugfix, but the cleanup-heavy prompt\nrewrite. It therefore reverts to the original prompt and tests only the marker-stripping and\nloop-breaker. The resulting candidate still underperforms slightly (63.3%, -1.1pp), but it\nloses far less than the earlier versions, which supports the confound diagnosis.\nIterations 4–6: direct fixes to the diagnosed failure mode still regress. The next three\niterations continue to probe the same part of the design space, but now with more explicit\ntheories about why the completion logic is fragile. Iteration 4 attributes failures to a concrete\nstate-machine bug in which verification commands reset the completion flag and trap the\nagent in repeated checklist cycles:\nRemove the two self. pending completion = False lines that reset the completion\nflag when intermediate commands run. This fixes a state machine bug where: (1)\nAgent calls task complete → sees QA checklist, pending completion = True (2) Agent\nruns verification commands → pending completion = False (bug!) (3) Agent calls\ntask complete again → sees checklist AGAIN → infinite loop.\n\nThe proposer even cites concrete trajectory evidence, noting that configure-git-webserver\nproduced baseline failures with agents stuck in 30–60 step verification spirals after effectively solving the task. Iteration 5 tries to soften the cleanup language while preserving\n16\n\n\fconfirmation, but still edits the prompt and regresses badly. Iteration 6 returns to the safer\nevo strip only base and proposes a systems-level optimization:\nEmpty-command turns waste full LLM round-trips when terminal output hasn’t changed.\nSmart-waiting (poll pane up to 3×5s) before the next LLM call saves 5--15 turns on\nlong-running tasks.\n\nThat change also regresses. By this point, the proposer has learned a specific empirical\nlesson: modifications to prompts and completion flow are high risk, even when the local\nhypothesis sounds reasonable.\nIteration 7: the winning candidate. After six consecutive regressions, the proposer shifts\nstrategy from modifying the control loop to adding information before the loop begins:\nAll 6 prior iterations regressed from the 64.4% baseline because they modified the\ncompletion flow, prompt template, or observation processing. evo env bootstrap takes\na different approach --- purely additive. It gathers an environment snapshot via a\nsingle shell command before the first LLM call and appends it to the initial prompt.\nNo other methods are changed. This should eliminate 3--5 wasted exploration turns on\ndependency-heavy tasks without risking regression on already-passing tasks.\n\nThis candidate is the best result so far. The important point is not just that iteration 7 wins,\nbut that the proposer articulates why it should be safer: it avoids touching the previously\nfragile completion machinery and instead adds information that is useful mainly on hard\ntasks.\nIteration 8: composition. Having found one additive improvement, the proposer next\nattempts to compose it with an earlier structural fix:\nCombining two orthogonal fixes --- env snapshot (saves early exploration turns) +\nmarker stripping with no-tool-call loop breaker --- will yield +1--3pp because they\naddress independent failure modes without touching prompts or confirmation flows\n(which caused regressions in 5 of 7 prior iterations).\n\nIteration 10: cross-run transfer. The proposer references results from a separate earlier\nsearch run:\nThe evolution history showed ‘‘don’t cleanup service artifacts’’ was worth +18pp. Iter\n9 (evo no cleanup directive) targeted the same idea but crashed before evaluation.\n\nSummary. The search trajectory demonstrates that the proposer does more than random\nmutation. Across the first seven iterations, it identifies a confound, tests the confoundisolating hypothesis directly, observes that control-flow and prompt edits remain fragile, and\nthen deliberately pivots to a purely additive modification that becomes the best candidate\nin the run. It subsequently tries to compose that winning idea with earlier fixes and even\ntransfers lessons across runs. This kind of causal reasoning over prior failures is precisely\nwhat full-history filesystem access enables and what compressed-feedback optimizers\ncannot support.\n\nB\n\nDiscovered Harnesses\n\nMeta-Harness discovers executable inference-time procedures specific to the problem setup\nat hand. These harnesses are structured, domain-specific policies, often with nontrivial control flow such as routing, filtering, and conditional context construction, selected solely by\nwhether they improve search-set performance. This section presents compact, method-style\nabstractions of representative harnesses that summarize the main behaviors and controlflow decisions that drive inference-time behavior. For reference, the full implementation for\neach discovered harness is on the order of 100–1000 lines of code.\n17\n\n\fQuery + memory\n\nRetrieve confirmers\n(= D) and challengers\n(̸= D)\n\nRetrieve top-5\nsimilar examples\nD\n\nVerification call\nkeep or revise D\n\nDraft call\ninitial label D\n\nFinal label\n\nFigure 5: Draft-verification classification harness. The first call produces a draft label from\na short retrieved context. The second call retrieves evidence for and against that draft and\nreturns the final prediction.\nB.1\n\nText Classification Harness\n\nIn online text classification, Meta-Harness discovers a family of memory-based harnesses\nrather than a single canonical policy. Table 9 reports the Pareto frontier of non-dominated\nvariants from the main search, all selected solely by search-set performance. We highlight\ntwo representative endpoints here: Meta-Harness (Draft Verification), the lowest-context\nfrontier point, and Meta-Harness (Label-Primed Query), the highest-accuracy frontier point\nused in the main text.\nOverview. Both harnesses maintain a growing memory of past labeled examples and\nbuild prompts from that memory at inference time. What differs is the control flow used to\ninterrogate the memory. Meta-Harness (Draft Verification) uses two short calls and explicitly tests the model’s first guess against retrieved counterexamples, while Meta-Harness\n(Label-Primed Query) spends a larger single-call budget on making the label space and\nlocal decision boundaries explicit. Figures 5 and 6 summarize these two programs.\nMeta-Harness (Draft Verification). The corresponding discovered file is draft verificat\nion.py. This lightweight variant turns prediction into a two-call procedure. It first retrieves\nthe 5 most similar labeled examples and makes a draft prediction. It then re-queries the\nsame memory conditioned on that draft label, retrieving 5 confirmers with the same label\nand 5 challengers with different labels, and asks the model whether to maintain or revise its\ninitial answer. The key discovered behavior is that the second retrieval depends on both the\nquery and the draft prediction, so the harness can surface counterexamples targeted at the\nmodel’s current guess rather than only generic near neighbors. If too few labeled examples\nhave been accumulated, the program falls back to a standard single-call few-shot prompt.\n• Stage 1: Draft. Retrieve the 5 nearest labeled examples and ask for an initial prediction.\n• Stage 2: Verification. Condition retrieval on the draft label, then show both supporting\nand challenging examples before making the final prediction.\n• Cold start. If fewer than 5 labeled examples are available, skip the two-stage procedure\nand use a standard single-call few-shot prompt.\n• Why it is cheap. Both calls use short retrieved contexts, so the overall context cost stays\nnear the low end of the frontier even with two model invocations.\n18\n\n\fQuery + memory\n\nTF-IDF retrieval\nquery-anchored pairing\n\nLabel primer\nall valid labels\n\nContrastive pairs\nsimilar examples\ndifferent labels\n\nCoverage block\nbest example per label\n\nAssemble one prompt with primer,\ncoverage, and contrastive pairs\n\nFinal label\n\nFigure 6: Label-primed query-anchored classification harness. The program builds a\nsingle prompt that exposes the label space, then populates it with query-relevant coverage\nexamples and local contrastive pairs.\nMeta-Harness (Label-Primed Query). The corresponding discovered file is label prime\nd query anchored.py. This strongest variant uses a single larger call built from three parts.\nIt begins with a label primer listing the valid output labels, then constructs a coverage section\nwith one query-relevant example per label, and finally adds query-anchored contrastive pairs\nthat place highly similar examples with different labels side by side. The coverage block\nexposes the full label space, while the contrastive block sharpens local decision boundaries\naround the current query. In code, the harness implements this with TF-IDF retrieval over\npast labeled examples and a query-anchored pairing rule that chooses contrasting examples\nfrom the same local neighborhood.\n• Label primer. List the valid output labels before showing any examples, so the model\nsees the full answer space up front.\n• Coverage block. For each known label, retrieve the most query-relevant labeled example\nand include one representative example per class.\n• Contrastive block. Build pairs of highly similar examples with different labels, so the\nprompt exposes local decision boundaries around the current query.\n• Retrieval rule. Use TF-IDF similarity and query-anchored partner selection rather than\nlabel-agnostic nearest neighbors.\nB.2\n\nMath Retrieval Harness\n\nThis subsection describes the retrieval harness discovered by Meta-Harness for mathematical\nreasoning (Section 4.2). The final harness is a compact four-route BM25 program whose\nstructure emerged through search rather than being manually specified after the fact. All\ndesign choices below—the routing predicates, reranking terms, deduplication thresholds,\nand per-route example counts—were selected by the outer loop across 40 iterations of\nevolution.\n19\n\n\fDatasets\nVariant\nMeta-Harness (Draft Verification)\nMeta-Harness (Error-Annotated)\nMeta-Harness (CoT Replay)\nMeta-Harness (Cluster Coverage)\nMeta-Harness (Cascade Retrieval)\nMeta-Harness (RRF + Contrastive)\nMeta-Harness (Relevance + Contrastive)\nMeta-Harness (Label-Primed Query)\n\nAvg metrics\n\nUSPTO ↑\n\nSymptom ↑\n\nLawBench ↑\n\nAvg ↑\n\nCtx ↓\n\n18.0\n9.0\n13.0\n12.0\n12.0\n18.0\n18.0\n14.0\n\n85.4\n87.7\n88.2\n86.8\n86.8\n89.6\n90.6\n86.8\n\n17.0\n24.0\n25.0\n33.0\n36.0\n35.0\n36.0\n45.0\n\n40.1\n40.2\n42.1\n43.9\n44.9\n47.5\n48.2\n48.6\n\n5.4\n22.3\n23.3\n31.2\n39.2\n41.4\n43.9\n45.5\n\nTable 9: Pareto-optimal discovered variants from the main text-classification search, trading off average accuracy against context cost. The selected system in the main text is\nMeta-Harness (Label-Primed Query). Ctx denotes average additional characters in input\ncontext (thousands).\n\nFigure 7: Search-set vs. test accuracy per dataset for discovered text-classification strategies.\nEach pink dot is a discovered strategy; baselines are labeled. The dashed diagonal is y= x.\n\nOverview. At inference time, the harness assigns each problem to exactly one of four\nroutes: combinatorics, geometry, number theory, or a default route for algebra and other\nproblems. The gates are implemented as lightweight lexical predicates over the problem\nstatement, including keyword sets and a small number of regex features for geometry\nnotation. The harness does not aggregate outputs across routes: once a route is selected, only\nthat route retrieves examples for the final prompt. All routes use BM25 as the underlying\nretrieval mechanism over the filtered corpus described above. The BM25 index uses a\nmath-aware tokenizer that preserves LaTeX tokens (e.g., \\frac, ˆ{2}) as atomic units. The\nselected harness is a merge of two successful search lineages, autonomously combined\nby the proposer during search: one contributed a stronger geometry route based on raw\nBM25, while another contributed a stronger combinatorics route based on deduplication\nand difficulty reranking. Figure 8 gives a compact flowchart view of the final program.\n• Combinatorics: fetch 20 BM25 candidates, deduplicate to 8, rerank by lexical score and\ndifficulty, then return the top 3. This is the main route where the harness explicitly trades\noff diversity against hard-problem matching.\n• Geometry: return 1 hard NuminaMath reference together with 2 raw BM25 neighbors.\nSearch consistently prefers raw structural matches here over difficulty reranking.\n• Number theory: fetch 12 BM25 candidates and rerank using lexical score, difficulty, and a\nsmall bonus for solutions that state a technique early. This favors examples whose proof\nstrategy is explicit.\n• Default: fetch 10 BM25 candidates, rerank by lexical score and difficulty, and choose an\nadaptive number of examples based on how concentrated the top retrieval scores are.\n20\n\n\fQuery\n\nLexical router\nkeyword and regex cues\n\nCombinatorics\nBM25@20\nDedup to 8\nRerank\nKeep 3\n\nNumber theory\nBM25@12\nRerank\nKeep 3\n\nGeometry\n1 fixed ref + 2 BM25\nNo rerank\n\nAlgebra/Other\nBM25@10\nRerank\nAdaptive K\n\nBuild final prompt\n\nFigure 8: Discovered math retrieval harness. A lexical router assigns each query to one\nof four subject-specific retrieval policies. The selected policy retrieves examples, which are\ninserted into the final prompt.\nB.3\n\nTerminalBench-2 Harness\n\nThe discovered TerminalBench-2 harness builds on Terminus-KIRA [25], inheriting its native\ntool calling (replacing Terminus 2’s ICL-based JSON parsing), 30KB output cap, and multiperspective completion checklist. The main modification discovered by Meta-Harness is\nenvironment bootstrapping: before the agent loop begins, the harness runs a compound\nshell command to gather a snapshot of the sandbox environment and injects it into the\ninitial prompt. The proposer’s hypothesis, recorded verbatim from the search log, was:\nHypothesis: ‘‘Injecting an environment snapshot (OS, installed languages, package\nmanagers, /app contents) before the first LLM turn will reduce wasted exploration\nepisodes by 3--5 turns on dependency-heavy tasks’’\nChanges: ‘‘Added gather env snapshot() that runs a single compound shell command to\ncollect working directory, /app listing, available languages (python, gcc, node, java,\nrustc, go), package managers (pip, apt) [. . . ] and injects as [Environment Snapshot]\nblock’’\n\nThe snapshot includes: the working directory, a listing of /app (truncated to 20 entries for\nlarge directories), available programming languages and their versions (Python, GCC, G++,\nNode, Java, Rust, Go), installed package managers (pip, apt-get), and available memory.\nThis eliminates the 2–4 exploratory turns that agents typically spend discovering what tools\nand files are available, allowing the model to begin productive work immediately. The\nbootstrapping command is guarded by a 15-second timeout and fails silently, so it does not\nbreak the agent in unusual environments. The full implementation adds roughly 80 lines on\ntop of Terminus-KIRA. Figure 9 summarizes the harness structure.\nPer-task analysis. Compared to Terminus-KIRA, the discovered harness gains on 7 of 89\ntasks, with the largest improvements on protein-assembly and path-tracing. The gaining\ntasks share a common property: they require domain-specific tooling whose availability\ncannot be assumed in advance (bioinformatics libraries, rendering pipelines, chess engines,\ncryptographic utilities, CoreWars simulators). Without the bootstrap, the agent spends its\n21\n\n\fTask instruction\n\nEnv bootstrap\npwd, files, languages,\npkg managers, memory\n\nInitial prompt\ntask + snapshot\n\nAgent loop\nnative tool calling\n30KB output cap\nfail\nMulti-perspective\ncompletion checklist\npass\n\nTask complete\n\nFigure 9: Discovered TerminalBench-2 harness. The harness inherits Terminus-KIRA’s native tool calling, output cap, and completion checklist (green). The environment bootstrap\n(red) is the component discovered by Meta-Harness: it gathers a sandbox snapshot before\nthe agent loop begins, eliminating early exploratory turns.\nfirst 2–4 turns probing the environment; on tasks with tight turn budgets or where early\nwrong assumptions cascade, those wasted turns can be the difference between pass and fail.\nThis suggests that the bootstrap’s value is largest when the environment is non-obvious,\nand the task requires the agent to match its strategy to what is actually installed.\n\nC\n\nDataset Details\n\nC.1\n\nOOD Text Classification Datasets\n\n• SciCite is a 3-way citation-intent classification benchmark introduced by Cohan et al.\n[14]. Each example consists of a citation context from a scientific paper, labeled by the\ncitation’s rhetorical role, such as background, method, or result. The task tests whether a\nmodel can infer why one paper cites another from the local scientific context.\n• FiNER-139 is a financial numeric entity recognition benchmark introduced by Loukas\net al. [29]. It consists of word-level annotations from financial filings with 139 fine-grained\nXBRL entity types, making it substantially more fine-grained than standard sentencelevel classification tasks. The benchmark tests whether a model can identify and classify\nnumeric financial entities from context.\n• Amazon Reviews is the English portion of the Multilingual Amazon Reviews Corpus\nintroduced by Keung et al. [22]. In our setting, it is used as a 5-way review rating\nprediction task, where the label corresponds to the review’s star rating. This benchmark\nevaluates general-domain sentiment and rating prediction from product review text.\n• Financial PhraseBank is a 3-way financial sentiment benchmark introduced by Malo\net al. [32]. It consists of sentences from financial news and related economic text labeled\n22\n\n\fas positive, neutral, or negative with respect to market sentiment. The task evaluates\ndomain-specific sentiment classification in finance.\n• GoEmotions is a fine-grained emotion classification benchmark introduced by Demszky\net al. [15]. It contains English Reddit comments annotated with 27 emotion categories\nplus a neutral category, and is commonly treated as a 28-way classification task. The\nbenchmark tests nuanced affect recognition beyond coarse positive-negative sentiment.\n• Banking77 is a fine-grained intent classification benchmark introduced by Casanueva\net al. [11]. It contains online banking user utterances labeled with 77 intents, covering\na wide range of customer service requests. The task evaluates single-domain intent\ndetection with a large label space.\n• AG News is a 4-way news topic classification benchmark commonly associated with\nthe text classification setup of Zhang et al. [60]. Examples are labeled with broad news\ncategories such as world, sports, business, and science/technology. It is a standard\ngeneral-domain benchmark for topic classification.\n• SciTail is a science-domain textual entailment benchmark in which the task is to predict\nwhether a hypothesis is entailed by a premise sentence in a science-focused inference\nsetting [24].\n• TweetEval (Hate) is the hate-speech subset of the TweetEval benchmark introduced by\nBarbieri et al. [7]. It is a binary tweet classification task for detecting hateful versus\nnon-hateful content within a unified social-media evaluation suite. This benchmark tests\nrobust classification in noisy, short-form social media text.\n\nC.2\n\nMath Retrieval Corpus\n\nTable 10 lists the datasets composing the retrieval corpus used in Section 4.2. The raw\nsources contain more problems than the final corpus; several filtering steps were applied\nbefore merging. NuminaMath-1.5 was filtered to competition-math subsets (AMC/AIME,\nolympiad references, number theory, inequalities, and related sources), discarding lowerquality web-scraped entries. OpenMathReasoning was deduplicated to one solution per\nproblem (retaining the solution with the highest pass rate on an independent verifier), and\nproblems whose source matched any evaluation benchmark family (IMO, AIME, HMMT,\nSMT, USAMO, Putnam) were removed before deduplication. The entire corpus was then\ndecontaminated against all evaluation benchmarks and the search set used during harness\nsearch, using exact prefix matching followed by fuzzy Jaccard similarity (threshold 0.8); any\ncorpus problem matching an eval problem under either criterion was discarded. Solutions\nfrom OpenMathReasoning and DeepMath are truncated to 5,000 characters to limit retrieval\ncontext length. At runtime, the selected harness further restricts retrieval to entries with\nnon-empty solutions shorter than 4,000 characters. Retrieved solutions are truncated again\nto 3,000 characters when inserted into the prompt. For the geometry route, the harness\nalso constructs a separate hard-reference index from NuminaMath problems with difficulty\ngreater than 6.\n\nC.3\n\nMath IMO-level Test Set\n\nThe main text aggregates results over 200 IMO-level problems drawn from IMOAnswerBench, IMO-ProofBench, ArXivMath December 2025, and ArXivMath January\n2026. The 200-problem evaluation set consists of a stratified 100-problem subset of IMOAnswerBench, together with all problems from the other three benchmarks. This perbenchmark breakdown is useful because the four datasets mix answer-style, proof, and\nresearch-style problems, which are aggregated together in the main paper for brevity. When\nincluded, the table in this section should report each benchmark separately for both Base\nand Meta-Harness across the five held-out models.\n23\n\n\fDataset\n\nProblems\n\nSol. Len\n\nProof\n\nOpenMathReasoning\nDeepMath-103K\nNuminaMath-1.5\nPolyMath\nOmni-MATH\nFineProofs-SFT\nAIME 1983–2024\nPutnam-AXIOM\n\n281,743\n103,021\n129,520\n11,083\n4,289\n4,275\n933\n492\n\n5,000†\n5,000†\n1,376\n363\n829\n3,977\n—\n888\n\n34%\n0%\n13%\n0%\n0%\n100%\n0%\n100%\n\nTotal\n\n535,356\n\n5,000†\n\n22%\n\n† Truncated at 5,000 characters; actual solutions are longer.\n\nTable 10: Datasets in the math retrieval corpus (535K problems total). Sol. Len is the\nmedian solution length in characters. Proof indicates whether the dataset contains prooftype problems (by answer or problem type field).\nDataset\n\nProblems\n\nIMO-AnswerBench\nIMO-ProofBench\nArXivMath Dec. 2025\nArXivMath Jan. 2026\n\n100\n60\n17\n23\n\nTotal\n\n200\n\nTable 11: Breakdown of the 200-problem IMO-level evaluation set.\n\nD\n\nPractical Implementation Tips\n\nMeta-Harness is largely domain-agnostic: we expect it to apply in any setting where a\nlanguage model is wrapped by a task-specific harness. Applying it in a new domain,\nhowever, requires operating in a relatively new regime of LLM-assisted coding, where the\nproposer conditions on long-horizon histories of prior runs and writes programs whose\neffects may only become visible many steps later. In getting this workflow to work reliably,\nwe found a small set of practical choices that mattered consistently across the three domains\nstudied in this paper. The guidelines below are not themselves scientific claims about the\nmethod; they are engineering lessons from building and running the system, which we\nhope will make it easier for future work to apply Meta-Harness in other domains.\n• Write a good skill. The skill text is the primary interface for steering the search, and its\nquality is the strongest lever on whether the loop works. The proposer receives a naturallanguage skill [5] that defines its role, the directory layout, CLI commands, and output\nformat. In practice, the skill should constrain outputs and safety-relevant behavior, not\nthe proposer’s diagnosis procedure: it should specify what is forbidden, what artifacts to\nproduce, and what objectives to optimize, while leaving the model free to inspect scores,\ntraces, and prior code as needed. Our intuition from inspecting logs from Meta-Harness\nruns is that after enough iterations, the accumulated traces often shape the proposer’s\nbehavior more than the skill itself. In our experience, iterating on the skill text had a\nlarger effect on search quality than changing iteration count or population size. Expect to\nrun a few short evolution runs (3–5 iterations each) specifically to debug and refine the\nskill before committing to a full run.\n• Start with a baseline harness and a search set that is hard for it. Write a simple baseline\n(e.g., few-shot prompting), then construct the search set by either filtering for examples\nthat the baseline gets wrong or selecting a diverse subset of difficult instances. The\nsearch has little to optimize if the baseline already saturates the evaluation. Keep the\nsearch set small enough for roughly 50 full evaluations per run (50–100 examples in our\n24\n\n\fclassification experiments, 88 problems for math retrieval); a fast, discriminative eval is\nmore valuable than a large one.\n• Log everything in a format that is easy to navigate. Evaluation code should write code,\nscores, and execution traces in a form that the proposer can query reliably. In practice, this\nmeans using machine-readable formats such as JSON, organizing artifacts hierarchically,\nchoosing reasonable and consistent file names, and adopting naming schemes that make\nsimple tools such as regex search work well.\n• Make logs queryable through a small CLI (optional, but helpful). Each harness gets a\ndirectory containing source code, scores, and execution traces, but as the history grows,\nraw filesystem access alone becomes cumbersome. A short CLI that lists the Pareto\nfrontier, shows top-k harnesses, and diffs code and results between pairs of runs can\nmake the experience store much easier to use, and querying such CLIs is closely aligned\nwith the workflows on which coding agents are trained. If relevant offline experience\nexists (rollouts from other models, solved problem corpora, relevant papers), converting\nit into the same directory structure can also help warm-start exploration and ground new\nideas. This layer helps the proposer save tokens it may have wasted on navigation.\n• Lightweight validation before expensive benchmarks. Write a small validation test\nthat imports the module, instantiates the class, and calls both methods on a tiny set of\nexamples. Harnesses proposed during the search should pass this test before being fully\nevaluated. A simple test script can catch most malformed or nonfunctional candidates in\nseconds and keep the cost of failures near zero.\n• Automate evaluation outside the proposer. Running evals is simple enough that it is not\nworth making the proposer do it. A separate harness should score candidates and write\nresults to the filesystem.\n\nE\n\nExtended Related Work\n\nThis appendix expands the brief discussion in Section 2 and situates Meta-Harness relative\nto several neighboring lines of work that we could not cover in detail in the main text. A\nrecurring distinction is that Meta- Harness optimizes executable harness implementations\nand provides the proposer with selective access to prior code, scores, and execution traces\nvia the filesystem.\nAlphaEvolve / OpenEvolve. AlphaEvolve [35] and OpenEvolve [43] evolve code via\nLLM-guided mutations with structured feedback: the proposer receives a program database\nwith scalar scores (4–22K tokens per step; Table 1) and applies fixed mutation strategies\nto tournament-selected parents. These methods are designed for algorithm discovery and\noptimization (mathematical conjectures, scheduling heuristics, hardware kernels), where\nthe search target is a single stateless function with a clean scalar objective, and mutations\nare local. Harness engineering is a different regime: harnesses are stateful programs that\naccumulate experience across many examples, and a single design choice (e.g., what to store\nin memory) can cascade through an entire evaluation sequence. Meta-Harness addresses\nthis by giving an unstructured coding agent full filesystem access, letting it selectively read\nany prior candidate’s source code, execution traces, and scores.\nGEPA. GEPA [1] is the closest text optimizer in terms of feedback richness, providing\nrollout traces per candidate. It is designed for prompt optimization on tasks with short\nfeedback loops (math problems, instruction-following, code optimization), where each\nrollout is a single LLM call or a short pipeline. In this regime, per-candidate reflection\nworks well: one prompt, one answer, one score. Harness engineering requires reasoning\nacross many examples and many candidates simultaneously: understanding why a retrieval\nstrategy works for one class of problems but degrades on another requires comparing\nexecution traces across the full population. GEPA operates on one candidate at a time (2–8K\ntokens per step; Table 1), with a fixed critique format that must anticipate what information\nis relevant. Meta-Harness gives the proposer access to all prior candidates simultaneously\nand lets the agent decide what to examine.\n25\n\n\fPrompt orchestration frameworks. Several systems provide structured abstractions for\ncomposing multi-stage LLM programs. LMQL [8], LangChain [13], and DSPy [23] make\nprompt engineering more systematic by providing higher-level interfaces for prompt templates, control flow, and modular LLM pipelines. These frameworks help developers specify\nand organize LLM programs, but they still typically require manual design of retrieval\npolicies, memory updates, and orchestration logic. Meta-Harness operates at a different\nlevel: it searches over the implementation of these policies in executable code, treating the\nharness itself as the optimization target.\n\n26\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"