Blog · Clinical AI

How an AI Medical Harness Works, Part by Part

The model does the reasoning. The harness decides what the model reasons about and what it is allowed to do with the result.

On this page

An AI medical harness is the software between a clinician and a language model. It reads the patient’s files, keeps the memory, runs the tools, enforces who can see which patient, and shows where every answer came from. The model does the reasoning. The harness decides what the model reasons about and what it is allowed to do with the result.

Every clinical AI product you can buy today rents its model from the same three or four companies. The model behind one vendor’s chat is often the same model behind its competitor’s. The harness is where the products differ.

Our team builds the harness behind ClinicFrame. Below is how ours works, part by part, with the mechanism under each one for readers who want it.

Why Can’t I Just Upload the Record to a Chat?

Take a new patient who arrives with a 300-page record, with scanned intake forms, faxed lab results, and a few years of notes from a previous provider. You upload it to a general AI chat and ask what medications the patient has tried.

You get a confident, well-written answer. You have no way to know whether it came from page 4 or page 240, or whether the chat read page 240 at all.

The Parts of a Harness

Clinician
Agent loopModel
Reader and patient knowledge baseFiles, sessions, and notes
Patient memoryWritten by the agent, edited by you
Private computerRuns code and produces files
ConnectorsGmail, Drive, Dropbox, and Calendar
Access control, encryption, and an audit log around every call
Evals and tracing on every release

The running example is a therapist preparing for a session with the patient from the 300-page record.

It Reads the Record You Actually Have

Clinical records are messy. They come as scans, faxes, phone photos of paper, Word documents, and spreadsheets. Before the model can answer anything, the harness has to turn those pages into something structured.

For our therapist, this means the PHQ-9 and GAD-7 scores scattered across two years of scanned forms come back as one trend, in order, before the session starts. That is the same work behind a medical records summary in ClinicFrame.

It Shows You Where Every Answer Came From

Every claim in a ClinicFrame answer carries a citation with the document or session it came from and the page. Click the citation and the source opens at that page, so you can read the original line yourself. If the answer says the patient tried two SSRIs before the current one, you are one click away from the note where the previous provider wrote that down.

I care about this part more than any other. In medicine an answer you cannot trace is a rumor. The assistant should be telling you, on every answer, “I am saying this because of this passage, here.” Most of the time you will read the answer, see that it comes from last month’s psychiatry note, and move on. For the decisions that carry weight, a medication change or a risk assessment, the original is one click away. You get to rely on the answer because you can see what it stands on.

The same rule applies to what it has not read. If the agent has gone through 12 of 40 pages when you ask, it answers with those 12, says so, and writes back on its own when it finishes the rest. A clinician can work with an assistant that says “I haven’t read the rest yet.” An assistant that hides the gap is one you have to double-check every time, and at that point it has saved you nothing.

It Remembers the Patient

Each patient has a workspace with their chats, their files, and a memory. Next month you don’t have to explain again that this patient stopped sertraline because of side effects.

When two sources disagree, for example an allergy listed in an old intake form and missing from a newer one, or two different doses of the same drug, the agent flags the conflict and leaves the decision to you.

It Calculates

Language models are unreliable at arithmetic. If you ask one for the average of forty blood pressure readings, it may produce a number that looks right and is wrong.

So the harness gives the agent its own private, HIPAA compliant computer, which engineers call a sandbox. It works there the way an analyst would. It opens your spreadsheet, writes a short program, and runs it. When you ask for a trend, the figures in the chart are the output of that program. The same computer produces files, such as a cleaned-up Excel sheet or a referral letter as a Word file you can edit. That is how healthcare data analysis works in ClinicFrame.

If It Can’t Reach Your Other Tools, It’s a Toy

A clinic’s information lives in many places. Protocols and policy documents sit in Google Drive, forms and templates in Dropbox, the schedule in a calendar, and half of everything else in email. An assistant that only knows what you paste into it adds one more window to your day and one more place to copy things into.

ClinicFrame connects to Gmail, Google Drive, Dropbox, and Google Calendar today. The agent searches them when a question needs it, reads the file or the email at that moment, and cites it like any other source.

Email is the one that surprised me most. A lot of a clinic’s working memory is in the inbox, from the referral a colleague sent three weeks ago to the lab that emailed results as an attachment and the thread with the insurer about a prior authorization. Agents are very good at this kind of search. Ask “what did the cardiologist say about this patient?” and it finds the thread, opens the attachment, and puts the answer next to what is already in the record. Ask it to pull together everything about one patient across your inbox, your Drive, and your sessions, and you get it in one place, in order, with a link back to each source.

The list is growing. We are adding more connectors and EHR integrations right now, because the EHR is where most of a patient’s history lives and an assistant that cannot read it is working with half the chart. If a tool you depend on is missing, you can request a connector from Settings.

This is where I think most clinical AI will be judged over the next couple of years. The model can be excellent and the assistant still useless if the answer to your question is in a system it cannot open.

It Shows Its Work

While the agent works, you see its plan and each step, including what it looked for, which documents it used, and what it found. When it finishes, the timeline stays there. If an answer looks off, you can see where it went wrong, which is much faster than guessing.

Privacy Is Part of the Harness

Much of what makes an AI safe for patient data happens around the model, in the same software.

Transcripts, notes, and patient memory are encrypted field by field, each with its own key. Every time someone opens a patient or exports a record, the system logs it and keeps that log for six years. Audio and transcripts are deleted from the transcription vendor once they are saved. A clinic can give its IT person a role that manages members and billing and has no access to patient information. A BAA is included on every plan. The full picture is on our security page.

How Do You Know It Works?

The harness is software, so we test it like software. We keep a set of realistic clinical questions with known correct answers, and we run the agent against them before every release.

Questions to Ask Any Vendor

If you are evaluating AI for your practice, these questions tell you more than the name of the model.

  • When I upload a long record, does it tell me which pages it read?
  • Does every answer point to a source, and can I open that source at the exact page with one click?
  • What does it remember about a patient between sessions, and can I see and edit that?
  • Are the numbers computed or generated?
  • Which of my tools can it connect to, and who decides what it sees there?
  • Is patient access enforced in code or by an instruction to the model?
  • How do you test it before a release?

You can try all of this on the Free plan, with a signed BAA and no credit card.

Try it on your own files.

ClinicFrame answers over your patient files with the source page, drafts the letters and appeals that follow, and writes the visit note. One login, one signed BAA.

  • Answers name the file and page
  • Appeals and letters drafted from your documents
  • Signed BAA on every plan, Free included
Try it for free

Free plan. No credit card required.

Not ready to try it yet? Talk to us first.

Tell us what you’re trying to solve. Someone from the team writes back.

FAQs

Frequently Asked Questions

Straight answers about how ClinicFrame works, day to day.

Is an AI medical harness the same as a model?

No. The model is the part that generates text. The harness is everything that feeds it and acts on its output, from file reading and search to memory, tools, permissions, and tests. Two products on the same model can behave very differently.

Is a harness the same as RAG?

Retrieval, which means searching documents and passing the relevant passages to the model, is one part of a harness. A harness also covers how files are read in the first place, memory across conversations, code execution, connectors, access control, and evaluation.

Does a bigger context window make the harness unnecessary?

A bigger window helps and does not remove the problem. Records keep growing, cost grows with every token on every turn, and models get less accurate when the window is full. You still need something that decides what goes in and that can tell you what was left out.

Is it HIPAA compliant?

ClinicFrame includes a BAA on every plan, encrypts patient data field by field, logs access for six years, and enforces patient scope in code.

Extra hours aren’t supposed to follow you home.
ClinicFrame keeps them at the clinic.

Try it for free