Command Palette
Search for a command to run...
Sage-Med-Harness : mise à l'échelle des agents médicaux grâce à un écosystème de composants en co-évolution
Sage-Med-Harness : mise à l'échelle des agents médicaux grâce à un écosystème de composants en co-évolution
Résumé
Les co-scientifiques et co-cliniciens fondés sur l'intelligence artificielle (IA) progressent rapidement dans la recherche biomédicale et les soins cliniques. Cependant, la mise à l'échelle de ces agents pour des tâches médicales variées est entravée par la configuration manuelle des harnais entre les ressources du domaine et les contrôles d'exécution. Nous présentons ici Sage-Med-Harness, un cadre ouvert qui construit des agents médicaux à la demande en associant un écosystème de composants unifié à un compositeur de harnais en co-évolution. L'écosystème normalise plus de 10 000 composants médicaux, en combinant des ressources de domaine open source avec des contrôles d'exécution extraits d'études publiées. Il audite chaque composant en termes d'exécutabilité et de sécurité, et relie les dépendances, la compatibilité et les alternatives dans un graphe de relations. Pour chaque tâche, le compositeur interroge ce graphe afin d'assembler un agent candidat, puis un évaluateur indépendant examine les essais pour guider les révisions avant que les configurations vérifiées ne réintègrent l'écosystème en vue d'une réutilisation. Nous avons appliqué Sage-Med-Harness dans cinq études de cas couvrant la priorisation de cibles en cancérologie, l'analyse d'essais cliniques, la génomique virale, le diagnostic clinique et la pathologie numérique. En particulier, les agents assemblés ont dépassé le meilleur score par rang de 74 modèles de fondation nucléotidiques sur les cinq rangs taxonomiques viraux de ViroBench (85,8 % contre 76,0 % de Macro-F1), et ont reproduit la notation de lames entières PD-L1 fondée sur l'IA avec une corrélation intraclasse de 0,930 par rapport aux scores des pathologistes. Plus largement, Sage-Med-Harness transforme les avancées biomédicales communautaires et les flux de travail vérifiés en une fondation ouverte, en évolution continue, pour une IA médicale généraliste.
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.