A medical harness for CLI coding agents.

Medical Protocol helps builders create accurate medical apps. It gives your agent enhanced medical context, copies verified medical components straight into your project, and lets you audit the result — so you ship clinical features without medical hallucinations.

94% explore AI, 71% don't trust it1,444 testsFHIR R4Open source
TRACEABLE LOGICEvery formula references a published standard.
Winter's FormulaBerlin DefinitionSepsis-3Henderson-HasselbalchCKD-EPI 2021KDIGO 2024ADAACC/AHA
CKD Evaluator
62y F · DM · CVD
G3b-A2eGFR 38.8 · ACR 120 mg/g · 3×/yr
KFRE
2-yr: 1.1%5-yr: 4.3%Refer to nephrology
Suggested Treatment
ACEi/ARB: Yes (1B)SGLT2i: Yes (2B)Finerenone: Yes (1A)
Progression
Slope: -25 mL/min/yrRapid decline
History (4)
DateCrACReGFRGFRAlb
2026-03-181.512038.8G3bA2
2025-12-101.48542.2G3bA2
2025-09-201.26250.9G3aA2
2025-06-151.14556.8G3aA2
1,444
assertions across 41 suites
DATA
STAYS
LOCAL
Privacy enforced by the harness, not just promised.
Privacy hooks activeZero cloud storageInspectable scripts
1,444 validated clinical tests14 plugin skillsmedprotocol CLI verificationFHIR R4 compliant

One command. Your agent thinks like a clinician.

Run one command in any new or existing project, then restart your Claude Code session. The CLI installs three things: enhanced medical context, a component delivery tool, and a medical audit tool. Today we support Claude Code only.

1Open your terminal in any project directory
2Run the install command below
3Restart Claude Code and describe what you want to build
npx medical-protocol install

Three steps. Accurate medical apps.

Install the harness. Describe what you want to build. Ask for a medical audit when you're done.

>npx medical-protocol install
✓ 14 skills installed
✓ 4 privacy hooks registered
✓ medprotocol CLI ready
✓ 1,444 tests passing
From install to audited code

Step 1 : Install the harness

Run npx medical-protocol install in any project, then restart Claude Code. The CLI sets up enhanced medical context, the component delivery tool, and the medical audit tool.

Step 2 : Describe what you want

Tell the agent what to build. Instead of risking hallucination, the component delivery tool copies validated medical components directly into your project, and the enhanced context helps the agent connect everything together.

Step 3 : Ask for a medical audit

When you're done, ask the agent to run a medical audit. It uses agent-browser and an eval CLI to confirm the UI logic is clinically correct — so you don't have to read every formula yourself.

Ready in
< 5 minutes
Clinical tests
1,444 validated

Ready in minutes, not months.

You'll need Node.js 18+ and a Claude Code subscription. The full medical harness activates in about 3 minutes.

Before you start

The medical harness adds verification layers to your AI coding agent. Claude Code is the fully supported provider; Codex CLI and Gemini CLI are also supported (experimental, skills only — no hooks or permission gates). The harness itself — all components, clinical logic, and verification tools — is free and open source. Claude Code

Supported AI agents

Pick the agent you already use. Each install command activates the same clinical harness in a layout that agent understands.

C
Claude Code
install dir: .claude/
Recommended

Full support: 14 skills, privacy hooks, permission settings, and the medprotocol verifier. Reads protocols and installs components automatically.

Skillssupported
Privacy hookssupported
Permission gatessupported
.claude/ \u2014 Claude Code
$npx medical-protocol install
✓ 14 skills → .claude/skills/
✓ 4 privacy hooks registered
✓ permission settings applied
✓ medprotocol CLI ready
1
Open the terminal
Press Cmd + Space to open Spotlight, type Terminal, and press Enter. A window with a text cursor will appear. This is where you'll type commands.
2
Create a project folder
Type this and press Enter. It creates a folder called "medical-app" on your Desktop and moves into it.
mkdir ~/Desktop/medical-app && cd ~/Desktop/medical-app
3
Activate the medical harness
Type this and press Enter. The CLI activates the full harness: 14 skills, 4 privacy hooks, and the medprotocol CLI verifier in your project.
npx medical-protocol install
4
Start Claude Code
Type this and press Enter. Claude Code detects the harness automatically. Describe what you need — the agent routes through harness workflows from the first prompt.
claude
1
Open the terminal
Press the Windows key, type PowerShell, and click "Windows PowerShell". A dark window with a text cursor will appear.
2
Create a project folder
Type this and press Enter. It creates a folder called "medical-app" on your Desktop and moves into it.
mkdir ~\Desktop\medical-app; cd ~\Desktop\medical-app
3
Activate the medical harness
Type this and press Enter. The CLI activates the full harness: 14 skills, 4 privacy hooks, and the medprotocol CLI verifier in your project.
npx medical-protocol install
4
Start Claude Code
Type this and press Enter. Claude Code detects the harness automatically. Describe what you need — the agent routes through harness workflows from the first prompt.
claude
1
Open the terminal
Press Ctrl + Alt + T on most distributions, or find "Terminal" in your applications menu. A window with a text cursor will appear.
2
Create a project folder
Type this and press Enter. It creates a folder called "medical-app" on your Desktop and moves into it.
mkdir ~/Desktop/medical-app && cd ~/Desktop/medical-app
3
Activate the medical harness
Type this and press Enter. The CLI activates the full harness: 14 skills, 4 privacy hooks, and the medprotocol CLI verifier in your project.
npx medical-protocol install
4
Start Claude Code
Type this and press Enter. Claude Code detects the harness automatically. Describe what you need — the agent routes through harness workflows from the first prompt.
claude

Run this command in your project directory

npx medical-protocol install

What happens after the harness activates

1

Harness installs

The CLI copies 14 skills, 4 privacy hooks, 9 context files, and the medprotocol CLI verifier into your project. The harness registers with Claude Code automatically (takes ~10 seconds).

2

Describe your application

Describe what you need in technical or clinical terms. The harness routes the agent to the relevant workflow, selects components, adapts them to your stack, and generates code referencing validated standards.

3

Harness verifies the output

Verification gates run: tsc --noEmit, the medprotocol CLI (9 commands) with known inputs, cross-verification against generated code. Discrepancies are flagged before you review.

4

Dev server starts

Your app opens at localhost:3000 with hot reload. All components are in your project directory: cross-verified clinical logic, ready to customize and review.

Enhanced medical context, a component delivery tool, and a medical audit tool.

Medical audit1,444 tests + CLI

How we keep components accurate.

The calculation engine lives in medprotocol-core/lib/ with zero framework dependencies. Winter's formula, anion gap, SOFA scoring, DKA resolution, ASCVD risk, CHA₂DS₂-VASc, CKD-EPI eGFR, KDIGO staging, KFRE, ADA diabetes criteria, T1D staging, FIB-4. 1,444 unit tests across 41 suites back the calculation engine. When you ask for a medical audit, the harness runs agent-browser and the eval CLI to confirm the UI logic matches the standard.

medprotocol CLI

The verifier behind the medical audit. 9 commands cover ABG, DKA, vitals, BMI, PaFi, water balance, cardiology, sepsis, and CKD. Ask for an audit and the harness cross-checks every calculation against the CLI before you sign off.

Validated knowledge — pure TypeScript, zero framework deps

ABG Analysis

Primary disorder classification, compensation status, anion gap, delta ratio. Winter's formula, Henderson-Hasselbalch, and 5 respiratory compensation formulas.

Cardiology

ASCVD risk, HEART score, CHA₂DS₂-VASc scoring. Evidence-based thresholds, typed outputs.

Sepsis

Sepsis-3 SOFA scoring, 6-organ dysfunction, qSOFA screening, lactate clearance, hour-1 bundle compliance.

DKA

Hourly DKA parameter tracking with resolution criteria detection and configurable alert thresholds.

Nephrology / CKD

CKD-EPI 2021 eGFR, KDIGO staging, Tangri 4-variable KFRE, treatment eligibility (RASi, SGLT2i, finerenone), eGFR slope tracking. 563 test cases.

Diabetes

A1C, fasting plasma glucose, 2h-PG, random PG with ADA diagnostic criteria and confirmation logic.

Endocrine

T1D autoantibody staging, T1 vs T2 differentiation, T2D screening, gestational diabetes screening (one-step and two-step).

Hepatology / MASLD

FIB-4 with age-adjusted thresholds, MASLD risk stratification with LSM/ELF, tiered treatment recommendations.

PaO2/FiO2 Ratio

PaO2/FiO2 ratio with Berlin Definition ARDS classification (mild, moderate, severe).

BMI

WHO classification with 4 clinical categories. Imperial and metric with automatic conversion.

Water Balance

Intake/output tracking with insensible loss formula (weight × 12 mL), endogenous water generation, and net balance computation.

Verification gates — medprotocol-core/packages/

medprotocol CLI

The harness's verification gate. Run medprotocol abg, medprotocol sepsis, etc. from any terminal. The agent cross-verifies calculations against the CLI — mismatches are flagged before reaching your codebase.

Harness Installer (npx)

packages/medical-protocol/ — run npx medical-protocol install to activate the full medical harness in any project. One command, all constraints active.

Built for how clinicians actually work.

Different specialties, different workflows. Describe yours. The agent adapts validated clinical components and your engineers focus on product logic, not medical math.

Trauma & Emergency

Vitals + fluid balance in one view. ABG interpretation during resuscitation with Winter's formula. PaFi ratio for instant Berlin Definition ARDS staging. One screen for the trauma bay: integrated, not isolated.

Surgery

Pre-op assessment with vitals, BMI for anesthesia risk, and key labs on a single screen. Post-op monitoring across the first 72 hours with color-coded alerts for the window when most complications present.

Internal Medicine

18 patients, one dashboard, zero paper lists. ABG interpretation that teaches, DKA and sepsis monitoring with resolution tracking, SOFA/qSOFA scoring with hour-1 bundle compliance, diabetes diagnosis with ADA criteria, and CKD progression monitoring.

General Practice

Clean vitals, BMI with WHO classification, and ASCVD risk assessment. A modern clinic interface on a laptop in minutes; no IT department required.

OB-GYN & Reproductive

Vital signs with maternal ranges, BMI for obstetric risk, fluid balance for high-risk deliveries, and cardiology risk for pre-eclampsia screening. From prenatal assessment to fertility clinic.

Privacy enforced by the harness, not just promised.

Doctors aren't afraid of AI replacing them; they're afraid of AI being wrong. Privacy hooks block outbound data commands at the agent level. Patient data stays on your machine — enforced by code, not policy.

Harness blocks outbound data commands

PreToolUse hooks block git push, curl POST, scp, npm publish, and docker push. Enforced before any command runs at the agent level.

Code generation is separate from patient data

The agent generates code before any patient is involved. Patient data exists only when your app runs. Clinical data never touches the AI.

Inspectable shell scripts

Every harness hook is a readable shell script, not black-box middleware. Audit them, extend them, add your own compliance rules.

  • Harness hooks block all outbound data commands
  • medprotocol CLI verification gate cross-checks calculations
  • FHIR R4 output with LOINC codes
  • Automated QA pipeline after every generation
  • 1,444 unit tests across 41 suites covering clinical logic
  • TypeScript strict mode throughout

Clinical advisors. Real-world expertise.

Building clinical software requires more than good code. It requires people who understand how decisions are actually made at the bedside.

Dr. Enrique Darderes

Dr. Enrique Darderes

Creator & Lead Engineer

AI-fluent full-stack engineer with over 5 years of experience in software engineering and 9 years as an internal medicine doctor. Background in clinical interface development for healthcare professionals, SaaS product engineering, frontend architecture, and AI tooling.

Internal Medicine (MD)Full-stack engineeringAI tooling & prompt engineeringClinical interface development
Dr. Carlos Callegari

Dr. Carlos Callegari

Nephrology Advisor

Nephrologist and Therapeutic Medical Advisor Associate Director with global experience in phase II–III clinical trials, including nephrology, immunology, and critical care.

Transplant & kidney disease managementICU and critical careMedical data review & clinical decision-makingAI-powered tools for clinical use

Straight answers, no hand-waving.

"What is Medical Protocol?"

A medical harness for CLI coding agents. It helps builders create accurate medical apps by giving your agent enhanced medical context, shipping verified medical components directly into your project, and letting you audit the result.

"How do I use it?"

Run the install command in any new or existing project, then restart your Claude Code session. The harness activates automatically. For now we only support Claude Code.

"How does it work?"

Three pieces: enhanced medical context loaded into your agent, a component delivery tool that copies verified medical components into your project, and a medical audit tool that checks the result.

"What is the component delivery tool for?"

Instead of risking hallucination when the agent tries to write a medical component from scratch, the harness copies pre-built, verified components directly into your project. The enhanced context then helps the agent wire everything together and adapt the components to whatever modifications you need.

"How can I check that the generated components are correct?"

Just ask for a medical audit. The harness runs agent-browser and an eval CLI tool to confirm the UI logic is clinically correct — so you don't have to read every formula yourself.

"What can I build?"

Current modules cover vital signs, ABG / blood gas analysis, sepsis, DKA, CKD and nephrology, cardiology, diabetes, endocrine, hepatology, BMI, water balance, and more. Build trauma dashboards, ward monitors, EHR screens, telemonitoring views — anything that needs trustworthy clinical math.

"We're using Vue / Angular / Svelte, not React."

The clinical logic (formulas, validations, classifications) lives in pure TypeScript with zero framework dependencies. The medprotocol CLI works regardless of framework. Reference components are React-based, but the agent can extract and adapt the calculation logic for any frontend. The harness verifies correctness at the math layer, not the rendering layer.

This tool is designed to assist healthcare professionals and has not been certified or cleared as a medical device by the FDA, EMA, or any regulatory body. It is not intended for clinical diagnosis or as a substitute for professional medical judgment.

  • AI-assisted: Interface components and analysis features may be generated or powered by artificial intelligence. Always verify AI outputs independently.
  • Data privacy: All patient data is processed and stored locally on your device. No clinical data is transmitted to external servers.
  • Clinical responsibility: Verify all values, calculations, and recommendations before making treatment decisions.