SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.31179 · 2026

HealthAgentBench: A Unified Benchmark Suite of Realistic Agentic Healthcare Environments for Challenging Frontier AI Agents

Guanghui Qin, Sheng Zhang, Hoifung Poon, Mingyu Lu, Qin Liu, Maximilian Rokuss, Timothy Ossowski, Cliff Wong, Tristan Naumann, Wen-Wai Yim, Qianchu Liu, Naoto Usuyama, and 9 more

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 1 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2606.31179.json · badge: /api/ran/2606.31179.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
microsoft/HealthAgentBench canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
FunctionStatusWhere it lives
attach_split Ran
ran; our contract draft was wrong, not the code
microsoft/HealthAgentBench/tasks/ehr_event_modelling_new_acutemi/environment/stage_data.py
code served (permissive licence) · get_code("70276fb7f89bd75b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataFrame. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import sys
from pathlib import Path
import pandas as pd
import tempfile
import os

# Create temporary directory and files for testing
temp_dir = tempfile.mkdtemp()

# Create a splits CSV file
splits_data = {
    'omop_person_id': [1, 2, 3, 4, 5],
    'split': ['train', 'val', 'test', 'train', 'val']
}
splits_df = pd.DataFrame(splits_data)
splits_csv_path = Path(temp_dir) / 'splits.csv'
splits_df.to_csv(splits_csv_path, index=False)

# Create a labels DataFrame
labels_data = {
    'patient_id': [1, 2, 3, 4, 5, 999],  # 999 is not in splits, will be dropped
    'label': ['A', 'B', 'C', 'D', 'E', 'F']
}
labels_df = pd.DataFrame(labels_data)

ARGS = {
    'labels': labels_df,
    'splits_csv': splits_csv_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_labels Ran
ran; our contract draft was wrong, not the code
microsoft/HealthAgentBench/tasks/ehr_event_modelling_new_acutemi/environment/stage_data.py
code served (permissive licence) · get_code("a932353e852af481")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataFrame. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
from pathlib import Path
import pandas as pd
import os

# Create a temporary directory structure for assets
temp_dir = tempfile.mkdtemp()
assets_path = Path(temp_dir)

# Create benchmark directory structure
benchmark_dir = assets_path / 'benchmark'
benchmark_dir.mkdir(parents=True, exist_ok=True)

# Create test task directories
for task_id in ['chexpert', 'lab_glucose', 'mortality']:
    task_dir = benchmark_dir / task_id
    task_dir.mkdir(parents=True, exist_ok=True)
    
    if task_id == 'chexpert':
        # Create labeled_patients.csv for chexpert task
        # 'value' column contains 14-bit integers representing the labels
        df = pd.DataFrame({
            'patient_id': ['P001', 'P002'],
            'prediction_time': ['2020-01-01 10:00:00', '2020-01-02 11:00:00'],
            'value': [5461, 2730]  # Example 14-bit values
        })
    elif task_id == 'lab_glucose':
        # Create labeled_patients.csv for lab_ task
        df = pd.DataFrame({
            'patient_id': ['P003', 'P004'],
            'prediction_time': ['2020-01-03 12:00:00', '2020-01-04 13:00:00'],
            'value': [0, 5]  # >= 1 becomes 1, else 0
        })
    else:
        # Create labeled_patients.csv for binary task (mortality)
        df = pd.DataFrame({
            'patient_id': ['P005', 'P006'],
            'prediction_time': ['2020-01-05 14:00:00', '2020-01-06 15:00:00'],
            'value': ['true', 'false']
        })
    
    df.to_csv(task_dir / 'labeled_patients.csv', index=False)

ARGS = {
    'assets': assets_path,
    'task_id': 'chexpert'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_qrels_for_topic Ran
ran; our contract draft was wrong, not the code
microsoft/HealthAgentBench/tasks/clinical_trial_matching_task_19/environment/extract_task_inputs.py
code served (permissive licence) · get_code("be575d90981123c5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from pathlib import Path
import tempfile

# Create a temporary directory and qrels file for testing
temp_dir = tempfile.TemporaryDirectory()
qrels_path = Path(temp_dir.name) / "qrels.txt"

# Write sample qrels data in standard TREC format
# Format: topic_id Q0 nct_id grade
qrels_content = """1 Q0 NCT01234567 2
1 Q0 NCT01234568 1
1 Q0 NCT01234569 0
2 Q0 NCT02234567 3
2 Q0 NCT02234568 1
3 Q0 NCT03234567 2"""

qrels_path.write_text(qrels_content)

ARGS = {
    "qrels_path": qrels_path,
    "topic_id": 1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_topics Ran
ran; our contract draft was wrong, not the code
microsoft/HealthAgentBench/tasks/clinical_trial_matching_task_19/environment/extract_task_inputs.py
code served (permissive licence) · get_code("9a615e05edb358e1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import xml.etree.ElementTree as ET
from pathlib import Path
import tempfile

# Create a temporary XML file with valid topic structure
xml_content = """<?xml version="1.0" encoding="UTF-8"?>
<topics>
    <topic number="1">Sample patient note with multiple   spaces</topic>
    <topic number="2">Another   clinical   note   text</topic>
    <topic number="3">  Leading and trailing whitespace  </topic>
</topics>
"""

# Write to a temporary file
with tempfile.NamedTemporaryFile(mode='w', suffix='.xml', delete=False) as f:
    f.write(xml_content)
    temp_path = Path(f.name)

ARGS = {
    "topics_path": temp_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
slice_events_for_task Ran
ran, honoured the contract we drafted
microsoft/HealthAgentBench/tasks/ehr_event_modelling_new_acutemi/environment/stage_data.py
code served (permissive licence) · get_code("cf6055ffe2302a07")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd
from pathlib import Path
import tempfile
import os

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()
assets_path = Path(temp_dir)

# Create the data subdirectory
data_dir = assets_path / 'data'
data_dir.mkdir(parents=True, exist_ok=True)

# Create a small ehrshot.csv file with test data
ehrshot_data = {
    'patient_id': [1, 1, 2, 2, 3, 4, 5, 5, 5],
    'start': [
        '2023-01-01 10:00:00',
        '2023-01-02 14:30:00',
        '2023-01-01 08:00:00',
        '2023-01-03 12:00:00',
        '2023-01-05 09:00:00',
        '2023-01-06 11:00:00',
        '2023-01-07 13:00:00',
        '2023-01-08 15:00:00',
        '2023-01-09 16:00:00',
    ],
    'end': [
        '2023-01-01 18:00:00',
        '2023-01-02 20:00:00',
        '2023-01-01 16:00:00',
        '2023-01-04 10:00:00',
        '2023-01-05 17:00:00',
        '2023-01-06 19:00:00',
        '2023-01-07 21:00:00',
        '2023-01-09 10:00:00',
        pd.NaT,
    ]
}
ehrshot_df = pd.DataFrame(ehrshot_data)
ehrshot_csv = data_dir / 'ehrshot.csv'
ehrshot_df.to_csv(ehrshot_csv, index=False)

# Create labels DataFrame with train/val/test splits
labels_data = {
    'patient_id': [1, 2, 3, 4, 5],
    'split': ['train', 'val', 'test', 'test', 'test'],
    'prediction_time': [
        '2023-01-02 12:00:00',
        '2023-01-03 14:00:00',
        '2023-01-05 10:00:00',
        '2023-01-06 12:00:00',
        '2023-01-08 14:00:00',
    ]
}
labels = pd.DataFrame(labels_data)

# Output path for the sliced events
out_path = Path(temp_dir) / 'output' / 'events.csv'

ARGS = {
    'assets': assets_path,
    'labels': labels,
    'test_subset': 'first',
    'out_path': out_path,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
download_if_missing Not yet run
unverified (harvested, no recorded run)
microsoft/HealthAgentBench/tasks/clinical_trial_matching_task_19/environment/extract_task_inputs.py
code served (permissive licence) · get_code("fbcb3cb6589905bc")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

As AI agents become increasingly capable of complex, long-horizon reasoning, rigorous evaluation is essential for measuring progress toward real-world healthcare applications. However, existing healthcare benchmarks are often saturated, static, or narrow in clinical scope, limiting their ability to distinguish frontier systems or track progress. We introduce HealthAgentBench, a suite of 54 agentic healthcare tasks across 7 categories each with its unique environment. The benchmark suite spans diverse workflows throughout the patient journey and a broad range of modalities. Each task is designed to replicate an end-to-end clinical workflow: given minimal instructions, an agent must explore raw healthcare data, operate within a complex environment, and execute multi-step solutions that go beyond naive prompting, such as querying large clinical databases or interpreting gigapixel pathology images. All tasks are scored using binary success/failure criteria against expert-derived labels or human performance. A final task success rate is reported to provide a single, interpretable metric for HealthAgentBench overall performance for each agent. Evaluating frontier agents on HealthAgentBench, we find that overall task success rate remains low, underscoring the difficulty of the suite. The strongest and the most cost effective agent, Codex GPT-5.5, achieves only approximately 42% success rate. Beyond aggregate performance, HealthAgentBench reveals nuanced strengths and weaknesses across task categories. Frontier agents show promise in automatically developing research modeling pipelines over EHR data, but medical imaging remains especially challenging, particularly for Claude Code models, while Codex GPT-5.5 shows emerging capability. Tasks that combine large search spaces with compositional reasoning requirements remain difficult for all current agents. Together, these results suggest that HealthAgentBench provides a challenging and realistic benchmark with substantial room for future progress. We release our benchmark at https://github.com/microsoft/HealthAgentBench. * Equal contribution.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2606.31179")
get_code_for_paper("2606.31179")
have("2606.31179")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2606.31179.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2606.31179.svg)](https://syntology.ai/paper/2606.31179)

Connect an agent — have() is free.