mlsanityData to 14 Oct 2026

CodeClinic: Evaluating Automation of Coding Skills for Clinical Reasoning Agents

arXiv 2605.09675 ↗First posted 10 May 2026cs.AI cs.MAcited by 2

On the map: LLM reasoning → Clinical and biomedical applications

also in 1 more
Abstract (arXiv)

Clinical reasoning agents based on large language models (LLMs) aim to automate tasks such as intensive care unit (ICU) monitoring and patient state tracking from electronic health records (EHRs). Existing systems typically rely on manually curated clinical tools or skills for concepts such as sepsis detection and organ failure assessment. However, maintaining these tool libraries requires substantial expert effort, while zero-shot querying or code generation often produces inefficient and unreliable reasoning chains, especially under institution-specific clinical policies. We introduce CodeClinic, a benchmark built on MIMIC-IV for evaluating whether LLM agents can synthesize and compose reusable clinical skills instead of relying on fixed toolboxes. The benchmark contains two complementary tasks: longitudinal ICU surveillance and compositional information seeking. The longitudinal setting simulates monitoring patient trajectories with structured decisions every four hours across 25 findings and eight clinical families, while the compositional setting spans 63k instances across 259 tasks in nine domains and is stratified by compositional dependency depth to evaluate increasingly complex multi-step reasoning. We further propose an offline autoformalization pipeline that converts natural-language clinical guidelines into reusable and verified Python skill libraries through iterative LLM refinement. Compared with zero-shot code generation, the resulting libraries improve consistency while reducing per-query token usage by up to 40%.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Clinical and biomedical applications, one of 17 directions in LLM reasoning. Builds on 20 of its 29 references that are in the map. First posted on arXiv 10 May 2026.

Builds on

20 of 29 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025Capabilities of GPT-5 on Multimodal Medical Reasoning11 Aug
  2. 2023MedAgents: Large Language Models as Collaborators for Zero-shot Medical Reasoning16 Nov

Other references · 18

  1. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  2. 2025Qwen3 Technical Reportcited by 8,820
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  5. 2022Large Language Models Encode Clinical Knowledgecited by 1,830
  6. 2022PAL: Program-aided Language Modelscited by 652
  7. 2022Autoformalization with Large Language Modelscited by 263
  8. 2024AgentClinic: a multimodal agent benchmark to evaluate AI in simulated clinical environmentscited by 231
  9. 2023EHRSHOT: An EHR Benchmark for Few-Shot Evaluation of Foundation Modelscited by 105
  10. 2019Text-to-SQL Generation for Question Answering on Electronic Medical Recordscited by 77
  11. 2025MedAgentBench: A Realistic Virtual EHR Environment to Benchmark Medical LLM Agentscited by 62
  12. 2023EHRXQA: A Multi-Modal Question Answering Dataset for Electronic Health Records with Chest X-ray Imagescited by 53
6 more
  1. 2023EHRSQL: A Practical Text-to-SQL Benchmark for Electronic Health Recordscited by 45
  2. 2024Towards Evaluating and Building Versatile Large Language Models for Medicinecited by 40
  3. 2022DrugEHRQA: A Question Answering Dataset on Structured and Unstructured Electronic Health Records For Medicine Related Queriescited by 17
  4. 2025Language Agents for Hypothesis-driven Clinical Decision Making with Reinforcement Learningcited by 15
  5. 2025EHRStruct: A Comprehensive Benchmark Framework for Evaluating Large Language Models on Structured Electronic Health Record Taskscited by 6
  6. 2026AgentEHR: Advancing Autonomous Clinical Decision-Making via Retrospective Summarizationcited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Aligning Clinical Needs and AI Capabilities: A Survey on LLMs for Medical Reasoning
  2. 2026RealICU: Do LLM Agents Understand Long-Context ICU Data? A Benchmark Beyond Behavior Imitation
  3. 2026Teaching LLMs How ICU Physicians Approach Clinical Reasoning Through OMOP-Aligned Retrieval Improves Reasoning Across Clinical Domains
  4. 2025Enhancing LLMs' Clinical Reasoning with Real-World Data from a Nationwide Sepsis Registry
  5. 2025CP-Env: Evaluating Large Language Models on Clinical Pathways in a Controllable Hospital Environment
  6. 2026Vital Trace: Protocol-Constrained Patient-State Reasoning for Longitudinal Clinical Trajectories
  7. 2026When OpenClaw Meets Hospital: Toward an Agentic Operating System for Dynamic Clinical Workflows
  8. 2024ReflecTool: Towards Reflection-Aware Tool-Augmented Clinical Agents