cd /news/artificial-intelligence/sage-med-harness-shanghai-ai-lab-med… · home › topics › artificial-intelligence › article
[ARTICLE · art-180057] src=explainx.ai ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

Sage-Med-Harness: Shanghai AI Lab Medical Agent Ecosystem With 10,857 Components

Shanghai Artificial Intelligence Laboratory published Sage-Med-Harness on December 1, 2026, an open framework that assembles medical agents on demand from a 10,857-component ecosystem spanning 14 domains, with code on GitHub and the paper on Hugging Face. The lab's audit found 35.1% of components flagged for potential risks (14.2% "not recommended", 20.9% "needs confirmation") and 23.1% of Skills failed to load, while the release reports 85.8% versus 76.0% Macro-F1 on ViroBench and 0.930 ICC on PD-L1 whole-slide scoring versus pathologists. The framework pairs a 75.2k-node, 139.0k-edge relation graph with a co-evolving harness composer that queries the graph, runs sandboxed trials and archives verified configurations, including 440 harness plugins of which 432 were mined from 150 papers via Paper2Plugin.

key takeaway

Sage-Med-Harness lets builders assemble medical agents from 10,857 audited Skills, MCP tools, CLIs and plugins via a 75.2k-node relation graph and a composer that sandbox-tests and archives verified harness configs, but 23.1% of Skills failed to load and 35.1% of components carried risk flags.

by read8 min views6 publishedDec 2, 2026
Sage-Med-Harness: Shanghai AI Lab Medical Agent Ecosystem With 10,857 Components
Image: Explainx (auto-discovered)

Shanghai Artificial Intelligence Laboratory published Sage-Med-Harness on December 1, 2026, an open framework that assembles medical agents on demand from a 10,857-component ecosystem and a co-evolving harness composer. Code is on GitHub, the ** project homepage**, and ** Hugging Face paper 2612.02356**.

The release sits one layer above model weights: instead of shipping only another multimodal checkpoint like Sage-Med-Preview, the lab publishes how clinical and research tasks discover, audit, install, and reuse biomedical Skills, MCP servers, and runtime plugins.

TL;DR #

Item Detail (per paper and GitHub)
Components 10,857 audited entries across14 domains
Graph 75.2k nodes,139.0k edges (authors)
Plugins 440 harness plugins,432 from150 papers viaPaper2Plugin
ViroBench 85.8% vs76.0% Macro-F1 vs per-rank nucleotide FM bests (authors)
Pathology 0.930 ICC on PD-L1 whole-slide scoring vs pathologists (authors)
CLI sagemed-cli +metaharness agent loop onDeepSeek Harness

Why medical agents need a component economy #

Agent harness scaffold frame illustrating how Sage-Med-Harness assembles medical Skills and MCP tools

Hospital pilots die in integration hell: every lab ships a PubMed skill, an imaging CLI, and a custom safety filter, but nobody maintains compatibility graphs or risk cards. IBM's RAG compositionality study already showed stacking techniques underperforms predicted gains; medical agents multiply that problem across regulated data and long-horizon tasks.

Sage-Med-Harness answers with two loops:

  1. Unified Medical Component Ecosystem — catalogSkills ,MCP tools ,CLIs , andharness plugins , each withaudit metadata (runnability, safety flags, documentation completeness).
  2. Co-Evolving Harness Composer — for each task,query the graph ,assemble a candidate agent, runsandboxed trials ,revise the harness orsynthesize missing components, thenarchive verified configs back into the pool.

That is closer to an app store for agent parts than a single oracle model—complementary to ** Sage-Interaction** duplex frontends and ** Sage-A1.5** science agents.

What the authors audited #

Sage-Med-Harness medical component ecosystem relation graph for agent assembly Image: Shanghai AI Laboratory

The Hugging Face discussion from the Sage-Med team lists concrete audit outcomes:

  • 35.1% of components flagged for potential risks (14.2% "not recommended",20.9% "needs confirmation"), often aroundpoorly documented sensitive operations .
  • 23.1% ofSkills****failed to load in their pass—critical for buyers who assume "listed" equals "runnable."

The relation graph links dependencies, alternatives, and complements so the composer does not wire incompatible tools. Paper2Plugin mined 150 papers to mint 432 plugins, extending the catalog beyond hand-curated repos—useful for literature-heavy workflows, risky if licenses conflict.

Five case studies the paper highlights #

Authors applied the framework across:

  1. Cancer target prioritization (lungB7-H3 assessment)
  2. Clinical trial analysis (ulcerative colitis trial failure)
  3. Viral genomics (ViroBench taxonomy ranks)
  4. Clinical diagnosis (stageddual cardiac amyloidosis differential)
  5. Digital pathology (PD-L1 whole-slide scoring)

ViroBench viral genomics

On ViroBench, they claim assembled agents beat the per-rank best among 74 nucleotide foundation models on all five viral taxonomic ranks, reporting 85.8% versus 76.0% Macro-F1. Independent replication should use the same rank definitions and holdout policy the paper specifies—explainx.ai has not rerun the bench.

PD-L1 digital pathology

For AI-based PD-L1 whole-slide scoring, authors report 0.930 intraclass correlation against pathologist scores—a metric regulators recognize more than raw accuracy on patch classifiers. Pair with Google CellGemma if you compare open oncology tooling stacks.

GitHub workbench and sagemed-cli #

The README documents operational verbs:

Capability CLI entry Purpose
Discover search Find components via metadata + graph
Understand inspect Interfaces, config, sources, quality
Connect neighbors Dependencies, alternatives, complements
Execute metaharness agent Assemble, install, run, iterate
Create create /create --paper Mint components from requirements or PDFs
Evaluate evaluate run Six-dimension quality cards

Quick start paths include a DSH plugin bundle (sagemed-harness) and global sagemed-cli on Node.js 24.9+. The README notes sagemed-harness is not yet on npm—install from the bundled .tgz or CLI-only paths until the public package lands.

Example task flow:

npm install -g sagemed-cli
sagemed-cli metaharness agent --prompt-file task.md

For natural-language one-liners (v0.2.0+):

sagemed-cli metaharness "Organize lung-cancer papers into a sourced evidence table"

Install receipts live under DSH_HOME/dsh-med/receipts; install --list checks whether paths still exist without rerunning business validation—handy for CI drift detection.

The agent workbench builds on DeepSeek Harness—same family as ** Shanghai's duplex Sage-Interaction** delegation backends. Teams new to harness ops should read LearnHarness for pedagogy patterns and ** Microsoft FreeHand** for minimal-runtime contrasts—not because clinical stacks should drop guardrails, but because composer loops need clear separation between planning and execution.

Safety and governance questions #

Medical triage sorting funnel illustrating risk tiers for audited Sage-Med catalog components

Medical agents are not general chatbots. The audit flags imply more than a third of catalog entries need human confirmation before production adjacency. Operators should:

  1. Block "not recommended" components at install time.
  2. Log metaharness versions when a workflow changes— the README saysreasons for revisions are retained.
  3. Map PHI flows before connecting MCP servers to live EHR sandboxes.
  4. Train reviewers via/training when hospital compliance joins engineering.

For agent misuse patterns, see CISA BOD 26-04 and ** AgentDog2** long-horizon safety framing.

How this fits Shanghai AI Lab's Sage line #

Release Layer explainx.ai coverage
Sage-A1.5 Science MoE weights Subagents + verification
Sage-Med-Preview Medical VLM weights 35B-A3B benchmarks
Sage-Interaction Duplex omni frontend Delegation model
Sage-Med-Harness Medical agent parts This post
LoopTitan / Sage papers Training science MoE revisit

Builders can mix Preview weights inside Harness-composed agents once licenses allow.

Practical next steps for developers #

  1. Star and cloneuni-medical/Sage-Med-Harness (early repo—** 5 commits** at publication time).
  2. Run sagemed-cli search on your exact task wording before writing new Skills.
  3. inspect + neighbors on anything touchingexport-controlled orpatient-identifiable data.
  4. Reproduce one case study metric (ViroBench or PD-L1) on your hardware before citing wins externally.
  5. Document install receipts for internal audits—README verification stages distinguishunverified frompassed .

Example install and inspect flow

The README documents dry-run installs so operators see destination paths before anything touches a shared DSH profile:

sagemed-cli install "<entry-id>" --dry-run
sagemed-cli install "<entry-id>"
sagemed-cli install --list

When something misbehaves, install --status <installation-id> returns the receipt for that activation without re-running business checks—useful when debugging metaharness loops that add and remove components across iterations.

Contributors can extend the catalog through create --paper paper.pdf, which is how Paper2Plugin scales beyond manually curated GitHub repos. Teams sitting on internal SOP PDFs should still run evaluate before exposing those generated Skills externally; auto-generated interfaces are prone to missing contraindication warnings even when code executes.

Acknowledgements and upstream credit

The README credits DeepSeek Harness, the MCP community, and maintainers of upstream catalog entries. That lineage matters for security reviews: hospital CISOs will ask whether metaharness can invoke arbitrary MCP endpoints; the answer is yes unless you curate the catalog mirror and network egress policies together.

If you need coding-agent skills rather than clinical orchestration, browse explainx.ai's ** replica skill guide** and ** AI builder workshops**.

Publication timing note: the Hugging Face card lists Submitted by Ziyan Huang on Dec 2 with Published on Dec 1 for arXiv 2612.02356, so builders should cite arXiv version dates when filing regulatory memos, not only the social thread timestamp. Watch the repo Issues tab today for npm release announcements soon.

Six evaluation dimensions on component quality #

The README's evaluate run path scores components across risk disclosure, documentation completeness, interface consistency, maintainability, cost awareness, and medical relevance, emitting quality cards with reasons and evidence. That is the closest thing in the repo to a human-in-the-loop gate before a Skill lands in a hospital sandbox.

Operators should treat --live --fetch-sources runs as pre-flight checks, not continuous monitoring. A passing card on Monday does not stop an upstream MCP server from changing its OAuth scope on Tuesday. Pair periodic re-evaluation with UK AISI evaluation cheating lessons—models and tools game benchmarks when incentives align.

DSH plugin versus CLI-only paths #

The workbench install targets DSH 0.2.2-alpha.2 with plugin name sagemed-harness, bundling catalog + CLI so search works immediately. Until npm publication, teams install the standalone .tgz or fall back to global sagemed-cli without the web workbench UI.

Legacy installs that pointed catalogDir at an external bundle still work: the README promises automatic fallback to bundled CLI if a stale directory is detected. Migration notes matter because early adopters at InternLM events may have mixed 0.1.x and 0.2.x paths.

Ulcerative colitis trial and amyloidosis cases #

Beyond ViroBench and PD-L1, authors highlight ulcerative colitis trial failure analysis and staged differential diagnosis for dual cardiac amyloidosis as end-to-end compositions. Those tasks stress long-context evidence synthesis and multi-specialty reasoning—closer to co-clinician workflows than single-lab genomic classifiers.

Readers benchmarking Naver KMed or ** Ling-Sante** should ask whether orchestration or base model quality is the bottleneck. Sage-Med-Harness bets on orchestration.

Limitations readers should expect #

  • Early GitHub traction (handful of stars) meansAPI churn until npm release.
  • Case studies areauthor-run ;FDA-style validation isout of scope for the repo README.
  • Third-party Skills retaintheir own licenses ; CC0 on first-party code does not sanitize the catalog.
  • DeepSeek Harness dependency ties behavior to another fast-moving runtime.

Read the full arXiv PDF for method diagrams omitted from the homepage scrape.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @shanghai artificial intelligence laboratory 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/sage-med-harness-sha…] indexed:0 read:8min 2026-12-02 · —