Code Like Humans: A Multi-Agent Solution for Medical Coding

Andreas Motzfeldt, Joakim Edin, Casper L. Christensen, Christian Hardmeier, Lars Maaløe +1 more
9/4/2025
cs.AIcs.MA

No official code found. Best implementation: wshobson/agents (39,629 stars, MIT, last commit 2026-05-02).

Abstract

In medical coding, experts map unstructured clinical notes to alphanumeric codes for diagnoses and procedures. We introduce Code Like Humans: a new agentic framework for medical coding with large language models. It implements official coding guidelines for human experts, and it is the first solution that can support the full ICD-10 coding system (+70K labels). It achieves the best performance to date on rare diagnosis codes (fine-tuned discriminative classifiers retain an advantage for high-frequency codes, to which they are limited). Towards future work, we also contribute an analysis of system performance and identify its `blind spots' (codes that are systematically undercoded).

View on arXivView PDF

Code Implementations(1)

wshobson/agentsCommunity72%
MIT

Intelligent automation and multi-agent orchestration for Claude Code

39,6294,221C#, ShellJul 24, 20255 months agoMIT
agentsanthropicanthropic-claudeautomationclaude+15 more

Similar Papers

Cite this paper

@article{motzfeldt2025code,
  title  = {Code Like Humans: A Multi-Agent Solution for Medical Coding},
  author = {Andreas Motzfeldt and Joakim Edin and Casper L. Christensen and Christian Hardmeier and Lars Maaløe and Anna Rogers},
  year   = {2025},
  eprint = {2509.05378},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.05378v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.05378.svg)](https://codeofpaper.com/paper/2509.05378)

Discussion