"<!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>Harness Engineering:\nAnatomy, Architecture, and Evolution of Coding\nAgents\nA Source-Code Study of Eleven Systems\nPaul Barbaste∗1,2 , Tristan Darrigol2 , Germain Vu2 , and Tom Wiltberger2\n1\n\narXiv:2609.00006v1 [cs.SE] 15 Jul 2026\n\n2\n\nInclusive Brains\nWavestone AI Lab\nJuly 2026\n\nAbstract\nAn agent is a model plus a harness: the runtime that couples an LLM to the world through a\nloop, tools, context management, safety controls, orchestration, and extension surfaces. Harness\nengineering, named as a discipline in early 2026, is the design and evolution of that runtime.\nThis paper gives the young discipline its most comprehensive empirical foundation to date. It\nis a source-code anatomy of eleven production coding harnesses: Claude Code (Anthropic),\nCodex CLI (OpenAI), Gemini CLI (Google), Mistral Vibe (Mistral), OpenHands, Aider,\nMini-SWE-Agent, Hermes (Nous Research), Pi, OpenCode, and OpenClaw, plus Omnigent (Databricks), the first meta-harness we are aware of, analyzed as a contrast point. The\npaper defines what a harness is, maps its seven canonical subsystems with the minimal and maximal implementation of each, and dissects all eleven systems along those subsystems. It does not\nbenchmark or rank; it describes and compares how the systems are built.\nThe audit yields 13 cross-cutting observations and a catalog of 29 recurring design patterns. Two absences survive a threefold corpus expansion: across roughly four million lines of\nPython, TypeScript, and Rust, no agent runtime imports a general-purpose agentic framework\n(LangChain, LangGraph, AutoGen, or a dozen others; Gemini CLI uses neither of Google’s\nown), and none retrieves code with vector embeddings; the field runs on hand-rolled async loops\nand deterministic retrieval (ripgrep, tree-sitter, glob, auto-discovered Markdown context files).\nThe extensibility standards resolved: SKILL.md skills lead MCP in adoption (9/11 vs. 8/11),\nwith registries, trust tiers, and the corpus’s first agent-authored skills; ACP ships in six systems\nand acquired a third role, harness hosting, with OpenHands running Claude Code, Codex, or\nGemini CLI as interchangeable backends.\nBecause the original eight systems were re-pinned rather than replaced, the study also contains a controlled longitudinal sample: the same harnesses, source-diffed across one quarter.\nThe diff shows convergence becoming imitation (Codex adopts Claude Code’s hook vocabulary\nverbatim and ships an importer for its sessions and settings; OpenHands reads Claude Code’s\nplugin format), while behavioral policy migrates from prompt prose to configuration, and three\nof the April edition’s observations required substantive revision in place.\nThese threads converge on the paper’s thesis: in the first half of 2026 the coding harness\ncompleted a turn from tool to platform. Harnesses became importable SDKs while framework\nvendors shipped harnesses; marketplaces, switching-cost tooling, and enterprise governance layers\nappeared; the agent became addressable as a model behind an OpenAI-compatible endpoint; and\na meta-harness now orchestrates eleven vendor harnesses (half this corpus among them) behind\none API, re-implementing the expensive parts and arbitraging the proprietary ones. The paper\ncloses with 18 design recommendations pinned to the observed code, and a 90-line minimumviable-harness scaffold that implements ten of them.\n∗\n\nLead and corresponding author.\n\n1\n\n\fKeywords: harness engineering, coding agents, LLM agents, agent architecture, platformization,\ntool use, multi-agent systems, MCP, agent skills\n\n1\n\nIntroduction\n\nAn agent is a model plus a harness. The model supplies the intelligence; the harness turns that\nintelligence into work through a loop, tools, context management, safety controls, orchestration, and\nextension surfaces. In the span of five months, harness engineering went from a phrase coined in\na vendor blog post to a discipline with practitioner guides, formal definitions, automated-evolution\nsystems, and its own arXiv genealogy (Section 2.1). What the discipline does not yet have is a\nreference: an account, grounded in production source code, of what a harness actually is, what it\nis made of, and how the field’s leading implementations differ. This paper is that reference, and it\narrives with a thesis: the harness has stopped being a tool and become a platform.\nThe existing literature reaches neither goal. Benchmark surveys report scores (typically SWEBench [1]) without touching architecture; conceptual taxonomies [5, 6] describe patterns without\nimplementations; the one concurrent source-level taxonomy [34] excludes the provider-native systems that define the field’s frontier. None reaches the engineering decisions that determine whether\na harness is reliable, extensible, or deployable: how the loop is structured, how tools are defined\nand sandboxed, how safety is enforced, how context is rationed. Nor does any of it ask where the\ncategory itself is heading.\nWe study eleven systems at source level, pinned to July 2026 releases. Four are the flagship\nproducts of the major commercial LLM providers: Claude Code (Anthropic, TypeScript, via a\ncirculated source snapshot), Codex CLI (OpenAI, Rust), Gemini CLI (Google, TypeScript),\nand Mistral Vibe (Mistral AI, Python). Seven are open source, spanning the field’s full spread:\nOpenHands (event-sourced SDK, since mid-2026 also a host for rival harnesses), Aider (thirteen\npolymorphic edit formats), Mini-SWE-Agent (the 100-line research floor), Hermes (the fastestgrowing harness on GitHub, with a self-improving skill loop), Pi (the minimal-core countertrend),\nOpenCode (the most-starred dedicated coding agent, with the corpus’s most thoroughgoing client/server architecture), and OpenClaw (a multi-channel gateway, our non-SWE contrast point). A\ntwelfth system, Omnigent (Databricks), is the first meta-harness, an orchestration layer over the\nothers, and is analyzed as a second contrast point. Because eight of these systems were already\naudited in this study’s April 2026 edition, their retained snapshots yield a controlled longitudinal\nsample: the same harnesses, source-diffed across one quarter.\nThe paper makes seven contributions. The first is the discipline’s reference anatomy (Section 2):\na definition of the harness with its genealogy and boundary cases, and a component map of the\nseven canonical subsystems, each with its minimal and maximal observed implementation, that\norganizes the rest of the paper. On that map the paper builds a systematic source-level comparison\nof eleven harnesses, the first corpus to cover all four provider-native systems, the two most-adopted\nopen-source harnesses, and each system’s signature capability (Table 4). The audit yields 13 crosscutting observations and a catalog of 29 recurring patterns, several documented here for the first\ntime: agent-maintained memory pipelines, verify-on-stop guards, lineage compaction, session-tree\nversion control, log-as-queue loops, syntax-aware command permissioning, cache-dialect fanout, and\nharness mimicry.\nBecause the original eight systems were re-pinned rather than replaced, the study also carries a\nlongitudinal analysis (Section 14.5): ninety days of harness evolution measured in source, in which\nconvergence becomes imitation (hook vocabularies copied verbatim, plugin formats adopted, session\nimporters shipped), patterns diffuse down the corpus, and behavioral policy migrates from prompt\nprose to configuration. Two empirical absences are established at eleven-system scale and survive a\nthreefold corpus expansion: no agent runtime uses a general-purpose agentic framework, and none\nuses embedding-based retrieval over code; their historical resolution lies in the harness–framework\nmerger. That merger opens onto the platform-turn thesis (Section 14), documented in named\nartifacts: harness SDKs and framework-built harnesses converging on one shape, plugin and skill\n\n2\n\n\fmarketplaces with supply-chain security, cross-vendor session importers, mobile-device-management\n(MDM) governance, the agent-as-a-model gateway, and a source-level analysis of the first metaharness. The analysis condenses, finally, into a practitioner’s guide of 18 design recommendations,\neach anchored in a cited observation and a system that implements it, plus a 90-line minimumviable-harness scaffold that realizes ten of them directly and is compatible with the rest.\nThe rest of the paper proceeds as follows. Section 2 defines the harness and its seven subsystems. Section 3 surveys related work and the 2026 landscape. Section 4 sets out the methodology;\nSection 5 gives the system overview. Sections 6–12 dissect the seven subsystems across the corpus. Section 13 ties the cross-cutting observations together. Section 14 develops the platform-turn\nthesis, including the meta-harness and the longitudinal analysis. Section 15 discusses implications\nand limits. Section 16 distills the analysis into 18 design recommendations and the 90-line scaffold.\nSection 17 closes.\n\n2\n\nWhat Is a Harness?\n\nBefore comparing implementations, we fix the object of study. This section defines the harness,\ntraces the short history of the term, separates it from the concepts it is routinely confused with,\nand lays out the seven subsystems that every harness in our corpus implements in some form. A\nreader new to the field should leave this section knowing exactly what a harness is and what it is\nmade of; the rest of the paper substantiates each cell of the map against production source code.\n\n2.1\n\nDefinition and Genealogy\nAn agent is a model plus a harness. The harness is everything except the model: the\nruntime that couples an LLM to the world—its loop, its tools, its context, its safety controls, its orchestration, and its extension surfaces. Harness engineering is the discipline\nof designing and evolving that runtime.\n\nThe one-line algebra Agent = Model + Harness was popularized by Trivedy’s LangChain\nengineering series in early 2026 [28], and the term harness engineering entered circulation in February 2026: first used in passing by Mitchell Hashimoto, then defined and elaborated by Trivedy in the\ncontext of LangChain’s Deep Agents work [29].1 The discipline acquired its practitioner literature\nwithin weeks: Böckeler’s guide to harness engineering for coding-agent users [30] (April), O’Reilly\nand independent syntheses (June), and community-curated pattern catalogs. An academic wave\nfollowed the same arc: Lin et al.’s Agentic Harness Engineering [85] automates harness evolution;\nHARBOR [35] optimizes harnesses against benchmarks; Wang et al. recast code itself as the harness\nsubstrate [36]; Rombaut’s source-code taxonomy of thirteen open-source scaffolds [34] is the closest\nmethodological relative of the present study (Section 3.3 maps his twelve dimensions onto our seven\nsubsystems); and Macedo [33] gives the concept its first operational definition, deriving necessary\nand sufficient conditions for what counts as a harness. We adopt Macedo’s definitional core—the\nlayer that wraps a language model and turns it into an agent able to act on a repository—and extend\nit with the subsystem decomposition of Section 2.3, which the definitional literature gestures at but\nhas not yet grounded in production source.\n\n2.2\n\nWhat a Harness Is Not\n\nUsage of the term is loose, and four boundary cases account for most of the confusion [33].\n1\n\nThere is a pleasing irony in the provenance: the term was named and defined from within LangChain, the\nframework vendor whose libraries are absent from every harness runtime in this corpus (Observation 9). LangChain’s\nresponse to that absence was not to lobby for adoption but to ship a harness of its own—Deep Agents [37], built\non LangGraph—which independently converges on the very conventions this corpus documents: SKILL.md skills with\nprogressive disclosure, AGENTS.md memory, sub-agent spawning, and a todo-planning tool. Section 14.2 returns to this\ntwo-way traffic between frameworks and harnesses.\n\n3\n\n\f• A harness is not a scaffold—quite. The two words are near-synonyms in practice, and this\npaper inherits “scaffold” from its own earlier vocabulary. Where a distinction is useful, scaffold\nnames the structural code (the loop, the registries) and harness names the shipped runtime\nartifact that embeds it: Mini-SWE-Agent’s scaffold is 100 lines of Python; Claude Code’s\nharness is a product with a terminal UI, a permission system, and a plugin ecosystem.\n• A harness is not an agentic framework. A framework (LangChain, AutoGen, CrewAI)\nis a library the developer imports to build an agent; a harness is a runtime the developer\nworks inside of. The distinction was clean in 2025 and is dissolving in 2026—from both\ndirections—which is the subject of Section 14.2.\n• A harness is not an evaluation harness. The SWE-bench “harness” wraps an agent to\nrun it against tasks; an agent harness wraps a model to make it act. Same word, opposite\ndirection of wrapping.\n• A harness is not an orchestrator. An orchestrator (or meta-harness, Section 14.4) coordinates one or more harnesses from above and implements no editing loop of its own. Omnigent\norchestrates eleven vendor harnesses—five of them systems in this paper—and implements no\nediting loop of its own; it is evidence about harnesses, not one of them.\n\n2.3\n\nThe Seven Subsystems\n\nEvery system in our corpus, from the 100-line research baseline to the million-line production\nCLI, must take a position on the same seven subsystems (Figure 1)—even when that position is\ndeliberate absence. They are the analysis dimensions D1–D7 of Section 4, but they are also, we\nargue, the canonical anatomy of the artifact itself: the minimal implementations show how small\neach subsystem can shrink—in one case (orchestration) to a deliberate absence—and the maximal\nimplementations show where a decade of engineering headroom lies in each. Table 1 maps the\nanatomy: what each subsystem does, its minimal and maximal observed forms, and where this\npaper dissects it.\nHarness\n\nLLM\nIntegration\n\nSafety &amp;\nPermissions\n\nTUI / IDE / SDK / server\n\nAgent\nLoop\n\nTool &amp;\nAction System\n\nOrchestration\n\nMemory &amp;\nContext\n\nhooks / skills / plugins / MCP\n\nInterface Layer\n\nExtensibility\n\nsub-agents / protocols\n\nFigure 1: The canonical anatomy of a coding-agent harness: seven subsystems around an agent\nloop, plus the interface layer through which humans and programs drive it. All eleven systems in\nthe corpus implement these subsystems with varying complexity; Table 1 gives the observed range\nper subsystem.\n\n4\n\n\fTable 1: The component map of a coding-agent harness: the seven subsystems, with the minimal\nand maximal implementations observed in the corpus.\nSubsystem\n\nRole\n\nMinimal form\n\nMaximal form\n\n§\n\nAgent loop\n\nAlternates inference\nwith action execution;\nowns stop conditions\nand failure recovery\n\nMini-SWE-Agent:\na linear while over\none bash tool\n\nOpenHands: event-sourced\nconversation over a\npersistent event log, with\nparallel action batches\n\n6\n\nLLM\nintegration\n\nSpeaks provider\nprotocols; assembles\nthe prompt; manages\ncaching, thinking,\nrouting\n\nMini-SWE-Agent:\none LiteLLM call,\none Jinja template\n\nHermes: five owned\ntransports, 29 provider\nprofiles; Codex:\nserver-delivered model\ncatalog\n\n7\n\nTools &amp; actions\n\nDefines and executes\nwhat the agent can do,\nfile editing above all\n\nMini-SWE-Agent:\nbash only\n\nClaude Code: 43 typed\ntools with deferred loading;\nCodex: tool calls as\nV8-executed code\n\n8\n\nMemory &amp;\ncontext\n\nRations the context\nwindow; persists\nknowledge across turns\nand sessions\n\nMini-SWE-Agent:\nunbounded linear\nhistory\n\nCodex: agent-maintained\ncross-session memory\npipeline; Gemini CLI:\ngraph-based context\ndistillation\n\n9\n\nSafety &amp;\npermissions\n\nDecides what runs,\nwhat asks, what is\nforbidden; isolates\nexecution\n\nMini-SWE-Agent:\ncost and step limits\n\nCodex: policy rules + LLM\napproval reviewer +\nthree-platform OS sandbox\n\n10\n\nOrchestration\n\nSpawns and\ncoordinates sub-agents;\nconnects to other\nagents\n\nAider: none\n(single-agent by\ndesign)\n\nClaude Code: recursive\ncomposition; Omnigent:\ncross-vendor coordination\n(meta-layer)\n\n11\n\nExtensibility\n\nLets users and\necosystems add\ncapability: config,\nhooks, skills, plugins,\nMCP\n\nMini-SWE-Agent:\nstructural typing\n(Python protocols)\n\nPi:\neverything-is-an-extension\nruntime; Codex:\nmarketplace-distributed\nplugins\n\n12\n\nTwo cross-cutting surfaces sit alongside the seven: the interface layer (TUI, CLI flags, IDE\nprotocol, HTTP server, SDK) through which humans and programs drive the harness, and the\nsession substrate (transcripts, persistence, resume/fork) that several subsystems share. Both recur\nthroughout the corpus analysis, and the interface layer in particular carries the platformization\nargument of Section 14.\n\n2.4\n\nThe Minimal Harness\n\nThe decomposition above says what a harness is made of; it does not say how much of each part\nis needed. The corpus contains an existence proof at the floor: Mini-SWE-Agent implements all\nseven subsystems in roughly 100 lines—a while loop, one template, one tool, a message list, two\nlimits, no orchestration, and structural typing as its entire extension story—and reports results on\nSWE-bench Verified in the same range as systems three orders of magnitude larger.2 Section 16\ncloses the loop with a 90-line minimum-viable harness that a practitioner can copy and specialize.\nWhat separates the floor from the production systems is not task completion but everything else this\npaper documents: safety, recovery, cost management, extensibility, and—increasingly—the platform\n2\n\nSelf-reported figures, different models and dates; see the methodology caveats in Section 15. The point survives\nthe caveats: the floor is low.\n\n5\n\n\fsurfaces of Section 14.\n\n3\n\nBackground and Related Work\n\n3.1\n\nLLM-Powered Code Agents\n\nThe concept of using LLMs as autonomous coding agents gained traction with SWE-Bench [1], a\nbenchmark of real-world GitHub issues requiring end-to-end resolution. SWE-Agent [2] introduced\nthe Agent-Computer Interface (ACI), providing LLMs with specialized file viewing and editing tools.\nThe CodeAct paradigm [3] proposed unifying agent actions into executable code, arguing that this\nsubsumes discrete tool calling. ReAct [4] established the reasoning-action loop that underpins most\ncurrent agent architectures.\nA second wave of SWE-specific agents has appeared since. AutoCodeRover [44] replaces textbased search with AST-aware retrieval and spectrum-based fault localization. MASAI [48] decomposes the issue-resolution pipeline into modular sub-agents and reports cost-aware results on\nSWE-Bench Lite. MAGIS [47] and CodeR [46] both formalize role-based multi-agent coordination for issue resolution (Manager/Custodian/Developer/QA in MAGIS; explicit task graphs in\nCodeR). Lingma SWE-GPT [49] trains a base model jointly with the SE process loop, an instance\nof the model–agent co-design we examine in Section 7. SWE-Search [52] layers Monte Carlo tree\nsearch over agent trajectories (continuing the line of search-based reasoning developed in Tree of\nThoughts [70] and LATS [73], with Plan-and-Solve [71] as the simpler precursor), and DiversityEmpowers-Intelligence [53] ensembles heterogeneous agents under a meta-policy. At the other end of\nthe design spectrum, Agentless [51] reports that a fixed localize/repair/validate pipeline is competitive with agent loops on SWE-Bench Lite, a useful counterweight when discussing whether agentic\ncomplexity is necessary. The OpenHands platform paper [45] provides peer-reviewed grounding\nfor the system whose source we audit in Section 6. Concurrent with this study, Lin et al. [85]\npropose Agentic Harness Engineering (AHE), which automatically evolves agent harnesses (tools,\nmiddleware, memory, sub-agent configuration) using observability-driven feedback. Starting from\na bash-only seed comparable to Mini-SWE-Agent, their system reaches 71.9% on SWE-Bench\nVerified, and the evolved harness transfers across model families. Their component-level ablation\nprovides quantitative evidence for the architectural emphases we arrive at independently through\nsource-code analysis: tools, middleware, and long-term memory carry the improvement, while the\nsystem prompt alone does not.\n\n3.2\n\nAgent Architecture Surveys\n\nPrior work on agent architectures [5, 6, 66] has identified common patterns including tool use, memory management, and planning. The multi-agent dimension is covered in detail by Guo et al. [67];\nthe SWE-specific subset is mapped by Liu et al. [68]; AgentBench [69] provides the standard crossdomain evaluation harness. These surveys operate at a conceptual level, describing what components\nexist rather than how they are implemented. The present work complements them by grounding\narchitectural analysis in concrete implementations, showing that the “same” pattern (e.g., tool use)\nadmits considerable variation in practice.\n\n3.3\n\nConcurrent Source-Code Taxonomies\n\nThe closest methodological relative of this study is Rombaut’s Inside the Scaffold [34], developed\nconcurrently with our April edition: a source-code taxonomy of thirteen open-source coding-agent\nscaffolds at pinned commits, organized as twelve dimensions in three layers (control architecture;\ntool/environment interface; resource management), with the useful finding that most agents compose loop primitives (ReAct, generate-test-repair, plan-execute, retry, tree search) rather than implementing a single one. The two studies are complementary rather than redundant. Rombaut’s\ncorpus is open-source-only, skews toward benchmark-oriented pipelines (AutoCodeRover, Agentless,\n\n6\n\n\fMoatless Tools, DARS, Prometheus, SWE-agent), and explicitly excludes Claude Code for lack\nof published source. Ours covers all four provider-native harnesses at source level (including the\ncirculated Claude Code snapshot), the gateway and meta-harness contrast points, and the newest\nmass-adoption systems (Hermes, Pi), and it extends the analysis to dimensions his taxonomy does\nnot reach: permission and safety architecture beyond execution isolation, multi-agent orchestration, extensibility surfaces (hooks, skills, plugins, MCP), prompt content, inter-agent protocols,\nand the longitudinal and platform analyses of Sections 14.5 and 14. His twelve dimensions map\nonto our seven subsystems as follows: control-loop strategies, loop driver, and control-flow implementation refine our D1; tool-set design, edit/patch format, and tool-discovery strategy refine D3;\ncontext-retrieval paradigm, state management, context compaction, and persistent memory refine\nD4; execution isolation is the isolation half of our D5; multi-model routing is one cell of our D2.\nWhere his vocabulary is sharper than ours (loop-primitive composition), we adopt it.\n\n3.4\n\nMulti-Agent Systems for Software Engineering\n\nRecent work has explored multi-agent collaboration for software engineering. MetaGPT [7] assigns\nspecialized roles (product manager, architect, engineer) to different agents. ChatDev [50], developed\nindependently, organizes a role-playing development pipeline around chat-chain communication.\nAutoGen [8] provides a framework for multi-agent conversations. Magentic-One [9] implements an\norchestrator pattern with specialized sub-agents. For coding specifically, MAGIS [47] and CodeR [46]\npair role decomposition with task graphs, and Chain-of-Agents [72] sequences sub-agents over long\ninputs. Several systems in the present study incorporate multi-agent patterns, enabling direct\ncomparison of these approaches within a single domain.\n\n3.5\n\nTool Use in Language Models\n\nToolformer [10] demonstrated that LLMs can learn to use external tools. Gorilla [11] showed that\nLLMs can generate accurate API calls when provided with documentation. ToolLLM [58] scaled\ntool-use evaluation to 16,000+ real-world APIs, and AnyTool [59] demonstrated hierarchical tool\nrouting for large API surfaces. The Model Context Protocol (MCP) [12] proposes a standard\ninterface for connecting LLMs to external tools and data sources. The analysis here finds that MCP\nhas emerged as a cross-system extensibility standard, adopted by eight of the eleven systems studied\n(all four provider-native agents plus OpenHands, Hermes, OpenCode, and OpenClaw).\n\n3.6\n\nVendor-Authored Engineering Guidance\n\nA complementary thread to the academic surveys is engineering guidance published directly by major LLM vendors. Between December 2024 and September 2025, Anthropic released a series of four\narticles that collectively articulate a coherent design philosophy for agents: (i) Building Effective\nAgents [16], which contrasts “workflows” (predefined code paths) with “agents” (LLM-directed dynamic processes), enumerates five composable patterns (prompt chaining, routing, parallelization,\norchestrator-workers, evaluator-optimizer), and warns explicitly against general-purpose agentic\nframeworks; (ii) Effective Context Engineering for AI Agents [19], which reframes “prompt engineering” as “context engineering,” documents context rot in long windows, and recommends a\nhybrid approach that favors just-in-time (JIT) retrieval via grep/tail/file-system while acknowledging that pre-indexed retrieval can complement JIT methods for specific use cases; (iii) Writing\nEffective Tools for AI Agents [18], which builds on the agent-computer-interface (ACI) concept introduced in Building Effective Agents [16], recommends consolidating tools into “few thoughtful”\nhigh-signal operations, and reports SWE-Bench gains from prompt-engineered tool descriptions;\n(iv) How We Built Our Multi-Agent Research System [17], a case study reporting that orchestratorworker architectures with parallel sub-agents outperformed single-agent baselines by 90.2% on internal evaluation while consuming ∼15× more tokens than a single chat interaction (the comparison\nis against a simple chat baseline, not against an optimized single-agent pipeline).\n\n7\n\n\fThe four articles, read as a set, sketch a prescriptive framework that anticipates many of the\npatterns we later observe across vendors. We use them as a reference baseline against which to\nevaluate the source-code-level decisions of the studied systems (see especially Section 15.1).\n\n3.7\n\nThe 2026 Harness Landscape\n\nThe corpus studied in this paper is a deliberate sample from a field that has grown considerably\nfaster than the literature tracking it. A market sweep conducted for this revision (July 2026)\nidentified over two dozen actively maintained coding-agent harnesses beyond the systems analyzed\nhere; Table 2 lists the most significant. Three developments since the first version of this study\n(April 2026) reshape the context in which the corpus sits.3\nEvery vendor now ships a harness, and the market is consolidating. Beyond the four\nprovider-native systems we analyze in depth, GitHub’s Copilot CLI reached general availability\nin February 2026, Amazon folded its Q Developer CLI into the spec-driven Kiro brand, and xAI\nshipped Grok Build [26] in May 2026—notably, a closed-source binary (Rust, per its release artifacts) whose documentation describes wholesale adoption of the open ecosystem’s conventions:\nAGENTS.md context files, MCP servers, skills, hooks, and an ACP server mode for editor embedding.\nConsolidation followed: SpaceX acquired xAI in February 2026 and announced a $60B acquisition\nof Cursor (Anysphere) in June; Google announced in May that Gemini CLI would transition toward\nan Antigravity CLI, then ended Gemini CLI service for its consumer tiers on June 18 (enterprise\nGemini Code Assist licenses retain access and updates). The Google transition is a licensing turn\nas much as a rebrand: Gemini CLI is Apache-2.0, developed in the open to ∼105k stars, while Antigravity CLI ships as a closed-source Go binary with no published source—so of the three corpus\nsystems whose vendors develop them in the open (Codex, Gemini CLI, Mistral Vibe), one now\nhas a closed successor, and our v0.50.0 pin captures the last major open-source state of a providernative harness lineage. The harness layer, in other words, is no longer a greenfield: it is strategic\ninfrastructure that vendors buy, rebrand, and gate.\nThe open-source field has its own centers of gravity. OpenCode [24] is now the moststarred dedicated coding agent on GitHub (∼184k stars), and Hermes [22] the fastest-growing\nby star-accrual rate (∼212k stars within five months of release; counts as of 2026-07-10, as in\nTable 2); both enter our corpus in this revision, together with Pi [23], the poster child of the opposite, minimal-core countertrend. Block donated its Rust harness Goose to the Linux Foundation’s\nAgentic AI Foundation in April 2026, the first vendor-neutral governance story we identified in\nthe space. A community project, Claw Code [27], reimplemented Claude Code’s architecture in\nPython and Rust as a self-described clean-room derivative of the same March 2026 source exposure\nour Claude Code analysis draws on, reaching ∼100k stars within days—suggesting that harness\narchitecture itself, not just model access, commands community interest in its own right. A parallel\nwave of Chinese-vendor harnesses (Alibaba’s Qwen Code, a Gemini CLI fork; Moonshot’s Kimi CLI;\nByteDance’s Trae Agent) ties open-weight model releases to their own CLIs. Meanwhile Aider, one\nof the field’s pioneering systems, entered de-facto community-maintenance mode (last stable release\nFebruary 2026), with architectural development continuing in a community fork (aider-ce).\nA meta-layer has appeared. Databricks open-sourced Omnigent [25] in June 2026: an orchestration layer that treats entire harnesses (Claude Code, Codex, OpenCode, Hermes, Pi,\nCursor) as interchangeable components behind a common API, adding cross-harness policies, a\nuniform OS sandbox, and shareable multi-device sessions. Section 14.4 analyzes it as this paper’s\nsecond contrast point; its existence is itself a datum for the platformization argument of Section 14.1.\n3\nLandscape events in this subsection are drawn from vendor announcements, release notes, and repository metadata\nas of 2026-07-10; unlike the corpus claims, they are not source-verified.\n\n8\n\n\fTable 2: The broader coding-agent harness landscape, July 2026 (systems not in the study corpus).\nStar counts are approximate GitHub stars as of 2026-07-10; closed-source systems marked “—”.\nHarness\n\nVendor\n\nOSS\n\nStars\n\nAntigravity CLI\n\nGoogle\n\n✗\n\n—\n\nCopilot CLI\n\nGitHub/Microsoft\n\n✗\n\n—\n\nGrok Build\n\nxAI (SpaceX)\n\n✗\n\n—\n\nCursor CLI\n\nAnysphere\n\n✗\n\n—\n\nKiro CLI\n\nAmazon/AWS\n\n✗\n\n—\n\nCline\n\nCline Bot Inc.\n\n✓\n\n∼64k\n\nGoose\n\nBlock / Linux Found.\n\n✓\n\n∼29k\n\nClaw Code\n\nCommunity\n\n✓\n\n∼100k+\n\nCrush\n\nCharmbracelet\n\n✓\n\n∼26k\n\nQwen Code\nKimi CLI\nTrae Agent\nDroid\n\nAlibaba\nMoonshot AI\nByteDance\nFactory AI\n\n✓\n✓\n✓\n✗\n\n∼26k\n∼9k\n∼12k\n—\n\nAmp\n\nSourcegraph\n\n✗\n\n—\n\nContinue CLI\n\nContinue.dev\n\n✓\n\n∼30k\n\n4\n\nMethodology\n\n4.1\n\nSystem Selection\n\nNote\nAnnounced May 2026 as Gemini CLI’s\nsuccessor; closed-source Go binary; consumer\nservice cut over June 18\nGA Feb. 2026; autopilot + fleet modes; deep\nGitHub integration\nMay 2026; Rust; plan-first loop; ACP server;\nAGENTS.md/MCP/skills\nIDE-harness parity in the terminal; $60B\nSpaceX acquisition pending\nex-Q Developer; spec-driven development\nidentity\n5M+ IDE installs; plan/act workflow;\nRoo/Kilo fork family\nRust; native MCP; donated to Agentic AI\nFoundation Apr. 2026\nSelf-described clean-room Python/Rust\nreimplementation of Claude Code\nGo-native, LSP-aware TUI; ex-opencode (Go)\nlineage\nGemini CLI fork for Qwen coder models\nSkills, MCP, “agent swarm” parallelism\nResearch-friendly Python CLI agent\nTerminal-Bench SOTA Sept. 2025; enterprise\nCI focus\nAd-supported free tier; deep-mode research\nworkflows\nMulti-surface (IDE+CLI); local/privacy focus\n\nThe study covers eleven harnesses plus one meta-harness contrast point, chosen for their spread\nalong three axes: design philosophy, maturity, and market position (Table 3); Section 3.7 situates\nthe corpus in the broader July-2026 field. The set includes one agent per major commercial LLM\nprovider (Claude Code for Anthropic, Codex for OpenAI, Gemini CLI [21] for Google, Mistral Vibe [20] for Mistral) plus seven open-source projects that occupy different research and production niches—among them the three systems added in this revision: Hermes (the fastest-growing\nopen-source harness), Pi (the minimal-core countertrend), and OpenCode (the most-starred dedicated coding agent, with a distinctive client/server split); the carried-over open-source systems are\nOpenHands [13], Aider [14], Mini-SWE-Agent [15], and OpenClaw. It spans three programming languages (Python, TypeScript, Rust), three orders of magnitude in code size, and design\nphilosophies that range from a research baseline to fully productized CLI tools. All snapshots were\nre-pinned to the latest available releases in July 2026 (the April-2026 snapshots of the original\nsystems are retained for longitudinal comparison, and Section 14.5 draws on both).\n\n9\n\n\fTable 3: System selection criteria. The top eleven rows are the study corpus; Omnigent is analyzed\nas a meta-harness contrast point only.\nSystem\n\nProvider\n\nLanguage\n\nVersion\n\nSelection Rationale\n\nOpenHands\n\nOpenHands (exAll-Hands-AI)\nCommunity\n(P. Gauthier)\n\nPython\n\nMature modular\nframework\nPolymorphic edit\nstrategies\n\nClaude Code\n\nAnthropic\n\nTypeScript\n\nCodex\n\nOpenAI\n\nRust\n\nGemini CLI\nMistral Vibe\nMini-SWE-Agent\n\nGoogle\nTypeScript\nMistral AI\nPython\nPrinceton/Stanford Python\n\nV1 SDK v1.34.0\n(Jul. 2026)\nv0.86.3.dev\n(May 2026;\nmaintenance mode)\nsource snapshot\nMar. 2026 (binary\n2.1.206, Jul. 2026)\nrust-v0.144.1\n(Jul. 2026)\nv0.50.0 (Jul. 2026)\nv2.19.1 (Jul. 2026)\nv2.4.5 (Jul. 2026)\n\nHermes\n\nNous Research\n\nPython\n\n0.18.2 (rel. 2026.7.7.2,\nJul. 2026)\n\nPi\n\nearendil-works\n(M. Zechner)\nAnomaly\n(ex-SST)\n\nTypeScript\n\nv0.80.6 (Jul. 2026)\n\nTypeScript\n\nv1.17.18 (Jul. 2026)\n\nOpenClaw\n\nCommunity\n\nTypeScript\n\nv2026.6.11 (Jul. 2026)\n\nOmnigent\n\nDatabricks\n\nPython\n\nv0.4.0 (Jul. 2026)\n\nAider\n\nOpenCode\n\nPython\n\nAnthropic’s flagship\nagent\nOpenAI’s flagship agent\nGoogle’s flagship agent\nMistral’s flagship agent\nMinimalist research\nbaseline\nSelf-improving skills;\nhybrid personal/SWE\nharness\nMinimal core, maximal\nextensibility\nClient/server\narchitecture;\nmost-starred dedicated\ncoding agent\nContrast: multi-channel\nassistant\nContrast: meta-harness\nabove harnesses\n\nOpenClaw as an External Contrast Point. OpenClaw is an outlier in the set. Its README\ndescribes it as a personal AI assistant gateway, not a coding agent; it spans 20+ messaging platforms\n(WhatsApp, Slack, Discord, Signal, iMessage, Matrix, and so on) and ships no native code-editing\ntool (see Table 7, where its entry is N/A). Instead of writing code itself, OpenClaw delegates\ncoding tasks to dedicated SWE agents through plugins (opencode, kimi-coding, github-copilot,\ncopilot-proxy). It is included as an external contrast point for three reasons. First, its plugin\narchitecture (260 SDK files, manifest-driven discovery, strict import boundaries) isolates extensibility patterns that are SWE-specific from those that belong to a broader agentic-platform category.\nSecond, it adopts the same cross-cutting standards as SWE-first agents (ACP session spawn, MCP,\nagentskills.io Skills), providing a non-SWE reference to test convergence claims against. Third, it\nillustrates the gateway-delegation pattern: a multi-channel assistant that consumes rather than implements coding capabilities. Hermes sits halfway between the two categories: like OpenClaw it\nis a multi-channel personal assistant gateway (Telegram, Discord, Slack, WhatsApp, Signal, CLI),\nbut unlike OpenClaw it ships a full native coding toolset, so we treat it as a corpus member\nrather than a contrast point and flag the hybrid where it matters. Where adoption counts are\nsensitive to OpenClaw’s inclusion, both the 11-system count and the 10-coding-harness count are\nreported. Readers who interpret the convergence claims as strictly about coding agents should use\nthe 10-system figures.\nOmnigent as a Meta-Harness Contrast Point. Omnigent (Databricks, open-sourced\nJune 2026 [25]) is not a coding harness but an orchestration layer above harnesses: it wraps\n10\n\n\fClaude Code, Codex, Cursor, OpenCode, Hermes, Pi, and custom YAML-defined agents\nbehind a common API, adding cross-harness policies, a uniform OS sandbox, and shareable multidevice sessions. Because it does not implement its own editing loop, scoring it on the seven\ndimensions alongside the corpus would be a category error; instead, Section 14.4 analyzes it as\nevidence about which harness capabilities are migrating up into a meta-layer.\n\n4.2\n\nDimensions of Analysis\n\nEach system is analyzed along seven dimensions: (D1) Agent loop design; (D2) LLM integration\nand model–agent co-design; (D3) Tool and action systems; (D4) Memory and context management; (D5) Safety and permission models; (D6) Multi-agent orchestration; (D7) Extensibility\nmechanisms. All versions are as of July 2026 (exact pins in Table 3); for the eight systems carried over from the April 2026 edition of this study, the April snapshots were retained and diffed\nagainst the July ones, and Section 14.5 reports what three months of harness evolution look like at\nsource level. Code-size figures are approximate line counts measured on the pinned snapshots, reported to position systems by order of magnitude; they are not reproducible metrics across counting\nconventions.\n\n5\n\nSystem Overview\n\nTable 4 presents a high-level comparison of the eleven systems. The corpus spans three orders of\nmagnitude in code size, three programming languages, and fundamentally different design philosophies; the final column names each system’s signature—the capability that, as of July 2026, no\nother system in the corpus implements in the same form.4\n4\nThe April edition of this study tabulated SWE-Bench Verified scores per system. We have removed them from\nthe comparison table: the available figures are self-reported, obtained on different model generations and configurations, and several predate the systems’ current defaults. For the record, the spring-2026 self-reported figures\nwere: OpenHands 77.6%, Mini-SWE-Agent 74%+, Claude Code 72.7%, Codex 69.1% (all SWE-Bench Verified);\nthe remaining systems publish no comparable number—Pi explicitly solicits real-world session data “instead of toy\nbenchmarks.”\n\n11\n\n\fTable 4: High-level comparison of the eleven systems, with each system’s signature capability.\nClaude Code cells here and in the other July-dated tables reflect the March-2026 source snapshot,\nthe newest source available to us; the shipping binary (2.1.206, July 2026) may differ.\nSystem\n\nLang.\n\nOpenHands\n\nScale\n\nTools Multi- Sandbox\nag.\n\nUI\n\nSignature\n\nPython Medium Multi\n\n25+\n\nYes\n\nDocker/\nApptainer/\nremote\n\nWeb+CLI\n+SDK\n\nResource-locked parallel\ntools; hosts rival harnesses as ACP backends\n\nAider\n\nPython Small\n\nMulti\n\n13 fmt\n\nNo\n\nNone\n\nCLI\n\n13 polymorphic edit formats; the corpus’s only\nranked repo map\n\nClaude Code\n\nTS\n\nLarge\n\nAnthropic\n\n43\n\nYes\n\nOpt-in\nruntime +\nworktree\n\nCLI\n\nDeferred tool loading;\nprompt-cache-sharing\nforks; the reference others copy\n\nCodex\n\nRust\n\nVery lg.\n\nOpenAI\n\n25–30\n\nYes\n\nNative\n(3 OS)\n\nCLI/TUI\n\nAgent-maintained crosssession memory; tool calls\nas V8-executed code\n\nGemini CLI\n\nTS\n\nVery lg.\n\nGoogle\n\n35+\n\nYes\n\nNative\n(3 OS)\n\nCLI/TUI\n\nModel routing as runtime\nscheduling; the corpus’s\nonly A2A server\n\nMistral Vibe\n\nPython Small\n\nMistral+\n\n12+\n\nYes\n\nWorktree\nopt.\n\nCLI/TUI\n\nMiddleware-pipeline\nloop;\nrewind exposed\nover ACP\n\nMulti\n\n1\n\nNo\n\nDocker+\n\nCLI\n\nThe 100-line floor: all\nseven subsystems, minimally\n\nMulti (owned)\n\n69\n\nYes\n\n6 pluggable\nbackends\n\nCLI/TUI/\nWeb+28 ch.\n\nSelf-improving skill loop;\nlineage\ncompaction;\nverify-on-stop\n\nMini-SWE-Agent Python Tiny\n\nProvider\n\nHermes\n\nPython Very lg.\n\nPi\n\nTS\n\nMedium Multi, 35\nprov.\n\n7\n\nExt.\n\nNone (by\ndesign)\n\nCLI/TUI\n\nEverything-is-anextension core; sessiontree version control\n\nOpenCode\n\nTS\n\nLarge\n\nMulti\n\n17\n\nYes\n\nNone\n(policy)\n\nClient/\nserver\n\nClient/server\nsyntax-aware\npermissioning\n\nOpenClaw\n\nTS\n\nLarge\n\nMulti\n\n109+\n\nYes\n\nNone\n\nMulti-ch.\n\nGateway\ndelegation;\nActive-Memory\nsubagent before each reply\n\nharness;\ncommand\n\n“Scale” is qualitative and reflects order-of-magnitude codebase size in the system’s primary source tree: Tiny (∼5 K LoC),\nSmall (∼20–40 K), Medium (∼80–110 K), Large (∼500 K+), Very large (∼600 K+, with Codex at ∼1.1 M lines of Rust in the\nJuly snapshot). These figures are not directly comparable across languages and counting conventions; they are reported only\nto position systems on the simplicity-vs-capability axis.\n\nObservation 1. The eleven systems span three orders of magnitude in code size while targeting\nsimilar tasks, yet loop sophistication does not predict benchmark performance. Mini-SWEAgent’s minimal linear loop achieves reported results in the same range as OpenHands’s\nevent-sourced conversation engine, despite the latter committing substantially more code to loop\norchestration alone. Most of the mass in the production systems addresses concerns orthogonal\nto task completion: safety, user experience, extensibility—and increasingly clients and transport:\nroughly three-fifths of OpenCode’s non-test source is its TUI, web, desktop, and SDK clients\nrather than the harness proper, and Codex’s July tree devotes six-figure line counts to app-server\ntransports, plugins, and a realtime voice layer that no benchmark will ever measure.\n\n6\n\nAgent Loop Design\n\nThe agent loop, the central control flow that alternates between LLM inference and action execution,\nis the architectural backbone of every SWE agent. We identify three distinct paradigms across the\nstudied systems.\n\n12\n\n\f6.1\n\nTaxonomy of Agent Loop Paradigms\n\nAll eleven systems implement variations of the ReAct [4] pattern, but the implementations differ\nradically in complexity, concurrency, and state management. We identify three paradigms: iterative\naction-observation (nine systems), reflection-augmented (Aider, with Hermes relocating the same\nfunction into the loop’s stop condition), and coordinator-worker (an overlay on the iterative loop,\nprescriptive in Claude Code and Codex, configuration-gated in Hermes). Rombaut’s concurrent\ntaxonomy [34] makes the useful finer-grained point that most production loops compose primitives\n(ReAct, generate-test-repair, plan-execute, retry) rather than implementing one; the plan modes\nthat all four provider-native systems now ship (Section 10) are plan-execute grafted onto ReAct.\nThe field’s vocabulary is still being minted around this subsystem. Loop engineering entered\ncirculation in June 2026, between this study’s two snapshots: Steinberger (OpenClaw’s original\nauthor) condensed the shift into a widely circulated dictum—stop prompting coding agents, “design\nloops that prompt your agents” [31]—and Osmani named and structured the practice days later,\ngiving the loop an anatomy of triggers, topology, verifiers, and stop rules [32]. The coinage is\ncomplementary to this section’s subject rather than a synonym for it: harness engineering builds\nthe inner action–observation cycle dissected below, while loop engineering composes that cycle,\nfrom the outside, into self-sustaining outer loops that prompt, verify, and re-run the agent without\na human authoring each turn. The seam between the two disciplines is already visible in the corpus\nas the outer verification loop pattern (Table 12): OpenHands’s /goal endpoint runs an LLM judge\nover each finished run and either re-prompts or stops, and Hermes’s verify-on-stop guard vetoes\nthe inner loop’s own exit—harness features whose only purpose is to close an outer loop around the\ninner one.\n\n6.2\n\nIterative Action-Observation Loop\n\nThe most common pattern follows a cycle of prompt construction, LLM inference, tool execution,\nand observation collection. Nine systems implement this pattern, each with distinctive characteristics.\nOpenHands: Event-Sourced Conversation Engine. OpenHands’s loop—since the mid2026 restructuring, in the software-agent-sdk repository rather than the application repo—is\nan event-sourced conversation engine: a LocalConversation drives Agent.step(), every event\nis appended to a persistent EventLog (one file per event through a FileStore, with flock-based\nlocking and secret redaction via a SecretRegistry), and the LLM’s view of history is a cached\nprojection of the active branch. Conversation state is a tree with a movable head, so replay, fork,\nand branch navigation are first-class. Each step() makes one LLM call but executes all tool calls of\nthe response as an action batch—optionally in parallel through a ParallelToolExecutor governed\nby a tool_concurrency_limit and a resource-lock manager keyed on each tool’s declared resources\n(files, terminal session, browser), so only same-resource calls serialize (the Claude Code paragraph\nbelow and Table 18 contrast this with Claude Code’s boolean partitioning). The StuckDetector\nsurvives the rearchitecture intact: the same five failure scenarios as in the V0 codebase (repeating\naction-observation pairs, repeating actions with errors, monologue loops, alternating patterns, and\ncontext-window error loops), now with configurable thresholds and enabled by default.\nClaude Code: Streaming Loop with Concurrent Tool Batching. Claude Code’s loop responses stream via Server-Sent Events (SSE) with fine-grained event handling (content_block_start,\ncontent_block_delta, content_block_stop). The most distinctive feature is intelligent tool\nbatching: tool calls are partitioned into batches by concurrency safety via a single-pass reduce\nalgorithm. Tools default to isConcurrencySafe = false (the safe default), and must explicitly\nopt in to parallel execution. Read-only tools (grep, glob, file read) are safe; write tools (edit,\nbash) are not. This design enables significant latency reduction when the LLM requests multiple\nindependent reads simultaneously.\n\n13\n\n\fCodex: Tokio Async State Machine. Codex’s loop is implemented in Rust as a Tokiobased async state machine. A Session struct orchestrates turns via streaming ResponseItem\nevents from the OpenAI Responses API (deserialized from SSE or WebSocket stream frames), with\ntool invocations processed through FuturesOrdered for ordered parallel execution, now factored\nthrough a dedicated ToolCallRuntime. Key entry points: Codex::spawn() creates a new session,\nsubmit_with_id() submits operations, and next_event() provides non-blocking event reading for\nstreaming responses (the once-monolithic codex.rs has been split into session/ modules and a\nCodexThread abstraction, but the entry points survive).\nMini-SWE-Agent: Minimal Linear Loop.\nant (Listing 1):\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n\nMini-SWE-Agent implements the simplest vari-\n\ndef run ( self , task ) :\nself . add_messages ( model . fo rmat_mes sage (\n\" system \" , r en de r_ t em pl at e ( s ys t em _t em p la te ) ) )\nself . add_messages ( model . fo rmat_mes sage (\n\" user \" , re nd er _ te mp la t e ( instance_template , task = task ) ) )\nwhile True :\nresult = self . step ()\nif result . role == \" exit \":\nreturn result\ndef step ( self ) :\nself . query ()\nreturn self . e x ec ut e_ a ct io ns ()\ndef query ( self ) :\nself . check_limits ()\nself . n_calls += 1\nmsg = self . model . query ( self . messages )\nself . add_messages ( msg )\ndef ex ec ut e _a ct io n s ( self ) :\nfor action in msg [\" extra \"][\" actions \"]:\nobs = self . env . execute ( action ) # s u b p r o c e s s . run ()\nself . add_messages (\nmodel . f o r m a t _ o b s e r v a t i o n _ m e s s a g e s ( obs ) )\n\nListing 1: Mini-SWE-Agent agent loop (condensed; omits format-error handling, cost/time\naccounting, and trajectory saving present in v2.4.5).\nThere is no state machine, no event sourcing, and no concurrency mechanism. The message list\ngrows linearly and unboundedly, relying entirely on the LLM’s native context window. The minimalism is deliberate: the design intentionally isolates LLM capability from agent scaffolding complexity,\nto see how much of one can substitute for the other. Even the floor drifts upward, though: the v2.4\nline added a wall-clock time limit on runs and a cap on consecutive malformed-action responses—\nthe loop now aborts after N successive format errors instead of cycling indefinitely—so the corpus’s\nminimal system has acquired a minimal stuck detector.\nMistral Vibe: Middleware-Pipeline Loop. Mistral Vibe’s loop is a Python async/await iterative loop in which turn-level policies are factored out into a composable middleware pipeline. The\ncore conversation loop drives a standard prompt → LLM → tools cycle, but each iteration first walks\na stack of middleware pre-turn checks and then yields events to the caller as they complete. Six middlewares ship out of the box: TurnLimitMiddleware, PriceLimitMiddleware (cost cap per session),\nTokenLimitMiddleware (session-total token cap, added in the 2.9 line), AutoCompactMiddleware\n(triggers summarization at a token threshold), ContextWarningMiddleware (warns when the conversation approaches the context-window limit), and ReadOnlyAgentMiddleware (gates write tools\nfor read-only agent profiles); user-cancellation is handled inline via an is_user_cancellation_event()\ncheck rather than as a middleware. Tool calls within a single LLM response are executed concurrently by spawning each tool as an asyncio.create_task() and yielding events as they finish, a\nfiner-grained variant of Codex’s FuturesOrdered. The middleware design is unique in the corpus.\nNew turn-level policies can be added without modifying the loop body, and the same loop powers\nsix registered agent profiles (default, plan, accept-edits, auto-approve, explore, lean) simply\nby swapping the middleware composition; a seventh chat profile is not registered for CLI sessions\n14\n\n\fbut is dynamically registered by the ACP layer for IDE integrations. Plan mode has meanwhile\nbecome structural rather than prompt-only: a plan file under a dedicated plans directory is the\nprofile’s only writable target, and an exit_plan_mode tool emits a PlanReviewRequestedEvent\nthat gates the transition back to write-capable profiles.\nGemini CLI: Async-Generator Loop with Hybrid Loop Detection. Gemini CLI’s loop is\nimplemented in TypeScript as an async generator. Each iteration yields typed ServerGeminiStreamEvent\ntuples to the UI, runs the active model via a ModelRouterService, streams the response via the\n@google/genai SDK, and dispatches function calls through a state-machine Scheduler that\nwalks each tool through Validating → Executing → Completed/Errored. A distinctive feature is\nthe LoopDetectionService, which is hybrid rather than purely deterministic: SHA-256 hashing\ncatches the common failure modes cheaply (five identical tool calls or ten identical content chunks\nabort the loop), and after thirty turns in a single prompt an LLM-based self-check runs at an adaptive interval—a two-tier design that contrasts with OpenHands’s five hand-enumerated scenarios.\nA session turn limit (default 100) provides a hard ceiling, and a set of eleven lifecycle hook events\n(BeforeAgent/AfterAgent, BeforeModel/AfterModel, BeforeToolSelection, PreCompress, and\nothers) lets extensions inspect or veto the loop. The scheduler executes tool calls in parallel\nand, since v0.45, partitions by concurrency safety: file-mutating tools (edit, write_file) and\nupdate_topic are hard-forced to sequential execution, and—uniquely in the corpus—the model\nitself is given a concurrency knob, an auto-injected wait_for_previous boolean on every tool\nschema through which it can serialize any call. The scheduler streams live tool output to the UI\nvia an outputUpdateHandler callback so the user sees long-running commands progress.\nHermes: Budgeted Loop with Stop-Guards. Hermes runs a single iterative tool-calling\nloop per user turn, bounded by a thread-safe IterationBudget (default 90, with execute_code\niterations refunded and a final grace call that lets the model summarize when the budget expires).\nWhat distinguishes it is not the loop body but its exits: eleven enumerated turn-exit reasons,\nand two stop-guards that can veto a premature final answer. The verify-on-stop guard rewrites\na text-only response into a continuation whenever the turn mutated code files without producing\nfresh verification evidence—the reflection loop’s function, relocated from inside the loop to its stop\ncondition, at a fraction of the cost. Stuck detection hashes tool name plus sorted-JSON arguments\n(SHA-256), warning after two identical failures and halting after eight—but the hard stop ships\ndisabled: the default posture is warnings appended to tool results, trusting the model to selfcorrect. Tool batches parallelize on a pool of eight workers only when every call is read-only-safe or\npath-scoped with non-overlapping prefixes; mid-turn user steering is spliced into the last tool result\nbehind an anti-injection marker.\nPi: Functional Core with Steering Queues. Pi’s loop is the purest iterative implementation\nin the corpus after Mini-SWE-Agent: a ∼790-line functional core with no planner, no reflection\nstep, no turn cap, no stuck detection, and no cost kill-switch—the loop runs until the model stops\ncalling tools, and all of those absences are documented design refusals. Two primitives stand out.\nMid-run user input is first-class: a steer() queue injects messages after the current turn’s tool\ncalls, while followUp() drains only when the agent would otherwise stop. And tool calls execute in\nparallel by default via Promise.all, with a realpath-keyed per-file mutation queue serializing edits\nand a distinctive truncation-poisoning guard: when the assistant message was cut off at the length\nlimit, all of its tool calls are failed unexecuted, because salvage-parsed streaming arguments can\nvalidate while being silently incomplete. Recovery is layered instead of enumerated: a ∼40-pattern\ntransient-error retry allowlist and a one-shot compact-and-retry on context overflow.\nOpenCode: Log-as-Queue Loop. OpenCode’s loop is a literal while(true) with an unusual\ntwist: the message log doubles as the work queue. Pending sub-agent spawns and compactions are\n\n15\n\n\fnot control-flow branches but persisted message parts that the loop dequeues one per iteration—\nwhich makes the loop trivially resumable across process restarts, since the queue is the transcript.\nThere is no default step cap (maxSteps defaults to infinity); when a configured cap is reached,\nthe harness appends an assistant message declaring tools disabled rather than raising an error.\nStuck detection is a single heuristic routed, characteristically, through the permission system: three\nconsecutive byte-identical tool calls raise a doom_loop permission ask rather than an automated\nabort—the user, not the harness, decides whether the repetition is a bug. Parallel tool calls execute\nconcurrently with no harness cap, and retry is harness-level with retry-after-aware exponential\nbackoff; context overflow is never retried—it flips to compaction.\n\n6.3\n\nReflection-Augmented Loop\n\nAider extends the basic loop with a reflection mechanism. The run_one() method implements a\nnested loop: after each LLM response, the system applies edits, then checks for lint errors (via a\nthree-stage Python pipeline: syntax check → compile check → flake8), test failures, and unresolved\nfile mentions. If issues are detected, a reflected_message triggers re-invocation of the LLM with\ncorrective context, up to a configurable maximum (default: 3 reflections).\nThe linter integration is particularly notable: it uses TreeContext from grep_ast to show code\ncontext around error lines, providing the LLM with precise locality information for its corrections.\nAider remains the only system whose main loop is reflection-shaped, but the corpus has grown\nthree structural cousins: Gemini CLI’s edit tool ends in an LLM “edit fixer” subcall that repairs\na failed match (Section 8.4), OpenCode feeds LSP diagnostics back into every edit result, and\nHermes’s verify-on-stop guard performs the reflection check once, at turn exit, instead of per\niteration. The pattern is the in-the-wild instantiation of a line of work on language-model selfcorrection, Reflexion [54], Self-Refine [55], CRITIC [56], and Self-Debug [57], that has otherwise\nstayed largely in the academic literature. Aider’s contribution is the integration: lint and test\nsignals are routed back into the loop as the corrective feedback those papers theorize about. A note\non its stop condition: Aider has no tool-call loop at all—a turn ends when the completion stream\nfinishes, and run_one exits when no reflection is pending or the cap is reached; it never inspects an\nend_turn finish reason.\n\n6.4\n\nCoordinator-Worker Pattern\n\nClaude Code and Codex support a coordinator mode where a parent agent orchestrates multiple\nworker agents; Hermes gates the same shape behind configuration (an orchestrator role plus\na spawn-depth setting unlocks nested delegation trees, and a separate Kanban-swarm mode runs\nplanning-root → workers → verifier as subprocesses over a SQLite blackboard). This is an overlay\non the iterative loop, adding a hierarchical dispatch layer.\nIn Claude Code, the coordinator spawns sub-agents via AgentTool, each receiving a forked\ncontext with isolated AbortController, cloned file state cache, and suppressed permission dialogs.\nWorkers communicate results back via &lt;task-notification&gt; XML blocks, and the coordinator\nsynthesizes findings before delegating the next phase. The workflow is structured: Research →\nSynthesis → Implementation → Verification.\nIn Codex, sub-agents are spawned via AgentControl::spawn_agent(), receiving dedicated\nThreadIds and communicating through typed Mailbox channels. Each thread maintains its own history, with SpawnAgentForkMode controlling context inheritance (FullHistory or LastNTurns(N)).\nWe defer the detailed analysis of multi-agent orchestration to Section 11.\n\n6.5\n\nComparative Analysis\n\nFigure 2 contrasts the three paradigms.\n\n16\n\n\f(a) Iterative\n\n(b) Reflection\n\n(c) Coordinator\n\nPrompt\n\nPrompt\n\nCoordinator\n\nLLM Call\n\nLLM Call\n\nExecute\n\nApply Edits\n\nWorker 1\n\nWorker 2\n\nWorker 3\n\nSynthesize\nLint/Test\n\nObserve\n\nyes\n\nno\n\nReflect?\n\nFigure 2: Three agent loop paradigms: (a) iterative action-observation (OpenHands,\nClaude Code, Codex, Gemini CLI, Mistral Vibe, Mini-SWE-Agent, Hermes, Pi, OpenCode; event-driven variant in OpenClaw), (b) reflection-augmented (Aider), (c) coordinatorworker overlay on (a) (Claude Code, Codex; configuration-gated in Hermes).\nTable 5 provides a detailed comparison of loop characteristics.\nTable 5: Detailed agent loop characteristics across the eleven systems.\nSystem\n\nLoop Type\n\nConcurrency\n\nStuck Detect.\n\nStop Cond.\n\nOpenHands\n\nEvent-sourced\nconversation\n\n5 scenarios\n\nState=FINISHED\n\nAider\n\nGenerator +\nreflect\nStreaming + batch\nTokio async SM\nAsync-gen +\nscheduler\n\nParallel batches\n(resource locks;\nlimit default 1)\nSequential\n\nMax reflections\n\nstream end, no\nreflection pending\nend_turn\nend_turn\nend_turn / 100\n\nClaude Code\nCodex\nGemini CLI\n\nSafety-partitioned\nNone (manual)\nFuturesOrdered\nNone\nParallel; edits\nHybrid: SHA-256 +\nforced sequential;\nLLM check after 30\nmodel-visible\nturns\nwait_for_previous\nasyncio.create_taskMiddleware\n(turn/price/token/compact)\nSequential\nstep limit;\nformat-error cap;\nwall clock\nParallel batches (8\nSHA-256 call\nworkers,\nsignatures\nsafety-gated)\n(warn-first)\n\nMistral Vibe\n\nAsync +\nmiddleware\n\nMini-SWE-Agent\n\nLinear while\n\nHermes\n\nBudgeted while +\nstop-guards\n\nPi\n\nFunctional while\n+ steer/followUp\nqueues\nLog-as-queue\nwhile(true)\n\nPromise.all;\nper-file mutation\nqueue\nParallel, uncapped\n\nEvent-driven ACP\n\nRPC isolation\n\nOpenCode\n\nOpenClaw\n\n17\n\nNone (by design)\n\nDoom-loop →\npermission ask\nRate limit\n\nend_turn\n\nexit message\n\ntext response\nunless\nverify-on-stop\nvetoes; 90-iter\nbudget\nend_turn (no cap)\n\nno tool calls;\nsteps ??\nInfinity\nSession end\n\n\f7\n\nLLM Integration and Model–Agent Co-design\n\nHow an agent scaffold relates to its underlying LLM is one of the most consequential design decisions\nin the system. The corpus spans the full range from tight single-provider coupling to complete\nprovider agnosticism, and the position on that spectrum has direct implications for the optimizations\navailable to the scaffold.\n\n7.1\n\nProvider Abstraction Spectrum\n\nThe eleven systems adopt five distinct strategies:\nSingle-provider tight coupling (Anthropic, OpenAI, Google). Claude Code exclusively\nuses the Anthropic SDK (@anthropic-ai/sdk); Codex uses the OpenAI Responses API with WebSocket streaming; Gemini CLI uses the @google/genai SDK and additionally couples to Vertex AI\nfor enterprise deployments. These systems cannot easily switch providers: Claude Code depends\non Claude-specific features (extended thinking, prompt caching with static/dynamic boundaries,\ntool_use block format); Codex depends on OpenAI’s Responses API wire format and maintains\nmodel-specific prompts per GPT generation, delivered as of mid-2026 as server-side model-catalog\ndata refreshed at runtime rather than compiled-in templates (Section 7.2); Gemini CLI runs a\nModelRouterService that, via a chain of pluggable strategies (fallback, override, approval-mode,\nthree classifier strategies—including one that can run against a local Gemma model through a managed LiteRT-LM runtime—and default), dispatches each request to a Gemini variant. The router’s\ntarget set shifted a full model generation between our two snapshots: gemini-3(.1)-pro-preview\nand GA gemini-3.1-flash-lite are now the default resolution targets, with Gemma 4 models\nroutable and the 2.5 family surviving only as a no-preview-access fallback—evidence that routing\nlayers exist precisely to absorb model churn so the loop does not.\nProvider-first with generic fallback (Mistral). Mistral Vibe sits between tight coupling\nand full abstraction: a factory selects between a MistralBackend (using the official mistralai\nSDK) and a GenericBackend that speaks Anthropic, Vertex, OpenAI-compatible, and—since\nv2.9—OpenAI Responses endpoints. The Mistral backend exploits Mistral-specific features (the\nreasoning_effort enum mapped from a model’s five-level thinking field, and the ThinkChunk\nstream block parsed into a separate reasoning_content field), while the generic backend provides\na portable escape hatch. This is a different philosophy from the LiteLLM-based systems: rather\nthan treating all providers symmetrically, Mistral Vibe privileges its home provider with a deeper\nintegration and treats others as a fallback.\nMulti-provider via abstraction layer. OpenHands, Aider, and Mini-SWE-Agent all use\nLiteLLM as a universal abstraction, supporting 100+ models across providers. This enables rapid\nmodel switching but introduces a dependency on LiteLLM’s provider mappings. Aider goes furthest with a model registry containing per-model metadata for 350+ models: edit format, weak\nmodel name, cache control, extra API parameters, and reasoning tag handling. OpenHands has\nmeanwhile layered its own routing on top of the abstraction: an LLMRegistry keyed by usage, a separate LLMProfileStore for named profiles, pluggable RouterLLM implementations, and a fallback\nstrategy—so “LiteLLM-based” no longer implies feature-minimal.\nMulti-provider via owned transports. The three systems added in this revision occupy a\nposition the April edition’s four-way spectrum did not contain: full multi-provider support with\nno abstraction library, the provider matrix hand-built and exercised to the same depth as the\nvendor-native integrations. Hermes ships five transport implementations (chat-completions, Anthropic Messages, Bedrock Converse, Codex Responses, and an out-of-process Codex app-server)\nbehind 29 declarative ProviderProfile plugins—the profile “is read by the transport instead of\nreceiving 20+ boolean flags”—with model metadata for 3,800+ models pulled from models.dev.\n18\n\n\fPi hand-rolls nine wire-protocol implementations across 35 built-in providers, with ∼20 per-model\ncompat quirk flags (including ten thinkingFormat dialects for OpenAI-compatible hosts) paying\nthe per-provider conditional cost once, centrally—and it exercises the corpus’s boldest coupling\ntrick, harness mimicry: on a Claude Pro/Max OAuth token it presents Claude Code’s identity\nwholesale (the “You are Claude Code” system-prompt opening, the beta headers, even the canonical tool-name casing, re-cased on the wire) to ride the consumer subscription, and it speaks the\nChatGPT-plan Codex backend the same way. OpenCode delegates streaming and tool dispatch to\nVercel’s AI SDK and the models.dev registry—the only corpus system whose inner LLM plumbing\nis a third-party SDK—then concentrates its co-design in a ∼1,400-line per-vendor transform matrix\n(release-date-gated reasoning tiers, per-model temperature defaults, six simultaneous prompt-cache\ndialects), and can even install new providers at runtime from a registry field.\nHybrid plugin-based. OpenClaw implements a pluggable provider system with first-party\nadapters for 10+ providers, featuring auth profile rotation, last-good tracking for failover, and\ncooldown expiry for degraded keys.\nObservation 2. Provider-native optimizations—cache boundaries, extended thinking, reasoning\neffort, model-specific prompts—are not gated on tight coupling; they are gated on who pays the\nper-provider conditional-code cost. Claude Code splits its prompt at a Blake2b-hashed cache\nboundary whose static prefix is cached with global scope across sessions (fork-mode sub-agents\nadditionally inherit the parent prompt byte-exactly); Codex keeps per-generation prompts (now\ndelivered as server-side model-catalog data) and a thread_id-derived prompt-cache key; Gemini CLI’s ModelRouterService dispatches each request to the cheapest sufficient Gemini variant. But three multi-provider systems now exercise the same menu from the other end of the\nspectrum, by paying the conditional-code cost deliberately and centrally: Hermes hand-rolls\nfive transports with provider-agnostic cache markers and bit-perfect prefix normalization that\nhits even local llama.cpp KV caches; Pi places explicit cache_control breakpoints with TTL\ntiers and audits per-turn cache-miss dollar waste as a first-class metric; OpenCode emits six\nproviders’ cache dialects simultaneously and shapes its system prompt to at most two messages\n(one by default) to match the cache slots. The LiteLLM-based systems (OpenHands, Aider,\nMini-SWE-Agent) exercise the menu partially (Table 17), with OpenHands closing the gap\nthrough cache-tiered prompt assembly and pluggable routing. What tight coupling still buys,\nuniquely, is server-side co-evolution: Codex’s scaffold behavior—prompts, reasoning tiers, tool\nmodes, even the multi-agent tool generation—is re-tuned per model release from the provider’s\ncatalog endpoint without shipping a client. Vendor coupling has become less about capability\nand more about who controls the update loop.\n\n7.2\n\nPrompt Engineering Architectures\n\nPrompt construction strategies vary dramatically across the eleven systems. Table 6 summarizes\nthe approaches.\n\n19\n\n\fTable 6: Prompt engineering architectures across the eleven systems.\nSystem\n\nArchitecture\n\nSections\n\nCaching\n\nTemplate\n\nOpenHands\n\nPromptRegistry with\ncache tiers\nPolymorphic\nCoderPrompts\nModular sections with\nboundary\nServer-delivered\nper-model prompts\n\nSTATIC/DYNAMIC\ntwo-block assembly;\ncache_control markers\nAnthropic markers\n\nPython; .j2\nescape hatch\n\nAider\n\n18 named static sections\n(Soul, Role, Security, . . . )\n+ dynamic block\nPer-edit-format prompts,\nrepo-map, examples\n12–15 named sections,\nstatic/dynamic split\nCapabilities, personality\n(user-templated),\nAGENTS.md, planning\nBase, tools, GEMINI.md\n(global/proj/ext), IDE\nctx, memory, skills\nBase, tools, git status,\ndate, subagent roster,\nscratchpad, AGENTS.md\ncontents, agent override,\nskills\nsystem_template,\ninstance_template\n∼15 guidance blocks,\nmodel-family-gated\n\nBlake2b hash, boundary\nmarker\nthread_id cache key\n\nTypeScript\n\nPersona, tools,\ndeduplicated guidelines,\nproject context, skills\nXML, date, cwd\nBase, env block,\nAGENTS.md, MCP\ninstructions, skills catalog\n\ncache_control\nbreakpoints + TTL tiers\n+ waste audit\n\nClaude Code\nCodex\n\nGemini CLI\n\nPromptProvider +\ncapability gating\n\nMistral Vibe\n\nPer-agent prompts +\nA/B variants\n\nMini-SWE-Agent\n\nJinja2 one-shot\n\nHermes\n\nThree-tier assembly\n(stable/context/volatile), built once\nper session\nSingle ∼170-line builder;\ntool snippets co-vary\nwith active toolset\n\nPi\n\nOpenCode\n\nModel-family prompt\nmatrix (9 base prompts\nby model-id substring)\n\nOpenClaw\n\nACP translator\n\nSession config, tool list,\nthinking level\n\nNone (rebuilt on model\nchange)\nGit status cached\n\nAnthropic markers\nsystem_and_3 markers +\nbit-perfect prefix\nnormalization\n\nPython classes\n\nModel-catalog\ndata (bundled\nfallback)\nTS snippets\n(modern/legacy)\nMarkdown files\n(GrowthBookselected\nvariant)\nYAMLembedded\nPython\nconstants\n\nTS\nconcatenation\n\n.txt files\nSix-dialect breakpoints;\npromptCacheKey=sessionID;\nsystem capped at 2\nmessages\nPer-provider\nRuntime config\n\nGemini CLI: Capability-Gated Snippets with Hierarchical Memory. Gemini CLI’s\nPromptProvider assembles the system prompt from base instructions chosen by model capability (isModernModel ? snippets : snippets.legacy), tool/function declarations from the\nregistry, and a hierarchically merged set of GEMINI.md files discovered at three scopes (global\n~/.gemini/, extension-provided, project-local .gemini/). IDE diagnostics and open-file diffs are\ninjected mid-conversation via the IDE companion package; persistent facts are written by the model\nediting GEMINI.md or the private per-project MEMORY.md index directly with ordinary edit tools—the\nsystem prompt states that no save_memory tool exists (Section 9.6). Unlike in Claude Code, the\nprompt is rebuilt on each model change but not split by a static/dynamic cache boundary—Gemini\ndoes not currently expose request-level prompt caching, so cache amortization is left to the API\nserver.\nMistral Vibe: Per-Agent Markdown Prompts. Mistral Vibe’s prompts live as plain\nMarkdown files; only the explore and lean profiles ship a dedicated system prompt, while plan,\naccept-edits, and auto-approve reuse the default cli.md via overrides. A universal systemprompt builder composes a base prompt with auto-generated tool descriptions, a Git context block\n(output of git log –oneline -N –decorate and git status –porcelain, cached), and an agentspecific overlay, so the plan and explore subagents receive entirely different system prompts from\nthe default agent without any code branching. Skill descriptions are appended dynamically. This\nper-agent specialization is more granular than Claude Code’s shared prompt with sub-agent\nprompt overrides, and structurally similar to Codex’s model-specific templates, except keyed on\nagent profile rather than on model generation.\n20\n\n\fClaude Code: Modular Assembly with Cache Boundary. Claude Code’s prompt is\nassembled from a dozen-plus named sections, divided by a SYSTEM_PROMPT_DYNAMIC_BOUNDARY\nmarker. Sections before the boundary (identity, system rules, task guidance, tool patterns, tone)\nare static and cached via Blake2b hashing with scope: ’global’. Sections after the boundary\n(session guidance, memory, environment, MCP instructions, language, scratchpad) are dynamic and\ncomputed per-turn via systemPromptSection() with memoization. This design minimizes prompt\ncache invalidation: the static prefix (which constitutes the majority of tokens) achieves high cache\nhit rates across turns and even across sub-agents (via renderedSystemPrompt sharing at fork time).\nCodex: Per-Model Prompts as Server-Delivered Data. Codex maintains separate\nprompts per model generation, and the delivery mechanism has itself co-evolved: the compiled-in\nMarkdown templates of early versions still sit in the tree but are no longer referenced by code—the\noperative prompts ship as base_instructions fields of a model manifest (models.json, bundled\nas fallback and refreshed from a remote /models endpoint with ETag caching). The July manifest spans GPT-5.2 through a GPT-5.6 family, and the prompts are personality-templated: a {{\npersonality }} variable is filled with user-selectable variants (friendly/pragmatic). Prompt content drifts measurably across generations: GPT-5.2’s prompt opens with version identity (“You are\nGPT-5.2 running in the Codex CLI. . . ”) and carries explicit no-commit and citation-ban rules; the\nGPT-5.5 prompt opens “You are Codex, a coding agent based on GPT-5. . . ” (further shortened\nby the 5.6 family to “You are Codex, an agent based on GPT-5”), expands a rich Personality\nsection, and drops the no-commit rule and the anti-gold-plating directives entirely. Behavioral\npolicy is migrating from prompt prose to feature flags: a codex_git_commit flag now governs\ncommit behavior. Section 7.3 returns to this thinning.\nOpenHands: Prompt Registry with Cache Tiers. OpenHands replaced its Jinja2\nPromptManager with a PromptRegistry of guarded, ordered PromptSection objects bucketed\ninto CacheTier.STATIC and DYNAMIC, rendered as a two-block system message whose static prefix\nstays byte-stable for provider prompt caching—the same static/dynamic cache-boundary design\nas Claude Code’s, arrived at independently from within a LiteLLM-based multi-provider system. Eighteen named static sections ship (Soul, Role, Memory, Security, SecurityRiskAssessment,\nVersionControl, and others), with Jinja templates surviving only as an escape hatch.\nHermes: Three-Tier Assembly with Bit-Perfect Prefixes. Hermes builds its prompt once\nper session in three tiers—stable, context, volatile—with ∼15 guidance blocks gated by model\nfamily (tool-use enforcement blocks are sent to GPT/Codex/Gemini/Grok/Qwen/DeepSeek models\nand never to Claude, with code comments citing observed per-model failures). Cache economics\ndrive the details: a single system_and_3 strategy places four cache_control breakpoints, and the\nprompt prefix is bit-perfect normalized (sorted compact re-serialization of tool-call JSON, a dateonly timestamp, a frozen memory snapshot) so that even local llama.cpp and vLLM KV caches hit\nacross turns.\nPi: One Small Builder, Co-Varying with the Toolset. Pi’s entire system prompt is a\n∼170-line builder emitting 30–40 lines: persona, tool list, deduplicated per-tool guideline snippets\n(each tool contributes promptSnippet/promptGuidelines, so the prompt co-varies with the active\ntoolset), &lt;project_context&gt; from AGENTS.md, an &lt;available_skills&gt; XML index, date and\ncwd. Almost all behavioral policy is deliberately absent, delegated to user-supplied context files\nand extensions.\nOpenCode: A Model-Family Prompt Matrix. OpenCode dispatches one of nine base\nprompts by model-id substring—claude, gpt-, gemini, and others each get dedicated .txt prompts\nwith different registers (the Claude prompt opens “You are OpenCode, the best coding agent on the\nplanet.”)—generalizing Codex’s per-generation templates across vendors. Assembly deliberately\n21\n\n\fcaps the system prompt at two messages (one by default; plugin-expanded prompts are collapsed\nback), matching the two leading cache-breakpoint slots it emits in six provider dialects simultaneously.\nAider: Polymorphic Prompts. Aider’s prompt system is unique: each of its 13 registered\nedit formats (architect, ask, context, diff, diff-fenced, editor-diff, editor-diff-fenced,\neditor-whole, help, patch, udiff, udiff-simple, whole) has a dedicated CoderPrompts subclass defining system prompts, examples, and reminders tailored to that format.5 A factory pattern\n(Coder.create()) selects the format based on the model’s metadata. The prompt dynamically\nincludes: file contents, a token-constrained repository map (generated via tree-sitter symbol extraction), chat history, and format-specific editing instructions.\nMini-SWE-Agent: One-Shot Templates. Mini-SWE-Agent uses Jinja2 templates embedded in YAML configuration files, rendered once at session start. Template variables include system\ninformation (platform.uname()), model statistics (n_model_calls, model_cost), and the task description. A notable detail: the default template includes OS-specific instructions (e.g., sed -i ”\nfor macOS).\n\n7.3\n\nPrompt Content and Rhetorical Style\n\nThe previous subsection examined how prompts are assembled (cache boundaries, templates, hierarchical merges). We now turn to what they actually say: the persona each scaffold projects, the\nexplicit directives it issues to the model, and the rhetorical devices it uses to make those directives\nstick. We read the canonical system prompt of each system and extracted recurring axes. Several\npatterns prove convergent across otherwise unrelated codebases.\nIdentity and persona. Persona openings range from terse to elaborate. Mini-SWE-Agent is\nthe most minimal: “You are a helpful assistant that can interact with a computer”—though Pi’s\ninner agent library beats it (“You are a helpful assistant.”), with the coding layer adding only “You\nare an expert coding assistant operating inside pi, a coding agent harness.” OpenHands adds\na role: “You are OpenHands agent, a helpful AI assistant that can interact with a computer to\nsolve tasks”—now wrapped in a &lt;SOUL&gt; block loaded from a user-overridable SOUL.md. Codex’s\nGPT-5.2 prompt is the most explicit about model coupling: “You are GPT-5.2 running in the\nCodex CLI, a terminal-based coding assistant”—an opening the GPT-5.5 generation drops in favor\nof “You are Codex, a coding agent based on GPT-5. . . ” (the 5.6 family shortens further to “an\nagent based on GPT-5”) with an elaborate Personality section. OpenCode varies persona by\nmodel: Claude, Codex, and Meta models are told “You are OpenCode, the best coding agent on\nthe planet,” while the default lineage gets the sober “an interactive CLI tool that helps users with\nsoftware engineering tasks.” Hermes layers a general identity (“You are Hermes Agent. . . created\nby Nous Research. . . prioritize being genuinely useful over being verbose”) with a coding posture\ninjected only when auto-detected: “Operate like a careful senior engineer.” Mistral Vibe, which\nin its April version opened with a complaint about prior behavior (“CRITICAL: Users complain you\nare too verbose”), now opens with a formal instruction-hierarchy contract: seven precedence levels\n(critical &gt; user &gt; repo AGENTS.md &gt; user AGENTS.md &gt; prompt defaults &gt; skills/MCP &gt;\nexternal-data-as-data)—prompt-injection defense expressed as a ranking rather than prohibitions.\nAider eschews persona entirely in favor of a role assertion: “Act as an expert software developer.\nAlways use best practices when coding.” Claude Code sits between these poles, with a short\nopening followed by extensive elaboration in later sections.\n5\n\nThree function-calling coders remain in the tree unregistered—one commented out of coders/__init__.py, two\nsimply never imported—so Coder.create() resolves exactly 13 formats; the April edition inconsistently reported 14.\n\n22\n\n\fVerbosity control. Nine of the eleven prompts contain explicit verbosity directives, but the\nimplementations differ sharply. OpenCode’s is now the most aggressive prompt in the corpus:\n“You MUST answer concisely with fewer than 4 lines. . . One word answers are best,” complete with\n&lt;example&gt; blocks (“user: what is 2+2? assistant: 4”)—though its Claude-specific prompt, notably,\ndrops the quantified rule that the fallback lineage retains. Mistral Vibe keeps its 150-word budget\n(“Most tasks need under 150 words of prose”) and structure-first rule (“Structure first. Prose after,\nif at all”). Claude Code’s response-length rules are quantified (≤ 25 words for inter-tool updates,\n≤ 100 words for end-of-turn summaries)—though, our re-audit finds, that numeric section is gated\nto Anthropic-internal builds as an A/B experiment; external users receive qualitative guidance.\nCodex is qualitative in the 5.2 generation (“concise, direct, and friendly”); the 5.6 prompts fold\nverbosity into a Personality section, while 5.5 keeps its own length rules. Hermes is qualitative (“Be\nconcise: lead with the change or answer, not a preamble”), Pi minimal (a single bullet: “Be concise\nin your responses”), Aider requests “a few short sentences” before any patch. Mini-SWE-Agent\nreaches the same target structurally rather than verbally: exactly one THOUGHT block followed by\none bash command per turn. OpenHands is alone in leaving verbosity largely to the model: its\nbase prompt says nothing on length, though its GPT-5-family model-specific blocks do instruct\nconcise responses and short preambles.\nBanned phrases and forbidden surface forms. Mistral Vibe pioneered the forbiddenphrase list; its rewritten prompt merges two April lists into one: “No filler words: ‘robust’, ‘elegant’,\n‘seamless’, ‘powerful’, ‘Great!’, ‘Absolutely!’, ‘Of course!’, ‘Happy to help!’ ”—a direct attempt to\nsuppress LLM register tics. OpenCode now runs the corpus’s second banned-phrase list, modeldependent: its GPT prompt bans openers like “Done —” and “Got it,” along with emoji and em\ndashes. Mistral Vibe also retains the strictest emoji prohibition in the corpus: “No emoji of any\nkind. No smiley faces, icons, flags, or Unicode symbols. . . This applies to prose, code comments,\nand commit messages.” Claude Code is conditional (“Only use emojis if the user explicitly\nrequests it”), and OpenCode carries the identical conditional rule in its Claude, default, Meta,\nand Trinity prompts while its GPT prompt bans emoji outright and its GPT-4-era beast prompt\ninstead instructs emoji status markers; Gemini CLI, Mini-SWE-Agent, Aider, Hermes, and Pi\nsay nothing about emoji. Codex’s 5.2 prompt forbids a CLI-specific surface form—inline citations\nof the shape [F:README.md L5-L14] (with bracketed citation glyphs)—because the Codex terminal\ncannot render them; the rule is absent from the 5.5/5.6 prompts.\nAnti-gold-plating directives. A near-universal pattern: scaffolds tell the model not to enlarge\nthe request. Claude Code: “Don’t add features, refactor code, or make ‘improvements’ beyond\nwhat was asked,” with a separate bullet against speculative abstractions. Mistral Vibe (rephrased\nsince April but preserved in substance): “Change minimally. . . Don’t touch what wasn’t asked.\nUnused imports may have side effects. Redundant-looking code may be load-bearing. When fixing\nX, leave Y alone.” Codex (5.2 generation): “Do not attempt to fix unrelated bugs. . . . Fix\nthe problem at the root cause rather than applying surface-level patches”—absent from the 5.4\nprompt and dropped entirely by 5.6. OpenHands: “NEVER create multiple versions of the same\nfile with different suffixes (e.g., file_test.py, file_fix.py, file_simple.py).” OpenCode:\n“NEVER create files unless they’re absolutely necessary.” Hermes: no drive-by refactors, renames,\nor reformatting beyond the request. The convergence is striking—six independently developed\nscaffolds anticipate the same failure mode (LLMs over-deliver on under-specified requests) and\nrespond with phrasing that, while not lifted verbatim, is rhetorically isomorphic. Pi is the deliberate\nexception: its prompt contains no such directive, policy being delegated wholesale to user-supplied\nAGENTS.md and extensions.\nRead-before-edit and verify-before-claim. Three prompts make code-reading a precondition\nfor editing. Claude Code: “In general, do not propose changes to code you haven’t read.” Mistral Vibe strengthened its version between snapshots: “Never edit a file you have not read in this\n\n23\n\n\fsession. Do not edit a file in the same turn you first read it—read, then act on the next turn.”\nOpenCode’s edit-tool description claims enforcement (“This tool will error if you attempt an edit\nwithout reading the file”)—but no runtime read-tracking exists in the tool’s source; the description\noverclaims, a reminder that prompt text is a behavioral wish, not a mechanism. Claude Code\nadditionally forbids false success claims—“Never claim ‘all tests pass’ when output shows failures,\nnever suppress or simplify failing checks (tests, lints, type errors) to manufacture a green result”—\nin a section that, like its word budgets, ships to internal builds first; and Hermes is the only\nsystem to mechanize the same demand, via the verify-on-stop guard of Section 6 plus a universal\nanti-fabrication directive (“NEVER substitute plausible-looking fabricated output. . . ”). The other\nsystems treat this as implicit.\nGit commit policy: a convergence that dissolved. In April 2026 this was the corpus’s\ntightest rhetorical convergence: every prompt that mentioned git forbade autonomous commits.\nBy July the picture has split three ways. The prohibition survives in Claude Code (“NEVER\ncommit changes unless the user explicitly asks you to”), OpenCode (“NEVER commit changes\nunless the user explicitly asks”), Hermes (“don’t commit, push, or rewrite history unless asked,\nand never read, print, or commit secrets”), and Codex’s 5.2-generation prompt. Mistral Vibe\nreversed course: it deleted its labeled “Never Commit” hard rule (the changelog reads “Loosened the no-git-commit constraint”) and now actively instructs the model how to commit, with\na mandated Co-Authored-By signature trailer. OpenHands never carried a commit prohibition\nto reverse—its &lt;VERSION_CONTROL&gt; section has taught commit mechanics with a co-author trailer\nsince before the window—while gating push and pull-request creation on explicit user request in\na separate &lt;PULL_REQUESTS&gt; section. And Codex’s newest prompts drop the rule entirely: the\nGPT-5.6 instructions contain no occurrence of “commit.” A codex_git_commit flag briefly governed commit-attribution behavior but is retired (unused) by the July snapshot—the directive\nsimply left the prompt. What remains universal is the outer boundary: no prompt in the corpus\npermits autonomous push, force-push, or history rewriting. The commit convergence of April, in\nother words, was not a stable engineering conclusion but a snapshot of trust calibration—and trust\nmoved measurably in one quarter.\nEmphasis markers. The corpus shows three distinct conventions for in-prompt emphasis.\nClaude Code, Codex, OpenHands, and OpenCode use uppercase tags inline: IMPORTANT:,\nCRITICAL:, NEVER (OpenCode adds &lt;system-reminder&gt; XML injections at runtime). MiniSWE-Agent uses XML-like tags (&lt;important&gt;...&lt;/important&gt;), Pi uses XML only as data\ndelimiters, and Hermes combines MUST/NEVER capitals with checkmark/cross exemplar pairs—\nshipping its XML-tagged enforcement blocks only to GPT/Codex and Grok models. Aider uses\nalmost none—its enforcement comes from the patch-format examples rather than from emphatic\nprose (a sparse IMPORTANT: survives in the patch-format instructions). Mistral Vibe has moved\nfurthest: no CRITICAL: tags and no Hard Rules section remain; emphasis is now fully structural, an\nexplicit overridability contract with named “Critical instructions—not overridable” and “Overridable defaults” sections. The contrast suggests three schools: rhetorical emphasis (uppercase tags),\nstructural emphasis (named rule blocks and precedence contracts), and example-driven emphasis\n(exemplar pairs and format samples), with most systems combining at least two.\nTool-use philosophy. Tool guidance varies in specificity. Claude Code insists on dedicated\ntools over shell: “Do NOT use the Bash tool to run commands when a relevant dedicated tool is\nprovided. . . . Using dedicated tools allows the user to better understand and review your work.”\nCodex optimizes for parallelism: “Parallelize tool calls whenever possible—especially file reads.”\nAider’s instructions are format-mechanical: “Your entire response containing the patch MUST\nstart with *** Begin Patch on a line by itself. . . . Each file MUST appear only once in the patch.”\nMini-SWE-Agent is the most restrictive: exactly one bash block per turn, with directory and\nenvironment changes prefixed inline (MY_VAR=val cd /path &amp;&amp; ...) because each call runs in a\n\n24\n\n\fnew subshell.\nWhat is conspicuously absent. None of the eleven prompts contains explicit harmful-request\nrefusal language. There are no instructions of the form “if the user asks you to do X, refuse and\nexplain why”—the only refusal-shaped text concerns operational risks (destructive git operations,\nsecrets hygiene, dangerous shell patterns), not policy-level harms. The nearest thing in the corpus\nis refusal etiquette: OpenCode’s default prompt inherits early Claude Code phrasing instructing\nthe model, if it refuses, not to preach about why (“keep your response to 1-2 sentences”)—style\nguidance for a refusal whose grounds are never stated. Safety against misuse is fully delegated\nto the underlying model’s pretraining and any provider-side policy layer. This is a notable design\nchoice: production scaffolds, even those bundled with their own provider, do not duplicate alignment\nwork in the system prompt—and the finding now holds at 11/11 across three more vendors and\ncommunity lineages.\nObservation 3. Prompt rhetoric converges where engineering experience converges, then thins\nas trust calibrates. Anti-gold-plating language appears in nearly isomorphic phrasings across\nsix independently developed scaffolds, and the no-autonomous-commit rule was universal in\nApril 2026. By July, the corpus shows the rules’ life cycle: Mistral Vibe reversed its commit\nprohibition into commit instruction with a mandated co-author trailer (OpenHands had taught\ncommit mechanics all along), and Codex’s newest model generation dropped both the commit\nrule and the anti-gold-plating directives from its prompts—behavioral policy thinning as models\ninternalize the norms. Three rhetorical strategies now coexist: harness-enforced policy prose\n(Claude Code, OpenCode, Hermes), structural contracts (Mistral Vibe’s seven-level instruction hierarchy and overridability sections), and near-total delegation to user context (Pi’s\n30-line prompt). Model-conditional rhetoric has emerged as its own axis: Hermes gates enforcement blocks by model family with comments citing observed per-model failures, and OpenCode\nmaintains nine per-family prompts whose strictness varies by recipient. The stable invariant\nacross all eleven: no policy-level refusal language anywhere—alignment work is never duplicated\nin the harness prompt.\n\n7.4\n\nStreaming and Response Processing\n\nResponse processing strategies span a wide range:\n• Claude Code: SSE with fine-grained events (content_block_start/delta/stop, message_delta).\nSupports extended thinking via thinking blocks with configurable budget_tokens.\n• Codex: WebSocket + SSE fallback. ResponseItem events parsed from JSON-RPC. Connection prewarm with generate=false. Turn state maintained via x-codex-turn-state\nheader.\n• Gemini CLI: @google/genai SDK chat.sendMessageStream() with a four-attempt midstream retry loop (MidStreamRetryOptions) recovering from content, network, and invalidstream errors. Wraps the SDK in a custom GeminiChat class to work around a functionresponse validation bug. Keeps extended-thinking parts out of persisted history at responserecording time so they don’t pollute future cache lookups.\n• Mistral Vibe: Mistral SDK stream_async() aggregates LLMChunk blocks; ThinkChunk\nblocks are routed into a separate reasoning_content field. Aggregated usage stats are produced across the stream.\n• Aider: Token-level streaming with mdstream for rich terminal rendering. Retry loop with\nexponential backoff; handles FinishReasonLength by resuming with assistant prefill.\n• Mini-SWE-Agent: Full response (no streaming). Simplest approach; relies on model’s\nnative completion.\n\n25\n\n\f• OpenHands: SSE via LiteLLM wrapper, now with first-class streaming (an LLM.stream\nfield and token deltas forwarded through on_token callbacks) plus an OpenAI Responses\npath. Supports prompt caching markers for Anthropic models.\n• Hermes: five owned transport implementations; a ∼23-value FailoverReason enum drives\nclassified recovery (compress vs. rotate credential vs. fallback chain vs. abort).\n• Pi: nine wire-protocol implementations with a partial-json salvage parser for streamed\ntool arguments—paired with the truncation guard of Section 6, since salvaged arguments can\nvalidate while incomplete.\n• OpenCode: Vercel AI SDK streamText owns dispatch; token-granular part deltas are persisted and re-served over SSE by the embedded server, so every client (TUI, web, IDE) replays\nthe same stream.\n• OpenClaw: ACP delta events for text, thought, and tool calls; provider-specific transport\nstreams handle the underlying SSE/WebSocket layer.\n\n7.5\n\nAdvanced API Features\n\nThe single-provider systems exploit features unavailable to multi-provider abstractions:\nClaude Code’s extended-thinking integration exposes a budget_tokens parameter that controls how much internal reasoning the model performs before responding; while LiteLLM does pass\nthrough Anthropic’s thinking block, surfacing budget_tokens as a first-class scaffold knob still\nrequires Anthropic-specific conditional code in any multi-provider design. Codex’s reasoning-effort\nenum spans minimal/low/medium/high/xhigh, extended in mid-2026 with max and ultra—and\nultra is not just more reasoning: the model catalog describes it as maximum reasoning with automatic sub-agent task delegation, an effort level that changes orchestration behavior, unique in the corpus. Mistral Vibe’s per-model thinking field now spans five levels (off/low/medium/high/max)\nmapped onto Mistral’s reasoning_effort enum, and Pi normalizes the whole landscape behind\na unified seven-level scale translated through ten per-API thinkingFormat dialects. Codex implements prompt caching via a prompt_cache_key derived from the session’s ThreadId (with an\nexplicit override hook for delegate and guardian sessions); this is a lighter-weight strategy than\nClaude Code’s Blake2b-hashed static/dynamic boundary. Aider’s vision support warrants a\nnote: when the active model’s supports_vision attribute is set (via LiteLLM metadata), Aider\naccepts image files in the chat, handles MIME types, and passes them to the model. The support\nis model-gated rather than unconditional, hence marked “Opt.” in Table 17; Mistral Vibe joined\nthe vision column in v2.14–2.18 (TUI @-mentions, clipboard paste, ACP inline image blocks), and\nMini-SWE-Agent retains an opt-in, default-off multimodal path (a multimodal_regex expanding\ntagged content into image blocks), so no corpus system is unconditionally text-only. Gemini CLI\nexposes extended thinking (with thought-part stripping to keep caches clean) and then routes the\nchoice of model itself through ModelRouterService; that treatment of per-request model selection\nas classifier-driven runtime scheduling remains unique in the corpus (OpenHands’s RouterLLM\nprofiles route by configuration, not per-query classification), now extending to a managed on-device\nruntime (a gemini gemma command group provisions a local LiteRT-LM server, and the routing\nchain can use the local Gemma model as its query classifier). On the observability side, Gemini CLI\nemits OpenTelemetry traces alongside per-token cost accounting. Mistral Vibe also instruments\nits agent loop, tool execution, and hooks with OpenTelemetry (agent_span/tool_span/hook_span\nasync context managers with an OTLP exporter and GenAI semantic-convention attributes), and\nPi contributes the corpus’s most unusual observability metric: a per-turn cache-miss dollar-waste\naudit that prices every avoidable cache invalidation.\n\n26\n\n\f8\n\nTool and Action Systems\n\nThe tool system defines what the agent can actually do: which actions it can invoke and how they\nare executed. This subsystem absorbs a large share of the engineering effort in every mature agent\nwe studied.\n\n8.1\n\nTool Count Spectrum\n\nFigure 3 illustrates the spectrum from minimalist to maximal tool designs. The systems span from\na single bash tool to 109+ tools including media processing and channel integrations—with Pi\nmaking the sparse end a philosophy (seven tools built, four exposed by default, everything else an\nextension) and Hermes pushing the general-purpose end to 69 built-ins behind a toolset layer that\nscopes what each platform’s model actually sees.\nAider\n\nPi\n\nMini-SWE-Agent Mistral Vibe\n1\n\n7\n\n12\n\nCodex\n\nOpenCode\nOpenHands\n\n13\n\n17\n\n25\n\nClaude Code\nGemini CLI\n\n27\n\n35\n\n43\n\nHermes\n\nOpenClaw\n\n69\n\n109\n\nMinimal\nbash only4 by default\n\nMaximal\nedit formats\n\n+ code mode\nmodel presets\n\ntoolset-scoped\n+ agents, tasks\n\n+ channels\n\nFigure 3: Tool count spectrum (July 2026). Numbers indicate distinct built-in tools or edit formats;\ncounts for OpenHands and Codex are default surfaces (their full catalogs reach 30+). Pi builds 7\nand exposes 4 by default; Hermes registers 69 but scopes visibility per platform through a toolset\nlayer.\n\n8.2\n\nTool Interface Architectures\n\nTool interfaces range from almost no abstraction—Mini-SWE-Agent sends everything through\na single shell call (subprocess.Popen(shell=True), wrapped only to kill the process group on\ntimeout)—to rich typed contracts. Claude Code’s 43 tools each declare validation, permission\nchecking, concurrency safety, and UI rendering as separate interface concerns. Codex uses Rust\ntrait objects for runtime polymorphism—the registry stores Arc&lt;dyn CoreToolRuntime&gt; where\nCoreToolRuntime: ToolExecutor, the abstraction now extracted into a standalone codex-tools\ncrate shared with code mode and extensions. Gemini CLI routes calls through a state-machine\nScheduler that walks each invocation through deterministic Validating → Executing → Completed/Errored phases. Mistral Vibe adds tree-sitter-parsed bash—an asyncio.create_subprocess_shellbased execution path that uses tree_sitter_bash to validate command structure before spawning—\nand fine-grained permission scopes (command pattern, file pattern, URL allowlist, directory containment). Hermes’s singleton registry separates registration from exposure: 69 tools self-register\nat import, a toolset layer scopes what each platform’s model sees, per-tool availability probes\n(30-second TTL with a last-good grace window) keep one flaky docker version from stripping a\ntoolset, and a coercion layer repairs schema drift (\"42\"→42) motivated by observed open-model\noutput. Pi gives each of its seven tools a pluggable Operations interface (BashOperations,\nEditOperations, . . . )—the single remoting seam through which SSH, container, and micro-VM\nextensions relocate execution without touching the tools. OpenCode registers 17 first-party tools\nwith Effect schemas and swaps the tool surface per model: GPT-family models receive a port of\nCodex’s apply_patch DSL and lose edit/write entirely (Section 8.4). The spectrum reflects the\nsimplicity-versus-capability axis: more interface surface means more safety guarantees but more\nengineering cost.\n\n8.3\n\nDeferred Tool Loading\n\nClaude Code introduced deferred tool loading: tools marked with shouldDefer = true are excluded from the initial system prompt. The LLM discovers them on-demand via ToolSearchTool,\n27\n\n\fwhich supports keyword search and direct selection (select:&lt;tool_name&gt;). This reduces prompt\nsize significantly: of 43 tools, only a core subset is loaded initially. The deferred tool set is cached\nvia getDeferredToolsCacheKey(), invalidated when the set changes.\nThe April edition presented this as a Claude Code exclusive; by July it is a spreading pattern with independent implementations. Codex marks tools (by default, MCP tools) with a\ndefer_loading flag and exposes a tool_search tool backed by a BM25 lexical index over tool\nspecs—the same prompt economics with ranked search instead of substring matching. Hermes\ngeneralizes the idea with a threshold: when MCP and plugin schemas would exceed 10% of the\ncontext window, they collapse into three bridge tools (tool_search/tool_describe/tool_call)\nsearched by an inlined BM25 engine. OpenCode defers skills (catalog lists name and description\nonly; a native skill tool fetches bodies) and treats its experimental code mode as MCP-catalog\ndeferral: instead of exposing every MCP tool, one execute tool runs model-written scripts against\nthe catalog. Mistral Vibe’s defer_mcp flag, by contrast, defers only MCP connection at startup\nfor latency, not prompt visibility—once integrated, every MCP tool is model-visible, so we no longer\ngroup it with the prompt-level deferral pattern.\n\n8.4\n\nFile Editing Strategies\n\nFile editing is the core action for SWE agents. The eleven systems implement eight fundamentally\ndifferent strategies, summarized in Table 7.\nTable 7: File editing strategies across the eleven systems (July 2026).\nSystem\n\nFormat\n\nMatching\n\nFallback\n\nInnovation\n\nClaude Code\n\nExact string\nreplacement\n*** Begin/End Patch\n\nUnique substring in file\n\nError + context\n\nZod schema validation\n\nUnified diff hunks\n\nHunk-level retry\n\nExact → fuzzy (dmp)\n\nSimilar line\nsuggestions\n\nCustom patch DSL; Larkgrammar-constrained\nvariant\nRelativeIndenter\n\nExact unique match\n\nError message\n\nundo_edit; three\ncoexisting edit dialects\n\nCascading: exact →\nflexible → regex →\nfuzzy\nExact unique substring\n\nLLM “edit fixer”\nsubcall repairs the\npair\nTool error on\nambiguity\n\nLLM-assisted edit repair\n\nRegex-based\n9-strategy fuzzy chain\n(exact → . . . →\nblock-anchor 0.50/0.70\n→ context-aware 0.80)\n\nShell error\nClosest-line\nsuggestions;\nescalate to\nwrite_file after 3\nfailures\nUniqueness\nguidance error\n\nNone (model-driven)\nTwo-phase\nvalidate-then-apply;\nbackend-transparent shell\nfile ops\n\nDistinct not-found\nvs. ambiguous\nerrors\n\nEditing dialect swapped\nper model in the registry;\nLSP diagnostics\nappended to results\n\nN/A\n\nNot a code editor\n\nCodex\n\nAider\n\nOpenHands\n\nGemini CLI\n\nMistral Vibe\n\nMini-SWE-Agent\nHermes\n\nPi\n\nOpenCode\n\nOpenClaw\n\n13 formats\n(SEARCH/\nREPLACE, udiff,\ndiff-fenced, . . . )\nstr_replace_editor (5\ncmds) + apply_patch\n+ Gemini-ported\nedit\nedit (old/new string)\n+ write_file\nExact edit (old/new\nstring, replace_all)\n+ create-only\nwrite_file\nsed/awk via bash\nOne patch tool:\nSEARCH/REPLACE\n+ V4A DSL (+\nwrite_file)\nMulti-edit exact\nreplacement\n(edits[], overlap\nrejection)\nModel-conditional:\napply_patch DSL\n(GPT family) or\nSEARCH/REPLACE\nedit (others)\nN/A\n\nExact →\nUnicode/whitespace\ncanonicalization (no\nsimilarity threshold)\n9-stage replacer\ncascade (Levenshtein\n0.65) / 4-pass patch\nrelaxation\nN/A\n\n28\n\nMigrated off fuzzy\nSEARCH/REPLACE\n(Apr→Jul)\n\nByte-fidelity overlay;\nasync diff preview before\nexecution\n\n\fThe editing landscape reorganized between snapshots. The April edition described Mistral Vibe and Gemini CLI as a “polymorphic-by-degree” pair—coarse whole-file tool plus fuzzy\nfine-grained patch tool. Neither half survived the quarter. Mistral Vibe deleted its SEARCH/REPLACE tool outright and converged on Claude Code’s exact unique-substring contract (with a\nreplace_all escape hatch and a now create-only write_file): a rare observable case of a production harness migrating between editing-strategy clusters, and evidence that stronger models shift\nthe optimum from tool-side drift tolerance toward strict contracts.6 Gemini CLI’s edit, on closer\ninspection, is an old/new-string tool with a cascading matcher (exact → whitespace-flexible → regex\n→ fuzzy) that ends in something no other system had: an LLM edit-fixer subcall that repairs the\nfailed old/new pair against a model-supplied instruction—the corpus’s first in-tool LLM-assisted\nedit repair.\nThe fuzzy-cascade family and its visible lineage. Where Mistral Vibe left, two newcomers arrived with the corpus’s most elaborate drift tolerance, and their source code documents\nits ancestry. OpenCode’s nine-stage replacer cascade (exact → line-trimmed → block-anchor\n→ whitespace/indentation/escape-normalized → context-aware, under Levenshtein 0.65 with a\ndisproportionate-match guard) carries header comments crediting Cline and Gemini CLI evals;\nHermes’s nine-strategy chain is annotated “inspired by OpenCode.” Editing machinery now has\na visible cross-harness genealogy—convergence by inheritance, not just rediscovery. Pi stakes out\na third position: no similarity threshold at all, only Unicode/whitespace canonicalization (NFKC,\nsmart quotes, trailing whitespace), with replacements computed in normalized space overlaid linewise onto the original bytes so untouched lines keep their exact original whitespace—plus an async\ndiff preview rendered before the tool executes.\nAider’s RelativeIndenter still deserves special attention. It converts absolute indentation to\nrelative changes using Unicode markers (default: left arrow ←, selected to avoid collisions with file\ncontent). The make_relative() method tracks indent differences between consecutive lines, and\nmake_absolute() reconstructs original indentation. This enables edit blocks to work across different\nindentation levels, a common failure mode for other systems. Combined with fuzzy matching via\ndiff_match_patch (threshold 0.95, distance 500), this creates a robust editing pipeline.\nObservation 4. The file-editing strategy is one of the most important determinants of codemodification accuracy in an SWE agent, and model-aware polymorphism is no longer Aider’s\nalone. Aider selects the edit format per model through a prompt-class factory; OpenCode\nreaches the same insight through the tool registry, swapping the toolset per model (GPT-family\nmodels get a Codex-style patch DSL and lose the string-replacement tools entirely). The corpus’s editing machinery now shows explicit cross-harness lineage (Hermes’s matcher “inspired\nby OpenCode”; OpenCode’s cascade crediting Cline and Gemini CLI), and it is in visible\nmotion: Mistral Vibe migrated from fuzzy SEARCH/REPLACE to Claude Code-style exact matching within one quarter, while Gemini CLI added LLM-assisted edit repair. Aider’s\nRelativeIndenter remains the most sophisticated solution to indentation-sensitive matching.\n\n8.5\n\nExecution and Sandboxing\n\nTable 8 compares sandboxing approaches in detail.\n6\n\nThe April text also overstated the old mechanism: re-audit shows v2.7.5’s ≥0.90 fuzzy matcher only generated\n“closest match” diagnostics for error messages; it never applied fuzzy edits.\n\n29\n\n\fTable 8: Execution sandboxing mechanisms (July 2026).\nSystem\n\nMechanism\n\nIsolation Level\n\nInvestment\n\nOpenHands\n\nWorkspace abstraction:\nDocker, Apptainer,\nremote-API, cloud\nworkspaces (KVM\npassthrough app-side)\nBubblewrap (vendored,\ncompiled in-tree) +\nLandlock legacy fallback\n(Linux), Seatbelt (macOS),\nrestricted tokens (Windows)\nDocker / Bubblewrap /\ngVisor / LXC (Linux),\nSeatbelt via sandbox-exec\n(macOS), restricted tokens\n(Windows); TOML policies\nOpt-in OS sandbox via\nAnthropic’s\nsandbox-runtime\n(Bubblewrap/Seatbelt) with\nnetwork restrictions; git\nworktrees for branch\nisolation\nDocker, Singularity,\nBubblewrap (pluggable)\nSix pluggable execution\nbackends (local, Docker,\nSSH, Singularity, Modal,\nDaytona); local backend =\npolicy floor, no OS\nprimitives\nNone OS-level; opt-in\n–worktree branch isolation\n\nProcess + filesystem\n+ network\n\nSubstantial\n\nOS-level namespaces\n+ filesystem +\nnetwork\n\nSubstantial\n\nOS-level +\nper-mode policy +\nenv scrubbing\n\nModerate\n\nOS-level (opt-in) +\nfilesystem\n\nModerate\n\nConfigurable\n\nLight\n\nPer-backend\n(container/VM);\nnone locally\n\nDelegated\n\nFilesystem\n(branch-level,\nopt-in)\nNone by default\n\nNone\n\nCodex\n\nGemini CLI\n\nClaude Code\n\nMini-SWE-Agent\nHermes\n\nMistral Vibe\n\nPi\n\nOpenCode\n\nAider\nOpenClaw\n\nNone built-in, with\ndocumented rationale;\nopt-in extensions (Anthropic\nsandbox-runtime, QEMU\nmicro-VM) via per-tool\nOperations seam\nNone (permission rules +\ntree-sitter command\nparsing; shadow-git\ncheckpoints; “sandbox”\nin-tree means worktrees)\nNone (direct local\nexecution)\nNone (local gateway\nexecution)\n\nNone\n(extensionspace)\n\nNone\n\nNone\n(policy-only)\n\nNone\n\nNone\n\nNone\n\nNone\n\nCodex is the most serious sandboxing investment in the corpus, now packaged as a dedicated sandboxing crate. On Linux it runs Bubblewrap—since mid-2026 vendored and compiled intree, invoked through C FFI—for namespace isolation (–ro-bind, –unshare-net, –unshare-user,\n–unshare-pid), with Landlock demoted to a legacy fallback behind a feature flag. On macOS\n30\n\n\fit drives Seatbelt profiles through /usr/bin/sandbox-exec. On Windows it uses restricted-token\nprocesses. Protected paths (.git, .agents, .codex) are re-marked read-only even when they sit\ninside a writable root. The result is OS-level isolation without the overhead of a container runtime.\nGemini CLI joins Codex as the second cross-platform sandboxer. Gemini CLI’s\nSandboxManager implements the same three-platform stack as Codex: Docker or Bubblewrap on\nLinux, Seatbelt via /usr/bin/sandbox-exec on macOS, restricted-token processes on Windows.\nWhere Codex bakes its policy into Starlark execpolicy rules (Section 10), Gemini CLI layers a\nTOML-based per-mode sandbox policy (plan / default / accepting_edits) plus environment\nscrubbing of provider credentials (name-pattern regexes over TOKEN/SECRET/KEY/AUTH/CREDENTIAL,\na denylist, and GitHub-token value regexes) before each command runs. Gemini CLI’s sandbox\ninvestment is meaningfully lighter than Codex’s because Gemini CLI reuses Node’s child-process\nAPI and OS-provided binaries rather than implementing low-level namespace plumbing itself;\nCodex pays for its larger footprint in vendored-Bubblewrap integration and Rust-native namespace control. The April edition observed that the two largest systems in the corpus were also\nthe two with native cross-platform sandboxing and asked whether the correlation was structural;\nthe expanded corpus answers no: Hermes (∼642K lines) ships zero OS-level isolation primitives,\ndelegating containment to six pluggable execution backends while investing its safety budget in\ncontent-borne threats, and OpenCode (∼578K lines) is policy-only. Size predicts some large safety\ninvestment, not specifically a sandbox; Section 10 maps where each system spends instead.\n\n9\n\nMemory and Context Management\n\nEvery agent we looked at runs into the same problem eventually: the conversation outgrows the\ncontext window. The literature offers two broad families of solutions: tiered memory architectures\n(such as MemGPT [74], which shuffles data between an in-context working set and an external\nstore) and prompt-compression methods (such as LLMLingua [75], which shortens text before it\nreaches the model). The eleven systems in the corpus implement four practical strategies (Figure 4),\nwhich we present in roughly increasing order of sophistication.\n\n9.1\n\nStrategy Taxonomy\n\nLinear\n\nSummarization\n\nCondensation\n\nCompaction\n\nNo pruning\n\nRecursive halving\n\n10 → 3 condensers\n\nThreshold-based\n\nMini-SWE-Agent\n\nAider, OpenClaw\n\nOpenHands\n\nClaude Code, Codex,\nGemini CLI, Mistral Vibe,\nHermes, Pi, OpenCode\n\nSimple\n\nSophisticated\n\nFigure 4: Memory management strategies ordered by sophistication. Seven of the eleven systems—\nthe four provider-native harnesses and all three systems added in this revision—converge on\nthreshold-triggered LLM compaction: a de facto standard for production-grade context management, though each newcomer hybridizes it with traits of the other strategies (iterative summary\nmerging, pluggable engines, session-tree substrates).\n\n9.2\n\nLinear History (Mini-SWE-Agent)\n\nMini-SWE-Agent makes no attempt to manage context. The full message list grows unboundedly,\nrelying on the LLM’s native context window (up to 1M tokens with the Claude 4 family). This\nsimplicity enables perfect reproducibility and straightforward trajectory analysis, a deliberate choice\nfor a research baseline system.\n31\n\n\f9.3\n\nRecursive Summarization (Aider)\n\nAider’s ChatSummary class implements a recursive halving algorithm. When the message history\nexceeds max_tokens (default: 1024), it splits messages into two halves by token count, keeping the\ntail (most recent 50%) intact. The head is summarized via an LLM call (summarize_all()). If the\ncombined summary + tail still exceeds the limit, the process recurses up to 3 levels. A separate\n“weak model” (e.g., GPT-3.5-turbo) can be configured for cost-efficient summarization.\n\n9.4\n\nPluggable Condensation (OpenHands)\n\nOpenHands pioneered pluggable memory management through an abstract Condenser base class.\nThe V0 application shipped ten implementations; the V1 SDK consolidated the zoo to three\n(NoOpCondenser, LLMSummarizingCondenser, PipelineCondenser) over a RollingCondenser\nbase—a telling simplification, most of the specialized variants having proven unnecessary. Two upgrades came with the consolidation: condensation is itself event-sourced (CondensationRequest/Condensation\nevents in the log, so compression history is replayable), and the condenser doubles as error recovery—context-window overflows and malformed-history errors trigger a condensation rather than a\ncrash. The summarizing condenser also gained a token-count trigger (max_tokens) alongside its\nevent-count threshold, aligning OpenHands with the threshold-compaction family below.\n\n9.5\n\nThreshold Compaction (Seven Systems)\n\nClaude Code’s compaction triggers when the running token estimate enters a buffer below the\nmodel’s effective context window (AUTOCOMPACT_BUFFER_TOKENS = 13 000, with an env-overridable\npercent threshold for testing). The process: (1) strip images from messages (replace with [image]\nmarkers), (2) group messages by API round, (3) invoke the LLM to generate a conversation summary, (4) create a SystemCompactBoundaryMessage separating pre-compaction history from the\nsummary. Post-compaction cleanup restores up to 5 files (POST_COMPACT_TOKEN_BUDGET = 50 000)\nand truncates skills to a per-skill 25 000-token budget.\nCodex supports both local in-process and cloud-based summarization via a dedicated\n/responses/compact endpoint, with model_auto_compact_token_limit controlling when summarization triggers (the separate /memories/trace_summarize endpoint serves the memories\npipeline of Section 9.6); a remote-compaction v2 path and per-thread rollout token budgets (with\nremaining-budget reminders and turn aborts on exhaustion) were added in the spring 2026 releases.\nGemini CLI: Multi-Stage Context Pipeline. Gemini CLI’s context management is more sophisticated than simple compression. At the top level, a ChatCompressionService fires when history exceeds 50% of the model’s token limit, calls Gemini to generate a state snapshot, and preserves\nthe most recent 30% of history verbatim (a token-budget truncation pre-pass and a PreCompress\nhook now fire before compression). Beneath this, a dedicated context-processors module implements\na multi-stage context distillation pipeline with pluggable processors (rolling summary, node distillation, node truncation, blob degradation, tool masking, state snapshot), consolidated in v0.43–0.45\ninto a ContextManager that maintains a pristine-versus-active context graph in a working buffer,\nruns processors through an orchestrator with hysteresis-based trigger damping, and replaces static\nchars-per-token estimates with an adaptive token calculator calibrated against observed API token counts. A separate ContextCompressionService tracks per-file compression levels (FULL,\nPARTIAL, SUMMARY, EXCLUDED), providing finer granularity than Claude Code’s binary\ncompacted/uncompacted split, and a pluggable AgentHistoryProvider interface lets extensions\nsubstitute their own compression logic.\nMistral Vibe: Middleware-Triggered, Now Two-Tier and Reactive. Mistral Vibe’s\nAutoCompactMiddleware checks context_tokens &gt;= auto_compact_threshold before each turn;\nthe compaction routine itself, extracted into a CompactionManager, has grown three refinements\nsince April: the post-compaction state is a context envelope that re-injects prior user messages\n32\n\n\falongside the summary (so original task goals survive resets), a cache-friendly primary summarization falls back to a dedicated tool-less summarizer, and the same routine fires reactively when a\nturn overflows the context window mid-flight. The integration through the middleware pipeline\nremains architecturally cleaner than in-loop checks: compaction is just another turn policy. Mistral Vibe’s complementary RewindManager creates filesystem-level checkpoints per user message\nand supports rewinding with optional file restoration—now forkable to a new session and exposed\nover ACP so IDE clients can drive the rewind. Once unique, checkpointing now has a finer-grained\nsibling: OpenCode maintains a shadow git repository per project (separate –git-dir over the real\nworktree) snapshotting at pre-stream, step start, and step finish, yielding per-step patch parts and\nfull conversation-plus-filesystem revert.\nHermes: Lineage Compaction. Hermes lands in the threshold family (trigger at 50% of context minus max-tokens, 64K floor; protect the first three messages plus a token-budgeted tail;\niterative auxiliary-model summary capped at min(5% of context, 12K tokens)) but adds a construct no other system has: compaction does not rewrite the transcript—it ends the session. Each\ncompaction closes the current SQLite session (end_reason=’compression’) and rotates to a child\nchained by parent_session_id; lineage helpers walk the ancestry, and session search deduplicates\nacross it. Context management and session persistence become one mechanism, and no history\nis ever destroyed. The engine is pluggable (a ContextEngine ABC), echoing OpenHands’s condensers.\nPi: Compaction over a Session Tree. Pi triggers at contextWindow − 16,384 tokens (keeping\n20K recent), with two traits borrowed from the other strategies: summaries are iteratively merged—\nthe update prompt re-ingests the previous summary rather than re-summarizing from scratch (a\nrecursive-summarization trait)—and a session_before_compact hook lets extensions veto or replace the result entirely (a pluggable-condensation trait). The distinctive substrate is the session\nitself: an append-only JSONL tree where every entry carries id/parentId and a movable leaf pointer\ndefines the active branch. /tree navigation, /fork, and /clone unify what other harnesses implement as three separate features (checkpointing, rewind, alternative exploration), and abandoning\na branch optionally generates an LLM branch summary spliced into the new position, so exploration is never lost—with the explicit trade-off that filesystem state is not restored. Cumulative\n&lt;read-files&gt;/&lt;modified-files&gt; lists persist as structured memory across compactions.\nOpenCode: Anchored Incremental Summaries. OpenCode triggers at limit.input minus\na reserved-output margin, using a chars/4 estimate (no tokenizer exists anywhere in the tree), and\nproduces the corpus’s most explicitly incremental summary: the previous summary is passed back\nin a &lt;previous-summary&gt; block and merged (“preserve still-true details, remove stale details”)\nby a hidden, all-tools-denied compaction agent, into mandated Markdown sections (Objective /\nImportant Details / Work State / Next Move / Relevant Files). A verbatim tail of two user turns is\npreserved; opt-in pruning soft-deletes old tool outputs, protecting the newest 40K tokens and firing\nonly if more than 20K are reclaimable.\n\n9.6\n\nPersistent Memory Pipelines\n\nThe April edition of this study could describe cross-session memory in one sentence per system:\na Markdown context file here, a transcript store there. Three months later, persistent memory\nis where the provider-native systems are differentiating most aggressively, and the designs diverge\ninstructively on a single axis: who writes the memory, and who reviews it.\nCodex runs the most autonomous design. A background two-phase pipeline extracts structured\nmemories from recent session rollouts (per-rollout LLM extraction into a SQLite state database,\nwith leased jobs, retry backoff, and secret redaction) and then consolidates them into filesystem artifacts under a git-baselined ~/.codex/memories/ root—the consolidation performed by a sandboxed\ninternal sub-agent (no approvals, no network, local-write-only) reviewing a git-style workspace diff.\n33\n\n\fMemories are injected into new sessions with citation tracking and usage-based ranking. Codex is\nthus the first system in the corpus whose long-term memory is maintained by an agent rather than\nby code; an experimental “chronicle” sidecar extends the same machinery toward passive screen\ncontext.\nGemini CLI moved in the opposite governance direction. Its April-era callable save_memory\ntool is gone—the system prompt now states flatly that no such tool exists—replaced by (a) the model\nediting GEMINI.md or a private per-project MEMORY.md index directly with ordinary edit tools, and\n(b) an asynchronous skill-extraction sub-agent that mines completed session transcripts and emits\ncanonical patch files into a per-project .inbox/, which the user reviews and applies via /memory.\nWhere Codex lets an agent consolidate memory autonomously, Gemini CLI inserts a human-gated\nreview inbox between extraction and persistence—the only such design in the corpus.\nHermes keeps persistent memory deliberately tiny and cache-friendly: two bounded Markdown\nfiles (MEMORY.md, 2,200 characters; USER.md, 1,375) injected as a frozen snapshot, so mid-session\nwrites hit disk without invalidating the prompt cache. Conversation recall is deterministic—a\nsession_search tool over trigger-maintained SQLite FTS5 tables (BM25, plus trigram indexing for\nCJK), “no LLM calls anywhere”—and embeddings exist only in opt-in memory plugins. OpenClaw\nships an Active Memory plugin (present, we note for the record, since the very April release our\nearlier edition audited) that runs a dedicated memory sub-agent immediately before the main reply,\nplus its older opt-in LanceDB conversation-memory extension. OpenHands folds memory into its\ncontext-file convention: a &lt;MEMORY&gt; prompt section instructs the model to persist durable facts into\nAGENTS.md itself. Claude Code persists per-project memory directories of Markdown facts; Pi\nand Mini-SWE-Agent deliberately persist nothing beyond the session substrate.\nObservation 5. Persistent memory has replaced compaction as the frontier of context engineering. Compaction designs have converged (seven of eleven systems use threshold-triggered LLM\nsummarization, increasingly with incremental merging); what now differentiates the field is the\nmemory write path. Four governance models coexist: agent-maintained (Codex: a sandboxed\nsub-agent consolidates memories over a git-baselined store), human-gated (Gemini CLI: extraction sub-agent writes to a patch inbox the user reviews via /memory), model-direct-but-bounded\n(Hermes: character-capped Markdown snapshots, frozen per session for cache hygiene; OpenHands, Claude Code: context-file conventions), and pre-turn agentic recall (OpenClaw’s\nActive Memory sub-agent). Notably, none of the eleven uses embedding-based retrieval as its\nprimary memory substrate—the deterministic-retrieval finding of Observation 9 extends from\ncode to memory, with SQLite full-text search (Hermes) as the production ceiling.\n\n9.7\n\nRepository Context\n\nBeyond conversation history, agents must manage code context:\n• Aider RepoMap: Tree-sitter-based symbol indexing with diskcache (SQLite v4)—still the\nonly ranked repository map in the corpus. Symbols are ranked by relevance to the current\nconversation. Token budget is adaptive (map_tokens, default 1024) with a map_mul_no_files\nmultiplier for large repositories.\n• Claude Code Memory System: Auto-discovers CLAUDE.md files via a dedicated claudemd\nsubsystem (managed, user, and project scopes traversed from the working directory), injected\nas nested memory attachments with deduplication; the separate memdir machinery manages\nthe per-project persistent auto-memory directory.\n• Codex Instructions: Hierarchical AGENTS.md instructions—precisely, a concatenation from\nthe project root down to the working directory (nested content appended last, so “precedence”\nholds only by position), plus an AGENTS.override.md escape hatch and configurable root\nmarkers and fallback filenames.\n• Gemini CLI Context Files: Three-scope GEMINI.md merge (global, extension, project)\n\n34\n\n\fgated by folder trust, plus JIT injection of subdirectory context files through tool output and\nthe private MEMORY.md project index.\n• Mistral Vibe JIT Discovery: Top-level AGENTS.md in the prompt (user and project scopes),\nand—since v2.19—nested AGENTS.md files surfaced just-in-time when read_file touches files\nbeneath them.\n• Hermes Hierarchy with Threat Scanning: First-found-wins walk (.hermes.md/HERMES.md\nto the git root, then AGENTS.md, CLAUDE.md, .cursorrules); every context file is scanned\nfor prompt-injection patterns and blocked wholesale on a match; a subdirectory hint tracker\nappends per-directory context files to tool results, keeping the cached prompt untouched.\n• Pi Ancestor Walk: AGENTS.md/CLAUDE.md collected from cwd to root into &lt;project_context&gt;\ntags; loading of repo-controlled configuration (extensions, skills) is trust-gated, but context\nfiles load regardless—a documented, deliberate injection-surface acceptance.\n• OpenCode Pull-Based Attach: AGENTS.md/CLAUDE.md/CONTEXT.md walk-up (first filename wins) plus remote-URL instruction files; nested AGENTS.md lazily attach when the read\ntool touches files beneath them.\n• OpenHands Third-Party Ingestion: the skills subsystem ingests AGENTS.md, .cursorrules,\nand nested per-directory AGENTS.md as scoped rules—one system reading three other ecosystems’ conventions.\n• OpenClaw Transcripts:\nJSONL transcript files persisted per agent/session at\n~/.openclaw/agents/&lt;agentId&gt;/sessions/&lt;sessionKey&gt;.jsonl.\n\n10\n\nSafety and Permission Models\n\nSafety mechanisms become important in direct proportion to the autonomy the agent is given. A\nrecent line of academic work has formalized the threat model: indirect prompt injection through\nfile or web content [77], AgentDojo [76] as a dynamic evaluation environment for injection attacks\nand defenses, risk-awareness benchmarks like R-Judge [78], and ToolSword’s [79] catalog of tooluse safety failure modes. The corpus covers a wide range, from systems with essentially no safety\ncontrols to multi-layered architectures.\n\n10.1\n\nClaude Code: Three-Layered Permission System\n\nClaude Code implements the most architecturally elegant safety system, with three layers (Figure 5):\nFastest, least context\n\nLayer 1: Static Hook Rules (PreToolUse pattern matching)\nLayer 2: LLM-based Permission Classifier (allow / ask / deny)\n\nSlowest, most reliable\n\nClaude Code\n\nLayer 3: Interactive User Dialog (approve / reject / edit)\n\nFigure 5: Claude Code’s three-layered permission system.\nFor background and forked sub-agents, only layers 1–2 are available—their would-be prompts\nresolve to denials—while default foreground sub-agents can still surface interactive dialogs. Unresolvable cases escalate to the parent coordinator. A denial tracking mechanism counts permission\nrefusals per session; after N denials, the system falls back to prompting. Each async agent maintains\nlocal denial state to prevent cross-agent pollution.\n\n35\n\n\f10.2\n\nCodex: A Four-Layer Permission Stack with Native Sandboxing\n\nThe April edition described Codex’s safety as two mechanisms—policy rules plus OS sandbox—\nand characterized its approval gate as “near-invisible.” The July snapshot shows four layers, two of\nthem converging on Claude Code’s design:\nLayer 1: Execution Policy (Starlark, not TOML). Executable rules (execpolicy/)\nare written in Starlark: prefix_rule(pattern=[...], decision=\"allow|prompt|forbidden\",\nmatch=[...], not_match=[...]) and network_rule(...) functions, loaded from CODEX_HOME/rules/\nand per-config-layer rules directories.7 A distinctive detail: rules may carry inline match/not_match\nexamples that are validated at parse time—executable test cases inside the policy file.\nprefix_rule (\npattern = [\" git \" , \" status \"] ,\n3\ndecision = \" allow \" ,\n4\nmatch = [[\" git \" , \" status \"] , [\" git \" , \" status \" , \" - - short \"]] ,\n5\nnot_match = [[\" git \" , \" push \"]] ,\n6 )\n7 network_rule (\n8\nprotocol = \" https \" ,\n9\nhost = \"*. github . com \" ,\n10\ndecision = \" allow \" ,\n11 )\n1\n2\n\nListing 2: Codex execution policy example (Starlark).\n\nLayer 2: Lifecycle Hooks. A hooks crate exposes external hooks whose event vocabulary is\nnear-verbatim Claude Code’s: PreToolUse, PermissionRequest, PostToolUse, PreCompact,\nSessionStart, UserPromptSubmit, SubagentStart, SubagentStop, Stop—plus a PostCompact\nevent with no Claude Code counterpart—with block/allow decision outputs. Section 14.5 discusses this as the corpus’s clearest case of one provider-native harness adopting another’s extension\ninterface as a de facto standard.\nLayer 3: Guardian, an LLM Approval Reviewer. When a command would require user\napproval, a dedicated Guardian session re-assesses the exact planned action against a policy prompt\n(compact transcript reconstruction, strict-JSON verdict), fails closed on timeout or malformed\noutput, and carries a per-turn rejection circuit breaker. The “no LLM classifier” contrast the April\nedition drew against Claude Code no longer holds: both provider-native flagships now implement\nthe static-rules → LLM-classifier → interactive/OS backstop pattern. A user-facing collaborationmode selector (Plan/Default presets that mask model, reasoning effort, and developer instructions)\ncompletes the convergence: all four provider-native systems now ship a read-only planning mode.\nLayer 4: Native OS Sandboxing.\n\nThe sandbox implementation spans three platforms:\n\n• Linux: vendored, in-tree Bubblewrap (invoked via C FFI) with read-only filesystem\n(–ro-bind / /), writable roots via –bind, network namespace isolation (–unshare-net),\nuser/PID namespace isolation; Landlock demoted to a legacy fallback.\n• macOS: Seatbelt profiles via /usr/bin/sandbox-exec with configurable allow/deny rules.\n• Windows: Restricted-token processes with ACL-based read/write restrictions.\n7\n\nThe April edition rendered these rules as TOML; that was an error in our earlier audit—the policy language has\nbeen Starlark throughout.\n\n36\n\n\fObservation 6. OS-level sandboxing is one of the most code-expensive capabilities in the\ncorpus, and it is a choice rather than a consequence of scale. The April corpus suggested a\nsize correlation (its two largest systems were its two cross-platform sandboxers); the expanded\ncorpus breaks it. Hermes, among the largest systems here, ships zero OS-level isolation primitives: it delegates containment to six pluggable execution backends and spends its safety budget\non content-borne threats instead (promptware scanning—pattern-matching for prompt-injection\npayloads—a skills supply chain, a command-policy floor that survives –yolo). OpenCode,\ncomparably large, is policy-only, investing in syntax-aware command permissioning rather than\nisolation. Pi documents the refusal as a security argument: a partial in-process sandbox “would\nbe easy to misunderstand as a security boundary.” What remains true is the cost side: where\nnative sandboxing is built (Codex, Gemini CLI; Claude Code wraps Anthropic’s reusable\nsandbox-runtime as an opt-in), it is a substantial multi-thousand-line investment—and Section 14.4 shows the meta-harness paying the same bill a second time, one layer up.\n\n10.3\n\nOpenHands: Ensemble Defense-in-Depth\n\nOpenHands’s pluggable SecurityAnalyzer framework matured substantially in the V1 SDK.\nThe Invariant analyzer of the V0 era is gone; the current set pairs an LLMSecurityAnalyzer\n(the agent self-rates each action’s security_risk, a parameter the system prompt instructs it\nto fill) and a GraySwanAnalyzer (external adversarial API) with two new deterministic analyzers—\nPatternSecurityAnalyzer and PolicyRailSecurityAnalyzer, the latter shipping named rails\nsuch as fetch-to-exec, raw-disk-op, and catastrophic-delete over shell-AST parsing. An\nEnsembleSecurityAnalyzer fuses verdicts worst-case-wins, with broken child analyzers failing\nclosed to HIGH. The LOW/MEDIUM/HIGH/UNKNOWN risk enum survives; confirmation is now\na policy object (AlwaysConfirm/NeverConfirm/ConfirmRisky). The prompt side completes a twosided injection defense: repository-derived context is wrapped in &lt;UNTRUSTED_CONTENT&gt; markers,\nand a dedicated prompt section teaches the risk-assessment protocol.\n\n10.4\n\nOpenClaw: Scope-Based Authorization\n\nOpenClaw implements scope-based authorization with operator and node connection roles\nover namespaced scopes (operator.read/write/admin/pairing/. . . ). The gateway enforces permethod scope requirements. Additional safety mechanisms include: fixed-window rate limiting per\nIP/token, SSRF policy enforcement, DM allowlist with pairing approval workflow, exec approval\ngates for browser actions and plugin actions, and chat sanitization. The 2MB MAX_PROMPT_BYTES\nlimit provides DoS protection (CWE-400).\n\n10.5\n\nGemini CLI: Four Approval Modes Plus Cross-Platform Sandbox\n\nGemini CLI layers two complementary safety mechanisms. First, an ApprovalMode enum gates\nevery tool call into one of four modes:\n• PLAN: Read-only; the model sees the full tool list but can only invoke read tools (Glob,\nRead, Grep, etc.). Its response is presented as a plan, and the user must explicitly approve\nbefore exiting plan mode.\n• DEFAULT: Interactive approval dialog per tool call; users can approve once, approve always,\nor reject.\n• AUTO_EDIT: Edit operations are auto-approved while shell and other side-effecting tools\nstill prompt; intended for fast iteration on local code.\n• YOLO: All actions auto-approved. Intended for CI/scripted use only.\nSecond, a SandboxPolicyManager enforces TOML-based per-mode policies: which paths are readable/writable, which network hosts are reachable, which environment variables are scrubbed. The\n37\n\n\fcombination is structurally similar to Codex’s policy-as-code + sandbox stack but layers an explicit user-facing mode selector on top—an ergonomic that Codex itself has since adopted with\nits collaboration-mode presets. A separate isTrustedFolder() check further widens or narrows\ncontext-discovery scope based on whether the directory is in the user’s trust list, providing a fourth\nlayer of opt-in granularity. The release cadence between our snapshots was dominated by policyengine and supply-chain hardening—trust-gated .env loading in headless mode, shell-command\nvalidation with a core-tools allowlist, skill-install path-traversal checks—supporting Observation 6’s\nclaim that safety absorbs a disproportionate share of engineering in the largest systems.\n\n10.6\n\nMistral Vibe: Permission-Scope Patterns Plus Agent-Profile Gates\n\nMistral Vibe has no OS sandbox (an opt-in –worktree flag now provides branch-level isolation)\nbut compensates with a finer-grained permission model than the other no-sandbox systems. Each\ntool call is checked against a hierarchy:\n1. Tool-wide permission setting (ALWAYS, ASK, NEVER) at the agent-profile level.\n2. Tool-specific validators (e.g., resolve_file_tool_permission pattern-matches paths), plus\na default read-only command allowlist that auto-approves ls/cat/grep-class commands.\n3. User-declared shell hooks (hooks.toml, before_tool) that can deny a call or rewrite its\ninputs before permission evaluation.\n4. Session rules added at runtime—now persisted across sessions for “always allow” grants.\n5. An interactive approval callback presented to the user unless bypass_tool_permissions (the\nrenamed auto_approve) is set.\nAgent profiles bake in safety classifications: plan and chat profiles are SAFE (read-only); default is\nNEUTRAL; accept-edits is DESTRUCTIVE; auto-approve is YOLO. Tools can also override the agent\ndefault: write_file forces ASK for sensitive patterns (.env files) regardless of profile. There is no\nLLM-based risk classifier and no OS-level isolation; safety reduces to explicit per-pattern matching,\nhooks, and user prompts.\n\n10.7\n\nHermes: A Policy Floor That Survives YOLO\n\nHermes inverts the sandbox question: the largest Python system in the corpus ships zero OSlevel isolation primitives—no Seatbelt, Landlock, seccomp, or Bubblewrap anywhere in its tools\ntree—delegating isolation to its six pluggable execution backends. On the local backend, safety\nis policy-as-code at scale: a 3,200-line approval module whose documentation states “config.yaml\nIS the security policy.” Its layers: user deny-globs; a twelve-pattern hardline floor (rm -rf\n/, mkfs, dd to block devices, fork bombs, shutdown) that survives –yolo—the YOLO environment variable is frozen at module import precisely so a prompt-injected skill cannot flip it at\nruntime; 47 dangerous-command patterns matched on deobfuscated variants (quote-splice removal,\ncommand-substitution folding, command-position anchoring); an external Rust content scanner\n(Tirith, cosign-verified install); and an optional auxiliary-LLM gate (_smart_approve: temperature 0, 16 max tokens, APPROVE/DENY/ESCALATE—its code credits Codex’s Smart Approvals). The distinctive threat model is content-borne: promptware scanning of context files,\nmemory writes, MCP tool descriptions, and skill installs (with builtin/trusted/community trust\ntiers and quarantine); SSRF guards that always block cloud metadata endpoints; untrusted tool\nresults wrapped in &lt;untrusted_tool_result&gt; delimiters with lookalike defanging. Container backends skip the dangerous-command layer entirely—until a host bind-mount re-enters it. Notable\nabsences: no per-tool allow/ask/deny matrix, no append-only audit log.\n\n10.8\n\nPi: Documented Absence as a Security Argument\n\nPi is the corpus’s only system that documents the absence of safety infrastructure as a design\nprinciple: its security documentation argues that a partial in-process sandbox “would be easy to\n38\n\n\fmisunderstand as a security boundary,” declares prompt injection via context files unprotectable,\nand lets built-in tools execute unconditionally with the invoking user’s permissions. The one builtin gate is project trust: repo-controlled configuration (extensions, skills, prompts, themes) loads\nonly from trusted paths, decided per canonical path with nearest-ancestor lookup—explicitly “not\na sandbox,” and context files load regardless. Permissioning is policy-as-code taken literally: the\ntool_call extension event exposes mutable tool arguments and a {block, reason} veto, and the\nreference permission-gate example implements the familiar regex-plus-confirm flow (rm -rf, sudo,\nchmod 777) in ∼80 lines of user space; isolation, when wanted, arrives as extensions (Anthropic’s\nsandbox-runtime, a QEMU micro-VM) through the per-tool Operations seam. The append-only\nsession tree doubles as a complete audit trail.\n\n10.9\n\nOpenCode: Syntax-Aware Permissioning, Permissive by Default\n\nOpenCode is, after Hermes, the second-largest system shipping no OS-level isolation (“sandbox”\nin its code means git worktrees), and its default posture is the inverse of Codex’s: \"*\": allow\ninside the project, with asks reserved for external_directory access, .env reads, and doom loops.\nIts distinctive investment is syntax-aware command permissioning: every bash command is parsed\nwith web-tree-sitter (bash and PowerShell grammars); the exact command text becomes the ask pattern, while “always allow” grants are scoped by a ∼130-entry, explicitly LLM-generated commandarity dictionary (git→2, npm run→3), producing grants like git commit * rather than blanket\napproval; file-manipulating commands get their argument paths resolved, and out-of-project paths\nraise external_directory asks. Permission rules ({permission, pattern, action}, last-matchwins over glob wildcards) are layered defaults → built-in agent → user config → per-agent → persession, and denying \"*\" for a tool removes it from the LLM’s view entirely—tool availability itself\nis permission-derived. A parallel v2 engine inverts to deny-by-default and persists approvals to\nSQLite; headless runs auto-reject all asks. There is no dangerous-command denylist and no risk\nclassifier.\n\n10.10\n\nMinimal Safety (Aider, Mini-SWE-Agent)\n\nAider offers an interactive confirmation mode but no automated risk assessment. However, its\nreflection loop with three-stage Python linting (syntax → compile → flake8) provides implicit safety\nby catching errors before they propagate.\nMini-SWE-Agent implements only resource limits as safety mechanisms—step_limit,\ncost_limit, and (added in the v2.4 line) a wall-clock limit and a consecutive-format-error cap,\nplus an opt-in interactive confirm mode—sufficient for benchmark evaluation but inadequate for\nproduction use.\n\n11\n\nMulti-Agent Orchestration\n\nNine of the eleven systems support multi-agent execution, and their architectures diverge substantially. This is the dimension on which the corpus is most spread out, so we go into more detail here\nthan in the other sections.\n\n11.1\n\nMulti-Agent Taxonomy\n\nWe identify six distinct multi-agent patterns:\n1. Single-agent (no multi-agent): Mini-SWE-Agent, Aider—and Pi’s core, which ships\nno spawn or task tool; its sub-agents live in extension space (below).\n2. Sequential delegation: Mistral Vibe (parent spawns a sub-agent via the task tool and\nawaits completion).\n\n39\n\n\f3. Parallel child sessions: OpenHands (task and delegate tools run children as separate\nconversations, concurrently in threads), OpenCode (task creates child sessions running the\nsame loop; multiple calls in one message execute concurrently).\n4. Hierarchical thread tree with fan-out: Codex (dedicated threads, fork-mode-controlled\ninheritance, per-model tool generations, map-reduce fan-out, persisted parent/child topology).\n5. Recursive composition: Claude Code (agents spawn sub-agents composably, with\nprompt-cache-sharing forks).\n6. Registry + cross-process protocol: Gemini CLI (named agent definitions behind a symmetric local/remote session protocol, remote agents via A2A), OpenClaw (ACP session\nspawn), Hermes’s Kanban swarm (subprocesses over a SQLite blackboard).\nTable 9 provides a detailed comparison; Figure 6 gives each pattern’s shape at a glance.\nTable 9: Multi-agent orchestration across the nine multi-agent systems (Pi via its reference extension).\nSystem\n\nMechanism\n\nIsolation /\ninherit.\n\nCommunication\n\nDepth /\nparallelism\n\nOpenHands\n\ntask + delegate\ntools → separate\nconversations\n\nFresh event log per\nchild; metrics\nsynced back\n\nSummary return;\nconversation tree\nnavigation\n\nNesting supported Markdown\n/ concurrent\nfrontmatter (tools,\nthreads\nskills, permission\nmode)\n\nClaude Code AgentTool +\ncontext fork\n\nForked context (6\nReturn + XML\ndimensions), shared notifications\nrendered prompt\n\nRecursive / true\nparallel\n\nTool filtering\n\n16-tool whitelist\n\nCodex\n\nspawn_agent v1/v2\n(per-model)\n\nDepth-tracked /\nThread tree;\nSession input\nparallel + CSV\nSpawnAgentForkMode queue with\nfan-out\nmailbox phases;\ntyped\nInterAgentCommunication\nrecords\n\nGemini CLI\n\ninvoke_agent tool;\nregistry defs\n\nIsolated registries\nper instance\n\nSymmetric\nlocal/remote\nsession protocol;\nA2A RPC\n\nFlat + remote /\nsequential in turn\n\nMistral Vibe task tool → new\nAgentLoop\n\nFresh config +\nsession dir; inherits\npermission store,\nscratchpad, hooks\n\nEvent forwarding\n\n1 hop / sequential Subagent-tagged\nprofiles only\n(explore)\n\nHermes\n\ndelegate_task\nin-process forks;\nKanban swarm\nsubprocesses\n\nFresh context, own\ntask id;\nprovider/creds\ninherited, no\nhistory\n\nSpawn-time goal;\nstreamed events;\nsummary return;\nSQLite blackboard\n(swarm)\n\n1 by default,\norchestrator role\nunlocks nesting /\n3 concurrent\n(pool)\n\nIntersection with\nparent + 6-tool\nblocklist\n\nPi (ext.)\n\nExtension spawns\npi –mode json -p\nOS processes\n\nHard process\nisolation; fresh\ncontext\n\nChild JSONL\nstdout parsed for\nprogress/cost\n\nUnbounded (no\ncounter) / pool of\n4, max 8;\nsequential chain\n\nChild –tools flag\nfrom agent\nfrontmatter\n\nOpenCode\n\ntask tool → child\nparentID sessions;\nSession (same loop) child inherits\nparent’s deny +\nexternal-directory\nrules\n\n&lt;task_result&gt;\nXML; background\nresults as synthetic\nuser messages\n\nRecursion off by\ndefault, opt-in\nunbounded /\nparallel\n\nPermission rulesets\n(deny \"*\" hides\ntool)\n\nOpenClaw\n\nACP session spawn\n\nACP delta events\n\nRecursive /\nparallel (RPC)\n\nSession-scoped\n\nChild processes;\nfresh session\n\n40\n\nInherited + filtered;\nTOML roles\n(explorer, awaiter)\n\nPer-definition\ntoolConfig\n\n\f(1) Single-agent\n\n(2) Sequential delegation\n\n(3) Parallel child sessions\n\nMini-SWE-Agent, Aider, Pi core\n\nMistral Vibe\n\nOpenHands, OpenCode\n\nParent\nact–\nobserve\n\nAgent\n\nParent\nsummary\n\ntask\n\nSub-agent\n\nno spawn tool\n\nSession A\n\nSession B\n\nparent blocks;\none child at a time\nconcurrent; separate histories\n\n(4) Hierarchical thread tree\n\n(5) Recursive composition\n\n(6) Registry + protocol\n\nCodex\n\nClaude Code\n\nGemini CLI, OpenClaw, Hermes swarm\n\nAgent\n\nRoot thread\n\nfork context\nThread\n\ninvoke by name\n\nprocess\nboundary\n\nSub-agent\n\nThread\n\nfork context\n\nfork mode\n...\n\nParent\n\n...\n\ndepth-tracked; CSV fan-out\n\nSub-sub-agent\n\nRegistry\n(agent defs)\n\nRemote\nagent\n\nA2A / ACP /\nSQLite blackboard\n\n.\n.\nany agent spawns\nagents;\n.\nshared prompt cache\n\nFigure 6: The six multi-agent orchestration patterns of the taxonomy above, schematically. Red\nnodes spawn, blue nodes are spawned, green is the definition registry; solid arrows spawn or invoke,\ndashed arrows return results. Systems beneath each panel are the pattern’s corpus representatives\n(Table 9).\n\n11.2\n\nDeep Dive: Claude Code Recursive Composition\n\nClaude Code’s multi-agent architecture is the most sophisticated among the systems studied. It\nsupports three levels of coordination: ad-hoc sub-agents, typed agent definitions, and full coordinator mode.\n11.2.1\n\nAgent Definitions System\n\nAgents are defined via a JSON/Zod schema specifying a description, prompt, optional tool\nwhitelist/blacklist, model selection, turn limits, permission mode, MCP server bindings, isolation\nlevel, background execution flag, and skills.\nAgent definitions are loaded from a priority hierarchy: built-in agents → plugin agents →\nuser settings → project settings → flag settings → policy/managed agents. Later sources override\nearlier ones. Built-in agents include Explore (fast codebase search), Plan (architecture design), and\nVerificationAgent (test execution).\n11.2.2\n\nContext Forking\n\nWhen a sub-agent is spawned via AgentTool, the parent’s context is forked along six dimensions:\n1. AbortController: New controller linked to parent (parent abort → child abort, but not vice\nversa).\n2. File State Cache: LRU cache cloned to prevent concurrent mutation.\n3. Permission Prompts: Suppressed for async agents (shouldAvoidPermissionPrompts =\ntrue).\n4. App State: Set to no-op for async agents to prevent dead session mutation.\n5. Denial Tracking: Fresh local state (refusals don’t accumulate globally).\n41\n\n\f6. Tool Decisions: Fresh Map per agent (no cross-agent pollution).\nA critical optimization is prompt cache sharing: the parent’s renderedSystemPrompt is\nfrozen at fork time and passed verbatim to the child. This ensures prompt cache hits are maintained\nacross fork/resume boundaries, preventing GrowthBook feature gate divergence from invalidating\ncaches.\n11.2.3\n\nCoordinator Mode\n\nWhen activated (via environment variable or feature gate), a Lead agent orchestrates Workers\n(Figure 7):\nCoordinator\n(Lead Agent)\nspawn\n\nBash, Read, Edit,\nGrep, Glob, . . .\n\nspawn\n\nAgentTool, SendMessageTool\n\nspawn\n\nWorker 1\n(Research)\n\nWorker 2\n(Implement)\n\nWorker 3\n(Verify)\n\n16 tools\n(whitelist)\n\n16 tools\n(whitelist)\n\n16 tools\n(whitelist)\n\nFigure 7: Claude Code coordinator mode architecture. Workers receive a whitelist of 16 tools\nand report via XML notifications.\nWorkers are restricted to a 16-tool whitelist (ASYNC_AGENT_ALLOWED_TOOLS): FileRead, WebSearch, TodoWrite, Grep, WebFetch, Glob, the two shell tools (Bash and PowerShell), FileEdit,\nFileWrite, NotebookEdit, Skill, SyntheticOutput, ToolSearch, EnterWorktree, and ExitWorktree.\nThe coordinator synthesizes worker findings before delegating the next phase, following a structured\nworkflow: Research → Synthesis → Implementation → Verification.\n\n11.3\n\nDeep Dive: Codex Thread Tree Model\n\nCodex’s multi-agent architecture is built around three core abstractions:\nAgentControl\n\nis the central control plane for spawning and managing sub-agents.\n\nAgentRegistry\n\ntracks all live agents in a session tree, maintaining LiveAgent metadata structs.\n\nSpawn Flow. The spawn_agent_internal() function reserves a spawn slot, inherits the parent’s\nsandbox and execution policy, resolves fork mode and metadata from the source, creates a thread\nwith the appropriate history (full, truncated, or fresh), and emits a session-started notification.\nSpawnAgentForkMode. A distinctive feature is SpawnAgentForkMode, which controls how\nmuch conversation history is inherited by sub-agents:\n• FullHistory: Inherit all messages (full context).\n• LastNTurns(N): Inherit only the most recent N turns (reduced context).\nMessage filtering (keep_forked_rollout_item()) preserves only system/developer/user messages and final assistant answers, filtering out intermediate tool calls and reasoning. This selective\ninheritance prevents context bloat in sub-agents.\n\n42\n\n\fInter-Agent Communication. The dedicated mailbox module of early versions has been folded\ninto the session’s input queue: inter-agent messages flow through InputQueue activities with mailbox\ndelivery phases, carried as typed InterAgentCommunication records (Spawn/Message/Followup/Result).\nTwo tool generations coexist—multi_agents (spawn/wait/send_message/interrupt/list) and\nmulti_agents_v2 (spawn/wait/send_input/resume_agent/close_agent)—selected per model via\na multi_agent_version field in the model metadata, and parent/child topology is persisted by a\ndedicated agent-graph-store crate. The parent monitors child status via an AgentStatus enum.\nFan-Out and Declarative Roles. Beyond spawn and mailbox, Codex has grown map-reducestyle orchestration: spawn_agents_on_csv launches one sub-agent per CSV row under a shared\nJSON-schema result contract with concurrency normalization and runtime caps, folding results\nback via report_agent_job_result. Sub-agents are typed by declarative TOML roles (built-in\nexplorer and worker roles ship active in-tree; an awaiter role file remains but is currently unregistered) applied as high-precedence configuration layers—Codex’s answer to Claude Code’s\nagent definitions—and delegation itself is model-governed: the ultra reasoning tier couples maximum reasoning with automatic task delegation, and configurable delegation modes (disabled /\nexplicit-request-only / proactive) apply at thread and turn level.\n\n11.4\n\nOpenHands: Parallel Delegation over Conversation Trees\n\nThe V0-era AgentDelegateAction (sequential, one delegate at a time, shared event stream) is gone.\nThe V1 SDK delegates through tools: a TaskTool whose shape is conspicuously Claude Code-like\n(prompt, subagent_type, description, resume), with a TaskManager creating a separate conversation per task (own event log, metrics synced back), and a DelegateTool with spawn/delegate\ncommands that runs delegated tasks concurrently in threads. Sub-agents are declared as Markdown\nfiles with YAML frontmatter (name, description, model, tools, skills, hooks, MCP config, permission mode, condenser) at project/user/builtin/plugin levels—built-ins include code-explorer,\nbash-runner, and web-researcher (plus a general-purpose default)—and nesting is explicitly\nsupported. Above the delegation layer sits a scaffold-level outer loop: a /goal endpoint runs an\nLLM judge over the transcript after each run, either injecting a follow-up prompt or stopping with\na completion status, complemented by pluggable critics with configurable refinement-iteration caps.\n\n11.5\n\nMistral Vibe Sequential Subagent Delegation\n\nMistral Vibe’s multi-agent support is intentionally simple: a parent agent invokes the task\ntool, which constructs a fresh AgentLoop instance with the requested agent profile (e.g., explore),\nruns it to completion in-process, and returns the sub-agent’s AssistantEvent outputs and\nToolResultEvent summaries to the parent. A guard enforces that only profiles tagged as “subagent” (currently just explore) can be delegated to, preventing accidental recursive escalation to\nwrite-capable profiles. Each sub-agent gets a fresh VibeConfig, its own session directory, and an\nindependent message history, providing isolation comparable to Codex’s thread tree but at the\ncost of true parallelism: the parent blocks on await until the sub-agent exits. The architectural\nsimplicity (one tool, sequential, in-process) means Mistral Vibe sits on the simplicity end of the\nmulti-agent spectrum—the corpus’s simplest delegation short of none, reminiscent of OpenHands’s\nretired V0 AgentDelegateAction.\n\n11.6\n\nGemini CLI: Registry, Symmetric Session Protocol, and A2A\n\nGemini CLI’s multi-agent model splits across two layers. Locally, an AgentRegistry holds named\nagent definitions—Markdown files with mandatory YAML frontmatter—loaded from user, project,\nand extension scopes. The built-in generalist agent, for example, grants access to all registered\ntools with a 10-minute, 20-turn run budget. Invocation flows through the /agent slash command,\n@agent-name prompt notation, or—since the sub-agent unification of v0.39—a model-invocable\ninvoke_agent tool, each run receiving an isolated tool registry. The invocation path has been\n43\n\n\fabstracted behind an agent session protocol with symmetric local and remote implementations, so\na registry entry backed by an in-process executor and one backed by a remote A2A agent are driven\nthrough the same interface.\nWhere Gemini CLI diverges from every other system in our corpus is the packages/a2a-server\nmodule, an experimental implementation of Google’s Agent-to-Agent (A2A) protocol. A2A is to\ninter-agent communication what MCP is to tool integration: a JSON-RPC standard for one agent\nprocess to discover, authenticate to, and exchange messages with another, possibly on a different\nmachine and built by a different vendor. Gemini CLI’s A2A server lets a remote orchestrator drive a\nlocal Gemini CLI instance as if it were a registered local agent—now with usage metadata reported\nover the protocol for cross-vendor resource accounting—opening the door to cross-vendor multiagent topologies that no other corpus system supports natively (the meta-harness of Section 14.4\nbuilds exactly such topologies from outside).\n\n11.7\n\nHermes: Guarded Delegation, Swarms, and Mixture-of-Agents\n\nHermes is flat-by-default delegation with two escape hatches upward. delegate_task builds\nchild agents in-process on a thread pool: fresh conversation, focused system prompt, summaryonly return, toolsets intersected with the parent’s (“subagent must not gain tools the parent\nlacks”), and a six-tool blocklist (no recursion, no user interaction, no memory writes, no scheduling). Defaults are conservative—three concurrent children, 50-iteration budgets, depth 1—but a\nrole=\"orchestrator\" configuration plus a spawn-depth setting unlocks nested trees, with the orchestrator prompt block explicitly “modeled on OpenClaw’s buildSubagentSystemPrompt.” Background delegation returns a handle and re-enters as a fresh turn through a completion queue rather\nthan splicing mid-turn—a prompt-cache-preserving choice. Above this sits a process-level tier: the\nKanban swarm runs planning-root → parallel workers → verifier → synthesizer as separate hermes\n-p &lt;profile&gt; subprocesses coordinated through a SQLite board and a blackboard of structured\nJSON comments—coordinator-worker via shared database rather than protocol or channel. A third\noverlay, /moa, fans out advisory reference models (up to eight concurrently) whose outputs season\nthe main model’s next iteration.\n\n11.8\n\nPi: Sub-Agents as an Extension, Fleets as a Package\n\nCore Pi has no spawn or task tool—sub-agents are the flagship demonstration of its extension\nthesis, shipped as a ∼1,000-line example. Each invocation spawns a separate pi –mode json -p\n–no-session OS process, giving hard context isolation by construction; the parent parses the\nchild’s JSONL stdout for progress and cost aggregation. One tool offers three shapes: single,\nparallel (worker pool of four, max eight tasks), and chain with {previous} substitution. Agent\ndefinitions are Markdown-plus-frontmatter with tool filtering via the child’s –tools flag; there is no\ndepth counter and no mid-run parent-child messaging. Above the single process, an experimental\norchestrator package supervises fleets of Pi instances in RPC mode and registers presence with\na hosted coordinator—multi-instance management rather than an in-loop coordinator. Notably,\nwhen Pi does do multi-agent, it lands on cross-process JSONL rather than in-process primitives—a\ndata point Section 13.3 returns to.\n\n11.9\n\nOpenCode: Child Sessions with Permission-Derived Capabilities\n\nOpenCode’s sub-agents are child sessions, not a separate engine: the task tool creates a Session with a parentID running the same loop, resumable via task_id, returning only the final\nassistant text wrapped in &lt;task_result&gt; XML; background results are injected as synthetic\nuser messages. Agents and modes are unified in one schema (mode: primary|subagent|all):\nbuilt-ins are build, plan (edit denied except plan files), general, read-only explore, plus\nhidden compaction/title/summary utility agents—plan mode is a permission ruleset plus a\n&lt;system-reminder&gt; injection, not an architectural overlay. Tool availability is everywhere\npermission-derived (denying \"*\" for a tool removes it from the LLM’s view), and containment\n44\n\n\fis asymmetric: children inherit only the parent’s deny rules. Recursion is off by default (task\nauto-denied to children) but opt-in per agent with no numeric depth cap; custom agents come\nfrom config, Markdown files, or—uniquely—LLM generation (generateObject over {identifier,\nwhenToUse, systemPrompt}).\n\n11.10\n\nOpenClaw Session-Based Orchestration\n\nOpenClaw’s multi-agent model is fundamentally different: it operates through an ACP (Agent\nClient Protocol, Zed/Google’s editor-oriented JSON-RPC standard at agentclientprotocol.com, not\nIBM’s older homonymous Agent Communication Protocol) translator that bridges the Gateway wire\nprotocol to agent processes. Sub-agents are spawned as child processes with RPC binding. Each\nagent gets its own session with JSONL transcript persistence. Communication occurs via ACP delta\nevents (text, thought, tool calls) rather than shared memory. A rate limiter (MAX_PROMPT_BYTES =\n2MB) provides DoS protection.\nObservation 7. Coordinator-worker emerges independently across the corpus: in all four\nprovider-native systems (Claude Code, Codex, Gemini CLI, Mistral Vibe), in OpenHands (parallel delegation over conversation trees), in Hermes (configuration-gated orchestrator role plus a subprocess swarm over a SQLite blackboard—a novel coordination substrate),\nin OpenCode (concurrent child sessions), and in OpenClaw at the protocol layer. We use\ncoordinator-worker broadly here, for any parent-spawns-workers delegation; Section 6’s narrower\nprescriptive overlay applies to Claude Code, Codex, and (gated) Hermes only. So many\nindependently developed codebases converging on the same hierarchical shape is strong evidence\nof convergent evolution—though the convergence should be scoped to systems that build multiagent into core: Pi is a production SWE harness that deliberately ships single-agent, relegating\nsub-agents to extension space. The implementations diverge instructively in what they optimize:\nClaude Code forks context and shares the prompt cache across children (cost); Codex builds\na depth-tracked thread tree with typed inter-agent records, per-model tool generations, and CSV\nfan-out (isolation and scale); Gemini CLI abstracts invocation behind a symmetric local/remote\nsession protocol (portability); Mistral Vibe runs sub-agents in-process and sequentially (simplicity); Hermes intersects toolsets and blocklists recursion by default (containment). Hadfield\net al. [17] describe orchestrator-worker as the natural pattern for “valuable tasks that involve\nheavy parallelization, information that exceeds single context windows, and interfacing with\nnumerous complex tools,” which is a fair description of a long-horizon coding session.\n\n11.11\n\nOrchestration Pipelines: Claude Code vs. Codex\n\nClaude Code and Codex are the two dominant commercial coding agents, each representing\nthe state of the art in its provider’s ecosystem. Their orchestration pipelines, end-to-end from\nuser request to completed task, take very different design positions. Table 18 highlights the key\ndivergences.\nThe table reveals two coherent philosophies whose gap narrowed measurably between our snapshots. Claude Code is compositional-prescriptive: it enforces structured phases (Research → Synthesis → Implementation → Verification), restricts sub-agent capabilities via tool whitelists, composes agents recursively, and optimizes aggressively around prompt-cache economics. Codex was\nsandboxed-emergent—safety guaranteed at the OS level, workflow organization left to the model—\nbut has grown prescriptive structure of its own: a user-facing collaboration-mode selector with a\nPlan preset, declarative sub-agent roles, depth-tracked spawn control, and a Guardian classifier that\nmirrors Claude Code’s middle permission layer, while Claude Code’s hook vocabulary and plugin format have become Codex interfaces (Section 14.5). Both produce strong results on real-world\nbenchmarks; the residual philosophical difference is where safety is guaranteed (OS enforcement vs.\nlayered review), not how workflows are organized.\n\n45\n\n\f12\n\nExtensibility Mechanisms\n\nEvery system in the corpus provides extension points, though through quite different mechanisms.\n\n12.1\n\nPlugin Architectures\n\nOpenClaw provides the most mature plugin architecture in the corpus—and since the spring 2026\nreleases, an externalized one: official provider and channel plugins were cut over to standalone firstclass npm packages with manifest-first metadata, moving model catalogs and routing tables out of\ncore. Plugins are manifest-driven (openclaw.plugin.json), discovered in the workspace directory,\nloaded dynamically via jiti, and registered through typed SDK contracts:\n• Channel plugins: Implement ChannelEntry (receive, send, status, configure).\n• Provider plugins: Implement ProviderEntry (inference stream).\n• Skill plugins: Register via capability system.\nStrict import boundaries are enforced: extension production code may only import the public\nplugin-SDK surface and local API barrels. Direct imports of src/** are prohibited.\nOpenClaw is, however, no longer alone in the manifest-driven-plugin camp. Codex’s plugin\narchitecture expanded substantially between our snapshots: a marketplace-add pipeline (GitHub,\ngit, local paths, URLs), a model-callable in-conversation approval tool (request_plugin_install),\n.claude-plugin format compatibility, and workspace-level sharing joined an already-present plugin\nmanager; plugins contribute tools, skills, and lifecycle hooks. OpenHands’s plugin system makes\nthe convergence explicit: its plugins bundle skills, hooks, MCP config, agents, and commands, and\nits manifest loader accepts the directories [\".plugin\", \".claude-plugin\"] with plugin.json—it\ndeliberately reads Claude Code’s plugin format, the clearest interoperability-by-adoption case in\nthe corpus. Claude Code itself supports MCP servers (for external tools), skills (for specialized\nworkflows), and agent definitions (for custom agent types) via a JSON/Zod schema with built-in,\ncustom, and plugin sources (Section 11.2). Pi relocates the entire question: extensions are runtimeloaded TypeScript modules against an API of ∼33 typed events spanning session lifecycle, tool interception (blocking and in-place argument mutation), whole-context rewriting, and—unusually—raw\nprovider I/O surgery (before_provider_request, after_provider_response); the repo ships 78\nexamples that are, feature for feature, other harnesses’ built-ins, most at 1–16 KB each, distributed\nthrough a package manager (pi install npm:...|git:...). OpenCode’s plugins are async functions returning ∼20 typed hooks (chat.params, tool.execute.before/after, tool.definition\nrewriting, multi-step OAuth auth flows), executed sequentially for determinism; custom tools need\nno plugin at all—any .opencode/tool/*.ts export becomes a tool.\nGemini CLI: Extensions + Slash Commands + Early MCP Adoption. Gemini CLI\nships an explicit ExtensionLoader interface backed by the GeminiCLIExtension type. Extensions\ncan contribute custom tools (typically via MCP), slash commands, hooks, skills, and GEMINI.md\nsnippets, and are discovered from the ~/.gemini/extensions/ directory. Gemini CLI was an early\nadopter of MCP, with first-class implementations for stdio-spawned local servers, SSE connections,\nand Streamable HTTP transports, plus built-in auth providers (google-credentials, OAuth).\nMCP support extends beyond tools to prompts and resources (the broader MCP spec), which\nmost other systems’ adapters omit. Slash commands (/agent, /mcp, /skill, /memory, /help) are\nthemselves extensible via skill metadata, allowing extensions to register new commands.\nMistral Vibe: Skills, MCP, Custom Tools, Agents, and Hooks. Mistral Vibe’s\nextensibility surface has grown to five orthogonal axes. Skills follow the agentskills.io specification [43]: each is a directory containing a SKILL.md with YAML frontmatter, discovered\nfrom .agents/skills/, .vibe/skills/, ~/.vibe/skills/, ~/.agents/skills/, and any userconfigured paths—now supplemented by built-in skills (including a “self-awareness” skill that\n46\n\n\fdocuments the harness to itself) and a remote registry client that installs versioned skills from\na hosted catalog. See Section 12.5 for full cross-system comparison. MCP servers are declared\nas [[mcp_servers]] blocks supporting http, streamable-http, and stdio transports, with\ntools namespaced as {server_name}_{tool_name} and permissioned identically to built-ins; the\nlayer matured between snapshots into a managed integration surface—OAuth login flows driven\nfrom the TUI (/mcp add|login|logout|status), a curated registry of hosted Mistral “connectors,” and an MCP sampling handler that lets connected servers borrow Mistral Vibe’s LLM\nbackend for their own completions, a reverse dependency no other corpus system implements.\nCustom tools can be added via path-based discovery (tool_paths); custom system prompts as\n~/.vibe/prompts/{prompt_id}.md; and custom agents as ~/.vibe/agents/{agent_name}.toml\nwith a deep-merge override mechanism on the base config—itself now part of an explicit\nconfiguration-layer stack (default, user TOML, trusted-project .vibe/config.toml, VIBE_*\nenvironment, runtime overrides, agent profile). The fifth axis is user-facing lifecycle hooks:\nbefore_tool/after_tool/post_agent_turn shell hooks declared in hooks.toml can deny a\ntool call, rewrite its inputs, or append context—a direct structural sibling of Claude Code’s\nPreToolUse/PostToolUse, layered on top of (not replacing) the internal middleware pipeline.\n\n12.2\n\nProtocol-Based Interfaces\n\nMini-SWE-Agent uses Python Protocols for structural subtyping: any class implementing the\nModel, Agent, or Environment protocol can be substituted without inheritance. This is the lightestweight extensibility mechanism, requiring no registration, no manifest, and no SDK, just interface\nconformance.\n\n12.3\n\nConfiguration-Driven Extensibility\n\nAider’s model registry contains per-model metadata for 350+ models, including edit format, weak\nmodel name, cache control settings, extra API parameters, reasoning tag handling, and editor model\nconfiguration. This data-driven approach enables support for new models without code changes.\nCodex’s layered TOML configuration now extends above the user: mobile-device-management\n(MDM), host-wide system, and enterprise cloud-delivered layers enter as base defaults beneath user\n(config.toml plus named profiles), project (.codex directory), and session-flag scopes, while a\nseparately composed requirements/constraint engine (fed from the same MDM, system, and cloud\nsources) validates and can hard-restrict what the lower layers may set. It is the most enterprisegovernance-oriented configuration model in the corpus. Mistral Vibe now mirrors the layered\napproach (six layers merged by a ConfigBuilder with per-field merge strategies), making explicit\nconfig-layer stacks a two-system pattern.\nOpenClaw’s config system is the most complex in the corpus: a Zod-validated openclaw.json\nwith hundreds of nested structures, plus a large auto-generated TypeScript file of validation rules\nfor all bundled channels alongside a hand-maintained schema-help surface.\n\n12.4\n\nModel Context Protocol (MCP)\n\nMCP remains a cross-cutting extension mechanism, supported by Claude Code, Codex, Gemini CLI, Mistral Vibe, OpenHands, Hermes, OpenCode, and OpenClaw—8 of 11 systems (7\nof 10 coding-first). OpenHands implements MCP via MCPToolAction/MCPToolObservation event\ntypes, with a single MCPServer model validating four transports (stdio, http, streamable-http,\nsse) and first-class authentication up to full OAuth flows with token state. Hermes’s support\nis near-complete (stdio/Streamable HTTP/SSE, resources, prompts, sampling, elicitation, OAuth;\nonly prompt-list-change notifications ignored), and Hermes is itself an MCP server, matching\nOpenClaw’s channel bridge. OpenCode covers tools, prompts, resources, and resource templates\nwith OAuth dynamic client registration (sampling and elicitation explicitly disabled with trackingissue comments). The corpus’s one principled holdout is Pi, whose documentation rejects MCP\n\n47\n\n\foutright—“build CLI tools with READMEs”—making skills-plus-shell its articulated alternative to\na wire protocol.\n\n12.5\n\nSkills as an Emerging Capability-Bundle Standard\n\nAlongside MCP, a second cross-cutting extensibility mechanism has shown up in the corpus: skills.\nMCP standardizes how an agent talks to an external tool process; skills standardize how an agent\npackages a unit of expertise into a discoverable directory (instructions, optional scripts, optional\ntool whitelists, metadata) that can be dropped into a project or user home and picked up by the\nagent at discovery time. Mitra et al. [80] frame the same idea from the training side: skills as\nteachable units in agentic flows. Nine of the eleven systems implement some form of skills system;\nonly Aider and Mini-SWE-Agent omit it (Table 10).\n\n48\n\n\fTable 10: Skills support across the eleven systems. “Spec” indicates conformance with the\nagentskills.io specification (SKILL.md + YAML frontmatter, name/description required).\nSystem\n\nSkills? Discovery paths\n\nClaude Code\n\n✓\n\nCodex\n\n✓\n\nGemini CLI\n\n✓\n\nMistral Vibe\n\n✓\n\nOpenHands\n\n✓\n\nHermes\n\n✓\n\n~/.hermes/skills/ (seeded\nfrom 72 bundled; 102 more\nofficial skills installable via the\nSkills Hub) + read-only\nexternal_dirs\n\nPi\n\n✓\n\n~/.pi/agent/skills/,\n~/.agents/skills/,\n.pi/skills/, .agents/skills/\n(cwd to git root), packages,\n–skill; project paths\ntrust-gated\n\nOpenCode\n\n✓\n\nOpenClaw\n\n✓\n\n{skill,skills}/**/SKILL.md\nin config dirs,\n~/.claude/skills, .claude/,\n.agents/ walk-up, extra paths,\nremote URL registries\n(versioned index.json cache)\n~/.openclaw/skills/,\n.agents/skills/,\nplugin-provided,\nskills.load.extraDirs config\n\nAider\nMini-SWE-Agent\n\n✗\n✗\n\n.claude/skills/,\n~/.claude/skills/, plus\ndynamic discovery on file edits\ngated by paths frontmatter\ncore-skills/ + skills/ roots;\nplugin-provided skill roots\n\nInvocation\n\nSkillTool (deferred);\nCustom (path-gated extension);\nMCP prompts dedup’d hybrid eager + on-demand\nvia uniqBy on name\nskills/list\napp-server RPC +\nTUI $-mention;\nimplicit-invocation\ndetection\n\n~/.gemini/skills/,\nActivateSkill tool\n.gemini/skills/,\nwraps skill in XML\n.agents/skills/, plus built-ins with\n(skill-creator,\navailable_resources\nantigravity-support);\ntree; permissionprecedence\nconfirmation UI\nworkspace&gt;user&gt;built-in\n.agents/skills/,\nskill tool (deferred);\n.vibe/skills/,\nuser /skill-name\n~/.vibe/skills/,\ninvocations\n~/.agents/skills/, user\nmaterialized as\nskill_paths; trust-gated\nsynthetic tool calls\nproject discovery\nMetadata in\n{workdir,git-root}/.agents/skills/,\n&lt;available_skills&gt;;\n.openhands/skills/ (+legacy\nbody on demand via\nmicroagents); user equivalents\nbuiltin invoke_skill\n+ managed installs\ntool\n\n—\n—\n\nSpec / loading\n\nThree-tier progressive\ndisclosure: index in\nprompt → skill_view\n→ linked assets; skills\ndouble as slash\ncommands\nNo dedicated tool:\n&lt;available_skills&gt;\nXML index; body\nloaded via the\nordinary read tool;\n/skill:name\nexpansion\nNative skill tool\n(deferred: catalog lists\nname+description\nonly)\n\nInjected as XML in\nsystem prompt;\n/skills slash\ncommand lists eligible\n\n—\n—\n\nCustom Rust; metadata eager\nunder a context-scaled token\nbudget, body injected on\n$-mention or detected\ninvocation; skills declare\nMCP/env dependencies that\nCodex auto-installs\nagentskills.io-aligned with\nisBuiltin extension; eager\nstartup walk;\npath-traversal-hardened installs\n\nFull agentskills.io\ncompliance; remote registry\nclient (versioned catalog);\nbuiltin self-awareness skill\n\nagentskills.io flag; progressive\ndisclosure; PathTrigger rules\non file-touch; server\nCRUD/sync/marketplace API;\ningests\nAGENTS.md/.cursorrules as\nscoped rules\nagentskills.io-compatible;\ntrust-tiered Skills Hub\n(builtin/trusted/community)\nwith pre-install scanning and\nquarantine; self-authoring via\nskill_manage\nagentskills.io, deliberately\nlenient (warns, still loads);\ndisable-model-invocation\ngating\n\nagentskills.io field set; per-skill\npermission gating\n\nagentskills.io-compatible; gating\nvia\nmetadata.openclaw.requires\n(bins, env, OS); governed\ninstalls (Skill Workshop\napproval flow,\nprovenance-verified ClawHub)\n—\n—\n\nConvergence on the SKILL.md format and the .agents/skills/ path. The format is\nessentially universal among the nine adopters: a directory named after the skill, containing a\nSKILL.md file with YAML frontmatter (at minimum a name and description, often with optional fields like paths, requires, or user-invocable). The .agents/skills/ discovery path,\n49\n\n\fthe canonical agentskills.io location, is accepted by six systems (Mistral Vibe, Gemini CLI,\nOpenClaw, OpenHands, Pi, OpenCode), and the vendor-specific homes (~/.claude/skills/,\n~/.gemini/skills/, ~/.vibe/skills/, ~/.hermes/skills/, ~/.pi/agent/skills/, ~/.openclaw/skills/)\ncoexist with project-local equivalents. The sharpest interoperability datum: OpenCode deliberately searches a competitor’s home—its discovery list includes ~/.claude/skills and .claude/\ndirectories, so skills installed for Claude Code work in OpenCode unmodified.\nSkills versus MCP: the tie has broken. MCP and skills address different layers. MCP is\na wire protocol for an agent to talk to a separately running process that exposes tools, prompts,\nand resources; skills are a file-system convention for packaging an instruction-plus-script bundle the\nagent reads directly. The two compose: Claude Code’s skill registry deduplicates MCP-supplied\nprompts that look like skills, and Mistral Vibe composes in the other direction, letting MCP\nservers borrow its LLM via sampling while skills arrive from a hosted registry. In April the two\nstandards were tied at 6/8 adoption; the expanded July corpus breaks the tie in skills’ favor—skills\n9/11, MCP 8/11—because Pi implements agentskills.io while rejecting MCP outright. Skills-asMCP-replacement is now an articulated position, not a coexistence.\nDeferred loading as the dominant pattern. Echoing Claude Code’s deferred tool loading (Section 8.3), eight of the nine adopters now load only skill metadata eagerly and fetch\nbodies on demand—via a dedicated tool (SkillTool, ActivateSkill, skill, OpenHands’s\ninvoke_skill), via $-mention and implicit-invocation detection (Codex), via a three-tier disclosure chain (Hermes), or, most minimally, via the ordinary read tool against an XML index\n(Pi). OpenHands, an eager outlier in April, moved to progressive disclosure with the V1 SDK;\nOpenClaw remains the one eager loader, compensating with eligibility gating so ineligible skills\nnever reach the prompt.\nGating and conditional activation. The most architecturally interesting variation is conditional activation. OpenClaw’s skills declare runtime requirements (binaries on PATH, environment\nvariables, OS family) and are filtered at load time, preventing “how to use kubectl” from polluting the prompt on a machine without it. Claude Code’s paths frontmatter activates a skill\nwhen the model touches matching files (via the Read, Edit, or Write tools), and OpenHands now\nimplements the same idea as PathTrigger rules injected on file-touch—marrying skills to the JIT\ncontext philosophy of [19]. This is a structural advance over MCP, which treats every connected\nserver symmetrically regardless of whether its tools are relevant to the current task.\nSkills grow a supply chain—and authors. Distribution has professionalized in one quarter.\nRemote registries now exist in four systems (Mistral Vibe’s hosted catalog client, OpenCode’s\nURL registries with versioned index caches, Hermes’s Skills Hub, OpenHands’s marketplace API),\nand with distribution comes supply-chain security: Hermes applies trust tiers, pre-install static\nscanning, quarantine, and dependency checks; OpenClaw routes installs through an approval workflow with provenance-verified sources; Gemini CLI hardened skill installs against path traversal;\nCodex auto-installs a skill’s declared MCP-server dependencies (optionally after prompting). More\nstriking still, skills have acquired non-human authors: Hermes’s background-review agent creates\nand patches skills from completed tasks (with a curator maintaining the collection), and Gemini CLI’s extraction sub-agent mines sessions into skill patches for inbox review. The capabilitypackage layer is acquiring package-manager economics—registries, provenance, and now generated\npackages—at remarkable speed.\n\n50\n\n\fObservation 8. Skills have overtaken MCP as the corpus’s most-adopted extensibility standard: 9/11 systems implement SKILL.md bundles (only Aider and Mini-SWE-Agent abstain) versus 8/11 for MCP, the tie of April broken by Pi’s explicit skills-yes-MCP-no position.\nThree second-order developments mark the layer’s maturation: deferred loading is now the nearuniversal strategy (8 of 9 adopters); conditional activation (Claude Code paths, OpenHands\nPathTrigger, OpenClaw requires) pushes JIT context engineering into the extensibility layer;\nand a supply chain has emerged—hosted registries in four systems, trust tiers and quarantine\nin Hermes, provenance verification in OpenClaw—together with the first agent-authored skills\n(Hermes’s self-improving loop, Gemini CLI’s extraction inbox).\n\n13\n\nCross-Cutting Observations and Implications\n\n13.1\n\nArchitectural Pattern Catalog\n\nTables 11 and 12 catalog the 29 recurring design patterns identified across the eleven systems: the\nseventeen of the April edition (with membership updated) plus twelve contributed or crystallized\nby the expanded corpus.\n\n51\n\n\fTable 11: Catalog of 29 recurring architectural patterns (1/2): the April-edition seventeen, membership updated to July 2026.\nPattern\n\nDescription\n\nUsed By\n\nEvent Sourcing\n\nActions/observations appended to\na persistent event log\nSafety rules as executable\nconfigurations\n\nOpenHands, Pi (session log-as-tree),\nOpenCode (log-as-queue; v2 tables)\nCodex (Starlark, with inline\nvalidated examples), Claude Code\n(hooks), Gemini CLI (TOML\nmodes), Hermes (config-as-policy +\nhardline floor), OpenCode (rulesets),\nPi (extension hooks)\nClaude Code, Codex, OpenHands,\nOpenClaw; config-gated in Hermes,\nopt-in in OpenCode\nAider (prompt factory), OpenCode\n(tool registry)\nClaude Code, Codex (BM25\ntool_search), Hermes (BM25 bridge\ntools), + 8 skills implementations\nAider (Coder), OpenHands (Agent)\n\nPolicy-as-Code\n\nRecursive Composition\n\nAgents spawn sub-agents with\nforked/linked context\n\nPolymorphic Edits\n\nModel-aware edit format/toolset\nselection\nTools/skills hidden from prompt,\ndiscovered on demand\n\nDeferred Loading\n\nTemplate Method\nProtocol Interfaces\nLLM Summarization\nStuck Detection\n\nReflection Loop\nPrompt Caching\n\nContext Forking\nMiddleware Pipeline\nJIT Repo Context\n\nSkills (capability\nbundles)\nConditional Activation\n\nTurn-Level Checkpoint\n\nBase class defines flow; subclasses\noverride parse/format\nStructural subtyping / interface\nseams for pluggable components\nLLM compresses conversation\nhistory\nAutomated detection of repetitive\nagent behavior\n\nInner self-correction cycle with\nlint/test feedback\nCache-boundary prompt structure\nor session-key reuse\n\nCloning parent state for sub-agent\nisolation\nComposable turn-level policies\northogonal to loop body\nHierarchical Markdown context\nfiles auto-discovered + on-demand\ninjection\nSKILL.md directories with YAML\nfrontmatter\nSkills/tools gated by environment\nor file paths\nFilesystem snapshots with rewind\nand file restoration\n\nMini-SWE-Agent, Pi (per-tool\nOperations remoting seam)\n9 systems (all but\nMini-SWE-Agent, Aider-partial)\nOpenHands (5 scenarios),\nGemini CLI (hybrid hash+LLM),\nHermes (warn-first signatures),\nOpenCode (doom-loop ask),\nMini-SWE-Agent (format-error cap)\nAider; cousins: Gemini CLI (edit\nfixer), OpenCode (LSP feedback)\nClaude Code, Codex, OpenHands\n(cache tiers), Hermes (prefix\nnormalization), Pi\n(breakpoints+TTL), OpenCode\n(dialect fanout)\nClaude Code, Codex, Hermes\n(cache-sharing background fork)\nMistral Vibe\nClaude Code, Codex, Gemini CLI,\nMistral Vibe, Hermes, Pi,\nOpenCode, OpenHands\n9 systems (all but Aider,\nMini-SWE-Agent)\nClaude Code (paths), OpenHands\n(PathTrigger), OpenClaw\n(requires)\nMistral Vibe (per user message),\nOpenCode (shadow-git, per step),\nHermes (shadow-git store), Pi\n(conversation-only)\n\n52\n\n\fTable 12: Catalog of 29 recurring architectural patterns (2/2): the twelve patterns new to the July\ncorpus.\nPattern\n\nDescription\n\nUsed By\n\nAgent-Maintained\nMemory\n\nBackground sub-agent extracts and\nconsolidates cross-session memory\n\nOuter Verification\nLoop\n\nScaffold-level judge/guard\nvalidating completion, outside the\nturn loop\nAgent authors, patches, and\ncurates its own capability bundles\nCompaction as session rotation\nwith searchable ancestry chain\nAppend-only entry tree with\nmovable head; fork/rewind/branch\nsummaries\nSafety, sandbox, sub-agents, plan\nmode relocated to a runtime event\nbus\nEmbedded API server; every UI\n(TUI, web, IDE, CI) is a client\nDistinct base prompts dispatched\nper model family/generation\nAll providers’ cache-control\ndialects emitted simultaneously\nCommands parsed (tree-sitter) and\ngrants scoped by argument arity\n\nCodex (two-phase, git-baselined);\nhuman-gated variant in Gemini CLI\n(patch inbox)\nOpenHands (/goal judge + critics),\nHermes (verify-on-stop)\n\nSelf-Improving Skill\nLoop\nLineage Compaction\nSession-Tree Version\nControl\nMinimal-Core /\nExtension-Host\nClient/Server Harness\nModel-Family Prompt\nMatrix\nCache-Dialect Fanout\nSyntax-Aware\nCommand\nPermissioning\nUntrusted-Content\nDelimiting\nHarness Mimicry\n\n13.2\n\nTool/web results wrapped in taint\nmarkers with delimiter defanging\nClient presents a first-party\nharness’s identity (headers, prompt\nopening, tool-name casing) to ride\nits subscription OAuth backend\n\nHermes; partial: Gemini CLI\n(skill-extraction inbox)\nHermes\nPi; OpenHands (conversation tree)\n\nPi\n\nOpenCode; OpenHands\n(agent-server)\nCodex (server catalog), OpenCode\n(9 prompts), Hermes (gated blocks)\nOpenCode\nOpenCode; Mistral Vibe\n(parse-validation), Hermes\n(deobfuscated matching)\nHermes, OpenHands\n(&lt;UNTRUSTED_CONTENT&gt;)\nPi (Claude Code identity on\nAnthropic OAuth; ChatGPT-plan\nCodex backend)\n\nThe Twin Absences: No Agentic Frameworks, No Code RAG\n\nTwo technologies that the broader LLM-application literature treats as central to any production\nagent turn out to be missing from all eleven systems.8 For this analysis, the absences are at least\nas informative as the presences.\nAbsence 1: agentic frameworks. Every dependency manifest was inspected, and every source\ntree grepped for imports of the widely deployed agentic frameworks: LangChain, LangGraph, LlamaIndex, AutoGen, CrewAI, Pydantic AI, Genkit, Haystack agents, Semantic Kernel, Google’s\nADK, and several smaller libraries (Smolagents, Swarm, Agno). Across roughly 4 M lines of Python,\nTypeScript, and Rust, no production agent code path imports any of them—a result worth savoring in two directions: Gemini CLI uses neither of Google’s own frameworks (Genkit, ADK), and\nHermes’s only “LangChain” strings sit inside bundled skill documentation teaching the agent how\nusers might use vector databases. Two boundary cases deserve precision. Aider ships one optional framework-adjacent extra: its /help command can install llama-index to run doc-RAG\nover aider’s own documentation—an opt-in feature dependency, not agent-loop orchestration. And\nOpenCode delegates its inner LLM/tool plumbing to Vercel’s AI SDK—a provider-abstraction\nlayer, not an agent-orchestration framework, but the first corpus system whose inner loop plumbing is a third-party SDK at all (an in-house replacement client sits behind a flag, suggesting the\ndependency is transitional).\n8\n\nWe expected to find at least some use of LangChain or another framework in the open-source projects. The uniformity surprised us; the search for counterexamples (vendored dependencies, dynamic imports, transpiled TypeScript\nbuilds) ran for several weeks before we accepted the result. The July re-audit repeated the manifest and import sweep\nacross all twelve trees, including the three systems new to the corpus and the meta-harness.\n\n53\n\n\fEvery loop is hand-rolled in the host language’s native primitives: asyncio (OpenHands, Mistral Vibe, Hermes), blocking synchronous Python (Aider, Mini-SWE-Agent), Promise/asynciterator (Claude Code, Gemini CLI, Pi, OpenCode, OpenClaw), Tokio (Codex). Every tool\nregistry is custom-built around Pydantic, Zod, TypeBox, Effect Schema, or Rust enums. Every\nprompt template is plain Markdown, Jinja2, or string concatenation.\nAbsence 2: retrieval-augmented generation over code. A parallel search covered vectorstore dependencies (Chroma, Pinecone, Weaviate, Qdrant, Milvus, FAISS, LanceDB, sqlite-vec,\nElasticsearch in vector mode), embedding libraries, and folders or files matching embedding,\nvector_store, vectordb, rag, or retrieval. For code retrieval the result is unchanged and now\nspans eleven systems: zero. The exceptions all concern conversation memory, and here the July\npicture did shift: OpenClaw’s default memory plugin (memory-core) now runs a hybrid sqlite-vec\nKNN + FTS5/BM25 search with embeddings on by default (the provider defaults to OpenAI; a local GGUF model is opt-in; the April-era LanceDB extension survives as an optional plugin), making\nOpenClaw the one system where embeddings are on by default—for chat recall, never for reading\nthe source tree. Hermes demonstrates the opposite choice at scale: its core past-conversation\nsearch is deliberately lexical (trigger-maintained SQLite FTS5, BM25 plus trigram tokenization for\nCJK, “no LLM calls anywhere”), with embeddings confined to opt-in memory plugins.\nWhat the eleven systems use instead of RAG for code retrieval is summarized in Table 13.\n\n54\n\n\fTable 13: Code-retrieval mechanisms used by each system, in lieu of vector-based RAG (July 2026).\nSystem\n\nEmbeddings\nused?\n\nCode-retrieval mechanism\n\nOpenHands\n\nNo\n\nAider\n\nClaude Code\n\nOptional /help\nextra only\n(doc-RAG over\naider’s own docs)\nNo\n\nGrepTool/GlobTool + terminal; context-file\ningestion (AGENTS.md, .cursorrules); tree-sitter\nno longer present in the SDK\nRepoMap: tree-sitter symbol extraction with\ntoken-budget-constrained PageRank-style ranking\n\nCodex\n\nNo\n\nGemini CLI\n\nNo\n\nMistral Vibe\n\nNo\n\nMini-SWE-Agent\nHermes\n\nNo\nOpt-in memory\nplugins only\n\nPi\n\nNo\n\nOpenCode\n\nNo\n\nOpenClaw\n\nDefault hybrid\nmemory search\n(sqlite-vec KNN +\nFTS5/BM25;\nOpenAI embedder\nby default, local\nGGUF opt-in) for\nconversation\nmemory only, never\ncode\n\nripgrep keyword search + BashTool + on-demand\nfile Read; CLAUDE.md auto-discovery\nRust-native file search; AGENTS.md root-to-cwd\nconcatenation\nBundled ripgrep + glob tools; GEMINI.md\nauto-discovery; MEMORY.md project index; JIT\nsubdirectory context\nripgrep + tree-sitter (bash parsing) + filesystem\nsearch; git status injection; JIT nested\nAGENTS.md\nGrep-based search via shell tools\nripgrep-backed search_files; SQLite FTS5\n(BM25 + trigram) over session history; LSP for\npost-write diagnostics only; no repo map\nAuto-downloaded ripgrep + fd binaries (latest\nrelease; system binaries preferred) behind\ngrep/find tools; ancestor-walk context files;\nsession search is a deterministic linear scan\nBundled ripgrep (grep/glob, 100-result cap); ∼25\nauto-downloaded LSP servers feed diagnostics (no\npersistent index); lazy nested AGENTS.md attach\nN/A for code retrieval; standard filesystem APIs\n\nWhy the twin absences matter. The first absence corroborates advice from the agent designers\nthemselves. Schluntz &amp; Zhang’s Building Effective Agents [16] cautions that frameworks “often\ncreate extra layers of abstraction that can obscure the underlying prompts and responses, making\nthem harder to debug,” and recommends starting from raw SDK calls. That advice appeared in\nDecember 2024; the source-code audit we run here, in 2026, shows that every commercial provider\nhas followed it. This is worth noting because the broader Python LLM-application community has\nkept investing in framework abstractions over the same period. Production SWE agents appear to\noperate on a different complexity budget from generic LLM applications. Hand-rolled debuggable\ncode wins out over reusable abstractions once the agent is mutating real source code, because the\nfailure modes (silent prompt corruption, opaque caching, version-incompatible tool schemas) become\ntoo expensive to shrug off.\n\n55\n\n\fThe second absence is consistent with recent guidance from Rajasekaran et al. [19] (September 2025), who favor “just-in-time” (JIT) retrieval while recommending a hybrid approach: “We\ndon’t memorize entire corpuses of information, but rather introduce external organization and indexing systems like file systems, inboxes, and bookmarks to retrieve relevant information on demand.”\nThe blog post does not flatly reject pre-indexed retrieval, but its practical recommendations all point\ntoward JIT methods. Every system in the corpus follows this approach, even though repository-level\nretrieval over code is a well-studied area: RepoCoder [60], RepoBench [61], and CrossCodeEval [62]\nall build retrieval pipelines for code, and Long Code Arena [64] provides matching long-context evaluation. Wang et al.’s CodeRAG-Bench [63] asks the very question this section raises, “can retrieval\naugment code generation?”, and finds gains that are highly variable across tasks: substantial for\ndocumentation-lookup and library-use scenarios but marginal or absent for tasks where the model\nalready has sufficient parametric knowledge. The inconsistency of these gains may help explain why\nproduction SWE agents skip the RAG layer entirely rather than investing in task-dependent retrieval\nrouting. The reasons are domain-specific. Code carries dense deterministic structural metadata—\nfile paths, language servers, tree-sitter parses, type information—that semantic-similarity retrieval\ncannot replicate (and that structure-aware tools such as RepoAgent [65] and Aider’s RepoMap\nexploit directly). Code changes minute to minute, so pre-indexed embeddings are stale almost by\nconstruction. Every coding environment already ships a near-optimal retrieval system in the form of\nripgrep, find, and glob. On the typical SWE-agent task, RAG adds operational cost (embedding\ncompute, vector-store maintenance, drift management) without offering marginal value.\nObservation 9. Two technologies that the broader LLM-application literature treats as central\nare missing from all eleven systems—a finding that survived a threefold corpus expansion and a\nthree-month re-audit. No system uses a general-purpose agentic framework in its agent runtime\n(LangChain, LangGraph, AutoGen, CrewAI, or any of a dozen others checked; Gemini CLI\nuses neither of Google’s own); every loop is hand-rolled in the host language’s async primitives,\nwith OpenCode’s use of a provider-abstraction SDK for inner plumbing as the closest boundary\ncase. No system uses vector-embedding RAG for code retrieval; all rely on ripgrep, tree-sitter,\nglob, and auto-discovered Markdown context files, and where conversation-scale recall is needed,\nthe production answer is lexical search (Hermes’s SQLite FTS5) or, in exactly one default\nconfiguration (OpenClaw), hybrid embeddings over chat history—never over the source tree.\nProduction harnesses operate on a different complexity budget from generic LLM applications:\ndebuggability and prompt transparency outweigh framework reuse when the failure mode is\nmutating real code. Section 14.2 gives the absence its historical resolution.\nObservation 10. The architectural patterns described in Anthropic’s Effective Agents engineering series (December 2024 through September 2025) line up closely with the architectures\nobserved across the four provider-native systems, which were built independently. Whether this\nreflects shared empirical reality, public-guidance influence, or both is an open question.\n\n13.3\n\nInter-Agent Protocols: Outward Adoption, Inward In-Process\n\nThe twin absences are about two technologies that simply do not appear in the corpus. Inter-agent\nprotocols (ACP, A2A) follow a different pattern again—and this is the dimension that moved most\nbetween our snapshots. ACP now ships as a first-class production dependency or implementation in six of the eleven systems: Mistral Vibe (agent-client-protocol==0.10.1, with session\nfork, workspace trust, and rewind exposed over the protocol), OpenClaw (gateway translator),\nOpenCode (opencode acp serves the agent side over stdio), Hermes (ACP adapter and registry\nmodules), OpenHands (an ACPAgent class, discussed below), and Gemini CLI (whose A2A module is a separate protocol for the mesh role). Outside the corpus, xAI’s Grok Build launched with\na documented ACP server mode on day one (Section 3.7; vendor-documented, not source-verified).\nNone of the corpus adoptions is experimental.\nWhat is interesting is the placement—and ACP now occupies three distinct architectural roles:\n\n56\n\n\f1. Editor ↔ agent (outward server). The LSP role for ACP [41]: Zed, JetBrains, and\nother IDEs drive a local agent as they would a language server. Mistral Vibe, OpenCode,\nHermes, OpenClaw, and Grok Build all serve this boundary.\n2. Agent-as-backend (inward host). The role nobody held in April: OpenHands’s\nACPAgent delegates its step() to an external ACP server, with provider metadata for\npinned claude-agent-acp, codex-acp, and gemini –acp binaries—rival harnesses become\ninterchangeable brains inside an OpenHands conversation. The meta-harness of Section 14.4\ndrives its Goose and Qwen adapters the same way (and taps Kiro’s ACP permission stream\nwhile driving its TUI), and Hermes consumes an ACP agent as a model transport (GitHub\nCopilot’s CLI as a chat backend). The protocol built for editors turned out to be the interface\nfor hosting.\n3. Cross-vendor mesh (A2A [42]). Still Gemini CLI’s alone in the corpus: a remote orchestrator drives a local Gemini CLI as one node in a multi-vendor topology, now with usage\nmetadata over the wire.\nTable 14 lists the communication mechanism each multi-agent system uses between a main agent\nand its own sub-agents, alongside its protocol roles.\nTable 14: Main-agent ↔ sub-agent communication and protocol placement (July 2026).\nSystem\n\nMain ↔ sub-agent\n\nProtocol roles\n\nSub-agents\ncross-proc.?\n\nClaude Code\n\nAgentTool function call +\ncontext fork + XML\nnotifications\nSession input queue with\nmailbox phases; typed records\ninvoke_agent behind\nlocal/remote session protocol\ntask tool, in-process asyncio\n\nNone at agent layer (ACP served\nby a separate adapter binary)\n\nNo\n\nNone at agent layer (codex-acp\nadapter external)\nA2A server (mesh role)\n\nNo\n\nACP server (editor role; rewind\nover protocol)\nACP client/host: rival harnesses\nas step() backends\nACP server (editors) and client\n(Copilot CLI as model backend)\n\nNo\n\nCodex\nGemini CLI\nMistral Vibe\nOpenHands\nHermes\n\nPi\n\nOpenCode\nOpenClaw\n\nTask/delegate tools,\nconcurrent threads\nIn-process thread forks;\nswarm via SQLite blackboard\nsubprocesses\nExtension spawns OS\nprocesses, JSONL over stdio\ntask tool, in-process child\nsessions\nACP session spawn over\nRPC (child process)\n\nProprietary JSONL RPC (∼30\ncommands) for embedding;\nACP/A2A/MCP absent by design\nACP server (agent side, stdio\nndjson)\nSame ACP inward and outward\n\nNo (internal)\n\nNo (own\nsub-agents)\nSwarm: yes\n(DB, not\nprotocol)\nYes (ext.;\nJSONL, not\nACP)\nNo\nYes\n\nThe inward/outward split of the April edition survives in refined form. For coordinating\ntheir own sub-agents, eight of the nine multi-agent systems still use in-process primitives or,\nwhere they cross processes, something other than the standard protocols: Pi’s extension spawns\nOS processes speaking plain JSONL, and Hermes’s swarm coordinates through a SQLite blackboard. What changed is the inward consumption of whole harnesses: hosting a rival agent as a\nswappable backend—OpenHands’s ACP hosting, Hermes’s ACP-as-model-transport, the metaharness’s adapter fleet—is a production pattern that did not exist in April, and ACP is its lingua\nfranca. Pi adds a final nuance: it rejects the standard protocols yet invents a proprietary outward\nRPC for the same embedding role—evidence that the outward-facing protocol pressure is real even\nwhere the standards are declined.\n\n57\n\n\fObservation 11. Inter-agent protocol placement has evolved from a two-role story (outward:\neditor integration and mesh; inward: nothing) to a three-role story. ACP ships in six of eleven\nsystems and now serves (1) its designed editor↔agent boundary, (2) a role outside the protocol’s design brief—harness hosting, where OpenHands runs Claude Code, Codex, or Gemini CLI as interchangeable step-backends and Hermes consumes an ACP agent as a model\ntransport—and (3) via A2A, still only in Gemini CLI, the cross-vendor mesh. For a harness’s\nown sub-agents, eight of nine multi-agent systems still use in-process primitives or, where they\ncross processes, something other than the standard protocols (Pi’s JSONL extension, Hermes’s\nSQLite-blackboard swarm); OpenClaw’s ACP spawn is the lone case that routes sub-agent\ncoordination over a standard protocol. The practitioner guidance sharpens accordingly: build\nan ACP server (it now buys you editors, hosts, and meta-orchestrators at once); keep your\nsub-agents in-process; and treat A2A as a bet on a cross-vendor mesh whose at-scale demand\nremains unproven.\n\n13.4\n\nTrade-off Framework\n\nWe formalize five fundamental trade-off axes:\nAxis 1: Simplicity vs. Capability. Mini-SWE-Agent’s minimal scaffold reportedly achieves\n74%+ on SWE-Bench Verified, while Codex’s far larger codebase reports 69.1%. These figures are\nnot directly comparable (different underlying models, different evaluation runs, different deployment\nconfigurations: Mini-SWE-Agent is unsandboxed and Codex is sandboxed) and we do not draw\na head-to-head conclusion from them. What the gap does illustrate, qualitatively, is that the\nadditional code in Codex is not invested in raw task-completion logic: a substantial share goes into\nsafety (cross-platform sandboxing), user experience (TUI, streaming), extensibility (MCP, plugins),\nand robustness. Whether the production scaffolding produces measurable improvements on the\nsame benchmark under matched conditions is an open question that this study does not answer\n(see Section 15 on threats to validity).\nAxis 2: Safety vs. Autonomy. Systems with more safety infrastructure (Codex, Claude Code)\nimpose more friction on agent actions. Systems with less safety (Mini-SWE-Agent, Aider) enable\nfaster execution but are unsuitable for enterprise deployment without additional safeguards.\nAxis 3: Provider Coupling vs. Agnosticism. Claude Code and Codex exploit providerspecific features (prompt caching, extended thinking, model-specific prompts) at the cost of vendor\nlock-in. LiteLLM-based systems sacrifice these optimizations for provider flexibility.\nAxis 4: Monolithic vs. Modular. Codex’s 126-crate, million-line Rust workspace optimizes\nfor type safety and performance. Mini-SWE-Agent’s single-file agent maximizes comprehensibility. Pi relocates the entire axis into runtime composition: a minimal core plus an extension\nevent bus. OpenClaw’s plugin SDK and OpenCode’s client/server split enable extensibility and\nembeddability respectively. Each point on this spectrum serves different user populations.\nAxis 5: Scaffold Complexity vs. Model Capability. This is the most philosophically interesting axis. Mini-SWE-Agent’s competitive benchmark performance demonstrates that current\nmodels are capable enough to succeed with minimal scaffolding. Production systems invest in\nscaffolding not because models need it for task completion, but because users need it for safety,\nreliability, and workflow integration.\n\n58\n\n\f14\n\nThe Platform Turn\n\nThe preceding sections dissected the harness as an artifact. This section argues that the artifact has\nchanged category: between 2025 and mid-2026, the coding-agent harness completed a turn from tool\nto platform—a runtime with its own extension ecosystem, package economics, governance layers,\nswitching costs, and, since June 2026, its own meta-layer. The April edition of this study advanced\na cautious version of this claim as the “CLI-as-framework hypothesis.” The evidence accumulated\nsince—in the corpus’s own source trees, in the vendor SDKs, and in the market—lets us state it as\na thesis.\n\n14.1\n\nFrom Hypothesis to Thesis: The CLI as Framework\n\nThe standard reading of the absence of LangChain, AutoGen, and the rest (Observation 9) is that\nproduction harnesses do not need frameworks. But there is a second reading: they do not need\nframeworks because the harness is itself the framework—the default orchestration layer through\nwhich developers ship software, not merely a tool they query.\nConsider what a framework traditionally provides: a loop, a tool registry, a memory layer, a\nconfiguration surface, an extension mechanism. Every one of these is present in every production system studied here. Claude Code ships a streaming ReAct loop, 43 registered tools, a\ncompaction-based memory manager, CLAUDE.md-driven configuration, MCP for integrations and\nSkills for capability bundles—and Codex, Gemini CLI, Mistral Vibe, Hermes, and OpenCode\ndo the same, each in its own idiom (Pi matches every element but MCP, which it pointedly rejects\nin favor of CLI tools plus its extension bus). The difference is that the “framework” is not a library\nthe developer imports into their code; it is a runtime the developer works inside of. The developer’s\n“program” is a natural-language task plus a tree of Markdown files (CLAUDE.md, AGENTS.md,\nGEMINI.md, SKILL.md) that configure the agent’s behavior, tool access, and domain knowledge.\nThe “API” is the filesystem, the terminal, and git.\nFour convergent signals from the corpus support this reading.\nSignal 1: Skills as declarative programs. Nine of the eleven systems implement Skills (Observation 8): directories containing a SKILL.md with instructions, optional scripts, and metadata.\nA skill is, functionally, a program written for an LLM runtime rather than for a CPU runtime. It\ndeclares what the agent should do (SKILL.md body), when it should activate (paths frontmatter in\nClaude Code, PathTrigger rules in OpenHands, requires in OpenClaw), and what tools it\nmay use. This is the structural analogue of a plugin in a traditional framework, except the programming language is English plus YAML frontmatter—and the layer now has registries, supply-chain\nsecurity, and agent authors (Section 12.5).\nSignal 2: Hooks and event buses as the extension substrate. In April, user-facing\nlifecycle hooks were a Claude Code distinctive. By July they are the dominant extension\nsubstrate—nine of the eleven systems, with only Aider and Mini-SWE-Agent abstaining:\nCodex ships hooks whose event names are verbatim Claude Code’s; OpenHands wires\npre_tool_use/post_tool_use/stop hooks into Agent.step(), with an agent allowed as a hook\nhandler; Mistral Vibe added hooks.toml shell hooks (deny, rewrite inputs, append context)\nalongside its internal middleware pipeline; Gemini CLI exposes eleven loop-lifecycle events to\nextensions; Pi is an event bus, with ∼33 typed events spanning tool interception to raw provider\nI/O; OpenCode’s plugins are functions returning twenty typed hooks. This is the same extension\nmodel that web frameworks and build systems have used for decades, applied to an LLM execution\nloop. The developer is not writing for the agent; they are writing inside it.\nSignal 3: The disappearing boundary between tool and workflow. In a traditional development workflow, the developer writes code, runs tests, reads logs, commits, and opens PRs as\ndiscrete steps. In a harness workflow, these steps are delegated to the agent via natural-language\n59\n\n\finstructions and executed through the agent’s tool system. The agent loop is the workflow engine:\nClaude Code’s coordinator phases, Codex’s update_plan tool and /goal workflows, OpenHands’s judge-audited goal loop. When the developer types a task and the agent spawns subagents, dispatches tools, manages context, and produces the result, the CLI has subsumed the role\nof the build system, the task runner, and the IDE.\nSignal 4: The harness as a service surface. The clearest post-April signal: harnesses now\nship the interfaces of platforms. OpenCode embeds an HTTP server publishing an OpenAPI\nspec and a generated SDK, with every UI—TUI, desktop, web, IDE plugin, CI action—as a client.\nOpenHands exposes conversations through an OpenAI-compatible gateway, so any tooling that\ncan call a chat-completions endpoint can drive an agent: the agent as a model. Mistral Vibe\nteleports local sessions to a hosted runtime; Claude Code pairs its SDK with a hosted Managed\nAgents API. A runtime with clients, SDKs, and hosted tiers is not a tool with an ecosystem; it is a\nplatform with distribution.\n\n14.2\n\nThe Harness–Framework Merger\n\nIf the harness is the framework, the two artifact categories should merge—and in 2026 they are\nmerging, visibly, from both directions (Table 15).\nTable 15: The harness–framework merger, July 2026: named, versioned, installable artifacts.\nDirection\n\nArtifact\n\nWhat it is\n\nHarness → framework\n\nClaude Agent SDK [38]\n\n“Claude Code as a library”: the same tools, loop,\ncontext management, hooks, and subagents,\nimportable in Python/TypeScript; plus a hosted\nManaged Agents API\n\nopenai-codex SDK\n\npip install openai-codex: start Codex\nthreads, run turns, stream progress, control\nworkspace access; Python/TypeScript, shipped\nin the Codex repo\n\nOpenHands agent SDK\n\nThe V1 restructuring is an SDK-ization: the\nagent became openhands-sdk/openhands-tools\npackages plus an agent server\n\nPi packages / OpenCode SDK\n\npi-agent-core importable + RPC mode;\ngenerated @opencode-ai/sdk over the embedded\nserver\n\nDeep Agents [37]\n\nLangChain’s harness on LangGraph: todo\nplanning, virtual filesystem with permissions,\nsubagents, SKILL.md skills with progressive\ndisclosure, AGENTS.md memory\n\nPydantic AI Harness [39]\n\n“The batteries” for pydantic-ai: composable\ncapabilities (filesystem, code mode in a\nRust-sandboxed interpreter) that turn a\nframework agent into a coding agent\n\nStrands harness-sdk [40]\n\nThe merger in a repository name: a framework\norganization shipping “the agent harness itself”\nas an SDK\n\nFramework → harness\n\nBoth directions converge on the same artifact shape—loop + tools + skills + sub-agents +\nhooks + MCP + sessions—whether one starts from a terminal product or from an orchestration\nlibrary. The convergence is itself validation: when LangChain, the framework whose absence from\nevery harness runtime Observation 9 documents, finally built a harness, it independently adopted the\n\n60\n\n\fcorpus’s conventions (SKILL.md progressive disclosure, AGENTS.md memory, sub-agent spawning,\ntodo planning). And the meta-harness of the next subsection completes the picture from above: its\nbaseline installation imports claude-agent-sdk and openai-agents as production dependencies—\nthe “frameworks” a 2026 orchestration layer builds on are the harness SDKs. The twin absence of\n2025-era frameworks thus gets its historical resolution: harnesses did not adopt the frameworks; they\nreplaced them, became importable themselves, and turned the question “which agentic framework\nshould I use?” into “which harness do you already run?”\n\n14.3\n\nPlatform Economics: Marketplaces, Switching Costs, Governance\n\nThree developments from the ninety-day window are textbook platform economics.\nMarketplaces. Codex grew a plugin marketplace (GitHub/git/URL sources, in-conversation\ninstall approval, workspace sharing); skills registries appeared in four systems with trust tiers,\nprovenance verification, and quarantine (Section 12.5); OpenClaw externalized its official plugins\nto npm. Capability distribution now has app-store mechanics—including the app store’s security\npathologies, as SkillProbe’s audit of published skills shows [89].\nSwitching costs. Codex ships a first-class importer for Claude Code’s on-disk state: it detects ~/.claude/projects session JSONL files, converts them into Codex rollout items under\nan import ledger, and offers to translate ~/.claude/settings.json into ~/.codex/config.toml.\nVendors writing importers for each other’s session stores is the stage of platform competition where\nuser data becomes the moat—and the countervailing force is equally visible: OpenCode reads\nClaude Code’s skills directory, OpenHands reads Claude Code’s plugin manifests and hosts\nrival harnesses outright, and the meta-harness arbitrages every vendor’s lock-in mechanisms into its\nadapter surface.\nEnterprise governance. Codex’s configuration stack now extends above the user—MDMmanaged preferences, host-wide system files, and enterprise cloud-delivered bundles feed both base\ndefaults and a constraint engine that can hard-restrict what user and project scopes may set.\nGoogle, meanwhile, announced Gemini CLI’s transition toward an Antigravity-branded CLI—\nclosed-source, where Gemini CLI is Apache-2.0 (Section 3.7)—and withdrew its consumer free tier,\nand the SpaceX–xAI merger plus the announced $60B Cursor acquisition (pending as of July 2026)\npriced the harness layer at acquisition scale. Governance layers, gated tiers, and acquisition-scale\npricing are the signatures of platforms, not of standalone tools.\n\n14.4\n\nThe Meta-Harness Layer\n\nOmnigent [25] is not a twelfth harness; it is a bet that the harness has become a commodity component and that the durable value sits one layer up. Databricks open-sourced it in\nJune 2026 (Apache 2.0, ∼1M lines total, ∼312K of production Python): a four-tier process\ntopology (server ⇄ host daemon ⇄ runner ⇄ per-conversation harness subprocess) whose adapter\nboundary is, by explicit design, a recursive subset of Omnigent’s own public REST API. Its registry\nships 23 canonical harness adapters (plus 16 aliases and a community entry-point group) spanning\nClaude Code, Codex, Cursor, OpenCode, Hermes, Pi, Goose, Qwen, Kimi, Kiro, Copilot, and Antigravity, formalized into five integration modes (sdk-in-process, cli-subprocess,\nacp-subprocess, native-tui, native-server)—and the declared capabilities are reconciled\nagainst a conformance bench (probes for basic turns, tool calling, streaming, interrupts, model\noverride, policy denial), with live verification landed for the four flagship SDK adapters and\nbest-effort declarations for the rest. Harnesses are tested like hardware.\nAbove that boundary the meta-layer adds four things no single harness provides. Composition:\nany registry harness is addressable as a sub-agent session of any other, so a Claude-brained orchestrator can dispatch work to Codex and have Cursor review it. Cross-harness policy: one three-level\n61\n\n\fpolicy plane (session → agent → admin; six phases; CEL (Common Expression Language), Python,\nor LLM-classifier evaluators; cross-session per-user budgets) enforced on foreign harnesses through\neach vendor’s own extension mechanism—Claude Code hooks, Cursor hooks, Hermes hooks,\nACP permission requests—with fail-closed semantics. The lock-in mechanisms of Observation 2\nbecome, from one layer up, an adapter surface. A uniform sandbox and egress stack: bubblewrapplus-seccomp on Linux, generated Seatbelt profiles on macOS, Job Objects on Windows—the same\narchitecture the corpus documents inside Codex, re-implemented at the meta-layer, plus an L7\nMITM egress proxy (own CA, per-host rules, default-deny) hosting a secretless credential proxy,\nwhere real tokens never enter the sandbox and synthetic placeholders are swapped for credentials\nin flight—a design Codex also ships (its network-proxy crate), here lifted to the meta-layer across\nall wrapped harnesses. Shareable sessions: server-durable transcripts with multi-device sync, ACL\ngrants, review comments, fork, and mid-session harness switching.\nJust as informative is what it does not do: it implements no editing loop, no repository context, no edit-application strategy—the anatomy’s D3/D4 core stays below the line—and it does\nnot pretend the harnesses are equivalent: per-harness capability records, vendor-specific webhook\nendpoints, a Claude-specific todos field, and a Codex-only goal-mode extension leak through the\n“common” API by design. Its flagship example, Polly, is a cross-vendor coordinator-worker: a\nClaude Code-brained orchestrator that writes no code, fans work out to six vendor harnesses in\nper-task git worktrees, and mandates cross-vendor review in its orchestrator prompt—the reviewer\nmust be a different vendor than the implementer (the mechanism-layer guardrails gate fan-out and\nblast radius, not vendor identity). Even its restraint is informative: sandboxing is applied inconsistently by design (it exec-wraps the Claude CLI in its own sandbox but delegates to Codex’s native\nsandbox modes), evidence that OS-level isolation resists being factored out as a shared service.\nAnd the twin absences hold at the meta-layer: no agentic framework, no RAG, in a million lines—\nunless one counts its two baseline dependencies, claude-agent-sdk and openai-agents, which is\nprecisely the point of Section 14.2.\n\n14.5\n\nNinety Days of Harness Evolution\n\nBecause the eight systems of the April edition were re-pinned rather than replaced, the corpus\ncontains a controlled longitudinal sample: the same harnesses, source-diffed across one quarter.\nFour movements characterize the window.\nConvergence became imitation. April’s convergences were mostly independent rediscovery;\nJuly’s are traceable. Codex adopted Claude Code’s hook event vocabulary verbatim and its\nplan-mode ergonomics; OpenHands adopted Claude Code’s plugin manifest format, its tasktool signature, and its static/dynamic cache boundary; OpenCode reads Claude Code’s skills\ndirectory; Hermes’s source comments credit OpenCode (edit matcher), Codex (smart approvals),\nOpenClaw (orchestrator prompt), and Goose (context hints). Cross-harness lineage is now written\nin the code itself.\nPatterns diffused down the corpus. Deferred tool loading went from one system to three\n(plus seven skills variants); read-only plan modes from two to all four provider-native systems; LLM\napproval classifiers from one (Claude Code) to two (Codex’s Guardian); turn-level checkpointing\nfrom one (Mistral Vibe) to three; safety-aware scheduler partitioning from one to two. The halflife of a competitive distinctive in this field is currently measurable in weeks.\nPolicy migrated out of prose. The clearest rhetorical trend of the quarter (Observation 3):\nCodex’s newest model prompts dropped the no-commit and anti-gold-plating rules in favor of\nfeature flags; Mistral Vibe deleted its “Never Commit” hard rule and re-founded its prompt on\na seven-level precedence contract, A/B-tested server-side; OpenHands teaches commit mechanics.\nAs models internalize norms and harnesses grow governance surfaces, behavioral policy is moving\nfrom the prompt (where the model reads it) to configuration (where the platform enforces it).\n62\n\n\fThe trees themselves moved at platform speed. Codex’s workspace nearly doubled (621K\n→ ∼1.12M lines of Rust, 89 → 126 crates) in one quarter—memories, Guardian, marketplace plugins, code mode, realtime voice; Mistral Vibe grew 77% (35.6K → 63K lines); OpenHands\nre-architected into an SDK while its application repo became an automation control center; Gemini CLI announced its brand pivot and gated its free tier; Aider, the field’s pioneer, settled into\ncommunity maintenance with 18 commits in the window. Three of the April edition’s observations\nrequired substantive revision in place—the coupling dichotomy (Observation 2), the size-impliessandbox correlation (Observation 6), and the protocol placement story (Observation 11)—each\ncorrected by evidence that did not exist, or that we could not see, ninety days earlier. The methodological lesson generalizes: in this field, inventory claims (tool counts, feature cells, version pins)\ndecay in weeks, while structural claims (loop taxonomy, subsystem anatomy, the absences) have so\nfar proven durable. We have separated the two accordingly throughout this edition.\nObservation 12. The coding-agent harness completed its platform turn in the first half of\n2026, and every layer of the turn is now visible in source: extension substrates (hooks, skills,\nplugins) converged across all production systems; capability distribution acquired marketplaces,\nregistries, trust tiers, and agent authors. Vendors shipped importers for each other’s on-disk state\nand MDM-grade governance layers; the harnesses became importable SDKs while the framework\nvendors shipped harnesses (the merger of Section 14.2); the agent itself became addressable as\na model behind an OpenAI-compatible endpoint; and a meta-harness now orchestrates a fleet\nof eleven vendor harnesses—five of the systems studied here among them—behind one API, reimplementing the expensive parts (sandbox, policy) and arbitraging the proprietary parts (hooks,\nsession stores) of each. The competitive unit of the field is no longer the agent loop; it is the\necosystem surface around it.\n\n15\n\nDiscussion\n\n15.1\n\nThe Anthropic Effective-Agents Series as Empirical Validation\n\nBetween December 2024 and September 2025, Anthropic published four engineering articles offering\nprescriptive guidance on agent design: Building Effective Agents [16], Effective Context Engineering\nfor AI Agents [19], Writing Effective Tools for AI Agents [18], and the case study How We Built Our\nMulti-Agent Research System [17]. Across the four pieces, a coherent design philosophy emerges:\nhand-rolled loops in preference to framework abstractions, a small set of high-signal tools in preference to wrap-everything APIs, just-in-time structural retrieval in preference to pre-indexed RAG,\norchestrator-worker patterns in preference to flat monoliths, transparency about agent planning,\nand explicit context budgeting as an engineering discipline.\nEleven independently developed systems (only one of which, Claude Code, is from Anthropic)\nline up with these prescriptions:\n• “Don’t use frameworks unless necessary” [16]: 0 of 11 systems use LangChain, LangGraph,\nAutoGen, CrewAI, ADK, LlamaIndex, Pydantic AI, Genkit, or Semantic Kernel in the agent\nruntime (Observation 9).\n• “ACI matters as much as HCI” [16] (the concept originates in this article; Aizawa et al. [18]\nextend it with practical tooling advice) and “few thoughtful tools” [18]: Aider’s 13 polymorphic edit formats, Claude Code’s deferred tool loading, Codex’s custom patch format,\nHermes’s nine-strategy edit chain, and OpenCode’s model-conditional tool surfaces are all\nheavy ACI investments (Observation 4).\n• “Just-in-time over RAG” [19]: 0 of 11 systems use vector embeddings over code; all use grep,\ntree-sitter, glob, and the file system, plus auto-discovered Markdown context files (Observation 9).\n\n63\n\n\f• “Orchestrator-workers for parallelizable, context-spanning tasks” [17]: emerges in Claude Code\n(recursive composition), Codex (thread tree with fan-out), Gemini CLI (registry + session protocol), Mistral Vibe (task tool), OpenHands (parallel delegation), Hermes\n(orchestrator role + swarm), and OpenCode (concurrent child sessions) (Observation 7).\n• “Save plans to external memory before subagent spawn” [17]: Claude Code’s CLAUDE.md,\nGemini CLI’s plan files and MEMORY.md project index, Codex’s AGENTS.md hierarchy and\nits agent-maintained memories root.\n• “Compaction + structured note-taking + sub-agents” for long-horizon tasks [19]: all four\nprovider-native systems—and all three newcomers—implement all three.\n• “Multi-agent systems use ∼15× more tokens than chat” [17] (vs. a single chat baseline, not\na single-agent pipeline): this is what motivates Claude Code’s prompt-cache-sharing fork\nmechanism, Hermes’s cache-sharing background forks and summary-only returns, and Gemini CLI’s thought-stripping (extended-thinking text is kept out of persisted history when\nrecording responses, so it never re-enters the cache). Without those optimizations the cost\nwould be prohibitive.\nThere is one tension in the guidance that we should call out. Hadfield et al. [17] caution that\n“most coding tasks involve fewer truly parallelizable tasks than research, and LLM agents are not\nyet great at coordinating and delegating to other agents in real time.” Seven of the eleven systems in\nthis study (eight counting OpenClaw’s protocol-layer variant) nevertheless implement coordinatorworker patterns specifically for coding workflows. On closer inspection the observed patterns are\nmostly used for breadth-first exploration phases (parallel codebase research) rather than for parallel\nimplementation, which is consistent with Hadfield et al.’s caveat once the unit of analysis shifts from\nthe system as a whole to the individual workflow phase.\n\n15.2\n\nThe Minimalism Argument\n\nMini-SWE-Agent’s competitive self-reported benchmark performance (74%+ on SWE-Bench Verified) with a minimal scaffold and a single bash tool undercuts the assumption that rich tool ecosystems are necessary. The finding echoes the CodeAct [3] argument that executable code subsumes\ndiscrete tool actions. For benchmark evaluation alone, most of the scaffolding in the production\nsystems turns out to be overhead.\nThe counter-argument is that benchmarks measure only a narrow slice of the value proposition.\nProduction systems (Claude Code, Codex, Gemini CLI, Mistral Vibe, OpenHands) invest\nheavily in things that benchmarks do not reward:\n• Safety: Preventing destructive actions on user codebases.\n• User experience: Streaming responses, rich terminal UIs, progress tracking.\n• Extensibility: Supporting custom tools, MCP servers, plugins.\n• Robustness: Handling edge cases, stuck detection, error recovery.\n• Cost management: Prompt caching, context compaction, model selection.\nThese concerns are invisible to SWE-Bench but critical for production adoption.\n\n15.3\n\nSafety as Architecture\n\nSafety is the dimension on which the corpus is most spread out. Codex takes a defense-in-depth\napproach: OS-level sandboxing plus policy-as-code plus approval workflows, with safety treated as\na primary engineering concern from the start rather than as a late addition. Gemini CLI sits at a\nsimilar but lighter point on the spectrum: a cross-platform sandbox (reusing OS binaries) plus four\nexplicit approval modes (PLAN/DEFAULT/AUTO_EDIT/YOLO) and per-mode TOML policies.\n64\n\n\fClaude Code’s three-layered system (hooks → classifier → dialog) sits between pure automation\nand human oversight. Mistral Vibe’s permission-scope hierarchy (command/file/URL patterns\nplus agent-profile gates) is more granular than Aider’s binary confirmation but has no OS-level\nenforcement. OpenHands’s pluggable SecurityAnalyzer framework lets rule-based and LLMbased analysis be combined.\nThe April edition observed that the corpus’s two largest systems (Codex, then at 621 K lines,\nand Gemini CLI at 568 K) were also its two cross-platform sandboxers, and read the correlation\nas structural. The expanded corpus falsifies the structural reading while preserving the cost claim:\nHermes and OpenCode are comparably large with zero OS-level isolation, spending their safety\nbudgets on content-borne threats and permission granularity respectively (Observation 6). What\nremains true is that a native sandbox, where built, is among the most code-expensive components\nin a harness—Codex vendors bubblewrap into its tree, and the meta-harness re-pays the entire\nbill one layer up (Section 14.4). The minimal safety surface in Aider and Mini-SWE-Agent is\ndefensible for their target use case (developer tools with trusted users) but limits their applicability\nin enterprise or automated deployment contexts.\n\n15.4\n\nThe Model–Agent Co-design Thesis\n\nThe coupling between agent scaffolds and foundation models runs in both directions.\nThe model shapes the agent. Codex’s per-model prompts—now server-delivered catalog\ndata spanning GPT-5.2 through the 5.6 family, with per-model tool modes and multi-agent tool\ngenerations—make explicit that scaffold design has to evolve with model capabilities, and that\nthe vendor intends to drive that evolution without client releases. Claude Code’s extendedthinking integration (budget tokens, thinking blocks) exploits Claude-specific reasoning features.\nGemini CLI’s ModelRouterService treats model selection itself as a runtime scheduling decision,\ndispatching each request to the cheapest sufficient Gemini variant—and absorbing a full modelgeneration shift (2.5 → 3.x defaults) within one quarter; the same idea is studied formally as Hybrid\nLLM [84], RouteLLM [83], and the FrugalGPT cascade [82]. Mistral Vibe’s reasoning_effort\nmapping and ThinkChunk parsing exploit Mistral’s reasoning enum. Aider’s model-aware edit\nformat selection adapts the editing strategy to each model’s output patterns, and OpenCode rederives the same idea in its tool registry (GPT-family models get a patch DSL; others get string\nreplacement) and its nine-prompt model-family matrix. OpenHands ships model-specific tool\npresets (default, gemini, gpt5, planning)—co-design reaching even a multi-provider system’s tool\nsurface.\nThe agent shapes model usage. Claude Code’s deferred tool loading reduces prompt tokens,\nchanging the model’s effective context window. Claude Code’s prompt-caching boundary splits\nthe system prompt to maximize cache hits, structuring the prompt around cache economics as much\nas around logical organization; Gim et al. [81] provide the systems-level grounding for the modular\nattention-reuse strategy this implicitly assumes. Gemini CLI keeps extended-thinking traces out\nof persisted history at response-recording time, so they never leak into future cache lookups (and\nstrips thought signatures on auth switch). Mistral Vibe’s middleware pipeline lets per-turn tokenbudget policies be composed orthogonally to the loop body. OpenHands’s condensers selectively\nforget events, shaping what the model “remembers.”\nImplications. The four provider-native systems (Claude Code, Codex, Gemini CLI, Mistral Vibe) can optimize both sides of this coupling at once, evolving prompts, tools, and features in lockstep with model updates—Codex most literally, via its server-delivered model catalog. The April edition inferred that multi-provider systems must therefore design for the lowest\ncommon denominator; the expanded corpus shows that inference was too strong. Hermes, Pi,\nand OpenCode demonstrate that the full provider-native optimization menu is reachable from a\nmulti-provider substrate by paying the per-provider conditional-code cost deliberately and centrally\n65\n\n\f(Observation 2)—per-model quirk metadata, provider-profile plugins, transform matrices. What\nthe multi-provider systems cannot replicate is the update loop: only the vendor can re-tune scaffold\nbehavior server-side on model-release day. Mistral Vibe’s provider-first-with-generic-fallback design and the owned-transports position both remain viable middle paths, differing in who carries\nthe maintenance burden.\n\n15.5\n\nThe Scaffold–Capability Frontier (a Guiding Intuition)\n\nWe close with a guiding intuition rather than a formal hypothesis: across a fixed task distribution\nand a fixed model, scaffold complexity and observed task success appear to trace a roughly concave\ncurve. A floor below which the agent cannot operate at all (no loop, no tool, no memory, no\nresult), a steep early-gain region where adding a small set of structural elements (a bash tool, a\nread/write tool, a Markdown context file) raises success rapidly, and a diminishing-returns plateau\nwhere further scaffold work pays off in operational concerns (safety, UX, extensibility) rather than\nin completion rate. We label this picture the scaffold–capability frontier and treat it as a hypothesis\nto be tested, not as a proven property of the design space.\nTwo independent results in the literature are consistent with this picture without confirming\nit. Mini-SWE-Agent’s reported ∼74%+ on SWE-Bench Verified with a deliberately minimal\nscaffold suggests that, for SWE-Bench-style tasks on a frontier model, the floor is already well\nbelow most production scaffolds. Lin et al. [85] report that their Agentic Harness Engineering\n(AHE) system, starting from a bash-only seed comparable to Mini-SWE-Agent and automatically\nevolving the harness using observability-driven feedback, reaches 71.9% on SWE-Bench Verified.\nTheir component-level ablation finds that structural harness elements carry the improvement (tools\n+3.3 pp, middleware +2.2 pp, long-term memory +5.6 pp), while the system prompt alone regresses\nperformance (−2.3 pp); the evolved harness also transfers across four model families. We read this\nas suggestive evidence that structural scaffold is more portable than prose-level prompt strategy,\nconsistent with our model–agent co-design discussion at the architectural (rather than weights)\nlevel.\nWhat an operational definition would require is at minimum: a fixed task distribution T , a\nfixed model M , a metric for scaffold complexity (LoC, tool count, structural feature count, or some\nweighted combination), and a target success rate p. A “minimum viable scaffold for (T, M, p)” would\nthen be the lower envelope of scaffold-complexity values whose empirical success rate on T with M\nexceeds p. We do not produce such a measurement here. Doing so would require a controlled\ncross-system run study that this paper deliberately avoids (see Threats to Validity, Section 15). We\nflag the scaffold–capability frontier as a question for follow-on empirical work, and note that the\nrelevant minimum almost certainly varies across:\n• Task complexity: Multi-file refactoring may require more sophisticated tool support than\nsingle-file bug fixes.\n• Safety requirements: Enterprise deployments demand scaffolding that benchmarks don’t\nmeasure.\n• Interaction patterns: Long-running interactive sessions benefit from memory management\nthat short benchmark runs don’t need.\n\n15.6\n\nThreats to Validity\n\nA study of this shape has real limits, and it is worth being explicit about them.\nThe analysis rests on source-code reading, not runtime measurement. We do not claim to know\nhow fast any of these systems are; we claim to know how they are structured. Where the paper\nreports benchmark numbers, they come from the systems’ own documentation, and the last decimal\nplace is not the interesting part.\nThe qualitative scoring underlying the architectural comparisons involves judgment calls. We\ntried to anchor each score in a specific implementation detail, and we welcome disagreement from\n66\n\n\fanyone who reads the same codebases and scores them differently. We deliberately avoid linenumber citations, and we date all code-size figures to the July-2026 pins: every system in the\ncorpus is actively developed, and finer precision would be obsolete by the time the paper is read.\nAll versions are pinned to exact release tags and commits (Table 3), the April-2026 snapshots\nare retained for the longitudinal comparison of Section 14.5, and—a lesson that quarter taught us\ndirectly—we now distinguish inventory claims, which we date, from structural claims, which we\nexpect to endure. Three observations of the April edition were substantively revised in this one on\nnew evidence; the revisions are integrated in place and flagged where they occur.\nThe Claude Code analysis is the weakest link on reproducibility. It draws on a publicly\ncirculated source snapshot from March 2026 rather than an official release, and the shipping binary\nhas evolved considerably since (we track its changelog-level evolution but do not treat changelog\nclaims as source evidence). The architectural claims should still be testable against the public\nclaude-agent-sdk and the behavior of the shipping binary, but we acknowledge the asymmetry\nwith the other ten systems, whose source trees are trivially re-derivable from public Git history.\nThe framework-absence finding (Observation 9) is strong but structurally conservative. We\nchecked dependency manifests and performed import grep across three languages—twice, three\nmonths apart, across twelve trees including the meta-harness; we did not trace internal forks,\nplugins loaded via dynamic importlib/require, or transpiled distributions. A company could in\nprinciple use LangChain inside a production SWE agent through a code path we did not inspect.\nWe would be surprised, but not shocked.\nThe Anthropic-guidance-to-observation mapping (Observation 10) is suggestive but does not by\nitself establish causation. The right follow-up is interview work with engineers at each vendor; we\ndid not do that.\nWe also compared each system independently rather than running all eleven on a shared task\nset. A head-to-head execution study would turn some of the qualitative scoring into measurable\nquantities. It would also cost an order of magnitude more effort than this paper, and we chose the\ntractable scope.\n\n16\n\nDesign Recommendations: A Practitioner’s Guide\n\nThe preceding sections are descriptive, cataloging what the eleven production harnesses actually\ncontain. This section is prescriptive: we distill the observations into actionable recommendations\nfor an engineer designing a new coding agent. Each recommendation cites the observations that\nsupport it, names the systems that implement it, and identifies the trade-off that might justify a\ndifferent choice. Where the corpus agrees with the Anthropic Effective Agents series [16–19], we\nflag the agreement as cross-source validation. Where the corpus diverges from or extends the series,\nwe note that too. The recommendations are grouped by subsystem and ordered roughly in the\nsequence a practitioner would encounter them when bootstrapping an agent.\n\n16.1\n\nLoop Architecture\n\nRecommendation 1. Start with a linear while loop; graduate to a middleware pipeline only\nwhen orthogonal turn policies emerge. Evidence: Observation 1 (loop sophistication does not\npredict benchmark performance); Mini-SWE-Agent’s 50-line linear loop reports 74%+ on\nSWE-Bench Verified (self-reported; see the footnote to Table 4). Upgrade path: once you need\nthree or more independent turn-level policies (turn limits, cost caps, auto-compaction, contextbudget warnings, read-only mode), adopt Mistral Vibe’s middleware pipeline pattern—each\npolicy becomes a composable middleware, not a new branch in the loop body.\n\n67\n\n\f16.2\n\nProvider Coupling\n\nRecommendation 2. If you ship a foundation model, couple tightly to your home provider\nand expose a generic fallback adapter for portability; if you don’t, provider-native optimizations are still on the table—budget for per-model metadata instead. Evidence: Observation 2.\nMistral Vibe’s “provider-first with generic fallback” remains the vendor pattern. For multiprovider harnesses, Pi’s per-model compat quirk flags, Hermes’s declarative provider profiles,\nand OpenCode’s transform matrix show that cache breakpoints, thinking tiers, and reasoning\neffort are reachable from an abstraction—the cost is a maintained per-provider conditioning\nlayer, paid once and centrally.\n\n16.3\n\nTool Design\n\nRecommendation 3. Begin with just a bash tool. Add more tools only in response to observed\nfailure modes. Evidence: Mini-SWE-Agent’s single-tool design reports 74%+ on SWE-Bench\nwith essentially no tool infrastructure (self-reported); Aizawa et al. [18] caution that “more tools\ndon’t always lead to better outcomes.” A common sequence is: add read_file and write_file\nwhen bash output truncation becomes a problem; add grep/glob when bash+find/rg feels\nawkward; add search_replace when full-file writes waste tokens.\nRecommendation 4. When your tool count exceeds ∼15, adopt deferred tool loading. Evidence: Claude Code’s shouldDefer flag + ToolSearchTool reduces the initial prompt\nby ∼40%; Codex independently converged with defer_loading flags plus a BM25-ranked\ntool_search; Hermes collapses overflowing MCP catalogs into three BM25-searched bridge\ntools once schemas would exceed 10% of the context window. Below ∼15 tools the indirection\nis not worth the added complexity; above it, the prompt bloat becomes prohibitive.\n\n16.4\n\nFile Editing\n\nRecommendation 5. Match your edit-tool contract to your model tier: exact unique-substring\nreplacement for frontier models, a fuzzy cascade for open or weaker models—and in either\ncase handle drift at the tool, never by line numbers. Evidence: Observation 4. The frontiermodel camp has converged on exact contracts (Claude Code; Mistral Vibe deleted its\nSEARCH/REPLACE tool and converged on exact matching mid-2026; Pi adds only Unicode/whitespace canonicalization with byte-fidelity overlay). The drift-tolerant camp serves\nbroader model ranges (OpenCode’s nine-stage cascade at Levenshtein 0.65, Hermes’s ninestrategy chain, Aider’s RelativeIndenter). Gemini CLI’s LLM edit-fixer subcall is the emerging third option: repair the match with a model instead of a threshold. Avoid line-number-based\nedits: models drift on line numbers more than on contextual matching.\n\n16.5\n\nMemory and Context\n\nRecommendation 6. Auto-discover hierarchical Markdown context files at project, user,\nand extension scopes—and read your neighbors’ filenames too. Evidence: all eleven systems that manage repo context converged on the pattern, and the newest ones read multiple conventions (Hermes: own file, then AGENTS.md, CLAUDE.md, .cursorrules; OpenCode: AGENTS.md/CLAUDE.md/CONTEXT.md plus remote URLs; OpenHands ingests\nthree ecosystems’ files as scoped rules). Inject top-level content near the top of the system\nprompt, surface nested files just-in-time when tools touch their subtree (Mistral Vibe, OpenCode, Hermes, Gemini CLI), and let the model persist durable facts—by direct edits, bounded\nsnapshot files, or a human-reviewed inbox (Observation 5).\n\n68\n\n\fRecommendation 7. Implement threshold compaction at a fixed buffer below the model’s\ncontext window; preserve a verbatim recent tail; merge summaries incrementally rather than resummarizing; and wire the same routine to fire reactively on overflow. Evidence: Claude Code\nfires below a 13 K-token buffer and post-restores files; Gemini CLI compacts at 50% preserving\nthe last 30%; Pi and OpenCode pass the previous summary back for merging (anchored/iterative summaries), which preserves early decisions that from-scratch re-summarization loses;\nMistral Vibe re-injects prior user messages into the compacted envelope and reuses the routine on mid-turn ContextTooLong errors; OpenHands routes overflow errors into condensation.\nAggressive compaction protects against context rot [19]; conservative preservation keeps recent\nreasoning coherent.\nRecommendation 8. Do not build RAG over code. Use ripgrep, glob, tree-sitter symbol\nextraction, and file-system traversal instead. Evidence: Observation 9; 0/11 systems use vector\nembeddings for code retrieval; Rajasekaran et al. [19] favor JIT retrieval in practice, and all\ntheir concrete recommendations point toward deterministic tools. Code has rich deterministic\nstructure (paths, language servers, tree-sitter parses) that semantic similarity cannot replicate,\nand changes minute-to-minute, making embeddings stale.\n\n16.6\n\nSafety Architecture by Deployment Context\n\nRecommendation 9. For a developer tool (semi-trusted) context: implement a threemode approval system (PLAN / DEFAULT / YOLO) with permission-scope patterns. Evidence:\nGemini CLI’s PLAN/DEFAULT/YOLO modes, Mistral Vibe’s 4-layer permission hierarchy\n(tool-wide + tool-specific + session rules + interactive callback); matches how a human developer\ntriages risk.\nRecommendation 10. For enterprise / shared / automated contexts: implement OS-level\nsandboxing with policy-as-code and per-agent audit trails. Evidence: Observation 6; Codex\nand Gemini CLI ship native cross-platform sandboxes (Bubblewrap on Linux—vendored in\nCodex’s case—Seatbelt on macOS, restricted tokens on Windows), and Claude Code wraps\nAnthropic’s reusable sandbox-runtime as an opt-in. Gemini CLI’s implementation shows the\ncost is tolerable when you reuse OS binaries (Node child_process or equivalent) rather than\nwriting namespace plumbing from scratch.\nRecommendation 11. Regardless of tier, codify safety rules as data or dedicated policy\nfiles rather than as imperative code—and if you support a YOLO mode, keep a floor beneath\nit. Evidence: Codex’s Starlark execpolicy rules with parse-time-validated inline examples,\nClaude Code’s PreToolUse hooks, Gemini CLI’s per-mode TOML, OpenCode’s last-matchwins rulesets. Hermes adds the floor lesson: its twelve hardline patterns survive –yolo, with the\nbypass flag frozen at module import so injected content cannot flip it at runtime. Policies-as-code\nsurvive refactors and are auditable independently of the loop implementation.\n\n16.7\n\nMulti-Agent Orchestration\n\nRecommendation 12. Stay single-agent until you can point to a concrete breadth-first exploration phase where parallel context isolation clearly beats serial search. Evidence: Hadfield\net al. [17] caution that multi-agent systems use ∼15× more tokens than a chat baseline and\nthat “most coding tasks involve fewer truly parallelizable tasks than research”; Mistral Vibe’s\ntask tool delegates to sub-agents (its prompt encourages launching several in parallel), which is\nsufficient for most coding workflows.\n\n69\n\n\fRecommendation 13. Ship an ACP server: it is no longer just an editor integration—it\nmakes your harness consumable by hosts and meta-orchestrators. Keep your own sub-agents\nin-process. Evidence: Observation 11. An ACP server now buys three audiences at once: IDEs\n(Zed, JetBrains), hosting harnesses (OpenHands runs Claude Code/Codex/Gemini CLI as\ninterchangeable ACP backends), and meta-harnesses (Omnigent drives Goose and Qwen over\nACP). Six of eleven corpus systems ship it. For agent ↔ agent mesh topologies, A2A remains\nGemini CLI’s bet alone—defensible, unproven. For main-agent ↔ sub-agent coordination\nwithin your own runtime, do not adopt either (see Recommendation 12): in-process primitives\nare what production systems use, and even the cross-process exceptions (Pi’s JSONL extension,\nHermes’s SQLite-blackboard swarm) avoid the standard protocols for that role.\n\n16.8\n\nExtensibility\n\nRecommendation 14. Use Skills for capability templates (workflows, domain knowledge,\nprocedural recipes) and MCP for external integrations (Slack, databases, internal APIs)—in\nthat order of priority. Evidence: Observation 8: skills now lead MCP in adoption (9/11 vs. 8/11),\ndiscovery is cross-vendor (OpenCode reads ~/.claude/skills), and distribution has registries\nand provenance. MCP remains the right layer for running external processes; Pi demonstrates\nthe defensible minimal position (skills plus CLI tools with READMEs, no MCP). If you install\nthird-party skills, treat them as packages: trust tiers, scanning, and quarantine (Hermes) are\nthe emerging baseline [89].\n\n16.9\n\nWhat Not to Build (Anti-Patterns)\n\nRecommendation 15. Do not use LangChain, LangGraph, AutoGen, CrewAI, LlamaIndex,\nPydantic AI, Genkit, Google ADK, or Semantic Kernel for the agent runtime. Evidence: Observation 9; 0/11 production harnesses in the corpus use these frameworks—Gemini CLI skips\nGoogle’s own. Schluntz &amp; Zhang [16] explicitly warn: “frameworks often create extra layers of\nabstraction that can obscure the underlying prompts and responses, making them harder to debug.” Use raw SDK calls—or, the 2026 corollary (Section 14.2): if you want a batteries-included\nstarting point, the harness SDKs (Claude Agent SDK, openai-codex, openhands-sdk) are the\nframework layer now, with the corpus’s patterns built in.\nRecommendation 16. Do not build a vector-embedding retrieval layer for code. Evidence:\nObservation 9; 0/11 systems do this. The embeddings that do appear serve conversation memory\n(OpenClaw’s default hybrid search; Hermes’s opt-in plugins), and Hermes shows lexical\nSQLite FTS5 sufficing for that role at 642K-line scale. If you believe your domain needs semantic\ncode retrieval, first prove it improves over ripgrep+tree-sitter on a held-out task set before\nadding the infrastructure.\nRecommendation 17. Do not wrap every upstream SaaS API as a 1-to-1 tool. Evidence:\nAizawa et al. [18]; “a common error we’ve observed is tools that merely wrap existing software\nfunctionality or API endpoints.” Consolidate instead.\nRecommendation 18. Do not over-engineer stuck detection—but do ship the cheap caps,\nwhich cost a dozen lines. Evidence: Claude Code and Codex still ship no automated stuck\ndetection and deliver production-quality agents. The floor moved, though: even Mini-SWEAgent now caps consecutive malformed responses and wall-clock time, OpenCode’s doomloop check is a three-identical-calls counter routed to a permission ask, and Hermes hashes\ncall signatures but ships the hard stop disabled, trusting warnings. OpenHands’s five-scenario\nStuckDetector and Gemini CLI’s hybrid hash+LLM service remain platform-tier investments.\n\n70\n\n\f16.10\n\nA Minimum Viable Harness\n\nAs a concrete starting point, Listing 3 sketches a minimum viable harness in ∼90 lines of Python,\ncombining the patterns recommended above: linear loop (Mini-SWE-Agent), middlewarestyle policies (Mistral Vibe), four-tool surface (bash, read, write, search_replace), hierarchical\nMarkdown context auto-discovery (all four provider-native systems), and threshold compaction\n(Claude Code/Gemini CLI/Mistral Vibe). It is not a drop-in library; it is a scaffold to be\ncopied and specialized.\n1\n2\n3\n4\n\nfrom __future__ import annotations\nimport asyncio , json , pathlib , subprocess\nfrom dataclasses import dataclass , field\nfrom typing import Any , Protocol\n\n5\n\n# - - - - P r o v i d e r a b s t r a c t i o n ( R e c o m m e n d a t i o n 2) : provider - first f a l l b a c k - - - - - - - - class Model ( Protocol ) :\n8\nasync def complete ( self , messages : list [ dict ] , tools : list [ dict ]) -&gt; dict : ...\n6\n7\n9\n10\n11\n\n# - - - - Tools ( R e c o m m e n d a t i o n 3) : bash + 3 file tools - - - - - - - - - - - - - - - - - - - - - - - - - def _truncate ( s : str , n : int = 25 _000 ) -&gt; str : return s if len ( s ) &lt;= n else s [: n ] + \"\\ n\n...[ truncated ]\"\n\n12\n13\n14\n15\n\ndef tool_bash ( cmd : str ) -&gt; str :\nr = subprocess . run ( cmd , shell = True , captur e_output = True , text = True , timeout =120)\nreturn _truncate ( f \" exit ={ r . returncode }\\ nstdout :\\ n { r . stdout }\\ nstderr :\\ n { r . stderr }\")\n\n16\n17\n18\n19\n\ndef too l_read_f ile ( path : str , offset : int = 0 , limit : int = 2000) -&gt; str :\nlines = pathlib . Path ( path ) . read_text () . splitlines ()\nreturn _truncate (\"\\ n \". join ( f \"{ i +1:4}: { ln }\" for i , ln in enumerate ( lines [ offset : offset\n+ limit ]) ) )\n\n20\n21\n22\n\ndef to ol _w r it e_ fi l e ( path : str , content : str ) -&gt; str :\npathlib . Path ( path ) . write_text ( content ) ; return f \" wrote { len ( content ) } bytes \"\n\n23\n24\n25\n26\n27\n\ndef t o o l _ s e a r c h _ r e p l a c e ( path : str , search : str , replace : str ) -&gt; str :\np = pathlib . Path ( path ) ; text = p . read_text ()\nif text . count ( search ) != 1: return f \" ERROR : search string occurs { text . count ( search ) } x\n; must be unique \"\np . write_text ( text . replace ( search , replace , 1) ) ; return \" OK \"\n\n28\n29\n30\n\nTOOLS = {\" bash \": tool_bash , \" read_file \": tool_read_file ,\n\" write_file \": tool_write_file , \" searc h_replac e \": t o o l _ s e a r c h _ r e p l a c e }\n\n31\n\n# - - - - H i e r a r c h i c a l M a r k d o w n context ( R e c o m m e n d a t i o n 6) - - - - - - - - - - - - - - - - - - - - - def d i s c o v e r _ c o n te x t ( cwd : pathlib . Path = pathlib . Path . cwd () ) -&gt; str :\n34\nparts = []\n35\nfor p in reversed ([ cwd , * cwd . parents ]) :\n# root - to - leaf\n36\nmd = p / \" AGENTS . md \"\n37\nif md . exists () : parts . append ( f \" &lt; ctx path = ’{ md } ’ &gt;\\ n { md . read_text () }\\ n &lt;/ ctx &gt;\")\n38\nreturn \"\\ n \". join ( parts )\n32\n33\n\n39\n\n# - - - - M i d d l e w a r e p i p e l i n e ( R e c o m m e n d a t i o n 1) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @dataclass\n42 class Agent :\n43\nmodel : Model\n44\nmessages : list = field ( d ef a ul t_ fa c to ry = list )\n45\nn_turns : int = 0\n46\ncost : float = 0.0\n47\nmax_turns : int = 50\n48\nmax_cost : float = 5.00\n49\nc o m p a c t _ a t _ t o k e n s : int = 120 _000\n40\n41\n\n50\n51\n52\n\ndef _t ok e n_ es ti ma t e ( self ) -&gt; int :\nreturn sum ( len ( json . dumps ( m ) ) for m in self . messages ) // 4\n\n53\n54\n55\n56\n\nasync def _check_limits ( self ) :\nif self . n_turns &gt;= self . max_turns : raise StopIteration ( f \" max_turns ={ self . max_turns\n}\")\nif self . cost\n&gt;= self . max_cost :\nraise StopIteration ( f \" max_cost = $ { self . max_cost\n:.2 f }\")\n\n57\n58\n59\n\nasync def _m aybe_com pact ( self ) :\n# Recommendation 7\nif self . _ t ok en _e s ti ma te () &lt; self . c o m p a c t _ a t _ t o k e n s : return\n\n71\n\n\fsummary = await self . model . complete (\nself . messages + [{\" role \": \" user \" ,\n\" content \": \" Summarize the conversation . Preserve decisions and unresolved\nissues .\"}] , tools =[])\n# P r e s e r v e system + last 30% of turns verbatim , drop the middle ( Gemini pattern )\nkeep = max (4 , int ( len ( self . messages ) * 0.30) )\nself . messages = [ self . messages [0] , {\" role \":\" assistant \" ,\" content \": summary [\" content\n\"]}] + self . messages [ - keep :]\n\n60\n61\n62\n63\n64\n65\n66\n\nasync def run ( self , task : str ) -&gt; str :\nself . messages = [\n{\" role \": \" system \" , \" content \": f \" You are a SWE agent .\\ n \\ n { d i s c o v e r _ c o nt e x t ()\n}\"} ,\n{\" role \": \" user \" ,\n\" content \": task } ,\n]\ntool_schemas = [{\" name \": n , \" description \": f . __doc__ or n } for n , f in TOOLS . items\n() ]\nwhile True :\nawait self . _check_limits () ; await self . _maybe_c ompact ()\nresp = await self . model . complete ( self . messages , tools = tool_schemas )\nself . n_turns += 1; self . cost += resp . get (\" cost \" , 0.0)\nself . messages . append ( resp )\nif not resp . get (\" tool_calls \") : return resp . get (\" content \" , \"\")\nfor call in resp [\" tool_calls \"]:\n# serial e x e c u t i o n\ntry :\nout = TOOLS [ call [\" name \"]](** call [\" args \"])\nexcept Exception as e : out = f \" ERROR : { type ( e ) . __name__ }: { e }\"\nself . messages . append ({\" role \": \" tool \" , \" tool_call_id \": call [\" id \"] , \" content\n\": _truncate ( str ( out ) ) })\n\n67\n68\n69\n70\n71\n72\n73\n74\n75\n76\n77\n78\n79\n80\n81\n82\n\nListing 3: A minimum viable harness, ∼90 LoC Python. Illustrative scaffold, not production code.\nThe scaffold above deliberately omits features for which our corpus shows divergence: sandbox (Recommendations 9–10 are deployment-specific), multi-agent (Recommendation 12 defers it),\nMCP/Skills (Recommendation 14 is extensibility, not core). Start here, measure [17], add the\nminimum that your observed failure modes demand.\nObservation 13. The 90-line minimum viable agent in Listing 3 implements 10 of the 18 recommendations directly and is compatible with the remaining eight. It does so with no framework\ndependencies, no RAG, no vector store, no multi-agent orchestration, and no sandbox, which\nlines up with the twin absences (Observation 9) and the “start simple” principle of [16]. We\nconjecture, without proof, that this scaffold running on a frontier model would match MiniSWE-Agent’s SWE-Bench numbers, and that moving beyond those numbers is primarily a\nmodel-capability question (Observation 1) rather than a scaffold question.\n\n17\n\nConclusion and Future Work\n\nThis paper has laid out a source-code-level anatomy of eleven LLM-powered coding harnesses—\none per major commercial LLM provider (Claude Code/Anthropic, Codex/OpenAI, Gemini CLI/Google, Mistral Vibe/Mistral) plus seven open-source designs—together with a metaharness contrast point, a longitudinal diff of one quarter’s evolution, and an account of the field’s\nturn into platforms.\n\n17.1\n\nKey Takeaways\n\n1. Architecture matters, but not in the way the current discourse implies. The sophistication of the agent loop does not predict benchmark performance (Mini-SWE-Agent’s 50line loop reports results in the frontier range). It does, however, predict production readiness:\nsafety infrastructure, user experience, extensibility—and increasingly clients and transport,\nwhere the largest systems now carry most of their mass.\n2. The model–agent relationship is co-evolutionary, and coupling is about the update\nloop, not capability. Provider-native optimizations (cache boundaries, thinking budgets,\nmodel-specific prompts, routing) are exercised from both ends of the coupling spectrum: the\n72\n\n\fvendor systems natively, and Hermes, Pi, and OpenCode from multi-provider substrates by\npaying the per-provider conditioning cost centrally. What only vendors retain is server-side\nco-evolution—Codex re-tunes prompts, reasoning tiers, and even its multi-agent tooling per\nmodel release from a catalog endpoint, no client update required.\n3. Safety is architecturally expensive—and a choice, not a consequence of scale.\nCodex’s cross-platform sandboxing (now with vendored bubblewrap) remains a substantial\ninvestment benchmarks never measure, and the meta-harness re-pays the same bill one layer\nup. But the April size-implies-sandbox correlation broke: Hermes and OpenCode are among\nthe largest systems with zero OS-level isolation, spending instead on content-borne threat\ndefense and syntax-aware permissioning.\n4. Multi-agent orchestration converged on hierarchical patterns, and the protocols\nfound a third role. Coordinator-worker shapes now appear in seven systems. ACP serves\nnot only the editor ↔ agent boundary (six corpus adopters) but a role outside its design\nbrief: harness hosting, with OpenHands running Claude Code, Codex, or Gemini CLI\nas interchangeable backends. A2A remains Gemini CLI’s cross-vendor mesh bet. Sub-agent\ncoordination stays in-process in eight of the nine multi-agent systems.\n5. The extensibility standards resolved: skills lead. Skills (9/11 systems) overtook MCP\n(8/11) when Pi broke the tie—implementing agentskills.io while rejecting MCP outright.\nThe skills layer acquired registries, trust tiers, provenance verification, cross-vendor discovery\n(OpenCode reads ~/.claude/skills), and its first agent authors (Hermes’s self-improving\nloop, Gemini CLI’s extraction inbox).\n6. The twin absences are real, re-verified, and now historically explained. Across eleven\nsystems and roughly four million lines, no agent runtime uses a general-purpose agentic framework, and none uses RAG over code—all rely on hand-rolled async loops and deterministic\nstructural retrieval. The absence held through a threefold corpus expansion and a threemonth re-audit, corroborating Anthropic’s published guidance [16, 19] and the independent\nAHE result [85]. Its resolution is the harness–framework merger of Section 14.2.\n7. The Anthropic effective-agents series anticipates the architectures we observe. The\nfour engineering articles published between December 2024 and September 2025 map closely\nonto the patterns documented across eleven independently developed systems. Whether this\nreflects shared empirical reality, guidance-shaped design, or both is a question worth pursuing\non its own.\n8. The analysis is directly actionable. Section 16 distills 18 concrete, evidence-anchored\ndesign recommendations for practitioners building new harnesses, together with a 90-line\nminimum-viable-harness scaffold (Listing 3) that implements ten of them directly. Combined\nwith the source-code audit, this is, as far as we know, the first evidence-based how-to for the\ndiscipline that is not a single-vendor whitepaper.\n9. The platform turn is no longer a hypothesis. What the April edition advanced cautiously\nas the CLI-as-framework hypothesis, Section 14 now documents as an accomplished turn: the\nharnesses ship as importable SDKs while the framework vendors ship harnesses (the merger\nof Section 14.2); capability distribution has marketplaces, registries, trust tiers [89], and\nagent authors; vendors write importers for each other’s on-disk state and expose MDM-grade\n(mobile-device-management) governance; the agent itself is addressable as a model behind an\nOpenAI-compatible endpoint; and a meta-harness orchestrates eleven vendor harnesses—five\nof the systems studied here among them—behind one API (Section 14.4). The surrounding\necosystem data points the same way: MCP’s 8 000+ server ecosystem with app-store curation\npathologies [86], skills formalized as composable packages [87] with npm-like package managers [88], 22–29% of GitHub projects bearing agent traces [91], and the “SE 3.0” framing of\ndevelopment as orchestration [92]. The developer no longer programs with the framework but\n\n73\n\n\finside it, and the vendor lock-in of Observation 2 is becoming the structural lock-in that operating systems and IDEs have always produced [90]—with the meta-layer already arbitraging\nit. Whether harnesses consolidate into a few dominant platforms, fragment into interoperable runtimes, or commoditize from above is the competitive question of the next year; the\narchitectural preconditions for all three outcomes are in the source code today.\n\n17.2\n\nFuture Work\n\nSeveral directions emerge from our analysis:\n• Unified evaluation frameworks that assess safety, user experience, cost efficiency, and\nextensibility alongside correctness, addressing the gap between benchmark performance and\nproduction readiness.\n• Reference architecture specification that formalizes the patterns we identified (event\nsourcing, policy-as-code, context forking, deferred tool loading, middleware pipelines, hashbased loop detection, JIT repo context) into a reusable architectural framework.\n• Formal verification of safety policies for policy-as-code systems, establishing guarantees\nabout what agent actions are permitted under given policy configurations.\n• Empirical study of model–agent co-evolution, tracking how agent scaffolds change across\nmodel generations and quantifying the performance impact of model-specific optimizations.\nLin et al.’s AHE system [85] demonstrates that automatic harness evolution is already feasible;\nlongitudinal studies could now track how automatically evolved scaffolds compare to handcrafted ones across model generations.\n• Cross-system benchmark suite that runs identical tasks across all eleven systems under\ncontrolled conditions, enabling direct comparison of the architectural trade-offs we identified.\n• Inter-agent protocol adoption study, tracking ACP’s three roles (editor integration, harness hosting, and—via A2A—the cross-vendor mesh) and measuring the overhead of hostedharness topologies such as OpenHands’s ACP backends and Omnigent’s adapter fleet.\n• Longitudinal continuation: the April/July snapshot pair turns this study into a time\nseries; quarterly re-pinning would measure pattern-diffusion half-lives, prompt thinning, and\nthe platformization trajectory quantitatively rather than anecdotally.\n• Meta-harness economics: whether commoditization-from-above (Section 14.4) captures\nvalue durably, and whether the conformance-bench approach to harness capabilities becomes\na standard interface.\n• Causation analysis of the Anthropic–industry alignment via interviews, design-doc\narchaeology, and commit-history correlation, distinguishing public-guidance influence from\nconvergent engineering.\n\nAcknowledgments and Disclosure of AI Assistance\nThis paper was written with substantial assistance from Anthropic’s Claude (via the Claude Code\nCLI), which was used both for the source-code analysis and for drafting the manuscript. The architectural findings, observations, patterns, and recommendations were verified against the referenced\ncodebases before being kept in the paper. Any remaining errors are ours.\nThis disclosure follows the emerging authorship policies of ACL, NeurIPS, ICML, and the IEEE.\nThe value of the paper, if it has any, lies in what it says about the twelve codebases; the named\nmodules, tools, and version pins cited throughout should let any reader verify the claims independently.\n\n74\n\n\fWe thank the maintainers and contributors of the twelve studied systems for working in the\nopen. This paper would not have been possible without their decision to make their source code\navailable for inspection.\n\nA\n\nDetailed Comparison Tables\n\nThis appendix collects the densest per-system comparison tables, referenced from the body: the\nrhetorical content of the eleven system prompts (Table 16), the advanced API-feature matrix (Table 17), and the head-to-head Claude Code-versus-Codex pipeline comparison (Table 18).\nTable 16: Rhetorical content of the eleven system prompts (July 2026).\nSystem\n\nVerbosity rule\n\nAnti-goldplate\n\nCommit policy\n\nEmoji rule\n\nEmphasis style\n\nClaude Code\n\nexplicit\n\nno-commit unless\nasked\n\nconditional\n\nIMPORTANT:/NEVER\ntags\n\nexplicit (5.2);\ndropped (5.6)\n\nno-commit (5.2);\nfeature-flag (5.6)\n\nnone\n\nNEVER tags\n\nGemini CLI\nMistral Vibe\n\nquantified\n(≤ 25/100 w;\ninternal A/B)\nqualitative (5.2);\npersona-driven\n(5.6)\nvia snippet gating\nstrict (&lt; 150 w)\n\nimplicit\nexplicit\n\nnone\nstrict ban\n\nfeature-gated sections\noverridability contract\n(structural)\n\nOpenHands\n\nnone\n\nnone\n\nXML role tags\n\nAider\n\n“few short\nsentences”\nstructural (1\ncmd/turn)\nqualitative (“lead\nwith the change”)\n\nexplicit\n(file-suffix)\nimplicit\n\nimplicit\nreversed: commits\nexpected, signature\ntrailer\ncommits taught;\npush/PR gated\nsilent\n\nsilent\n\nformat examples\n\nsilent\n\nsilent\n\nsilent\n\n&lt;important&gt; XML\n\nexplicit\n\nnocommit/push/rewrite\nunless asked\nsilent (delegated)\n\nnone\n\nMUST/NEVER +\nexemplar pairs;\nmodel-gated XML\nXML data tags only\n\nno-commit unless\nasked\n\nconditional;\nGPT\nprompt bans\ninherited\n\nCodex\n\nMini-SWE-Agent\nHermes\n\nPi\nOpenCode\n\nOpenClaw\n\nsingle bullet (“Be\nconcise”)\nquantified (&lt;4\nlines; model-dep.)\n\nsilent\n(delegated)\nexplicit\n\nper-agent\n\ninherited\n\ninherited\n\n75\n\nsilent\n\nIMPORTANT:/NEVER +\n&lt;system-reminder&gt;\nper-agent\n\n\fTable 17: Advanced API features used by each system (July 2026).\nSystem\n\nPrompt caching\n\nExt.\nthinking\n\nOpenHands\n\nPartial (cache tiers\n+ markers)\nPartial\nFull (Blake2b\nboundary)\nPartial (thread_id\nkey)\n✗(server-side)\nPartial\n\nAider\nClaude Code\nCodex\nGemini CLI\nMistral Vibe\n\nMini-SWE-Agent Partial\nHermes\nFull\n(provider-agnostic\nmarkers + prefix\nnormalization)\nPi\nFull (breakpoints +\nTTL tiers + waste\naudit)\nOpenCode\nFull (6-dialect\nfanout + session\nkey)\nOpenClaw\nPartial\n\nReasoning\neffort\n\nModel\nrouting\n\n✓\n\n✓\n\n✓(RouterLLM)\n\n✗\n\n✓\n\nPer-model\n\n✗\n✓\n\n✗\n✗\n\n✗\n✗\n\n✗\n✗\n\nOpt.\n✓\n\nTok+$\nTok+$\n\n✗\n\n✓(to\nmax/ultra)\n✗\n✓(5 levels)\n\n✗\n\n✓\n\n✓\n\nPer-turn\n\n✓(router)\n✗\n\n✗\n✗\n\n✓\n✓\n\n✗\n✗\n\nOpt.\n✓\n\nOTel/Tok+$\nOTel/Persess.\nlitellm\nTok+$, typed\nprovenance\n\n✓\n✓\n\nWebSocket\nVision Cost\ntracking\n\n✗\n✓\n\n✗\n✓(5 levels,\nper-provider\ntranslation)\n\n✗\nFailover\nchains only\n\n✓(7-level\nscale)\n\n✓(10 dialects)\n\n✗(by design)\n\n✓\n\n✓(date-gated\nvariants)\n\n✓(Codex\nbackend)\nSmall-model\nExp.\nselection only\nflag\n\n✓\n\n✗\n\n✗\n\n76\n\n✓\n\n✓\n\nTok+$, tiered\npricing\n\n✓\n\nTok+$\n(Decimal)\n\n✓\n\nPer-prov.\n\n\fTable 18: Head-to-head pipeline comparison: Claude Code vs. Codex.\nStage\n\nClaude Code\n\nCodex\n\nPrompt\nassembly\n\n12–15 named sections. Static prefix\n(identity, rules, tools) cached via\nBlake2b hash; dynamic suffix (env,\nmemory, MCP) recomputed\nper-turn.\nSYSTEM_PROMPT_DYNAMIC_BOUNDARY\nseparates the two.\n\nPer-model prompts as\nserver-delivered catalog data\n(models.json\nbase_instructions,\nremote-refreshed with bundled\nfallback); personality-templated.\nAGENTS.md injected via\nroot-to-cwd concatenation (nested\ncontent appended last).\n\nTool exposure\n\n43 tools, but only a subset loaded\ninitially. Deferred tools discovered\non-demand via ToolSearchTool\n(keyword search + select:\nsyntax). Reduces prompt tokens by\n∼40%.\n\n25–30 built-ins; schemas converted\nto OpenAI Function format via\ncreate_tools_json_\nfor_responses_api(). Deferred\nloading now mirrored:\ndefer_loading flags (MCP tools\nby default) + BM25 tool_search.\n\nAPI protocol\n\nOpenAI Responses API. WebSocket\nAnthropic Messages API. SSE\nprimary, SSE fallback. Connection\nstreaming with\ncontent_block_{start,delta,stop} prewarm (generate=false). Turn\nstate via x-codex-turn-state\nevents. Extended thinking via\nheader. Reasoning effort\nbudget_tokens.\n(minimal–xhigh, plus max/ultra;\nultra adds automatic delegation).\n\nTool dispatch\n\npartitionToolCalls():\nsingle-pass reduce partitions by\nisConcurrencySafe().\nConsecutive safe tools batched;\nunsafe tools solo. Max 10\nconcurrent via semaphore.\n\nFuturesOrdered through a\ndedicated ToolCallRuntime;\nper-tool supports_parallel flag\n(default false) gates an execution\nlock—concurrency-unsafe tools run\nexclusively.\n\nPermission\n\n3 layers: (1) PreToolUse hooks\n(static pattern match), (2) LLM\nrisk classifier, (3) interactive dialog.\nSub-agents skip layer 3.\n\n4 layers: (1) ExecPolicy Starlark\nrules, (2) lifecycle hooks\n(Claude Code-compatible\nvocabulary), (3) Guardian LLM\napproval reviewer (fail-closed),\n(4) OS-level sandbox enforcement.\n\nExecution\n\nHost execution with an opt-in OS\nsandbox (Anthropic\nsandbox-runtime:\nBubblewrap/Seatbelt, network\nrestrictions,\ndangerouslyDisableSandbox\nescape hatch); git worktrees for\nbranch isolation.\n\nSandboxed execution. Vendored\nBubblewrap (Linux; Landlock\nlegacy fallback), Seatbelt (macOS),\nrestricted tokens (Windows).\n\nCompaction\n\nTriggered when remaining context\ndrops below\nAUTOCOMPACT_BUFFER_TOKENS\n(13 K), with an env-overridable\npercent threshold. Image stripping,\nmessage grouping by API round,\nLLM summarization,\nSystemCompactBoundaryMessage.\nPost-cleanup: restore 5 files (50 K\ntoken budget).\n\nmodel_auto_compact_token_limit\nconfigurable. Local or cloud\ncompaction via\n/responses/compact; rollout token\nbudgets with turn aborts.\n\n77\n\n\fReferences\n[1] C. E. Jimenez, J. Yang, A. Wettig, S. Yao, K. Pei, O. Press, and K. Narasimhan. SWE-bench:\nCan language models resolve real-world GitHub issues? In Proc. ICLR, 2024.\n[2] J. Yang, C. E. Jimenez, A. Wettig, K. Lieret, S. Yao, K. Narasimhan, and O. Press. SWEagent: Agent-computer interfaces enable automated software engineering. In Proc. NeurIPS,\n2024.\n[3] X. Wang, Y. Chen, L. Yuan, Y. Zhang, Y. Li, H. Peng, and H. Ji. Executable code actions\nelicit better LLM agents. In Proc. ICML, 2024.\n[4] S. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. Narasimhan, and Y. Cao. ReAct: Synergizing\nreasoning and acting in language models. In Proc. ICLR, 2023.\n[5] L. Weng. LLM-powered autonomous agents. Lil’Log, 2023. https://lilianweng.github.io/\nposts/2023-06-23-agent/.\n[6] L. Wang, C. Ma, X. Feng, Z. Zhang, H. Yang, J. Zhang, Z. Chen, J. Tang, X. Chen, Y. Lin,\net al. A survey on large language model based autonomous agents. Frontiers of Computer\nScience, 18(6), 2024.\n[7] S. Hong, M. Zhuge, J. Chen, X. Zheng, Y. Cheng, C. Zhang, J. Wang, Z. Wang, S. K. S. Yau,\nZ. Lin, et al. MetaGPT: Meta programming for a multi-agent collaborative framework. In\nProc. ICLR, 2024.\n[8] Q. Wu, G. Banber, Y. Zhang, Y. Wu, B. Li, Z. Liu, A. H. Awadallah, R. W. White, D. Burger,\nand C. Wang. AutoGen: Enabling next-gen LLM applications via multi-agent conversation.\narXiv preprint arXiv:2308.08155, 2023.\n[9] A. Fourney, G. Bansal, H. Mozannar, C. Tan, E. Horvitz, et al. Magentic-One: A generalist\nmulti-agent system for solving complex tasks. arXiv preprint arXiv:2411.04468, 2024.\n[10] T. Schick, J. Dwivedi-Yu, R. Dessì, R. Raileanu, M. Lomeli, E. Hambro, L. Zettlemoyer,\nN. Cancedda, and T. Scialom. Toolformer: Language models can teach themselves to use\ntools. In Proc. NeurIPS, 2023.\n[11] S. G. Patil, T. Zhang, X. Wang, and J. E. Gonzalez. Gorilla: Large language model connected\nwith massive APIs. In Proc. NeurIPS, 2024.\n[12] Anthropic. Model Context Protocol specification. https://modelcontextprotocol.io/, 2024.\n[13] OpenHands Contributors. OpenHands: An open platform for AI software developers as generalist agents. https://github.com/OpenHands/OpenHands (formerly All-Hands-AI); agent\narchitecture: https://github.com/OpenHands/software-agent-sdk, 2024.\n[14] P. Gauthier. Aider: AI pair programming in your terminal. https://github.com/Aider-AI/\naider, 2024.\n[15] Mini-SWE-Agent Contributors. Mini-SWE-Agent: A minimal software engineering agent.\nhttps://github.com/mini-swe-agent/mini-swe-agent, 2024.\n[16] E. Schluntz and B. Zhang. Building effective agents. Anthropic Engineering Blog, December 2024. https://www.anthropic.com/research/building-effective-agents.\n[17] J. Hadfield, B. Zhang, K. Lien, F. Scholz, J. Fox, and D. Ford. How we built our multiagent research system. Anthropic Engineering Blog, June 2025. https://www.anthropic.\ncom/engineering/multi-agent-research-system.\n\n78\n\n\f[18] K. Aizawa, B. Zhang, Z. Witten, and others. Writing effective tools for AI agents. Anthropic Engineering Blog, September 2025. https://www.anthropic.com/engineering/\nwriting-tools-for-agents.\n[19] P. Rajasekaran, E. Dixon, C. Ryan, J. Hadfield, R. Ayub, H. Moran, C. Rueb,\nand C. Jennings.\nEffective context engineering for AI agents.\nAnthropic Engineering Blog,\nSeptember 2025.\nhttps://www.anthropic.com/engineering/\neffective-context-engineering-for-ai-agents.\n[20] Mistral AI. Mistral Vibe: A coding agent built on Mistral models. https://github.\ncom/mistralai/mistral-vibe (formerly mistralai/vibe), 2026. Version 2.19.1, accessed\nJuly 2026.\n[21] Google. Gemini CLI: An open-source AI agent that brings the power of Gemini to the terminal.\nhttps://github.com/google-gemini/gemini-cli, 2026. Version 0.50.0, accessed July 2026;\nconsumer service retired June 2026 in the announced transition to the closed-source Antigravity CLI.\n[22] Nous Research. Hermes Agent: The agent that grows with you. https://github.com/\nNousResearch/hermes-agent, 2026. Version v2026.7.7.2 (0.18.2), accessed July 2026.\n[23] M. Zechner. Pi: The coding-agent harness you can make your own. https://github.com/\nearendil-works/pi, 2026. Version 0.80.6, accessed July 2026.\n[24] Anomaly (formerly SST). OpenCode: The AI coding agent built for the terminal. https://\ngithub.com/anomalyco/opencode (formerly sst/opencode), 2026. Version 1.17.18, accessed\nJuly 2026.\n[25] Databricks. Introducing Omnigent: A meta-harness to combine, control and share your agents.\nhttps://github.com/omnigent-ai/omnigent, June 2026. Version 0.4.0, accessed July 2026.\n[26] xAI. Grok Build: xAI’s coding agent CLI. https://x.ai/cli, May 2026. Accessed July 2026.\n[27] Claw Code Contributors. Claw Code: A clean-room, provider-agnostic reimplementation of\nthe Claude Code architecture. https://claw-code.codes/, 2026. Accessed July 2026.\n[28] V. Trivedy. The anatomy of an agent harness. LangChain Blog, March 2026. https://www.\nlangchain.com/blog/the-anatomy-of-an-agent-harness.\n[29] The Deep Feed. Agent harness engineering: The new discipline, decoded. https://www.\nthedeepfeed.ai/posts/2026-05-09-agent-harness-engineering-the-discipline/,\nMay 2026.\n[30] B. Böckeler. Harness engineering for coding agent users. martinfowler.com, April 2026. https:\n//martinfowler.com/articles/harness-engineering.html.\n[31] P. Steinberger. “You shouldn’t be prompting coding agents anymore. You should be designing\nloops that prompt your agents.” Post on X, June 2026.\n[32] A. Osmani.\nJune 2026.\n\nLoop engineering.\n\nhttps://addyosmani.com/blog/loop-engineering/,\n\n[33] S. O. de Macedo. What makes a harness a harness: Necessary and sufficient conditions for an\nagent harness. arXiv preprint arXiv:2606.10106, June 2026.\n[34] B. Rombaut. Inside the scaffold: A source-code taxonomy of coding agent architectures. arXiv\npreprint arXiv:2604.03515, April 2026.\n\n79\n\n\f[35] HARBOR Authors.\nHARBOR: Automated harness optimization.\narXiv:2604.20938, April 2026.\n\narXiv preprint\n\n[36] Code-as-Harness Authors. Code as agent harness. arXiv preprint arXiv:2605.18747, May 2026.\n[37] LangChain.\nDeep Agents: Overview.\nhttps://docs.langchain.com/oss/python/\ndeepagents/overview, 2026. Accessed July 2026.\n[38] Anthropic. Claude Agent SDK: Build production AI agents with Claude Code as a library.\nhttps://code.claude.com/docs/en/agent-sdk/overview, 2026. Accessed July 2026.\n[39] Pydantic Services Inc.\nPydantic AI Harness.\nhttps://github.com/pydantic/\npydantic-ai-harness, 2026. Version 0.6.0, accessed July 2026.\n[40] Strands Agents. Harness SDK. https://github.com/strands-agents/harness-sdk, 2026.\nAccessed July 2026.\n[41] Agent Client Protocol Working Group. Agent Client Protocol (ACP) specification. https:\n//agentclientprotocol.com/, 2025.\n[42] Google. Agent-to-Agent (A2A) Protocol specification. https://a2a-protocol.org/, 2025.\n[43] Agent Skills Working Group. Agent Skills specification: file-system convention for capability\nbundles. https://agentskills.io/, 2025.\n[44] Y. Zhang, H. Ruan, Z. Fan, and A. Roychoudhury. AutoCodeRover: Autonomous program\nimprovement. In Proc. ISSTA, 2024. https://arxiv.org/abs/2404.05427.\n[45] X. Wang, B. Li, Y. Song, F. F. Xu, X. Tang, et al. OpenHands: An open platform for AI\nsoftware developers as generalist agents. In Proc. ICLR, 2025. https://arxiv.org/abs/2407.\n16741.\n[46] D. Chen, S. Lin, M. Zeng, D. Zan, et al. CodeR: Issue resolving with multi-agent and task\ngraphs. arXiv preprint arXiv:2406.01304, 2024. https://arxiv.org/abs/2406.01304.\n[47] W. Tao, Y. Zhou, Y. Wang, W. Zhang, H. Zhang, and Y. Cheng. MAGIS: LLM-based multiagent framework for GitHub issue resolution. In Proc. NeurIPS, 2024. https://arxiv.org/\nabs/2403.17927.\n[48] D. Arora, A. Sonwane, N. Wadhwa, A. Mehrotra, S. Utpala, R. Bairi, A. Kanade, and\nN. Natarajan. MASAI: Modular architecture for software-engineering AI agents. arXiv preprint\narXiv:2406.11638, 2024. https://arxiv.org/abs/2406.11638.\n[49] Y. Ma, R. Cao, Y. Cao, Y. Zhang, J. Chen, Y. Liu, Y. Liu, B. Li, F. Huang, and Y. Li. Lingma\nSWE-GPT: An open development-process-centric language model for automated software improvement. arXiv preprint arXiv:2411.00622, 2024. https://arxiv.org/abs/2411.00622.\n[50] C. Qian, W. Liu, H. Liu, N. Chen, Y. Dang, et al. ChatDev: Communicative agents for software\ndevelopment. In Proc. ACL, 2024. https://arxiv.org/abs/2307.07924.\n[51] C. S. Xia, Y. Deng, S. Dunn, and L. Zhang. Agentless: Demystifying LLM-based software\nengineering agents. arXiv preprint arXiv:2407.01489, 2024. https://arxiv.org/abs/2407.\n01489.\n[52] A. Antoniades, A. Örwall, K. Zhang, Y. Xie, A. Goyal, and W. Wang. SWE-Search: Enhancing\nsoftware agents with Monte Carlo tree search and iterative refinement. In Proc. ICLR, 2025.\nhttps://arxiv.org/abs/2410.20285.\n\n80\n\n\f[53] K. Zhang, W. Yao, Z. Liu, Y. Feng, et al. Diversity empowers intelligence: Integrating expertise\nof software engineering agents. arXiv preprint arXiv:2408.07060, 2024. https://arxiv.org/\nabs/2408.07060.\n[54] N. Shinn, F. Cassano, E. Berman, A. Gopinath, K. Narasimhan, and S. Yao. Reflexion:\nLanguage agents with verbal reinforcement learning. In Proc. NeurIPS, 2023. https://arxiv.\norg/abs/2303.11366.\n[55] A. Madaan, N. Tandon, P. Gupta, S. Hallinan, L. Gao, et al. Self-refine: Iterative refinement\nwith self-feedback. In Proc. NeurIPS, 2023. https://arxiv.org/abs/2303.17651.\n[56] Z. Gou, Z. Shao, Y. Gong, Y. Shen, Y. Yang, N. Duan, and W. Chen. CRITIC: Large\nlanguage models can self-correct with tool-interactive critiquing. In Proc. ICLR, 2024. https:\n//arxiv.org/abs/2305.11738.\n[57] X. Chen, M. Lin, N. Schärli, and D. Zhou. Teaching large language models to self-debug. In\nProc. ICLR, 2024. https://arxiv.org/abs/2304.05128.\n[58] Y. Qin, S. Liang, Y. Ye, K. Zhu, et al. ToolLLM: Facilitating large language models to master\n16000+ real-world APIs. In Proc. ICLR, 2024. https://arxiv.org/abs/2307.16789.\n[59] Y. Du, F. Wei, and H. Zhang. AnyTool: Self-reflective, hierarchical agents for large-scale API\ncalls. In Proc. ICML, 2024. https://arxiv.org/abs/2402.04253.\n[60] F. Zhang, B. Chen, Y. Zhang, J. Keung, J. Liu, D. Zan, Y. Mao, J.-G. Lou, and W. Chen.\nRepoCoder: Repository-level code completion through iterative retrieval and generation. In\nProc. EMNLP, 2023. https://arxiv.org/abs/2303.12570.\n[61] T. Liu, C. Xu, and J. McAuley. RepoBench: Benchmarking repository-level code autocompletion systems. In Proc. ICLR, 2024. https://arxiv.org/abs/2306.03091.\n[62] Y. Ding, Z. Wang, W. U. Ahmad, H. Ding, M. Tan, et al. CrossCodeEval: A diverse and multilingual benchmark for cross-file code completion. In Proc. NeurIPS Datasets and Benchmarks,\n2023. https://arxiv.org/abs/2310.11248.\n[63] Z. Z. Wang, A. Asai, X. V. Yu, F. F. Xu, Y. Xie, G. Neubig, and D. Fried. CodeRAG-Bench:\nCan retrieval augment code generation? In Findings of NAACL, 2025. https://arxiv.org/\nabs/2406.14497.\n[64] E. Bogomolov, A. Eliseeva, T. Galimzyanov, E. Glukhov, et al. Long Code Arena: A set of\nbenchmarks for long-context code models. arXiv preprint arXiv:2406.11612, 2024. https:\n//arxiv.org/abs/2406.11612.\n[65] Q. Luo, Y. Ye, S. Liang, Z. Zhang, Y. Qin, et al. RepoAgent: An LLM-powered opensource framework for repository-level code documentation generation. In Proc. EMNLP System\nDemonstrations, 2024. https://arxiv.org/abs/2402.16667.\n[66] Z. Xi, W. Chen, X. Guo, W. He, Y. Ding, et al. The rise and potential of large language model\nbased agents: A survey. arXiv preprint arXiv:2309.07864, 2023. https://arxiv.org/abs/\n2309.07864.\n[67] T. Guo, X. Chen, Y. Wang, R. Chang, S. Pei, N. V. Chawla, O. Wiest, and X. Zhang. Large\nlanguage model based multi-agents: A survey of progress and challenges. In Proc. IJCAI Survey\nTrack, 2024. https://arxiv.org/abs/2402.01680.\n[68] J. Liu, K. Wang, Y. Chen, X. Peng, Z. Chen, L. Zhang, and Y. Lou. Large language modelbased agents for software engineering: A survey. ACM Trans. Softw. Eng. Methodol., 2025. To\nappear. https://arxiv.org/abs/2409.02977.\n81\n\n\f[69] X. Liu, H. Yu, H. Zhang, Y. Xu, X. Lei, et al. AgentBench: Evaluating LLMs as agents. In\nProc. ICLR, 2024. https://arxiv.org/abs/2308.03688.\n[70] S. Yao, D. Yu, J. Zhao, I. Shafran, T. L. Griffiths, Y. Cao, and K. Narasimhan. Tree of\nthoughts: Deliberate problem solving with large language models. In Proc. NeurIPS, 2023.\nhttps://arxiv.org/abs/2305.10601.\n[71] L. Wang, W. Xu, Y. Lan, Z. Hu, Y. Lan, R. K.-W. Lee, and E.-P. Lim. Plan-and-solve\nprompting: Improving zero-shot chain-of-thought reasoning by large language models. In Proc.\nACL, 2023. https://arxiv.org/abs/2305.04091.\n[72] Y. Zhang, R. Sun, Y. Chen, T. Pfister, R. Zhang, and S. Ö. Arik. Chain of agents: Large\nlanguage models collaborating on long-context tasks. In Proc. NeurIPS, 2024. https://\narxiv.org/abs/2406.02818.\n[73] A. Zhou, K. Yan, M. Shlapentokh-Rothman, H. Wang, and Y.-X. Wang. Language agent\ntree search unifies reasoning, acting, and planning in language models. In Proc. ICML, 2024.\nhttps://arxiv.org/abs/2310.04406.\n[74] C. Packer, S. Wooders, K. Lin, V. Fang, S. G. Patil, I. Stoica, and J. E. Gonzalez. MemGPT:\nTowards LLMs as operating systems. arXiv preprint arXiv:2310.08560, 2023. https://arxiv.\norg/abs/2310.08560.\n[75] H. Jiang, Q. Wu, C.-Y. Lin, Y. Yang, and L. Qiu. LLMLingua: Compressing prompts for\naccelerated inference of large language models. In Proc. EMNLP, 2023. https://arxiv.org/\nabs/2310.05736.\n[76] E. Debenedetti, J. Zhang, M. Balunović, L. Beurer-Kellner, M. Fischer, and F. Tramèr. AgentDojo: A dynamic environment to evaluate prompt injection attacks and defenses for LLM\nagents. In Proc. NeurIPS Datasets and Benchmarks, 2024. https://arxiv.org/abs/2406.\n13352.\n[77] K. Greshake, S. Abdelnabi, S. Mishra, C. Endres, T. Holz, and M. Fritz. Not what you’ve\nsigned up for: Compromising real-world LLM-integrated applications with indirect prompt\ninjection. In Proc. AISec, 2023. https://arxiv.org/abs/2302.12173.\n[78] T. Yuan, Z. He, L. Dong, Y. Wang, et al. R-Judge: Benchmarking safety risk awareness for\nLLM agents. In Findings of EMNLP, 2024. https://arxiv.org/abs/2401.10019.\n[79] J. Ye, S. Li, G. Li, C. Huang, S. Gao, Y. Wu, Q. Zhang, T. Gui, and X. Huang. ToolSword:\nUnveiling safety issues of large language models in tool learning across three stages. In Proc.\nACL, 2024. https://arxiv.org/abs/2402.10753.\n[80] A. Mitra, L. Del Corro, G. Zheng, S. Mahajan, D. Rouhana, et al. AgentInstruct: Toward\ngenerative teaching with agentic flows. arXiv preprint arXiv:2407.03502, 2024. https://\narxiv.org/abs/2407.03502.\n[81] I. Gim, G. Chen, S.-s. Lee, N. Sarda, A. Khandelwal, and L. Zhong. Prompt cache: Modular\nattention reuse for low-latency inference. In Proc. MLSys, 2024. https://arxiv.org/abs/\n2311.04934.\n[82] L. Chen, M. Zaharia, and J. Zou. FrugalGPT: How to use large language models while reducing\ncost and improving performance. Trans. Mach. Learn. Res., 2024. https://arxiv.org/abs/\n2305.05176.\n[83] I. Ong, A. Almahairi, V. Wu, W.-L. Chiang, T. Wu, J. E. Gonzalez, M. W. Kadous, and\nI. Stoica. RouteLLM: Learning to route LLMs with preference data. In Proc. ICLR, 2025.\nhttps://arxiv.org/abs/2406.18665.\n82\n\n\f[84] D. Ding, A. Mallick, C. Wang, R. Sim, S. Mukherjee, V. Rühle, L. V. S. Lakshmanan, and\nA. H. Awadallah. Hybrid LLM: Cost-efficient and quality-aware query routing. In Proc. ICLR,\n2024. https://arxiv.org/abs/2404.14618.\n[85] X. Lin, C. Ruan, B. Rozière, M. Tufano, M. Velez, and B. Shen. Agentic harness engineering: Observability-driven automatic evolution of coding-agent harnesses. arXiv preprint\narXiv:2604.25850, April 2026.\n[86] H. Guo, Y. Hao, Y. Zhang, et al. A measurement study of Model Context Protocol ecosystem.\narXiv preprint arXiv:2509.25292, 2025. https://arxiv.org/abs/2509.25292.\n[87] R. Xu and Y. Yan. Agent skills for large language models: Architecture, acquisition, security,\nand the path forward. arXiv preprint arXiv:2602.12430, 2026. https://arxiv.org/abs/2602.\n12430.\n[88] S. Saha and P. Hemanth. Skilldex: A package manager and registry for agent skill packages\nwith hierarchical scope-based distribution. arXiv preprint arXiv:2604.16911, 2026. https:\n//arxiv.org/abs/2604.16911.\n[89] Z. Guo, Z. Chen, et al. SkillProbe: Security auditing for emerging agent skill marketplaces via\nmulti-agent collaboration. arXiv preprint arXiv:2603.21019, 2026. https://arxiv.org/abs/\n2603.21019.\n[90] S. Kapoor, N. Kolt, and S. Lazar. Resist platform-controlled AI agents and champion usercentric agent advocates. In Proc. ICML, 2025. https://arxiv.org/abs/2505.04345.\n[91] R. Robbes, T. Matricon, et al. Agentic much? Adoption of coding agents on GitHub. arXiv\npreprint arXiv:2601.18341, 2026. https://arxiv.org/abs/2601.18341.\n[92] H. Li, H. Zhang, and A. E. Hassan. The rise of AI teammates in Software Engineering 3.0: How autonomous coding agents are reshaping software engineering. arXiv preprint\narXiv:2507.15003, 2025. https://arxiv.org/abs/2507.15003.\n\n83\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"