NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MedOpenClaw and MedFlowBench: Auditing Medical Agents in Full-Study Workflows

Weixiang Shen, Chengzhi Shen, Yanzhu Hu, Che Liu, Junde Wu, Jiayuan Zhu, Xiao Han, Zongyue Li, Jingpei Wu, Min Xu, Daguang Xu, Yueming Jin, Benedikt Wiestler, Daniel Rueckert, Jiazhen PanarXiv 2026

TL;DR

MedOpenClaw and MedFlowBench shift the evaluation of medical Vision-Language Models (VLMs) from static 2D image recognition to dynamic, full-study clinical workflows. By forcing AI agents to interact directly with professional medical software like 3D Slicer and QuPath, this framework exposes a critical gap: while current models can often guess a correct diagnosis, they frequently fail to provide the auditable visual evidence required in real clinical practice.

What Problem Does This Paper Address?

Most existing medical AI benchmarks are "pre-chewed." They present a model with a single, pre-selected 2D slice or a cropped image patch and ask a localized question. While this tests basic visual recognition, it completely bypasses the actual workflow of a radiologist or pathologist.

In real clinical settings, medical imaging analysis is software-mediated. A clinician must search through massive 3D volumes or gigapixel whole-slide images, switch between modalities, adjust contrast (windowing), compare baseline and follow-up scans, and precisely document the coordinates or boundaries of a lesion. Evaluating AI purely on its final multiple-choice answer creates an overly optimistic illusion of competence, hiding whether the agent actually looked at the right anatomical region or simply made a lucky guess.

Methods

The authors introduce two core components to bridge this gap:

  1. MedOpenClaw: A controlled, auditable runtime environment that allows VLM agents to operate standard, unmodified medical imaging software (3D Slicer for radiology and QuPath for pathology) via an API interface. The action space is strictly bounded into three categories:
  2. Viewer Control: Scrolling, panning, zooming, and volume fusion.
  3. Evidence Capture: Saving coordinates, key slices, or regions of interest (ROIs).
  4. Analysis Operators: Invoking advanced tools like image registration or automated segmentation (e.g., MONAI-based VISTA3D).

Crucially, MedOpenClaw blocks arbitrary code execution (like raw Python or Groovy scripts) for safety and logs every single action, viewer state snapshot, and generated artifact to create a fully replayable execution trace.

  1. MedFlowBench: A benchmark built on top of this runtime that evaluates agents on full-study episodes. Instead of just grading the final answer (Task score), it introduces a Strict score. To get credit under the Strict metric, the agent's final answer and its submitted structured evidence (e.g., key-slice offsets, RAS coordinates) must match the withheld ground-truth masks and annotations.
Figure 1: Overview of MEDOPENCLAW and MEDFLOW-BENCH. Left: Conventional medi- cal VQA benchmarks reduce evaluation to pre-selected 2D images and black-box final answers. Right: MEDOPENCLAW enables backbone models to operate professional medical software through bounded software actions, producing visible traces, auditable evidence, and grounded answers. MEDFLOW-BENCH evaluates this full-study interaction loop across radiology and whole-slide pathol- ogy workflows, including viewer-native navigation and specialized segmentation or registration functions.

Datasets

MedFlowBench evaluates agents across five diverse task families derived from established public datasets:

  • LUMIERE: Longitudinal brain MRI studies tracking tumor evolution over time using RANO (Response Assessment in Neuro-Oncology) criteria (139 cases).
  • UCSF-PDGM: Pre-operative multi-sequence brain tumor MRIs for case-level diagnosis (495 cases).
  • NSCLC Radiogenomics: Paired lung PET/CT studies requiring five structured predictions including tumor location, staging, and histology (162 cases).
  • BRACS: Breast whole-slide tissue images for seven-class histology classification (113 cases).
  • CAMELYON17: Lymph-node whole-slide pathology images for metastasis assessment (550 cases).

Key Insights and Ideas

  • The "Answer-Only" Illusion: Evaluating models solely on their final diagnostic answer substantially overestimates their clinical readiness. When the evaluation requires correct supporting evidence (the Strict metric), performance drops precipitously on complex workflows.
  • More Tools $\neq$ Better Workflows: Counterintuitively, giving agents access to advanced image-analysis tools (like multi-step registration or interactive segmentation pipelines) does not automatically improve performance. It introduces a new failure mode: software-workflow failures. Agents frequently lose track of image space, apply transforms to the wrong layers, select poor parameters, or fail to verify the tool's output.
  • Automation Helps, Composition Hurts: Single-step, highly automated tools (like MONAI's VISTA3D foundation model) successfully improve localization because they collapse a complex procedure into one reliable call. Conversely, workflows that require the agent to compose multiple dependent software steps remain highly brittle.

Key Results

  • Brain MRI (UCSF-PDGM): This was the most favorable setting due to high tumor saliency. Frontier models like Gemini 3.1 Pro Preview achieved a strong 0.73 Task score and maintained a 0.73 Strict score, showing excellent localization capabilities.
  • Longitudinal Tracking (LUMIERE): On workflows requiring cross-timepoint comparison, the gap widened drastically. While Gemini 3.1 Pro achieved a 0.37 Task score, its Strict score plummeted to 0.08, showing how severely models struggle to maintain valid evidence across complex timelines.
  • Lung PET/CT (NSCLC): Small thoracic lesions proved highly challenging. The best Strict score across all evaluated models was a mere 0.14, with models frequently failing to provide precise coordinates inside the hidden lesion masks.
  • Pathology (BRACS/CAMELYON17): While models generated plausible slide-level diagnoses, their coordinate-grounded evidence in QuPath remained weak, confirming that navigating gigapixel spaces is still an open challenge.
Example of an agent's multi-step execution trace in MedOpenClaw for longitudinal MRI and pathology workflows.

Limitations and Future Work

The authors note several limitations in the current iteration of the benchmark:

  • Pathology Constraints: The pathology track currently focuses heavily on native viewer navigation and coordinate tracking, lacking richer, pathology-specific advanced analysis tools.
  • Proxy Ground Truths: The benchmark relies on public dataset labels and annotations as reference standards, which act as proxies rather than full, real-time clinical adjudication.
  • Future Directions: The roadmap includes expanding modality coverage, increasing cohort sizes, integrating a wider array of medical ecosystem tools (like advanced MONAI packs), and exploring multi-turn clinician-agent interaction paradigms (such as human-in-the-loop AI co-pilots).

Summary updated

BibTeX
@misc{shen2026medopenclaw,
  author = {Weixiang Shen and Chengzhi Shen and Yanzhu Hu and Che Liu and Junde Wu and Jiayuan Zhu and Xiao Han and Zongyue Li and Jingpei Wu and Min Xu and Daguang Xu and Yueming Jin and Benedikt Wiestler and Daniel Rueckert and Jiazhen Pan},
  title = {{MedOpenClaw and MedFlowBench: Auditing Medical Agents in Full-Study Workflows}},
  year = {2026},
  eprint = {2603.24649},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.24649},
}
Figure