Command Palette
Search for a command to run...
Sage-Med-Harness: 공진화 구성요소 생태계를 통한 의료 에이전트의 확장
Sage-Med-Harness: 공진화 구성요소 생태계를 통한 의료 에이전트의 확장
초록
인공지능(AI) 공동 과학자 및 공동 임상의는 생물의학 연구와 임상 진료 전반에서 빠르게 발전하고 있다. 그러나 다양한 의료 과업으로 이러한 에이전트를 확장하는 것은 도메인 자원과 런타임 제어 전반에 걸친 수동 하네스 구성으로 인해 저해되고 있다. 본 논문에서는 통합 구성요소 생태계와 공진화 하네스 컴포저를 결합하여 주문형 의료 에이전트를 구축하는 개방형 프레임워크인 Sage-Med-Harness를 소개한다. 이 생태계는 10,000개 이상의 의료 구성요소를 표준화하며, 오픈소스 도메인 자원과 발표된 연구에서 추출한 런타임 제어를 결합한다. 각 구성요소의 실행 가능성과 안전성을 감사하고, 관계 그래프에 의존성, 호환성, 대안을 연결한다. 각 과업에 대해 컴포저는 이 그래프를 질의하여 후보 에이전트를 조립하고, 독립 평가자가 시험 실행을 검토하여 수정을 안내한 후 검증된 구성이 생태계로 반환되어 재사용된다. 우리는 암 표적 우선순위 선정, 임상시험 분석, 바이러스 유전체학, 임상 진단, 디지털 병리를 아우르는 다섯 가지 사례 연구에 Sage-Med-Harness를 적용하였다. 특히 조립된 에이전트는 ViroBench의 다섯 가지 바이러스 분류 계층 모두에서 74개 뉴클레오티드 기반 모델의 계층별 최고 성능을 능가했으며(85.8% 대 76.0% Macro-F1), 병리학자 점수에 대해 0.930의 급내상관계수로 AI 기반 PD-L1 전체 슬라이드 점수를 재현하였다. 더 넓게는 Sage-Med-Harness가 커뮤니티 전반의 생물의학 발전과 검증된 워크플로를 범용 의료 AI를 위한 개방적이고 지속적으로 진화하는 기반으로 전환한다.
One-sentence Summary
Shanghai Artificial Intelligence Laboratory introduces Sage-Med-Harness, an open framework that pairs a unified, audited ecosystem of over 10,000 medical components with a co-evolving harness composer to assemble and iteratively refine task-specific medical agents, demonstrated across five biomedical case studies spanning cancer target prioritization, clinical trial analysis, viral genomics, clinical diagnosis, and digital pathology, surpassing the per-rank best of 74 nucleotide foundation models across all five viral taxonomic ranks on ViroBench with 85.8% versus 76.0% Macro-F1, and reproducing AI-based PD-L1 whole-slide scoring with 0.930 intraclass correlation against pathologist scores.
Key Contributions
- Sage-Med-Harness is an open framework that assembles task-specific medical agents from an audited ecosystem of over 10,000 standardized components linked by dependency, compatibility, and alternative relations, with a composer-evaluator loop that archives verified configurations for reuse.
- The framework pairs domain resources with configurable runtime controls and layered verification, including pre-run configuration checks, joint lineage decoding, domain skills, and programmatic contracts; these prevented invalid outputs, with joint lineage decoding raising viral validation Macro-F1 from 68.3% to 83.3%.
- In five case studies, assembled Sage-Med-Harness agents surpassed the per-rank best of 74 nucleotide foundation models on ViroBench across all five viral taxonomic ranks with 85.8% versus 76.0% Macro-F1, and reproduced PD-L1 whole-slide scoring with a 0.930 intraclass correlation against pathologist scores.
Introduction
Biomedical AI agents are increasingly used as co-scientists and co-clinicians, but their reliability depends not only on the language model but also on the surrounding harness that configures domain resources, orchestration, context, permissions, and verification. Prior work faces three main challenges: fragmented resources and runtime controls across scattered registries, limited quality and safety auditing of third-party components, and rigid or non-reusable harnesses that are either too generic or tied to a single application. The authors introduce Sage-Med-Harness, an open framework that pairs a unified medical component ecosystem with a co-evolving harness composer. It standardizes domain resources and runtime controls, audits each component for runnability and safety, links dependencies through a relation graph, and assembles task-specific agents whose verified configurations and newly synthesized components return to the ecosystem for reuse.
Dataset
Dataset description: Sage-Med-Harness component ecosystem
-
Sources and collection The authors collect open-source components from GitHub and 19 public directories and registries. Starting from 6,592 candidate repositories, they screen for supported formats and documented clinical or biomedical use, then extract and deduplicate components at pinned source commits. They also search PubMed, arXiv, bioRxiv, medRxiv, and curated survey bibliographies from January 2024 to November 2026. After screening 3,174 candidate medical agent studies, 150 full-text papers are used to generate runtime control plugins through the Paper2Plugin pipeline.
-
Dataset composition The ecosystem contains 10,857 components. Of these, 10,425 are extracted from 229 open-source repositories and 432 are generated by Paper2Plugin. The components span 6,109 Skills, 4,123 MCP tools, 185 CLIs, and 440 Harness Plugins. Among the paper-derived runtime controls, 145 cover execution orchestration, 130 cover context and memory, 29 cover permission governance, and 128 cover evaluation and feedback.
-
Filtering and quality checks Every component is audited before use. Static checks scan pinned source code across 12 security domains for operations such as external calls, credential use, or code execution. Sandbox checks verify installation and loading without running component code. A read-only model review examines flagged lines and confirms or dismisses findings only when three review runs agree. Documentation is rated from 1 to 5 on safety disclosure, completeness, interface consistency, maintainability, cost disclosure, and medical relevance. Seven fixed rules determine the final verdict. Across all 10,857 components, 14.2% are labeled Not recommended, 20.9% Needs confirmation, and 64.9% No risk identified.
-
Relation graph construction The authors unify all component schemas and build a relation graph. Attribute-level links connect components to task capabilities, descriptive tags, input/output data formats, and a 14-domain clinical and biomedical taxonomy. Component-level relations include
contain,require,compose_with, andalternative_to. The graph is built through static parsing, semantic embedding retrieval, and LLM-based relational inference with automated verification. It contains 75,182 nodes, consisting of 10,857 components and 64,325 attributes, and 139,016 edges, including 136,205 attribute edges and 2,811 inter-component edges. -
How the data is used The audited and graph-linked components serve as the pool for assembling medical agents. Audit verdicts and ratings let the composer exclude Not recommended components by default and route Needs confirmation components to human review. The relation graph supports selecting, mounting, and composing components with explicit applicability conditions, while paper-derived Harness Plugins provide behavioral tests and runtime controls for isolated agent evaluation.
Method
The authors model a medical agent as the combination of a large language model, a domain-agnostic base harness, and specialized medical components. This formulation is expressed as:
Medical Agent=LLM+Base Harness+Medical ComponentsThe large language model handles language understanding and reasoning, while the base harness provides default runtime controls. Medical components specialize this baseline at two distinct levels. Peripheral domain resources consist of declarative skills, structured MCP tools, and command-line interfaces invoked within individual steps. Core runtime controls are implemented as harness plugins that adapt the base runtime across four control types: execution orchestration, context and memory, permission governance, and evaluation and feedback.
As shown in the figure below:
The framework centers on a unified medical component ecosystem that standardizes, audits, and connects these domain resources and runtime controls. To ensure safety and reliability, the authors implement a rigorous auditing pipeline combining static code analysis, sandbox execution checks, and read-only model reviews. Each component receives an audit card detailing its runnability level, safety verdict, and quality ratings across dimensions such as safety disclosure, completeness, and medical relevance. Furthermore, the system constructs a comprehensive relation graph that links components to shared attributes like task capabilities, data formats, and a clinical taxonomy. At the component level, the graph encodes inter-component relationships, including containment, prerequisites, composability, and fallback alternatives, ensuring biological and clinical compatibility beyond mere file format matching.
To build task-specific agents from this vast ecosystem, the authors design a co-evolving harness composer that operates through a just-in-time assembly process. When a task arrives, the composer queries the relation graph and audit cards to iteratively reason over capability needs. It mounts, configures, or swaps domain resource plugins and pairs them with matching runtime controls, grounding each revision in explicit dependency, interface, and safety checks.
Following assembly, the tailored harness is deployed in an isolated sandbox for evaluation. An independent evaluator, instantiated from task-specific criteria, assesses the agent to prevent self-evaluation bias and data leakage. This evaluator grades observable traces and outputs using validation splits or reference-free consistency checks. Guided by the diagnostic feedback, the composer applies targeted revisions. It reconfigures controls to resolve workflow or policy failures, substitutes failing resource plugins via graph links, or synthesizes new components on demand to fill capability gaps. Newly synthesized components must pass anti-hardcoding screening and the three-stage auditing pipeline before entering execution. Revised harnesses replace the active configuration only under gated acceptance, requiring full compliance and improved evaluation scores within preset resource limits.
To preserve verified solutions across sessions, outputs that pass gated evaluation are consolidated into an agent library and the shared ecosystem. Validated harnesses are archived with their versioning, component audit cards, and evaluation setups to support reproducible reuse. Newly synthesized domain resources and runtime controls that pass both auditing and gated evaluation are registered into the relation graph with their provenance and dependency links, continuously expanding the reusable coverage for future tasks.
Experiment
The Sage-Med-Harness framework was evaluated on five healthcare and biomedical tasks spanning multi-omic lung cancer target assessment, ulcerative colitis trial-failure analysis, viral genome taxonomy classification, staged cardiac amyloidosis diagnosis, and PD-L1 scoring on whole-slide immunohistochemistry images. In each case, the co-evolving composer assembled a task-specific agent from curated domain resources and runtime controls, while iterative evaluation and component synthesis corrected workflow, resource, or capability gaps under frozen verification criteria. Qualitatively, the assembled agents produced auditable and reproducible outputs, including stromal CD276 localization with adverse survival associations, gp130-axis redundancy over OSMR alone in colitis, lineage-constrained viral classification, criterion-complete staged amyloidosis diagnosis, and pathologist-consistent PD-L1 scoring; the authors conclude that audited, reusable components can support verifiable task-specific medical agents but still require controlled multi-task benchmarks and prospective validation.