"<!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>Preprint.\n\nS ELF -E VOLVING M ULTI -AGENT C OLLABORATION N ETWORKS FOR S OFTWARE D EVELOPMENT\n\narXiv:2410.16946v1 [cs.SE] 22 Oct 2024\n\nYue Hu1 , Yuzhu Cai2,3 , Yaxin Du1 , Xinyu Zhu1 , Xiangrui Liu1 , Zijie Yu1 ,\nYuchen Hou1 , Shuo Tang1 , Siheng Chen1,3\n1\nShanghai Jiao Tong University, 2 Beihang University, 3 Shanghai AI Laboratory\n1\n{1867112931,sihengc}@sjtu.edu.cn, 2 caiyuzhu@buaa.edu.cn\n\nA BSTRACT\nLLM-driven multi-agent collaboration (MAC) systems have demonstrated impressive capabilities in automatic software development at the function level. However, their heavy reliance on human design limits their adaptability to the diverse\ndemands of real-world software development. To address this limitation, we introduce EvoMAC, a novel self-evolving paradigm for MAC networks. Inspired\nby traditional neural network training, EvoMAC obtains text-based environmental feedback by verifying the MAC network’s output against a target proxy and\nleverages a novel textual backpropagation to update the network. To extend coding capabilities beyond function-level tasks to more challenging software-level\ndevelopment, we further propose rSDE-Bench, a requirement-oriented software development benchmark, which features complex and diverse software requirements\nalong with automatic evaluation of requirement correctness. Our experiments\nshow that: i) The automatic requirement-aware evaluation in rSDE-Bench closely\naligns with human evaluations, validating its reliability as a software-level coding benchmark. ii) EvoMAC outperforms previous SOTA methods on both the\nsoftware-level rSDE-Bench and the function-level HumanEval benchmarks, reflecting its superior coding capabilities. The benchmark can be downloaded at\nhttps://yuzhu-cai.github.io/rSDE-Bench/.\n\n1\n\nI NTRODUCTION\n\nAutomatic software development focuses on generating code from natural language requirements.\nCode is a universal problem-solving tool, and this automation presents significant potential to\nprovide substantial benefits across all areas of our lives Li et al. (2022a). Recently, the industry\nhas introduced several large language model (LLM)-driven coding assistants, including Microsoft’s\nCopilot Microsoft (2023), Amazon’s CodeWhisperer Amazon (2022), and Google’s Codey Google\n(2023). These coding assistants significantly advance human efficiency and yield considerable\ncommercial benefits. Despite the initial success of LLMs in assisting with line-level coding, they\nstruggle to tackle more complex coding tasks. This limitation stems from the restricted reasoning\nabilities of single LLMs and their lack of capacity for long-context understanding Wang et al. (2024a);\nLi et al. (2024a); Wang et al. (2024b).\nTo handle function-level coding tasks, numerous multiple language agent collaboration (MAC)\nsystems have been proposed Li et al. (2023); Hong et al. (2023); Chan et al. (2024); Islam et al.\n(2024); Yang et al. (2024b); Li et al. (2022b); Osika (2023). These MAC systems function as LLMdriven agentic workflow. They follow human-designed standardized operating procedures to divide\nthe complex coding tasks into simpler subtasks within the workflow, allowing each agent to conquer\nspecific subtasks. These MAC systems significantly advance coding capabilities from line-level to\nfunction-level tasks. However, current MAC systems rely on heuristic designs. These human-crafted\nstatic systems have two inherent limitations: i) their performance is confined to human initialization.\nGiven the diversity of real-world coding tasks, human design cannot fully address the specific needs\nof each task; and ii) they lack the flexibility to adapt to new tasks. This rigidity necessitates that\nresearchers and developers manually decompose tasks and create prompts. The complexity of this\nprocess inhibits effective human optimization for adapting to new challenges.\n1\n\n\fPreprint.\n\nTo address these limitations, we present EvoMAC, a novel self-evolving paradigm for MAC networks.\nEvoMAC’s key feature is its ability to iteratively adapt both agents and their connections during\ntest time for each task. Inspired from the standard neural network training, the core idea of selfevolution is to obtain text-based environmental feedback by verifying the MAC network’s generation\nagainst a target proxy, then leverage a novel textual back-propagation to update the MAC network.\nFollowing this general paradigm, we specify EvoMAC for software development, which comprises\nthree essential components: i) an adaptable MAC network-based coding team that generates code\nthrough feed-forward; ii) a specifically designed testing team that creates unit test cases serving as\nthe target proxy and verifies the generated code in the compiler to produce objective feedback; and\niii) an updating team that uses the textual back-propagation algorithm to update the coding team. By\ncycling these three components, the coding team can iteratively evolve and generate codes that are\nbetter aligned with the unit test cases, eventually fulfilling more requirements of the coding task.\nOur self-evolving MAC network has the potential to further advance coding capabilities from functionlevel to more complex software-level tasks. As it can iteratively address lengthier task requirements\nand cater to realistic software development demands. However, existing benchmarks typically focus\non specific individual functions Chen et al. (2021); Austin et al. (2021); Yang et al. (2024a); Khan\net al. (2023) or bug-fixing Jimenez et al. (2023), leaving a significant gap in providing comprehensive\nrequirements for software development. This gap makes it difficult to fully assess the potential of our\nself-evolving MAC network.\nTo support the development of software-level coding capabilities, we propose rSDE-Bench, a novel\nrequirement-oriented software development benchmark. It is the first benchmark that features both\ncomplex and diverse software requirements, as well as the automatic evaluation of requirement\ncorrectness. rSDE-Bench involves 53 coding tasks with 616 requirements, covering two typical\nsoftware types, Website, and Game, and two requirement difficulty levels, Basic and Advanced. Each\ncoding task consists of two components: i) multiple requirements that clearly outline measurable\nsoftware functionalities, item by item, and ii) paired black-box test cases that automatically verify\nthe correctness of each requirement. rSDE-Bench can achieve automatic evaluation with these\nsynchronized pairs of requirements and test cases. The rSDE-Bench introduces new software-level\nchallenges, including lengthy requirement analysis and long-context coding, which are essential in\nreal-world software development but are absent in existing benchmarks.\nTo validate the effectiveness of our proposed EvoMAC and rSDE-Bench, we conduct three key\nevaluations. First, we compare our automatic evaluation in rSDE-Bench with human evaluation,\nachieving a coherence score of 99.22%, demonstrating its reliability. Second, we compare EvoMAC\nagainst five multi-agent and three single-agent baselines. EvoMAC significantly outperforms previous\nSOTAs by 26.48%, 34.78%, and 6.10% on Website Basic, Game Basic, and HumanEval, respectively,\nunderscoring its effectiveness. Third, we evaluate EvoMAC with varying evolving times and two\ndifferent driving LLMs. The results indicate that EvoMAC consistently improves with more evolving\ntimes and shows convincing enhancements regardless of the driving LLM used, further demonstrating\nthe effectiveness of our self-evolving design.\nTo sum up, our contributions are:\n• We propose EvoMAC, a novel self-evolving MAC network, and apply it to software development.\nEvoMAC can iteratively adapt both agents and their connections during test time for each task.\n• We propose rSDE-Bench, a novel requirement-oriented software development benchmark. It is\nthe first benchmark that features both complex and diverse software requirements, as well as the\nautomatic evaluation of requirement correctness.\n• We conduct comprehensive experiments and validate that: automatic evaluation in rSDE-Bench is\nhighly aligned with human evaluation; EvoMAC outperforms previous SOTAs, and self-evolving\npromises continuous improvement with evolving times.\n\n2\n\nR ELATED W ORKS\n\nLLM-based multi-agent collaboration. LLM-driven multi-agent collaboration (MAC) systems Xu\net al. (2023); Hua et al. (2023); Ziems et al. (2024); Wu et al. (2023); Hong et al. (2023); Chan et al.\n(2024); Mandi et al. (2024a) enable multiple agents to share information and collaboratively complete\nthe overall task. These MAC systems function as agentic workflows. They have demonstrated\nenhanced problem-solving capabilities in various domains, such as mathematics Islam et al. (2024),\n2\n\n\fPreprint.\n\nsoftware development Qian et al. (2023); Hong et al. (2023), embodied task Mandi et al. (2024b)\nand social simulation Ziems et al. (2024); Pang et al. (2024); Li et al. (2024b). However, these\nsystems Wu et al. (2023); Chen et al. (2023) heavily rely on manually designed workflows, which\nlack generalizability and the labor-intensive nature of manual design poses significant limitations. To\naddress this issue, we propose a novel self-evolving paradigm, which allows agents to update and\nimprove through external feedback, enabling dynamic adaptation and more advanced performance\nacross varied tasks.\nSoftware development benchmarks. Software development benchmarks aim to evaluate models in\nthe task of generating code from natural language descriptions Zheng et al. (2023). These benchmarks\ntypically include task definitions and evaluation criteria. Existing benchmarks can be categorized\ninto three types: i) function completion (HumanEval Chen et al. (2021), MBPP Austin et al. (2021),\nEvalPlus Liu et al. (2023), xCodeEval Khan et al. (2023)); ii) bug repair (SWE-bench Jimenez et al.\n(2023)); and iii) software generation (SRDD Qian et al. (2023), SoftwareDev Hong et al. (2023)).\nFunction completion and bug repair benchmarks are confined to function-level task definitions,\nmissing the diverse realistic software requirements. Software generation benchmarks often depend\non expensive human evaluations or indirect similarity-based measurements, unable to automatically\nand accurately verify the requirement correctness. To address these limitations, we introduce rSDEBench, the first benchmark contains both diverse software requirements and automatic evaluation\nof requirement correctness. It can support the development of more realistic software-level coding\ncapabilities.\n\n3\n\nE VO MAC: S ELF -E VOLVING M ULTI -AGENT C OLLABORATION N ETWORK\n\nThis section presents EvoMAC, a novel self-evolving multi-agent collaboration network and its\napplication to software development. The key feature of EvoMAC is its ability to iteratively adapt\nboth agents and their connections during test-time for each task, mimicking the back-propagation\nprocess, a core algorithm in neural network training. We first formulate a general self-evolving\nparadigm in Sec. 3.1 and then describe its application to software development in Sec. 3.2.\n3.1\n\nA GENERAL SELF - EVOLVING PARADIGM VIA TEXTUAL BACKPROPAGATION\n\nMulti-agent collaboration network. A multi-agent collaboration (MAC) network is a computational\ngraph representing agentic workflows, where multiple agents empowered by LLMs interact as\ninterconnected nodes to coordinate and share information for complex task-solving. The intuition\nbehind to divide the complex task into more specific and manageable subtasks for each agent,\nallowing the overall task to be gradually conquered through the agentic workflow. Mathematically, we\nrepresent a MAC network with N autonomous agents as a directed acyclic graph A = (V, E), where\nV = {vi }N\ni=1 is the set of N nodes, and E = {ei,j }i,j∈[1,...,N ],i̸=j is the set of directed edges with no\ncircles. The i-th node vi represents the i-th autonomous agent with the prompt pi , which specifies\nits subtask. The edge ei,j represents the task dependency between the i-th agent and the j-th agent,\nindicating that the j-th agent’s subtask should be executed after the i-th agent’s subtask in the agentic\nworkflow. The overall graph topology specifies the agentic workflow. Analogy to traditional neural\nnetworks, agents function similarly to neurons, with agent prompts serving as neurons’ weights and\nthe agentic workflow as the layers and connections.\nThe feed-forward pass of MAC network is the execution of the agentic workflow. In this process,\neach agent is given two inputs: the initial task requirement and the output from the previous agent.\nUsing these, each agent produces an output that fulfills its specific subtask. Eventually, the last\nagent’s generation constitutes the final output, integrating all completed subtasks. Note that the initial\ntask requirement is input to each agent as context, providing supplementary details to aid in the\nimplementation of each subtask.\nRecently, various MAC networks have been designed using human expertise to assign fixed agent\nprompts and workflows Hong et al. (2023); Chan et al. (2024), resembling untrained neural networks.\nHowever, these designs solely rely on human priors and lack adaptability, causing limited performance\nimprovement over a single agent. To overcome this, inspired by neural network training, we propose\na self-evolving paradigm for multi-agent collaboration networks, enabling both agents and their\nconnections to dynamically evolve during test-time for each given task.\nOptimization problem. Here we consider a general generation task. During test-time, given a task,\nthe MAC network performs a feed-forward pass to generate the final output without knowing its\n3\n\n\fPreprint.\n\nFigure 1: The general self-evolving paradigm.\nquality. The key to evolution during test-time is to set up a target proxy for the MAC network to\nguide its improvements in the generated output. Here we consider this target proxy as the conditions\nfor task completion, such as unit tests in coding, and we can produce such a target proxy by another\ngroup of autonomous agents based on the same task description. Then, the quality of each generated\noutput can be verified according to the target proxy. This approach relies on two key assumptions:\n(i) generating a target proxy is significantly simpler than completing the original generation task,\nand (ii) the generated output can be correctly verified against the target proxy through an objective\nenvironment. These assumptions are practical in many applications. For example, in code generation,\nproducing unit tests, the expected input-output pairs, is much easier than generating the entire code;\nmeanwhile, a code compiler naturally acts as the objective environment to check the correctness of\nthe generated code against the unit test, providing objective and informative feedback.\nMathematically, let X be the textual description of a task. Given the MAC network Ag , the generated\noutput is G = Φ(X, Ag ), where Φ(·, ·) is the general feed-forward operator that executes the\nagentic workflow, processing the input text through the MAC network. Similarly, the target proxy is\nT = Φ(X, At ), where At is another MAC network designed for producing the target proxy. Note\nthat we aim to evolve and optimize Ag , while keep At predefined and fixed. The optimization of our\nself-evolution is formulated as,\nA∗g = min ⟨Φ(X, Ag ), T⟩E , subject to: T = Φ (X, At ) ,\nAg\n\n(1)\n\nwhere ⟨·, ·⟩E is an objective environment executor that receives the generated output and the target\nproxy as inputs and outputs a text-based environmental feedback. Akin to the loss function in\ntraditional neural network training, which quantifies the difference between the generated output and\nthe ground-truth, the objective in (1) evaluates whether the generated output meets the conditions\nof the task completion using the environment, subsequently producing execution reports as the\ntext-based environmental feedback. Here the minimization operation min is defined to reduce the\nfailures during execution. With the guidance of the target proxy and the objective feedback given by\nthe environment, the MAC network can improve its success rate of task completion during test time.\nNote that, another straightforward way to enable the MAC network’s evolution is through the selfcritique strategy Zhou et al. (2024); Valmeekam et al. (2023); Xu et al. (2024); Asai et al. (2023),\nwhich employs a critique agent to assess the generated output directly. This approach has two\ninherent limitations: i) the critique may be subjective and biased, and ii) the critique agent can have\nhallucinations, causing inconsistencies and errors. These limitations can cause the MAC network\nto become entrenched in its own preferences or evolve in the wrong direction, especially iterating\nmultiple times; see our experimental validations in Tab. 2. In comparison, our approach leverages an\nenvironment executor to provide objective feedback, preventing bias and hallucinations.\nWhile we use the analogy between our self-evolution process and neural network training for\nmotivating, they are significantly different in three key aspects: (i) our self-evolution occurs at test\ntime without a dedicated training phase; (ii) it evolves for each specific task individually rather than\nover a batch of samples; and (iii) the environmental feedback are usually texts, not be numerical\nvalues, which cannot be optimized by the standard backpropagation. This motivates us to propose\nour textual backpropagation.\nSolution based on textual backpropagation. The self-evolution solution iteratively updates the\nMAC network using a textual backpropagation algorithm, guided by the environmental feedback. The\ncore idea is to analyze the influence of each agent in the MAC network Ag to the final environmental\nfeedback and use these analyses to update the agent prompts and the agentic workflow in Ag . This\n4\n\n\fPreprint.\n\nFigure 2: EvoMAC takes task requirements as input and iteratively updates the coding team to\ngenerate code that better fulfills the requirements.\nis achieved by two collaborative agents, each responsible for one of the two key steps: (i) textual\ngradient analysis and (ii) network update. The overall algorithm can refer to Alg. 1 in the appendix.\nFirst, the gradient agent takes the environmental feedback as the input and outputs textual gradients\n(k)\nthat describe the impact of each agent in the MAC network. Let Ag and L(k) be the MAC\nnetwork and the environment feedback at the k-th iteration. The textual gradient is then ∇L(k) =\n(k)\nG(Ag , L(k) ), where G(·, ·) is the gradient analysis operator managed by the gradient agent; see its\n(k)\nprompt in Appendix. The textual gradient details three-fold information for each agent inside Ag :\n1) whether this agent’s subtask is fulfilled; 2) whether this agent introduces errors; and 3) whether\nany subtask is missed in the current MAC network.\n(k+1)\n\nSecond, based on the textual gradients, the updating agent iterates the MAC network as Ag\n=\n(k)\n(k)\nU(Ag , ∇L ), where U(·, ·) is the updating operator managed by the updating agent. This operator\nguides the updates from three-folds: 1) removing the agents whose subtasks have been completed; 2)\nrevising the erroneous agent’s prompts by adding potential solutions provided in the gradient analysis;\nand 3) adding new agents for missing subtasks and restructuring the workflows based on the subtask\ndependencies noted in the gradient analysis; see the prompt details in Appendix. These adjustments\naddress existing issues and fulfill unmet requirements in the current generation of the MAC network,\npromising improvements in the updated version.\nNote that, the key of the textual backpropagation is the prompt designs for both gradient analysis\nand network updates. The design must i) thoroughly evaluate the subtask of each agent in the MAC\nnetwork according to the objective environment feedback and determine necessary adjustments to\nthe MAC network to address existing issues, fulfilling the unmet requirements; and ii) maintain\ncoherence, ensuring that issues identified by the gradient agent can be effectively resolved by the\nupdating agent’s modifications to the MAC network.\n3.2\n\nS ELF - EVOLUTION FOR SOFTWARE DEVELOPMENT\n\nIn this section, we apply the self-evolving paradigm to the task of software development. The\noverall architecture of the proposed self-evolving multi-agent collaboration network for software\ndevelopment is illustrated in Fig. 1. Given a coding task, the coding team, corresponding to the MAC\nnetwork Ag , generates all the codes through its forward-pass; the testing team, associated with the\nMAC network At , is responsible for creating the target proxy; that is, unit tests of the coding task; and\nthe objective environment tool is realized through the compiler. The identified bugs during execution\nform the textual environmental feedback. The updating team, consisting of two collaborative agents,\nmanages the textual backpropagation. By continuously cycling through feed-forward, feedback\ncollection, and textual backpropagation processes, the coding team is iteratively refined to more\nclosely align with the test cases. The detailed implementation of agents can refer to Sec. 9 in the\nAppendix.\n5\n\n\fPreprint.\n\nSince unit test generation is much easier than the original logical code generation, the testing team\nusually can produce high-quality test cases, which are closely aligned with the task requirements.\nThen, improving alignment with the unit tests through MAC network updates ensures better adherence\nto the actual task requirements.\nCoding team for feed-forward. In the feed-forward process, the coding team synthesizes code\naccording to the given coding task. To handle the extensive software requirements, the coding team\nis implemented as a MAC network. It divides the comprehensive requirements into a sequence of\nsmaller, more specific function implementation subtasks, and progressively conquers them through\nthe agentic workflow. Unlike existing MAC systems that heuristically decompose coding tasks and\ndefine the agentic workflow, we initialize the MAC network using a novel self-organizing approach.\nA coding organizer agent automatically and flexibly decomposes the task requirements into subtasks\nand assembles the coding agent team accordingly. The number of coding agents is dynamic, adjusting\nin response to the task requirements. Note that, the quality of the generated code is unknown during\nthe forward pass, which necessitates the self-evolving paradigm to iteratively refine the generation.\nTesting team and compiler for feedback collection. To verify whether the generated code meets\nthe requirements of the coding task, we employ unit tests as the target proxy. These test cases consist\nof input-output pairs tailored to specific requirements. For example, a test case for a keyboard control\nrequirement would detail the type of control as the input and describe the expected behavior as the\noutput. To create flexible and comprehensive unit tests, we set up the testing team as a MAC network\nand also initialize it in a self-organized way. A testing organizer agent automatically decomposes our\nspecified key testing criteria into subtasks and accordingly forms the testing agent team .\nOnce the test cases and generated code are ready, they are executed in the compiler, which functions\nas the environmental tool, producing execution logs. These logs clearly point out the gap between the\ngenerated code and the test cases. It shows satisfied testing requirements, existing function errors, and\nunmet testing requirements. This feedback information can be used to verify whether each agent’s\nsubtask is accomplished and guide the MAC network update.\nUpdating team for textual back-propagation. The updating team consists of two collaborative\nagents: the gradient agent and the updating agent, adjusting the MAC network based on the execution\nlogs, including the agent prompts and workflows. This process consists of two steps. First, the\ngradient agent summarizes the textual gradient by identifying accomplished subtasks for satisfied\nrequirements, appending new subtasks for unmet requirements, and analyzing errors to detail their\noriginating agents and revising suggestions. Second, the updating agent modifies the coding agent\nteam by removing agents that have completed their subtasks, adding new agents for the new subtasks,\nand revising agent prompts to address issues identified in the previous generation. The agent workflow\nis updated once the agent team is revised, based on the dependencies among the subtasks.\n\n4\n\nR SDE-B ENCH : REQUIREMENT-O RIENTED S OFTWARE D EVELOPMENT\nE NGINEERING B ENCHMARK\n\nThis section introduces rSDE-Bench, a requirement-oriented benchmark designed to assess the\nability of models to handle software-level coding tasks. Each coding task involves multiple detailed\nsoftware requirements. These requirements specify each functionality and constraint of the software,\nitem by item, serving as measurable benchmarks for assessing the software’s effectiveness. As shown\nin Fig. 3, unlike previous instruction-oriented approaches Qian et al. (2023); Hong et al. (2023) which\nrely on brief instructions as input, rSDE-Bench uses comprehensive software requirements as input,\ncomplemented by unit test cases to automatically evaluate the correctness. This benchmark provides\nsoftware-level coding tasks and automatic evaluation, aligning more closely with real-world software\ndevelopment practices.\n4.1\n\nB ENCHMARK CONSTRUCTION\n\nrSDE-Bench involves two typical real-world software types: game and website. They can reflect\ndifferent coding capacities demanded in realistic software development. Game often requires handling\ndynamic interactions, real-time state changes, and user-driven operations, focusing on elements like\nlogic execution, initialization, and game state transitions. Website emphasizes static and dynamic\ncontent management, user interaction through forms and buttons, and ensuring page elements are\ndisplayed and functional. rSDE-Bench involves diverse requirements, each paired with a test case.\nSpecifically, rSDE-Bench provides 53 unique coding tasks and 616 test cases. For details on the\n6\n\n\fPreprint.\n\nSoftware Instruction\n\nSoftware Requirement\n\nA website called\nDailyHeealthTips where\n\nDevelop a website (DailyHeealthTips)\n\nObjective\n\nusers receive daily health\ntips, log in to their accounts,\nview tips, and submit\nfeedback, with all data\nstored in local text files. The\nwebsite also offers\npersonalized health advice\nbased on user profiles.\n\nLanguage\nPage Design\nLogin Page\n• Elements:\n• Username Filed’s ID: username_field\n• Password Filed’s ID: password_filed\n\nDaily Tips Page\nTips Archive Page\n\nData Storage\nUser Data: Stored in users.txt\n• Example: john_doe,securepassword\n\nGenerated Codes (Additional code omitted)\ntemplates/login.html\n\napp.py\n\n&lt;form action=\"{{ url_for('login') }}\"\nmethod=\"post\"&gt;\n&lt;div class=\"form-group\"&gt;\n···\n&lt;/div&gt;\n\n@app.route('/login', methods=['POST’])\ndef login_page():\n# Implement the login logic here.\nreturn render_template('login.html')\n\nEvaluation Metrics\nTest Reports (RSD-Bench)\nPASSED test_login_elements\nFAILED test_login_functionality\n\nAdditional Pass to Test cases omitted...\n---------------------------{'advanced’: 0,\n'basic’: 2,\n'total’: 13}\n\nAccuracy (Ours): 2 / 13\n\nSoftware\nCodes\nRequirement\nCosine Similarity\n\nDo not find (`pass`/`TODO`)\n\n1 Completeness: 11\nCheck for executability\n\n1 Executability : 11\n\nConsistency: 0.89\n\n---------------------\n\nQuality = 0.89*1*1= 0.89\n\nFigure 3: Comparison between instruction-oriented and requirement-oriented evaluations. rSDEBench accurately reflects requirement fulfillment with the proposed accuracy score of 2/13, while\nthe indrection evaluation misjudges with high scores (0.89), failing to detect missing functionality.\nbenchmark construction, software statistics, software requirements, and test case examples, see Sec. 7\nin the Appendix.\nrSDE-Bench introduces two requirement difficulty levels, including basic and advanced, to reflect the\nvarying complexity of real-world software development tasks. The basics reflect the fundamental and\nmore achievable requirements, such as interaction, control, and logging. The advanced reflects more\ncomplex software functionalities, such as game logical rules, and dynamic web content management.\nThe details can be referred to the appendix.\n4.2\n\nAUTOMATIC E VALUATION\n\nrSDE-Bench supports automatic evaluation of requirement correctness. It achieves this by pairing a\nspecifically designed black-box test case with each requirement. The test case can directly verify\nwhether the generated code achieved the requirement. Its evaluation metric is the accuracy, which\nquantifies the proportion of correctly passed test cases. It is similar to the pass@1 metric in\nHumanEval Chen et al. (2021), which evaluates the pass ratio of correctly achieved functions against\nthe total functions via unit test verification. It is a fully automated evaluation process, eliminating the\nneed for human involvement while still providing accurate and reliable assessments.\nPrevious benchmarks for software code generation mainly rely on two evaluation methods. One\nmethod is human evaluation Hong et al. (2023), which is time-consuming and not scalable for large\ndatasets. The other method is indirect evaluations Qian et al. (2023), which defines metrics like\nconsistency, completeness, and quality. Consistency measures how closely the generated software\naligns with the original requirement description by comparing the cosine similarity between the\ntwo. Completeness is determined by detecting the presence of placeholder (such as pass or TODO),\nwhich results in a binary value of 0 or 1. Quality is then calculated as the product of several\nfactors: consistency, completeness, and executability. As illustrated in Fig. 3, they could not measure\nthe correctness of the generated code in fulfilling requirements. In contrast, rSDE-Bench’s test\ncases-based evaluation is more rigorous and precise. These test cases can accurately verify the\ncorrectness of generated code in fulfilling the requirements. rSDE-Bench promises reliable and\nscalable automatic evaluation. In the experiments, we have validated the significant advantages of\nthe proposed automatic evaluation over the previous metrics, including consistency and quality; see\nFig. 4.\n4.3\n\nF EATURES\n\nChallenging and diverse software requirements. rSDE-Bench features long-context software\nrequirements (averaging 507/1011 words for game and website tasks, respectively), unlike instructionoriented benchmarks Chen et al. (2021); Austin et al. (2021); Jimenez et al. (2023) that rely on\nbrief prompts. These detailed requirements better reflect real-world lengthy and complex software\ndevelopment challenges.\nRequirement-aware precise and efficient evaluation. rSDE-Bench employs detailed software\nrequirements and automated unit tests to precisely measure how well generated software meets\nits objectives. Generated codes are evaluated based on pass rates from running specific test cases,\noffering an accurate and efficient process. In contrast, instruction-oriented benchmarks rely on brief\n7\n\n\fPreprint.\n\nFigure 4: Performance of four methods in terms of four evaluation metrics, including human\nevaluation, our automatic evaluation (accuracy), consistency, and quality. WB/GB and WA/GA\nrepresent Web/Game Basic and Web/Game Advanced respectively. Our accuracy metric is highly\naligned with human evaluation across four dataset settings.\nTable 1: Comparison of EvoMAC with five multi-agent and three single-agent SOTA baselines, all\npowered by GPT-4o-Mini. Red values represent the percentage improvement of EvoMAC, shade in\npink, over the single-agent baselines, shade in grey.\nMethod\nSingle-Agent\n\nMulti-Agent\n\nModel\nGemini-1.5-Flash\nClaude-3.5-Sonnet\nGPT-4o-Mini\nMetaGPT\nAutogen\nMapCoder\nAgentverse\nChatDev\nEvoMAC\n\nrSDE-Bench\nWebsite(%)\nGame(%)\nBasic\nAdvanced\nBasic\nAdvanced\n29.79±1.00 11.61±2.34 21.74±6.39\n6.45±6.97\n58.90±1.48 37.11±1.06 44.20±5.41 18.29±13.26\n62.90±2.52 44.40±4.21 42.76±15.50 30.10±11.87\n15.41±0.00\n0.00±0.00\n16.67±2.71\n0.00±0.00\n25.68±4.14\n5.40±3.34\n17.39±1.78\n0.00±0.00\n34.70±1.59 14.57±0.66 29.71±6.72\n7.52±6.10\n15.41±0.00\n0.00±0.00\n37.67±8.20\n16.13±4.55\n62.67±0.28 43.45±0.77 53.63±5.70\n32.26±4.55\n89.38±1.01 65.05±1.56 77.54±2.04\n51.60±4.54\n+26.48\n+20.65\n+34.78\n+21.50\n\nHumanEval\n(%)\nPass@1\n73.17\n89.02\n88.41\n88.41\n85.36\n90.85\n90.85\n70.73\n94.51\n+6.10\n\nprompts, which lack constraints and make evaluation less reliable, often requiring labor-intensive or\nindirect evaluation.\n\n5\n\nE XPERIMENTS\n\n5.1\n\nE XPERIMENTAL SETUP\n\nBaselines. To validate the effectiveness of our EvoMAC, we conducted comparisons against both\nsingle-agent and multi-agent baselines. The single-agent baselines involve three prominent large\nmodels: GPT-4o-Mini (gpt-4o-mini), Claude-3.5-Sonnet (claude-3-5-sonnet-20240620), and Gemini\n(gemini-1.5-flash). For multi-agent baselines, we included five state-of-the-art (SOTA) methods:\nMetaGPT Hong et al. (2023), Autogen Wu et al. (2023), Mapcoder Islam et al. (2024), Agentverse Chen et al. (2023), and ChatDev Qian et al. (2023). To ensure a fair comparison, all multi-agent\nbaselines, including our EvoMAC, are powered by the efficient and powerful GPT-4o-Mini model.\nAdditionally, to demonstrate the adaptability and robustness of our EvoMAC, we developed two\nEvoMAC variants using GPT-4o-Mini and Claude-3.5-Sonnet.\nDatasets. Our experiments cover both the proposed rSDE-Bench and the standard coding benchmark\nHumanEval Chen et al. (2021). HumanEval comprises 164 Python function completion problems,\nwhere the task is to generate code from a single function description.\n5.2 E FFECTIVENESS OF R SDE-B ENCH ’ S EVALUATION AND E VO MAC\nrSDE-Bench’s automatic evaluation metric (accuracy) is highly aligned with human evaluation.\nOur primary goal is to validate the effectiveness of the proposed automatic evaluation in rSDE-Bench\nby comparing it with two existing evaluation metrics: consistency and quality, both from SRDD Qian\net al. (2023). For a fair comparison, our golden standard is human evaluation, conducted by two\nexpert code engineers who manually verify the fulfillment of requirements by interacting with the\ndeveloped software. This process is tedious, taking around four hours per expert to evaluate the entire\nbenchmark. The effectiveness of an evaluation metric depends on how closely it aligns with human\nevaluation.\nFig. 4 presents the performance of four methods in terms of four evaluation metrics, including human\nevaluation, our automatic evaluation, consistency, and quality. We see that: i) our automatic evaluation\nis highly aligned with human evaluation across two software types (Website and Game), four methods,\n(GPT-4o-Mini, MetaGPT, ChatDev, and our EvoMAC), and two requirement difficulties (Basic and\n8\n\n\fPreprint.\n\nAdvanced). The correlation coefficient between human evaluation and our accuracy metric is 0.9922,\ndemonstrating the effectiveness of the proposed automatic evaluation in rSDE-Bench; ii) Consistency\nand quality metrics differ significantly from human evaluation, with correlation coefficients of 0.2583\nand 0.3041, respectively. This discrepancy occurs because consistency in SRDD measures similarity,\nand quality in SRDD focuses on executability, which does not guarantee that all requirements\nare met. This highlights the need for rSDE-Bench, as the SRDD benchmark does not support\nrequirement-oriented software development.\nEvoMAC outperforms previous SOTAs on both software-level and function-level coding benchmarks: rSDE-Bench and HumanEval. Tab. 1 compares EvoMAC with five multi-agent and\nthree single-agent SOTA baselines, all powered by GPT-4o-Mini for a fair comparison. We see\nthat EvoMAC significantly outperforms previous SOTAs across all datasets. EvoMAC outperforms\nsingle-agent methods by 26.48% on the rSDE-Bench Website Basic and 34.78% on the rSDE-Bench\nGame Basic, as well as surpassing existing multi-agent methods by over 20%. This highlights the\neffectiveness of multi-agent collaboration and the power of EvoMAC.\n5.3\n\nE FFECTIVENESS OF EVOLVING\n\nFig. 6 shows the accuracy of EvoMAC over multiple evolving iterations on the rSDE-Bench and\nHumanEval. Each figure presents two curves: one for EvoMAC powered by GPT-4o-Mini (red) and\nthe other by Claude-3.5 (blue). We have the following findings:\nTable 2: Ablation study about coding/testing team with 250\nsingle/multi-agent, with/without evolving, and with/without\n200\nenvironment tool. Best performances are bolded.\n\na)\nb)\nc)\nd)\ne)\nf)\ng)\n\nSingle\nMulti\nSingle Single\nMulti Single\nSingle Multi\nMulti Multi\nMulti Multi\n\n✓\n✓\n✓\n✓\n✓\n\n✓\n✓\n✓\n✓\n\n63.70\n67.47\n80.82\n83.90\n83.56\n78.08\n90.75\n\n41.70\n39.27\n60.32\n60.72\n61.94\n52.23\n67.20\n\n42.76\n68.10\n71.73\n76.08\n73.91\n55.80\n77.54\n\n30.10\n41.93\n41.93\n41.93\n45.16\n33.32\n51.60\n\nPage Display\nBrowsing\nContent Manage\nCommunity\nUser Manage\n\nGame\n80\n60\n\nCount\n\n150\n\nCount\n\nWebsite(%)\nGame(%)\nCoding Testing Evol. Env.\nBasic Advanced Basic Advanced\n\nWebsite\n\n40\n\n100\n\n20\n\n50\n0 0 1 2 3 4 5\n\nEvolving Times\n\n0 0\n\nLogic\nOperation\nInitialization\nLog\nSyntax\n\n1\n\n2\n\n3\n\nEvolving Times\n\nFigure 5: Failure case distribution across\nevolving times on Website and Game.\n\nEvoMAC continuously improves with the evolving times. Fig. 6 shows that as evolving iterations\nincrease, performance consistently improves across all five dataset settings, covering two difficulty\nlevels, two software types, and both requirement-oriented and function complement benchmarks.\nThis highlights the effectiveness, generalizability, and robustness of the self-evolving approach,\nencouraging EvoMAC to evolve whenever possible.\nEvoMAC indistinguishably improves with different driving LLM. From Fig. 6, we see that: i)\nboth EvoMAC variants continuously improve with evolving iterations, demonstrating the robustness\nof the self-evolving design; ii) the two curves do not intersect, indicating that the EvoMAC variant\npowered by a more powerful single model consistently outperforms the other, highlighting the\nadvantage of using a stronger model. Success builds on success.\nFailure case analysis. Fig. 5 shows the failure case statistics across iterations for Website and Game,\nshowing a general decrease in errors as iterations progress. We see that: i) the most common errors\nare page display issues in Website and logic errors in Game; ii) page errors are resolved more quickly,\nwhile logic errors persist, suggesting that more isolated issues are easier to fix during the evolution\nprocess. This results in a sharp initial performance improvement as sipler problems are addressed\nearly, followed by a plateau as more complex issues remain unresolved, shown in Fig. 6.\n5.4\n\nA BLATION STUDY\n\nTo assess the effectiveness of each component, Tab. 2 details an ablation study featuring seven\nEvoMAC variants.\nEffectiveness of objective environment feedback. Environment feedback, such as code execution\nlogs, is essential for software development. Variant f) omits this tool, instead using an LLM-driven\nagent to critique the code. Comparing Variant g) with Variant f) shows a notable performance drop:\nWebsite tasks decrease by 12.67% and 14.97%, and Game tasks by 21.74% and 18.28% for Basic and\n9\n\n\fPreprint.\n\n(a) Website\n\n(b) Game\n\n(c) HumanEval\n\nFigure 6: Effect of EvoMAC performance across evolving times empowered by GPT-4o-Mini\nand Claude-3.5-Sonnet on Website, Game, and HumanEval datasets. The figure shows EvoMAC\ncontinuously improves with the evolving times on both LLM drives.\n\nFigure 7: EvoMAC outperforms previous multi-agent and single-agent systems across all the context\nlengths across the four dataset settings on rSDE-Bench.\n\nFigure 8: We show the generated code of single-agent, GPT-4o-Mini, and multi-agent systems,\nChatDev, and our EvoMAC (iteration =0/1) given the Website task (RecipeHub). After evolving,\nEvoMAC can revise previous issues and fulfill the task requirement.\nAdvanced levels, respectively. This underscores the importance of objective environmental feedback,\nas agent-driven critiques may introduce bias and fail to guide the evolution effectively.\nEffectiveness of multi-agent collaboration in coding team and testing team. Comparing Variant\ng) to Variant e), we observe a performance decrease of 7.19% and 5.26% on Website Basic and\nAdvanced respectively, when the coding team is reduced to a single agent. Similarly, comparing\nVariant g) to Variant d), there is a performance drop of 6.85% and 6.48% on Website Basic and\nAdvanced respectively, also when the team is reduced to a single agent. These results demonstrate\nthe necessary for involving multi-agent collaboration, highlighting that multi-agent setups offer more\nflexible adjustments and enhanced capabilities for evolution.\nEffectiveness in handling varied task token lengths. Fig. 7 shows a comparison of task token\nlengths and performance across GPT-4o-Mini, ChatDev, and EvoMAC. We see that: i) EvoMAC\nconsistently outperforms ChatDev and GPT-4o-Mini across all context lengths, with its self-evolving\nmechanism enabling the identification and correction of missed contexts and errors during iterations;\nii) EvoMAC experiences less performance degradation on the rSDE-Bench Website than on the\nGame, as Website tasks are more modular and can be broken into subtasks, whereas Game tasks\nrequire more coordinated management, making them more challenging.\n10\n\n\fPreprint.\n\n5.5\n\nC ASE STUDY\n\nFig. 8 presents the generated code by a single agent, GPT-4o-Mini, multi-agent systems, ChatDev, and\nour EvoMAC before and after evolving (iteration=0/1). We see that: i) EvoMAC after evolving can\ncorrect issues from previous iterations and successfully fulfill the task requirements; ii) multi-agent\nsystems tend to better comprehend the task requirements and produce more well-structured code.\nMore generated software can refer to Sec. 10 in the Appendix.\n\n6\n\nC ONCLUSION\n\nWe propose EvoMAC, a novel self-evolving paradigm for MAC networks. EvoMAC iteratively\nadapts agents and their connections during the testing phase of each task. It achieves this with a novel\ntextual back-propagation algorithm. EvoMAC can push coding capabilities beyond function-level\ntasks and into more complex, software-level development. Furthermore, we propose rSDE-Bench, a\nnovel requirement-oriented software development benchmark. rSDE-Bench features both complex\nand diverse software requirements, as well as the automatic evaluation of requirement correctness.\nComprehensive experiments validate that the automatic requirement-aware evaluation in rSDE-Bench\naligns closely with human evaluation. EvoMAC outperforms previous SOTAs in both software-level\nrSDE-Bench and function-level HumanEval benchmarks.\nFuture works. In the future, we plan to introduce a reward model to enhance the self-evolving\nparadigm’s ability to learn from feedback and extend the rSDE-Bench to more software types.\n\nR EFERENCES\nAmazon.\nCodeWhisperer.\nIn https://platform.qa.com/course/amazon-codewhisperer-generatingcode-ai-4679/introduction,\n2022.\nURL\nhttps://platform.qa.com/course/\namazon-codewhisperer-generating-code-ai-4679/introduction.\nAkari Asai, Zeqiu Wu, Yizhong Wang, Avirup Sil, and Hannaneh Hajishirzi. Self-rag: Learning to retrieve,\ngenerate, and critique through self-reflection. ArXiv, abs/2310.11511, 2023.\nJacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang,\nCarrie Cai, Michael Terry, Quoc Le, et al. Program synthesis with large language models. arXiv preprint\narXiv:2108.07732, 2021.\nChi-Min Chan, Weize Chen, Yusheng Su, Jianxuan Yu, Wei Xue, Shanghang Zhang, Jie Fu, and Zhiyuan Liu.\nChateval: Towards better llm-based evaluators through multi-agent debate. In The Twelfth International\nConference on Learning Representations, 2024.\nMark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri\nEdwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael\nPetrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov,\nAlethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such,\nDave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen\nGuss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain,\nWilliam Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan\nMorikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob\nMcGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language\nmodels trained on code. 2021.\nWeize Chen, Yusheng Su, Jingwei Zuo, Cheng Yang, Chenfei Yuan, Chen Qian, Chi-Min Chan, Yujia Qin, Yaxi\nLu, Ruobing Xie, et al. Agentverse: Facilitating multi-agent collaboration and exploring emergent behaviors\nin agents. arXiv preprint arXiv:2308.10848, 2(4):6, 2023.\nGoogle. Codey. In https://console.cloud.google.com/vertex-ai/publishers/google/model-garden/codechat-bison,\n2023.\nURL https://console.cloud.google.com/vertex-ai/publishers/google/\nmodel-garden/codechat-bison.\nSirui Hong, Xiawu Zheng, Jonathan Chen, Yuheng Cheng, Jinlin Wang, Ceyao Zhang, Zili Wang, Steven\nKa Shing Yau, Zijuan Lin, Liyang Zhou, et al. Metagpt: Meta programming for multi-agent collaborative\nframework. arXiv preprint arXiv:2308.00352, 2023.\nWenyue Hua, Lizhou Fan, Lingyao Li, Kai Mei, Jianchao Ji, Yingqiang Ge, Libby Hemphill, and Yongfeng\nZhang. War and peace (waragent): Large language model-based multi-agent simulation of world wars. arXiv\npreprint arXiv:2311.17227, 2023.\n\n11\n\n\fPreprint.\n\nMd. Ashraful Islam, Mohammed Eunus Ali, and Md Rizwan Parvez. Mapcoder: Multi-agent code generation\nfor competitive problem solving, 2024. URL https://arxiv.org/abs/2405.11403.\nCarlos E Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik R Narasimhan.\nSwe-bench: Can language models resolve real-world github issues? In The Twelfth International Conference\non Learning Representations, 2023.\nMohammad Abdullah Matin Khan, M Saiful Bari, Xuan Long Do, Weishi Wang, Md Rizwan Parvez, and\nShafiq Joty. xcodeeval: A large scale multilingual multitask benchmark for code understanding, generation,\ntranslation and retrieval, 2023. URL https://arxiv.org/abs/2303.03004.\nGuohao Li, Hasan Abed Al Kader Hammoud, Hani Itani, Dmitrii Khizbullin, and Bernard Ghanem. Camel:\nCommunicative agents for \"mind\" exploration of large language model society. In Thirty-seventh Conference\non Neural Information Processing Systems, 2023.\nJiaqi Li, Mengmeng Wang, Zilong Zheng, and Muhan Zhang. Loogle: Can long-context language models\nunderstand long contexts?, 2024a. URL https://arxiv.org/abs/2311.04939.\nJunkai Li, Siyu Wang, Meng Zhang, Weitao Li, Yunghwei Lai, Xinhui Kang, Weizhi Ma, and Yang Liu. Agent\nhospital: A simulacrum of hospital with evolvable medical agents, 2024b. URL https://arxiv.org/\nabs/2405.02957.\nYujia Li, David Choi, Junyoung Chung, Nate Kushman, Julian Schrittwieser, Rémi Leblond, Tom, Eccles, James\nKeeling, Felix Gimeno, Agustin Dal Lago, Thomas Hubert, Peter Choy, Cyprien de, Masson d’Autume,\nIgor Babuschkin, Xinyun Chen, Po-Sen Huang, Johannes Welbl, Sven Gowal, Alexey, Cherepanov, James\nMolloy, Daniel Jaymin Mankowitz, Esme Sutherland Robson, Pushmeet Kohli, Nando de, Freitas, Koray\nKavukcuoglu, and Oriol Vinyals. Competition-level code generation with alphacode. Science, 378:1092 –\n1097, 2022a.\nYujia Li, David Choi, Junyoung Chung, Nate Kushman, Julian Schrittwieser, Rémi Leblond, Tom Eccles, James\nKeeling, Felix Gimeno, Agustin Dal Lago, Thomas Hubert, Peter Choy, Cyprien de Masson d’Autume, Igor\nBabuschkin, Xinyun Chen, Po-Sen Huang, Johannes Welbl, Sven Gowal, Alexey Cherepanov, James Molloy,\nDaniel J. Mankowitz, Esme Sutherland Robson, Pushmeet Kohli, Nando de Freitas, Koray Kavukcuoglu,\nand Oriol Vinyals. Competition-level code generation with alphacode. Science, 378(6624):1092–1097,\nDecember 2022b. ISSN 1095-9203. doi: 10.1126/science.abq1158. URL http://dx.doi.org/10.\n1126/science.abq1158.\nJiawei Liu, Chunqiu Steven Xia, Yuyao Wang, and LINGMING ZHANG. Is your code generated by chatGPT\nreally correct? rigorous evaluation of large language models for code generation. In Thirty-seventh Conference\non Neural Information Processing Systems, 2023. URL https://openreview.net/forum?id=\n1qvx610Cu7.\nZhao Mandi, Shreeya Jain, and Shuran Song. Roco: Dialectic multi-robot collaboration with large language\nmodels. In 2024 IEEE International Conference on Robotics and Automation (ICRA), pages 286–299. IEEE,\n2024a.\nZhao Mandi, Shreeya Jain, and Shuran Song. Roco: Dialectic multi-robot collaboration with large language\nmodels. In 2024 IEEE International Conference on Robotics and Automation (ICRA), pages 286–299. IEEE,\n2024b.\nMicrosoft. Copilot. In https://www.microsoft.com/en-us/microsoft-copilot/meet-copilot, 2023. URL https:\n//www.microsoft.com/en-us/microsoft-copilot/meet-copilot.\nAnton Osika. GPT-Engineer. In https://github.com/AntonOsika/gpt-engineer, 2023. URL https://github.\ncom/AntonOsika/gpt-engineer.\nXianghe Pang, Shuo Tang, Rui Ye, Yuxin Xiong, Bolun Zhang, Yanfeng Wang, and Siheng Chen. Self-alignment\nof large language models via monopolylogue-based social scene simulation. In Forty-first International\nConference on Machine Learning, 2024.\nChen Qian, Wei Liu, Hongzhang Liu, Nuo Chen, Yufan Dang, Jiahao Li, Cheng Yang, Weize Chen, Yusheng Su,\nXin Cong, Juyuan Xu, Dahai Li, Zhiyuan Liu, and Maosong Sun. Chatdev: Communicative agents for software\ndevelopment. arXiv preprint arXiv:2307.07924, 2023. URL https://arxiv.org/abs/2307.07924.\nKarthik Valmeekam, Matthew Marquez, and Subbarao Kambhampati. Can large language models really improve\nby self-critiquing their own plans? ArXiv, abs/2310.08118, 2023.\nChonghua Wang, Haodong Duan, Songyang Zhang, Dahua Lin, and Kai Chen. Ada-leval: Evaluating longcontext llms with length-adaptable benchmarks, 2024a.\n\n12\n\n\fPreprint.\n\nXindi Wang, Mahsa Salmani, Parsa Omidi, Xiangyu Ren, Mehdi Rezagholizadeh, and Armaghan Eshaghi.\nBeyond the limits: A survey of techniques to extend the context length in large language models, 2024b. URL\nhttps://arxiv.org/abs/2402.02244.\nQingyun Wu, Gagan Bansal, Jieyu Zhang, Yiran Wu, Beibin Li, Erkang Zhu, Li Jiang, Xiaoyun Zhang, Shaokun\nZhang, Jiale Liu, Ahmed Hassan Awadallah, Ryen W White, Doug Burger, and Chi Wang. Autogen: Enabling\nnext-gen llm applications via multi-agent conversation, 2023. URL https://arxiv.org/abs/2308.\n08155.\nYifan Xu, Xiao Liu, Xinghan Liu, Zhenyu Hou, Yueyan Li, Xiaohan Zhang, Zihan Wang, Aohan Zeng,\nZhengxiao Du, Wenyi Zhao, Jie Tang, and Yuxiao Dong. Chatglm-math: Improving math problem-solving in\nlarge language models with a self-critique pipeline. ArXiv, 2024.\nYuzhuang Xu, Shuo Wang, Peng Li, Fuwen Luo, Xiaolong Wang, Weidong Liu, and Yang Liu. Exploring large language models for communication games: An empirical study on werewolf. arXiv preprint\narXiv:2309.04658, 2023.\nGuang Yang, Yu Zhou, Xiang Chen, and Xiangyu Zhang. Codescore-r: An automated robustness metric for\nassessing the functionalcorrectness of code synthesis, 2024a. URL https://arxiv.org/abs/2406.\n06902.\nJohn Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir\nPress. Swe-agent: Agent-computer interfaces enable automated software engineering. ArXiv, abs/2405.15793,\n2024b.\nZibin Zheng, Kai-Chun Ning, Jiachi Chen, Yanlin Wang, Wenqing Chen, Lianghong Guo, and Weicheng Wang.\nTowards an understanding of large language models in software engineering tasks. ArXiv, abs/2308.11396,\n2023.\nWangchunshu Zhou, Yixin Ou, Shengwei Ding, Long Li, Jialong Wu, Tiannan Wang, Jiamin Chen, Shuai\nWang, Xiaohua Xu, Ningyu Zhang, et al. Symbolic learning enables self-evolving agents. arXiv preprint\narXiv:2406.18532, 2024.\nCaleb Ziems, William Held, Omar Shaikh, Jiaao Chen, Zhehao Zhang, and Diyi Yang. Can large language\nmodels transform computational social science? Computational Linguistics, 50(1):237–291, 2024.\n\n13\n\n\fPreprint.\n\nA PPENDIX\n\n7\n\nB ENCHMARK DETAILS\n\nTable 3: Basic statistics for website and game doGame Category (%)\nWebsite Category (%)\nContent Manage\nBrowsing\nmains, including the amount of samples, length Initialization Executability\nLog\nSet Up\nin lines of code (Basic/Advanced), and number of\n6.5 7.8\n8.0\n14.9\n7.8\n8.4\nCommunity\nUser\ntest cases at both Basic and Advanced levels.\n4.9\n17.5\nLogic\nBenchmark\nWebsite\nGame\n\nSoftware\nAmount\nLength\n45\n8\n\n1011/1553\n507/788\n\nTest Case\nBasic Advanced\n292\n46\n\n42.9\n\nManage\n\n35.1\n\nOperation\n\n46.3\n\nPage Display\n\n247\n31\n\nFigure 9: Statistics of Game and Website tasks.\n\nStep 1: Software requirement generation. Each task instance begins with the generation of\nclear, measurable software requirements. Given the inherent differences across various types of\nsoftware, we adopt distinct approaches for their formulation. For game-related software, we focuses\non common real-world games, capturing detailed task requirements such as GUI layout initialization,\ninteraction methods, and game rules. To align more closely with actual game development practices,\nwe also include game state logging as part of the software requirements. Due to the complexity\nof logic in game software, these requirements are manually crafted by human. In contrast, for\nwebsite-related software, we begin with a concise website name, and then leverage the large language\nmodel (gpt-4o-mini) to enrich the requirements according to predefined patterns. This approach\nensures both efficiency and scalability in the creation of benchmarks for websites. By tailoring the\nprocess to the distinct characteristics of each software domain, we maintain precision in requirement\nformulation while addressing the unique challenges posed by each context.\nStep 2: Requirement-based test cases generation.\nAs illustrated in Fig 10 and Fig 11, unit tests offer a precise evaluation of software completion. Each\ntask instance includes black-box unit test cases that correspond directly to the software requirements,\nallowing for a quantitative assessment of requirement fulfillment. To further assess the model’s code\ngeneration capabilities, we categorize test cases into two levels of difficulty—basic and advanced,\nas outlined in Tab. 3. We also provide an overview of all websites and games in Tab. 4 and\nTab. 5 respectively. As shown in Fig. 9, test cases for website and game software exhibit structural\ndifferences, reflecting the distinct nature of each software type. They enable more targeted evaluation\nof code generation capabilities. Thus, similar to software requirements, the test cases are constructed\ndifferently based on the software type. For game-related tests, we manually create test cases,\nakin to the HumanEval Chen et al. (2021) benchmark, which tracks state changes in response to\nspecific inputs. In the game environment, we assess how game states evolve in response to GUI\ninteractions. For website-related tests, large language model (gpt-4o-mini) generates Seleniumbased test cases aligned with the software requirements, followed by manual corrections to resolve any\nambiguities. This structured approach ensures rigorous evaluation across diverse software domains.\nBasic and advanced requirements definition. For the games, basic requirements involve straightforward user interactions that do not require complex logic, such as character movement or interacting\nwith simple GUI elements. Advanced requirements incorporate more intricate logic, such as managing game state transitions based on user actions or handling conditional game events. These cases\nfocus on ensuring the correct execution of basic actions. In contrast, advanced cases incorporate\nmore intricate logic, such as managing game state transitions based on user actions or handling\nconditional game events. These cases challenge the model’s ability to generate code that integrates\ndynamic decision-making and interaction within the game environment. For websites, basic cases\nfocus on ensuring that the necessary page elements—such as input fields, buttons, and layouts—are\npresent correctly. These cases assess the completeness of the webpage’s structure. On the other hand,\nadvanced cases evaluate more complex functionality, such as handling user authentication, managing\ndynamic content, or executing specific operations within a content management system. These cases\nrequire the model to generate code that performs backend logic and manages user interactions at a\ndeeper level.\n14\n\n\fPreprint.\n\nTable 4: Overview of Websites in rSDE-Bench.\nCharitableGivingPlatform\nEcoFriendlyLivingTips\nFitnessEquipmentRental\nGreenLivingGuide\nMusicFestivalDirectory\nOnlineLibraryManagementSystem\nPeerTutoringNetwork\nRecipeHub\nTravelDiary\nDigitalArtworkGallery\nFitnessChallenges\nMovieRecommendationSystem\nOnlineCulturalFestivals\nPetCareCommunity\nTaskManager\n\nWebsites\nDailyHealthTips\nElderCareResources\nFitnessTracker\nHealthConsultationPlatform\nNoteTakingApp\nOnlineTherapeuticJournaling\nPersonalBlog\nRemoteInternshipMarketplace\nVirtualBookPublishing\nDigitalStorytellingPlatform\nGardeningForBeginners\nMusicCollaborator\nOnlineVintageMarket\nPortfolioSite\nVolunteerMatch\n\nDailyJournalApp\nEventPlanner\nFreelancerMarketplace\nMotivationalQuotesApp\nNutritionInformationHub\nOnlineThriftStore\nPersonalFinanceBlog\nRemoteJobBoard\nVirtualWellnessRetreats\nExpenseTracker\nGourmetFoodSubscription\nOnlineCulturalExchange\nParentingAdviceForum\nSkillShare\nOnlineShoppingCenter\n\nTable 5: Overview of Games in rSDE-Bench.\nBalls\nMario\n\nGames\nTank\nRacing\nBomberman Sokoban\n\nGhostly\nBrick\n\nSoftware description\nTask: Develop a simple Sokoban game. You must design a GUI.\nRequirements:\n1. The game board should be divided into grid squares.\n2. Players will control the game using the arrow keys on the keyboard.\n3. As the game starts, a log file named 'game.log' should be created to record the game's progress. The content of the\ngame.log file should be appended with a new entry after each player action.The content of the game.log file should be\ncleared (if any) at the start of each game session.\nEach log entry should follow this format:\n{\n\"timestamp\": timestamp,\n\"EVENT_TYPE\": \"MOVE_RIGHT\" | \"MOVE_LEFT\" | \"MOVE_UP\" | \"MOVE_DOWN\" | \"INVALID_MOVE\",\n\"player_position\": [x, y],\n\"box_positions\": [[x1, y1], [x2, y2], ...],\n\"game_status\": \"ONGOING\" | \"COMPLETE\"\n}\n4. The victory conditions for the game is: All boxes are pushed onto their corresponding coordinate point.\n5. The initial positions of each element are required as follows:\nplayer_position = [1, 1]\nbox_positions = [[3, 3], [4, 2]]\ngoal_positions = [[5, 5], [6, 3]]\n([3, 3] is the initial position of the first box whose target position is [5, 5]. [4, 2] is the initial position of\nthe second box whose target position is [6, 3].)\nwall_positions = [[0, 4], [1, 4], [2, 4],[3, 4],[4, 4]]\n(the first numnber in each pair is the x-coordinate and the second number is the y-coordinate)\n\nEvaluation functions\ncheck_Excutablity check_log check_move_right check_move_left\ncheck_move_wall check_seqbox check_end check_wrong_end\n\ncheck_move_box\n\nFigure 10: Test cases of Game in rSDE-Bench.\n\n8\n\nA LGORITHM\n\nIn this section, we present the algorithm of EvoMAC in Alg. 1. For more details, please refer to\nSection 3.\n15\n\n\fPreprint.\n\nSoftware description\n# Requirement Document for DailyHealthTips Web Application\n## 1. Objective\nDevelop a web application named 'DailyHealthTips' that provides users with daily health tips, allowing them to receive\nadvice and information about maintaining a healthy lifestyle, using Python as the development language. Note that the\nwebsite should start from the login page.\n## 2. Language\nThe required development language for the DailyHealthTips web application is Python.\n## 3. Page Design\n### Page 1: Login Page\n- **Page Title**: User Login\n- **Overview**: This page allows users to log in to their accounts.\n- **Elements**:\n- **Username Field**:\n- **ID**: `username_field`\n- **Password Field**:\n- **ID**: `password_field`\n- **Login Button**:\n- **ID**: `login_button`\n…………\n\nEvaluation functions\ntest_login_page_elements test_login_page_functionality test_daily_tips_page_elements\ntest_daily_tips_page_functionality test_tips_archive_page_elements test_tips_archive_page_functionality\n\nFigure 11: Test cases of Website in rSDE-Bench.\nAlgorithm 1 Self-Evolving Paradigm\nRequire: X\n▷ Task input\n(0)\n▷ Initialized MAC network: agent prompts and pipeline\nRequire: Ag\nRequire: At\n▷ Designed MAC network to generate target proxy\nRequire: G\n▷ Agent-based gradient function\nRequire: U\n▷ Agent-based update function\nRequire: E\n▷ Environment tool to generate loss\n1: Define K as the number of self-evolving iterations, Φ as MACN generation process\n2: # Target Proxy\n3: T = Φ(X, At )\n4: # Self-Evolving Procedure\n5: for k = 0, 1, . . . , K − 1 do\n6:\n# Forward Pass\n(k)\n7:\nG(k) = Φ(X, Ag )\n8:\n# Loss Computation\n9:\nL(k) = ⟨G(k) , T⟩E\n▷ Use environment feedback as textual loss\n10:\n# Textual Backpropagation\n(k)\n11:\n∇L(k) = G(L(k) , Ag )\n▷ Summarize textual gradient\n(k+1)\n(k)\n12:\nAg\n= U(Ag , ∇L(k) )\n▷ Update agent prompts and pipeline\n13: end for\n(K)\n14: return Ag , G(K)\n\n9\n\nP ROMPTS\n\nIn this section, we present the agents’ prompts in EvoMAC, including coding organizer (Tab. 6),\ncoding agent (Tab. 7), testing organizer (Tab. 8), testing agent (Tab. 9), gradient agent (Tab. 10), and\nupdate agent (Tab. 11).\n\n10\n\nS OFTWARE P RESENTATION\n\nIn this section, we show some games and websites written by EvoMAC. Fig. 12 and Fig. 13 present\nthe games and websites respectively. We see that: i) EvoMAC outputs games with well-written GUI\n16\n\n\fPreprint.\n\nTable 6: Coding Organizer\n\nAccording to the new user’s task and our software designs listed below:\nTask: \"{task}\".\nTask description: \"{description}\".\nModality: \"{modality}\".\nProgramming Language: \"{language}\"\nRequirements analysis: \"{requirements}\"\nIdeas:\"{ideas}\"\nCoding plan: \"{codes}\"\nYour goal is to organize a coding team to complete the software development task.\nThere are two default tasks:\n1) log the user’s actions and events in a game.log file according to the task requirements in the write\nformat! Be careful and make sure to maintain the game.log file right! The log should happened after\nthe action is taken, record the most recent state.\n2) create a user interface (GUI) for the game using the programming language and the requirements\nanalysis. The GUI should be beautiful and user-friendly.\nBesides these tasks, you should pay attention to the unachieved requirements and think step by step to\nformulate the requirements into concrete tasks.\nYou should follow the following format: C̈OMPOSITIONïs the composition of tasks, and Ẅorkflowïs\nthe workflow of the programmers. Each task is assigned to a programmer, and the workflow shows the\ndependencies between tasks.\n### COMPOSITION\n“‘\nTask 1: Task 1 description\nTask 2: Task 2 description\n“‘\n### WORKFLOW\n“‘\nTask 1: []\nTask 2: [Task 1]\n“‘\nPlease note that the decomposition should be both effective and efficient.\n1) Each decomposed task should include the related the functions. The task description should be clear\nand concise.\n2) The composition should be kept as small as possible! (LESS THAN \"{num_agents}\"). If there are\nmore than 5 tasks, consider merging the tasks and focus on the most essential features.\n3) The decomposed tasks should fully cover the task definitions.\n4) The workflow should not contain circles!\n\nand game rules. It can handle different kinds of GUI and game rule requirements from diverse games.\nii) EvoMAC outputs websites with beautified, user-friendly web pages and correct transition logic. It\ncan handle the requirements of different websites.\n\n17\n\n\fPreprint.\n\nTable 7: Coding Agent\n\nAccording to the new user’s task and our software designs listed below:\nTask: \"{task}\".\nModality: \"{modality}\".\nProgramming Language: \"{language}\"\nSub-Task description: \"{subtask}\"\nCodes:\n\"{codes}\"\nUnimplemented File:\n\"{unimplemented_file}\"\nYour first think step by step first reason yourself about the files and functions related to the sub-task.\nThen you should output the COMPLETE code content in each file. Each file must strictly follow a\nmarkdown code block format, where the following tokens must be replaced such that \"FILENAME\"\nis the lowercase file name including the file extension, \"LANGUAGE\" in the programming language,\n\"DOCSTRING\" is a string literal specified in source code that is used to document a specific segment\nof code, and \"CODE\" is the original code. Format:\nFILENAME\n“‘LANGUAGE\n”’\nDOCSTRING\n”’\nCODE\n“‘\nImplementation Requirements:\n1. As the assistant_role, to satisfy the complete function of our developed software, you have to\nimplement all functions which are related to the subtask.\n2. If the function is implemented, recheck the logic and log to ensure the targeted feature is fully\nachieved\n3. Important: that both the logic and log should be fully functional! No placeholder (such as ’pass’ in\nPython), strictly following the required format. You must strictly following the required format. You\nmust strictly following the required format.\n4. Ensure the functions are consistent among different files, and correctely imported.\nAdditional Note: additional_note\n\n18\n\n\fPreprint.\n\nTable 8: Testing Organizer\n\nAccording to the software requirements listed below:\nTask: \"{task}\".\nModality: \"{modality}\".\nProgramming Language: \"{language}\"\nYour goal is to organize a testing team to complete the software development task.\nThere are four default tasks:\n1) carefully test the logging mechanism according to the task requirements! The log should happened\nimmediately after the action is taken, record the most recent state. Remember the logging order is\nvery important, record basic operation first then record the subsequent events. Ensure the data format,\nkeys and values are accurate and right! Pay attention to the nested data type and carefully check each\nelement.\n2) test the logging mechanism for the special triggered conditions.\n3) test the value initialziation required by the task are correctly achieved, pay attention to the corrdinates.\n4) test the function inputs and the global variable are imported in each functions, ensure the input values\nand global variable used in the function are valid and involved when the function is called.\n5) test each event in the task is implemented and that the logic triggered matches the conditions in the\ntask description.\nFollow the format: \"COMPOSITION\" is the composition of tasks, and \"Workflow\" is the workflow of\nthe programmers.\n### COMPOSITION\n“‘\nTask 1: Task 1 description\nTask 2: Task 2 description\n“‘\n### WORKFLOW\n“‘\nTask 1: []\nTask 2: [Task 1]\n“‘\n\n19\n\n\fPreprint.\n\nTable 9: Testing Agent\n\nOur software requirements and developed source codes are listed below:\nProgramming Language: \"{language}\"\nSource Codes:\n\"{codes}\"\nTesting Task description: \"{subtask}\"\nAccording to Testing Task description, please write test cases to locate the bugs, note that logging is\nimportant, ensure the content and format is right.\nYou should first locate the functions that need to be tested and write the test cases for them according to\nthe testing task description.\nThe output must strictly follow a markdown code block format, where the following tokens must\nbe replaced such that \"FILENAME\" is \"test_file_name\", \"LANGUAGE\" in the programming language,\"REQUIREMENTS\" is the targeted requirement of the test case, and \"CODE\" is the test code\nthat is used to test the specific requirement of the file. Format:\nFILENAME\n“‘LANGUAGE\n”’\nREQUIREMENTS\n”’\nCODE\n“‘\nYou will start with the \"test_file_name\" and finish the code follows in the strictly defined format.\nPlease note that:\n1) The code should be fully functional. Ensure to implement all functions. No placeholders (such as\n’pass’ in Python).\n2) You should not write anything about log testing unless testing task description clearly state that the\nlogs need to be tested\n3) You should write the test file with ’unittest’ python library.\n4) You should not modify the source code, only write the test code. Very Important!\n\n20\n\n\fPreprint.\n\nTable 10: Gradient Agent\n\nOur developed source codes and corresponding test reports are listed below:\nProgramming Language: \"{language}\"\nUser requirement:\n\"{task}\"\nSource Codes:\n\"{codes}\"\nThe execution outcome of our source codes:\n\"{test_reports}\"\nWe also have write test case to test our source codes, our test codes are listed below:\n\"{test_codes}\"\nAnd the execution outcome of our test codes is:\n\"{testcase_reports}\"\nAccording to these imformation, please analyze the source code, test code and execution reports. Make\nsure your analysis aligns with the source code and user requirements.\nFirst, determine whether the error is caused by incorrect test code; if so, respond \"Wrong test code.\"\nThe wrong type of test code includes not matching the user requirement, e.g. wrong value of the test\nreference answer conflict with user requirement desciption or improper use of source code. Please be\ncareful and not make wrong judgment about the source code.\nSecond, if there exist bugs in the source code, give a detailed analysis of the problem. Your answer\nMUST follow the format below:\nfile name:file_1.py\nfunction name: function_1, function_2\ndetailed analysis of the problem: your analysis\nfile name:file_2.py\nfunction name: function_3, function_4\ndetailed analysis of the problem: your analysis\nYour answer should also follow the requirements below:\n1) The answer should only include the analysis of the wrong source code. Please not include analysis of\nthe testcase error here. If all the reports show that there is no bugs in source codes and test codes, you\nshould just only reply: No error in codes.\n2) You can answer more than one function name, but you can only answer one file name each time. If\nyou want to answer two file names, you should split it and answer with the format respectively.(Answer\nthe file_1.py and corresponding information with the format, and then answer the file_2.py and corresponding information with the format)\n3) You may include one or more function names in each file, but you should not include the same\nfunction name in different files.\n4) You should not answer anything about test file(e.g. file name: test_requirement_0.py) in your answer.\nVERY IMPORTANT!\n\n21\n\n\fPreprint.\n\nTable 11: Updating Agent\n\nYou are now an organization fine-tuner for the software development process.\nYour task is to update the coding agent teams to ensure that the software requirements can be achieved.\nThe overall requirements, current coding agent teams, and the issues in current implementation of the\nsoftware are listed below:\nTask and user requirements: \"{task}\".\nRequirements: \"{requirements}\"\nCoding team composition: \"{composition}\".\nCoding team workflow: : \"{workflow}\".\nSource Codes: \"{codes}\"\nExecution Results: \"test_reports\" (Note: These results only indicate whether the code has runtime errors\nand do not reflect functionality correctness.)\nCurrent Issues: \"{issues}\".\nAs the assistant_role, you should give out a detailed plan to update the coding agent teams to ensure\nthat the software requirements can be achieved.\nYou should first think step by step, reasoning about Requirements, Source Codes, Execution Results,\nand Current Issues to decide whether the source code has fully accomplished the coding requirements.\nIf here has any conflict, please refer to the Task and user requirements in checking the source code.\nThen according to the requirement assessment, you should update the coding agent teams to ensure that\nthe software requirements can be achieved. You can take following actions:\n1) Modify the existing coding agent prompts to focus on fixing runtime errors first, then work on\ncompleting and perfecting the tasks. Each task should clearly define the issues the agent is expected to\nsolve.\n2) Delete coding agents from the WORKFLOW whose requirements have been achieved.\n3) Add new coding agent teams in the composition and workflow to ensure that the unimplemented\nrequirements can be achieved.\nThe requirement assessment should follow the \"REQUIREMENTS PROGRESS\" format: \"achieved\"\nrepresents whether the requirement has been achieved, and \"double-checked\" represents whether the\nrequirement has been double-checked. The detailed progress should be included in the answer.\nWhile the updated coding agent team should be in the following format: \"COMPOSITION\" is the\ncomposition of programmers’ tasks, and \"Workflow\" is the workflow of the programmers. Each task is\nassigned to a programmer, and the workflow shows the dependencies between programmers’ tasks.\n### REQUIREMENTS PROGRESS\nrequirement: description of the requirement\nachieved: True/False\ndouble-checked: True/False\ndetailed progress: your analysis\n### COMPOSITION\n“‘\nProgrammer 1: Task 1 description - includes specific issues to resolve, necessary code modifications,\nand expected improvements\nProgrammer 2: Task 2 description - includes specific issues to resolve, necessary code modifications,\nand expected improvements\n“‘\n### WORKFLOW\n“‘\nProgrammer 1: []\nProgrammer 2: [Programmer 1]\n“‘\nPlease note that the coding team should be both effective and efficient.\n1) Prioritize fixing runtime errors before addressing requirement issues.\n2) Remove the agent from the origin Coding team workflow if the task has been fully completed.\n3) The overall tasks should fully cover all uncomplished requirement and current issues. Make sure the\nTask description as detail as possible. And NEVER include task that modifiy the code to satistify the\ntesting.\n4) The composition are not limited to 2 agents. But if there are more than 10 tasks, consider merging\nthe tasks and focus on the most essential features.\n5) The workflow should not contain circles!\n\n22\n\n\fPreprint.\n\n(a) Balls\n\n(b) Bomberman\n\n(c) Mario\n\n(d) Tank\n\n(e) Brick\n\n(f) Ghostly\n\n23\n\n\fPreprint.\n\n(g) Racing\n\n(h) Sokoban\n\nFigure 12: Games generated by EvoMAC.\n\n(a) CharitableGivingPlatform\n\n(b) GardeningForBeginners\n\n(c) PersonalBlog\n\n24\n\n\fPreprint.\n\n(d) GourmetFoodSubscription\n\n(e) OnlineTherapeuticJournaling\n\n(f) MusicFestivalDirectory\n\nFigure 13: Websites generated by EvoMAC.\n\n25\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"