An AI Reads My Clinic Emails. The Hard Part Is What It Does When It Isn't Sure
Our family app turns clinic emails into appointments and tasks, keeps test results readable and has a health chat that is told it is not a doctor. The interesting part is uncertainty: an appointment with no doctor named, a letter that may or may not belong to a case, a message saying "the doctor replied" with nothing in it. The rules my agents follow, and the ones you can reuse.

An email from the clinic portal: an appointment is confirmed. I don’t open it. A few hours later it’s in my calendar, with a line in the right case and a note in my journal. If the email only says “the doctor replied, log in to read it”, I get a task for today: read the reply.
Health
2 matters · 6 notes · 9 documents
Now
Blood test done, results discussed on Thursday
Clinic will send a date by letter
Upcoming for health
Notes
1 indicator out of range
Cholesterol5.9norm < 5.0
Glucose5.4norm 3.9–5.5
Haemoglobin9.1norm 8.5–11.0
Health is the part of Home I trust the least to memory, and the part I was most careful with. Home is the private app my partner and I run on our own server (the series map is here).
The page
Health got its page on 25 October. It answers three questions in order.
What’s going on now. A card for each open matter, with a pill: in progress, waiting, or watching. “Waiting” means the next move is someone else’s, a clinic sending a date or a lab sending results.
What’s coming. Appointments and health tasks from my calendar, with the overdue ones in red.
What I know. One card per note: visits, letters, test results. Results are tables, and anything out of range is red, anything near the edge amber, with a count on the collapsed card. Under the notes there’s a grid of the original scans and PDFs.
The health papers had been in Home’s data folder since August. The page just made them readable in one place.
Where the entries come from
Mail, mostly. A mail agent runs every three hours and reads new email. A confirmed date and time becomes a calendar event, and medical ones stay in my personal calendar, not the family one. A “do it by” becomes a dated task. “The pharmacy says it’s ready” becomes a task to pick it up tomorrow. When a later email shows a task is done, the agent closes it.
The Share button. A letter from a clinic shared to Home goes to the Archivist: a card in the archive, the facts in short in the health notes, a link from the right case, and a task for the next step.
The chat. “I booked a doctor for Thursday” becomes an event, a journal line and, if needed, a new case. “I need to do X” becomes a dated task. A course of something becomes a reminder for each day of it.
A chat that knows it’s not a doctor
The health chat’s instructions start with: you are not a doctor. You explain, remind and keep track; diagnoses and prescriptions come only from a doctor. Answers are short, with dates and a link to the document.
The question I ask it most is the one before a visit or at the pharmacy: “what’s the status, briefly?” It reads the case, the notes and today’s journal, and answers in three parts: what’s prescribed, what’s pending, what’s not done yet. With dates.
Instructions are a request, not a guarantee. A model can misread a letter on any day, so the part I rely on is what the chat physically can’t do, whatever it decides:
- It can’t write outside three folders. It’s started with an explicit list of allowed tools: edit the health notes, the cases and the journal, nothing else. Anything not on the list is refused, not asked about, and my own interactive settings don’t carry over.
- It can’t act in the world. No mail, no messages, no browser. Its only command is the calendar and task tool, one call at a time, with command chaining refused.
- It can’t read the secrets file. That’s denied for every chat in Home.
- Everything it changes is a commit. The data folder is a git repository, so a wrong edit is one look at the history away from being undone.
So the worst a confused health chat can do is a wrong line in a note or a wrong task. Both show up where I look every day, and neither leaves the house.
When it isn’t sure
Most health email is incomplete. Portals send notifications, not content. Confirmations leave out who you’ll see. Letters refer to “your recent visit” without saying which. An agent that fills those gaps with plausible guesses is worse than no agent, because the guess lands in my calendar looking exactly like a fact.
So the interesting part of this system isn’t reading. It’s what happens at the gaps. These are real cases from the mail agent’s run notes, described without the medical details:
- An appointment confirmation with no doctor named. It went into my personal calendar with the time from the email, and the note “doctor not named in the letter”. No name was filled in from earlier letters.
- “The doctor replied, log in to read it.” The agent can’t see the reply, so it doesn’t pretend to. It creates a task for today, “read the reply in the portal”, and closes the older “call if there’s no answer” task, because an answer did come.
- A letter that might belong to an open case. The agent didn’t attach it, and wrote why: from the letter it’s unclear whether the appointment is related. The letter is filed; the case wasn’t touched.
- “I already did that” in the health chat, about something vague. The chat answered (translated): “Not sure I understood. Tell me exactly what’s done and I’ll update the case.” It changed nothing until I did.
All four come from a handful of lines in the agents’ instructions. The mail agent runs alone, at night too, so it has one more: nobody to ask, so decide yourself, and write the doubt into the journal. A doubt that’s written down is something I see the next morning. A doubt that’s resolved silently is something I find out about at the clinic.
Two people, two healths
My partner has her own Home, with her own data folder, her own health notes and her own calendar. Her health chat works in her folder. There’s no shared health page and no setting to make one. Each of us sees our own.
Build your own: paste this into Claude Code
This sets up the records, the mail rules and the chat’s limits. It doesn’t interpret results or advise on treatment: that stays with a doctor.
Help me keep my health records in a folder of Markdown files, with a mail agent and a health chat.You keep records; you are not a doctor. Ask before anything irreversible.Warn me first: letters and results you read go to Anthropic's API. The files stay on my server; the model doesn't.Whether my health data goes there is my decision. If I say no, stop.
1. Make the data folder a git repository and commit every change. Keep health notes (visits, letters, results), one case file per open matter with a status (in progress, waiting, watching) and a dated journal. Keep the original scans and PDFs next to the notes.2. Build a health page in three parts: open cases with their status; upcoming appointments and health tasks from my calendar, overdue in red; one card per note, results as tables, out of range red, near the edge amber.3. A mail agent every three hours. A confirmed date and time becomes an event in my personal calendar, never a shared one. A request without confirmation becomes a follow-up task; a "do it by" becomes a dated task. A notice with no content ("the doctor replied, log in") becomes a task for today to read it. Close a task when a later email shows it's done.4. Write down only what the letter says. If something is missing, write that it's missing; don't fill it in from older letters. Attach a letter to a case only on a clear match; otherwise file it and write why. The mail agent runs alone: nobody to ask, so decide, and write the doubt in the journal where I'll read it.5. A health chat whose instructions start with: you are not a doctor; explain, remind, keep track. Never diagnose or suggest treatment: say plainly when you're not sure, and send me to a doctor. Answer short, with dates and a link to the document. "Status, briefly" means what's prescribed, what's pending, what's not done yet. If you're not sure what I mean, ask before changing anything.6. Enforce the chat's limits with an explicit list of allowed tools, not with instructions: edit the health notes, cases and journal only; one calendar-and-task command, one call at a time, no chaining; no mail, messages or browser; the secrets file denied. My own interactive settings don't carry over.7. If two people use it, each gets their own data folder, health notes, calendar and chat. No shared health page and no setting that makes one.Was this useful?