Your agent, on guardrailed EMR context.

The Kartha Agent SDK — agents in YAML, clinical skills in Markdown, guardrails on every call. It runs in your cloud, and it shows its work.

Claude CodeAgent ConsoleYour custom agentWorkflows — batchAgent SDKguardrails · skillssessions · receiptsMCPKarthayour cloudFHIREMRFHIR R4four front doors · one guardrailed core · PHI never leaves

01What the SDK is

A TypeScript SDK for building clinical AI agents on the Kartha platform — deployed in your own cloud on AWS, GCP, or Azure. You describe an agent in a YAML file and its clinical workflow in a Markdown skill; the SDK runs the loop, and every single tool call passes through the guardrail layer before it touches the EMR. PHI never reaches Kartha or anyone else outside your inference path.

One declarative format, two runtimes: the same agent runs on Anthropic's hosted Claude Managed Agents or on Kartha's self-hosted, PHI-clean runtime. No lock-in, either direction. The packages are on npm under @kartha-health, Apache 2.0.

02The accelerators — a running start

You don't start from an empty repo. The SDK ships with ten working clinical agents and a catalog of fifty expert-reviewed skills — medication reconciliation, sepsis screening, cardiovascular risk, discharge planning, coding & CDI, prior-auth packets, and more. Customize by editing the Markdown, not the engine.

  • Interactive agentsChat with a patient's chart — the agent retrieves, the guardrails correct every call, results land as typed cards: scores, factor tables, trends, checklists.
  • Batch chart abstractionPoint a rubric at a set of notes and get back structured, quote-verified records — every extracted value traced verbatim to its source note.
  • Cohort workflowsFan any read-only skill across a whole patient panel as durable, throttled jobs in your AWS account — with an honest roll-up report at the end.
  • Try it with zero credentialsForty synthetic patients and an offline demo ship in the box. One command boots the whole stack locally — no EMR, no cloud account, no API key.

Clinical guidance is regional, so skills support guideline-set packs — the same skill can answer with USPSTF, NICE, or IAP/ICMR editions depending on the deployment.

03The skills — evidence-based, agent-agnostic

Every agent and every workflow in the SDK runs on the same clinical skill catalog: fifty expert-reviewed workflow guides, written as Markdown and grounded in the guidelines clinicians already practice by — USPSTF, ADA, ACC/AHA, CDC, KDIGO, ACOG and other society guidelines, using the named instruments a reviewer expects to see. They are agent-agnostic: the same skill drives an interactive session, a headless batch run, or a whole-cohort workflow.

Medication ManagementReconciliation, drug interactions, adherence, Beers Criteria, opioid riskCYP450 · MPR/PDC · MME
Lab & DiagnosticsInterpretation, critical values, pre-op labs, diabetes panels, renal functionADA · KDIGO · CAP/CLIA
Clinical Decision SupportSepsis scoring, cardiovascular risk, VTE, fall risk, pneumonia severityqSOFA · ASCVD · Wells · CURB-65
DocumentationSOAP notes, H&P, progress notes, discharge summaries, procedure notesICD-10 · CPT · CMS/TJC
Population HealthPanel management, quality measures, registries, preventive careHEDIS · USPSTF · CDC
Care CoordinationDischarge planning, referrals, care gaps, transitions of careLACE · I-PASS
Patient Data & SummaryDemographics, clinical summaries, problem-list audits, allergies, coverageCCD · C-CDA
SpecialtyPrenatal care, pediatric growth, mental health screening, oncology, chronic painACOG · PHQ-9 · TNM

A skill is a document, not a program — injected as context, never executed as code — so clinical review of the file is the whole review, and authoring a new one takes an afternoon, not a sprint. Guideline-set region packs swap editions per deployment (USPSTF ↔ NICE ↔ IAP/ICMR) without touching the skill. The core catalog is open source in LangCare on GitHub.

04Workflows — clinical AI across a whole cohort

Interactive agents work one patient at a time. Kartha Clinical AI Workflows take the same skills across an entire panel — headless, in batch, in your AWS account. Pick a skill, declare the cohort, submit: the platform fans it out as durable, throttled jobs and rolls the results into a report you can stand behind.

Workflow YAMLcohort · skill · prompt · limitsreviewed · deterministicworkflow submitvalidates loud — nothing partialcohort is code, never a modelSQS job queueone message perpatient × skillDLQ · max 3 triesthrottledWorker Lambdaruns the Kartha Agent SDKsame guardrailed runtime, headlessinference via your Bedrockclaim · idempotent · read-onlyMCPKartha → EMRFHIR R4 · your cloud · your keysResults → S3write-once per runRun status → DynamoDBids only — no PHI in the pipeworkflow report — honest roll-upevery run terminal by report time · counts sum to the total · no silent caps

How a workflow runs: the worker is the same guardrailed SDK loop — no new engine, just fan-out. Five AWS resources, one CDK deploy, a kill switch, and a queue-less local runner.

Prototype the whole thing offline — workflow run --local validates the definition and runs it against forty synthetic patients with zero AWS and zero credentials. The same YAML then submits to your deployed stack.

05See it work

Three real sessions, end to end. All data shown is synthetic — fixture patients from the SDK's offline demo. No PHI.

The Clinical Agent Console — the SDK's reference app

The Clinical Agent Console — the SDK's reference app. A decision-support agent runs the cardiovascular-risk skill; the answer streams with the tool trace, guardrail badges, token meter, and typed result cards.

Physicians are the new clinical-AI developers. This one used Claude Code to run a full, source-cited cardiovascular workup straight from the EMR. The Kartha Clinical Context Platform made it possible — we build the harness, you build the medicine.

Claude Code as the front end: one prompt, sixteen guardrailed Kartha calls into the EMR, and a cited ASCVD assessment where every input traces to its FHIR source

Claude Code as the front end: one prompt, sixteen guardrailed Kartha calls into the EMR, and a cited ASCVD assessment where every input traces to its FHIR source.

And payers can run prior auth — both sides of it — in one Claude Code session. The chart comes straight from your EMR, or any FHIR server, through Kartha over MCP. We asked Claude Code to prepare a prior-auth packet for a planned knee replacement, then run the payer-side review on its own output:

Two skills, built independently by two different teams, converged on the same conclusion. That's what grounded, source-cited agents look like.

The provider side: the prior-auth-packet skill assembles the evidence packet from the chart — administrative checklist, indication, and the step-therapy story, each line cited back to a FHIR resource or note

The provider side: the prior-auth-packet skill assembles the evidence packet from the chart — administrative checklist, indication, and the step-therapy story, each line cited back to a FHIR resource or note.

The same packet, deeper — objective evidence, the pain trajectory over the full conservative course, and a prioritized list of gaps to resolve before submission

The same packet, deeper — objective evidence, the pain trajectory over the full conservative course, and a prioritized list of gaps to resolve before submission.

The payer side: the AI-assisted review runs against the packet — provider and code validation through registry connectors, five of five medical-necessity criteria met, and exactly what's needed to clear the pend

The payer side: the AI-assisted review runs against the packet — provider and code validation through registry connectors, five of five medical-necessity criteria met, and exactly what's needed to clear the pend.

06Build on it

The fastest way in is the design-partner program: we stand the platform up in your cloud, and your first agent runs on the accelerators within days. If you'd rather kick the tires first, the offline demo needs nothing but Node. Email me or book 30 minutes →

Kartha logoKARTHA*HEALTH

The clinical context platform between the EMR and your AI agent — the harness every clinical-AI team ends up building themselves, and shouldn't have to.

© 2026 Kartha AIEnterprise platform · flat per-EMR tenant licensing · BYOC — PHI stays withinOpen-source core: langcare.ai (MIT)