What Athena became

Karim Elsahy 12 min read Essay UHC

Eight months ago I gave my father's caregiver a WhatsApp number to send photos to. This is what the agent behind it became: what she does every day, what she has caught, and how she is built.

On October 24 last year my father sat with a neurologist in Indianapolis about his memory. The same day his doctor measured his three-month blood sugar average. It was 7.2.

The next evening the sight in his left eye went dark. The emergency room treated it as a stroke until the scans came back clear. It was a detached retina, and early that November a surgeon in Los Angeles repaired it.

I start with the 7.2 because of what it had been. Six months earlier, 8.9. The autumn before that, 10. Above 8, the guidance doctors are taught is that an operation which can wait should wait until the sugar comes down, and the emergency note called his a “non urgent surgical procedure”. At 7.2 there was nothing to wait for.

He did not get to 7.2 on a new drug. He got there because that July an AI went through his health record with him, wrote down that he was missing his insulin, and his sons took his medicines out of his hands.

That was the beginning. The agent that does this work now is called Athena. She has a WhatsApp number. She reads every lab report, prepares every doctor’s visit, and can tell me whether he is in bed right now. I wrote about the day she came online. This is what she became, what she has caught, and how she is built.

A friend whose parent has Alzheimer’s asked me how we do it. This is the long answer. The next section is the whole thing in a minute. Stop when you have enough.

The short version

He is 86, a retired surgeon, at home in Cairo with my mother and a live-in caregiver. He has Alzheimer’s, insulin-dependent diabetes, sleep apnea, high blood pressure, weak kidneys, and a prostate cancer that came back this autumn. He cannot reliably tell us what he ate or whether he took his pills. So every fact has to come from someone or something other than him.

The caregiver sends Athena photos: the plate, the pills, the insulin pen. A sensor on his arm sends his sugar every couple of minutes. His blood pressure cuff, his scale and his breathing machine report by themselves. A camera at the foot of his bed says whether he is in it. Every lab report and scan anyone photographs becomes rows in one health record.

Athena holds that record, answers any of us at any hour, and applies his doctors’ rules the same way every time. She does not raise alarms. A small program with fixed numbers does that, and it rings our phones through silent mode. The AI reads, explains and remembers. Code decides when to wake people.

His roomHis bodyThe caregiverOne health recordAthenaThe alarm programcamera, breathingmachine, a laptopsugar sensor, cuff,scale, handheldphotos and voicenotes on WhatsAppevery reading a row, fixed rules on topreads, explains, remembersspeaks in two family groupsfixed numbers, no AIrings our phones
Everything lands in one record. Two things read it: an agent that talks, and a program that rings.

Where it began

In July 2025 nobody had said Alzheimer’s. We had watched his memory slip for months, and he was still in charge of his own medication.

The AI in his health record interviewed him, with one of us beside him, and read his labs. Its report put three things at the top: an urgent neurology referral, restarting the sleep apnea treatment he had dropped, and his diabetes. It had put two facts side by side that had been sitting in separate files. Untreated apnea and high sugar together, it said, were likely contributing significantly to his memory symptoms. His oxygen was falling to 76 percent in his sleep. He is a surgeon, and he said it himself: “My brain has been oxygen-deprived during sleep.”

It also wrote one dry line: “Occasional missed insulin doses.” When we looked, it was a lot more than occasional. It was a spiral. He forgot his medicine, so his sugar went up. High sugar and nights without air made his memory worse. A worse memory forgot more medicine.

He forgets his medicineHis sugar risesHis memory gets worseand sleeps without the maskhis oxygen falls at nightso he forgets more
The loop we found in 2025.

You cannot ask a man inside that loop to break it by remembering harder. So we took the remembering off him. Within weeks his daily sugar had fallen from around 186 to 93, and his record credits one thing: “improved medication adherence”. By October his neurologist wrote: “His sons have taken over his medications and have ensured that his blood sugar is under better control.”

above 8, an operation that can wait, waitsJul 2025: his sons take over his medicinesMar 2026: Athena108.98.17.27.46.86.0Sep 2024Oct 2025, the eyeNov 2026
His three-month sugar average. The ringed point was measured the day before his retina detached.

That is the job Athena was built for, and the rest of this post is how she does it.

How she started

I wrote about the two sessions that first built her, in March, in The Athena Moment. This is what happened after.

March. The caregiver photographed every medicine box in the house, and Athena wrote the first complete list of what he takes. A sugar sensor fed her a reading every five minutes. Ten days later it stopped sending and was never revived.

April to July. She ran on photographs. The meter. The dial of the insulin pen. The plate. The pills laid out, checked one by one against the list by count, colour, shape and markings. A few facts a day, and only what someone remembered to photograph.

August. Two habits that changed her: a daily ledger, and a morning sweep. With nobody asking, she re-reads everything said in the chat, checks it against what was written down, and checks the doses given against the doses on the plan. The sweep earned its place in her worst fortnight. That month, on several mornings, her replies contained medicine details she had made up, twice telling the caregiver to hold a correct insulin dose. The sweep caught each one the same day and the doses were given. Since then she answers from the record. Never from memory.

September. Six months in, not one lab result or doctor’s visit had ever reached her. Then he started vomiting and his legs swelled. She recommended blood work, and the same day she asked for an ultrasound of his abdomen. The blood work found the cancer. The ultrasound showed his right kidney.

Eight weeks

On September 24 she was given his full health record, with twenty years of labs and his American hospital files loaded in. What followed is the real test of her, so here it is in full.

WhenWhat happenedWhat Athena did
Sep 22Vomiting, swollen legsRecommended the blood work, and asked for an abdominal ultrasound the same day. Read about a hundred values the night they came. The PSA said the cancer was back. The ultrasound, done at home the next morning, showed his right kidney was swollen
Sep 26 to 29Urologist, PET scan, anaesthetistA brief for each: his medicines, his apnea, his delirium risk, the ask for a spinal with as little sedation as possible. A sugar plan for the fasting day
Sep 30A night in hospital, a drain into the kidneyStayed with my brother by message through a blood pressure of 78 over 47. Read the discharge paper. Caught the wrong insulin in that day’s delivery
OctoberHis American oncologist, by letterDrafted our letters, filed his replies, carried his advice to the team in Cairo
Oct 12The drain stops at nightWoke all three of us. The scan next day: tube dislodged, kidney blocked
Oct 14OncologistTen questions, updated that morning with the week’s labs
Nov 6 to 10Vomiting again, then his endocrinologist59 values written the night they came. She asked whether his diabetes treatment had become too tight. He stopped one tablet and changed the insulin
Nov 13Sugar at 538Below
Nov 15Endocrinologist, in personA synopsis and a question list in my brother’s hands before he sat down. The recording transcribed, including what was never discussed

Since September 23: six consultations, seven scans, six lab draws, four procedures, three hospital nights, one emergency room. For them she wrote six question lists, seven briefs, three letters and one emergency handoff.

Four catches

What she sawWhat it avoided
The wrong insulinA pharmacy sent a premixed insulin in place of his rapid one. Nearly the same name, nearly the same pen. She saw it on the delivery photoEvery meal would have carried a second, slower insulin. The lows would have come hours later, at night, with nobody watching
The blocked kidneyThe caregiver noticed the drain was dry. Athena did not wait for morningAnother day with a blocked kidney, in a man whose kidneys already work at about a third
Too tightA three-month sugar average of 6.0 in a man of 86 on insulinHis specialist loosened the treatment within days
The discharge paperA diabetes tablet at a strength his own specialist had never prescribedWe held it one day. His specialist prescribed a lower strength, one he called “safe to give him”
Two blue insulin pens side by side on a dark stone counter. The top one has a red label reading Humalog Mix50 KwikPen. The bottom one has a white and maroon label reading Humalog KwikPen
  • Top What the pharmacy delivered on September 30: Humalog Mix50. Half of it is a slow insulin.
  • Bottom His: plain Humalog, the rapid one he takes before meals.
  • Same The maker, the pen, the blue, the first word of the name.
  • When She flagged it on the delivery photo, and the flag got buried in a long message. At 2:02pm I sent her this picture and asked if the two were the same. At 2:20pm her warning was at the top of the family group. By 2:35pm the wrong pens were in the bin.
My photo from that afternoon. Since that day every medicine warning from her opens the message and tags my brother and me.

Her own account of why: “The catch was not medical brilliance. It was that I had the whole record open while each doctor had one page.”

The afternoon of 538

November 13. A reading an hour after lunch came in far above anything on his record. Athena asked for a recheck, alerted all three of us, and asked what he had eaten. That is how the sweets came out. They were at a family lunch, and on no plate photo.

For the next hour she kept the numbers in front of everyone. When a second meter read lower, she said that was the gap between two meters, not a fall. When the caregiver mentioned he was sleepy, she named it as a warning sign. She advised against a second dose at home. His doctor could not be reached. Asked what she recommended, she said he should be seen that night.

We rushed him to the emergency room. The one-page handoff for a doctor who had never met him, the day’s readings, his conditions, the medicines actually given that week, his latest labs, was posted before we left the house. He was admitted with a hyperosmolar state, one of the most dangerous emergencies in diabetes, most of all in the old.

When we finally reached his endocrinologist, he called the decision to go straight in excellent. Given what that diagnosis does to men his age, I call it the night she helped save his life.

The mask

One part of that first loop we thought we had fixed. He was diagnosed with sleep apnea in 2009. The treatment is a mask and a machine beside the bed, and by his own account he went ten years without using it. Once we understood what that was doing to him, the mask went back on every night. Or so we believed.

His neurologist does not put the memory loss down to apnea, and nothing can settle it for one man. But the research leans one way: in a ten-year study, people with untreated apnea declined 69 percent faster than those on the machine. I believe it is where much of this began.

Here is what Athena added. Every evening for ten months the caregiver sent a photo of the mask on his face, and Athena, like the rest of us, counted that as a night on the machine. On November 3 the machine’s own memory card was read into his record: 267 nights. From December to early October he had averaged about two hours a night with the mask on. The photo was true at bedtime. The mask came off after.

Dec 17 to Oct 6, a mask photo every eveningabout 2 hFrom Oct 7, the machine’s hours sent every morningover 7 h
Hours a night with the mask on, by the machine’s own count. In the first stretch 17 nights of 226 reached four hours. In the second, 38 of 41.

The change came on October 7, the first morning anyone sent her the machine’s number and not just the photograph. That is the difference between a report and a measurement, and it is most of what this post is about.

What changed this week

The 538 arrived as a photo of a meter, an hour late. So we stopped depending on photographs for anything a device can send.

BeforeNow
SugarA finger-prick and a photo of the meter. A handful a day, nothing overnightA sensor on his arm, every couple of minutes, day and night
Mealtime insulinDecided from that finger-prickDecided from the live sensor. A finger-prick only for a low, an alarm, or a number that does not fit how he looks
Blood pressureCuff on, photo of the screen, numbers copied by handCuff on. The reading, the pulse and the true time arrive by themselves
TemperatureStick thermometers that under-read, by photoOne handheld device. The reading sends itself
WeightOne weigh-in in nineteen monthsHe steps on the scale. Weight and body composition arrive
Oxygen, heart, chestNothing at homeOxygen, a heart tracing with the device’s own reading of it, chest sounds kept for his doctor
The nightA photo of the mask at bedtime, a handwritten page in the morningThe machine’s own count of mask hours, and a camera that knows whether he is in bed

The caregiver’s job got smaller and better. She puts the cuff on. She no longer transcribes it.

The plate

What no device can send is what he eats. So every plate is photographed before he touches it, and Athena reads it the way his dietitian would.

A breakfast tray from above: two boiled eggs, two cheeses, carrot sticks, cucumber, olives, rocket, a wedge of flatbread and a bowl of stewed beans
  • Stays The eggs, the cheese, everything raw and green.
  • Counted The bread, one wedge. The beans, which are carbohydrate too.
  • Watched Salt, on days his feet are swollen. Fruit, by the piece.
  • Then His sugar half an hour after he finishes, and only then the insulin.
Breakfast as the caregiver sent it this morning, and what Athena looks for on a plate like it.

Things she has actually said:

  • Breakfast, sugar at 147. Eggs, white cheese, cucumber, flatbread, three falafel. Keep the eggs, cheese and cucumber. Half the bread or none. One falafel: it is fried, and the beans count.
  • Fruit. Grapes, about fifteen.
  • Lunch. The caregiver sent two plates and asked which rice. The smaller moulded one, about half a cup, at every lunch. Half of that when his sugar before the meal is over 180. No second helping: more salad or stew. That rule comes from a dietitian’s note written in 2021, which she found in his file.
  • Dinner. Yoghurt alone, with a full mealtime dose due. Flagged to us as a risk of a low.
  • A baked sweet potato with cream, then 193 before dinner. She named the cause. The same dish, with ice cream, came before the 538.

His three-month sugar average has gone from 7.4 to 6.8 to 6.0 since February. I cannot hand the plates the credit: his medicines changed, and he was ill. But nobody was reading his plates before.

Dad’s daily groupthe caregiver, the family, Athena
Lunch
CaregiverPhoto: the plate1:38pm
AthenaLogged. Take half the rice off, add salad. Tell me when he has finished.1:39pm
AthenaHis sensor reading is three minutes old and above the line in the plan. The mealtime insulin goes in. Photo of the pen, please.2:24pm
CaregiverPhoto: the pen2:27pm
AthenaMatches the plan. Lunch is closed. I will not accept a second dose for this meal.2:27pm
That night
Sensor alertDad’s sugar is 96 on the sensor at 3:02am (98 before it), under the floor of 100. Someone check him with the finger-prick meter now. @Caregiver3:02am
Athenamy own chat with her
Is he in bed?1:53pm
AthenaPicture from 1:52pm: he is lying in his bed, since about 1:46pm. Mask on.1:53pm
Did he sleep well?1:55pm
AthenaI can’t say asleep. The camera sees lying down, not sleep. He was in bed from 9:48pm to 6:38am and got up twice, three minutes each.1:55pm
Drawn for this post, not screenshots. The working group, where a dose is closed once and an alert tags the person who can act. And what any of us can ask at any moment.

The record

This is the part I would build first if I were starting again.

A lab report arrives as a photo in a chat. Athena reads every line: whose name is on it, the lab, the date, each value, its unit, its printed range. She checks that the same test on the same date is not already there. Then each value is written as a row, against a catalogue of tests, tied by a fingerprint to the page it came from. A value she cannot read is held and named. Never guessed. One message comes back: what was written, what changed since last time, what is held.

That is the system UniversalHealthCare.ai built for its patients, and it is why I put my father in it. Unstructured paper goes in. Structured rows come out. Once a lab is a row, a question is a query, and nothing is recalled: everything is retrieved.

137documents on file
584lab values, back to 2007
721doses recorded
224meals
His record on November 17, 2026. 149 entries were later corrected, with the original kept.
-- table names simplified
select drawn_on, value from lab_values
where test = 'PSA' order by drawn_on;

2007 to Feb 2026   under 0.5
Sep 2026           5.4
Oct 2026           3.6
Nov 2026           1.7

One of us asked how the cancer was doing. That is the answer, in one message, with nineteen years behind it. When a doctor’s note mentioned “a low of 66”, she checked every reading of the last ninety days. The lowest was 83.

The room

The last thing we built is the newest, and the part I trust least. A camera at the foot of his bed takes a picture every two minutes. A vision model turns each one into four labels: in bed or not, mask on or not, anyone else in the room, which door he left by. Only the labels are kept. There is no face recognition, and she will say “lay down” but never “asleep”.

pillowshim, underthe duvetCPAPhosechairthe way outrestroom doorcamera
His room from above. The shaded wedge is what the camera sees.

The camera is good at the bed and poor at the mask. The breathing machine is exact about the mask and knows nothing about the bed. So we read both, and where they disagree about the mask, the machine wins.

In his bed, from the camera1:21am4:42amMask off, from the machine2:13 to 2:47am4:43 to 5:00am9pm11pm1am3am5am7am
One night, two witnesses. At 4:42am he got up and the mask stayed on the pillow for 17 minutes. At 2:13am it came off while he stayed in bed, for 34 minutes, until a caregiver came in.

And when his sugar is dangerous, nobody waits for a message to be read.

What happensWho hearsHow
Under 100, above 220, or the sensor goes silent for 30 minutesThe daily group, caregiver tagged by nameA WhatsApp message, repeated while it lasts
Under 100 or above 350His sons’ group tooA copy of the same message
Under 80 or above 450Everyone, any hourA phone alarm through silent mode, until each person acknowledges

The rule under all of it: the AI talks, code decides. The language model cannot raise an alarm, and the alarm program refuses it if it tries. It can propose changing who gets rung. A one-time code sent to my phone approves it.

For the engineers: how the camera reads a bed

There is no custom model and no training on pictures of his room. The tuning is two ordinary things done carefully: a written instruction, and a test.

The instruction describes the room and the man, including the things only we would know:

HOW HE LIES, read this before deciding the bed is empty: he sleeps curled
under a thick white duvet, often covered completely. A long raised mound
of duvet lying along the mattress IS the patient in the bed.

THE HOSE is the strongest clue. When it runs up onto the bed and ends at
a head, or disappears under the duvet at the pillow end, he is lying
there with the mask on.

The model answers in a fixed shape:

bed_state:             in_bed | sitting_on_bed | out_of_bed_in_room | bed_empty | unclear
mask_on_face:          yes | no | unclear
other_person_present:  yes | no
left_toward:           restroom | exit_door | none | unknown

The test is 50 pictures from one night, labelled a second time, slowly, by a stronger model than the one doing the nightly reading, and laid out picture by picture for me to go through. The first night’s log read well and was wrong: the reader called the bed empty whenever he lay fully under the duvet, and almost never saw the mask. We rewrote the instruction, moved to a stronger model, and read the night again.

Bed, first night’s readerBed, after the rewriteMask, first night’s readerMask, after the rewrite32 of 5042 of 501 of 3627 of 37pass mark: 47
The worst mistake, an occupied bed called empty, went from 8 pictures to 1. Better, and not yet good enough: the morning log goes to me alone until it passes.
  • The duvet. A man under a white duvet, in infrared, from the foot of the bed, looks like an unmade bed.
  • A camera that follows. Motion tracking smeared the pictures and invented trips. A fixed view is worth more than a clever one.
  • From labels to a night. A rest starts when he lies down and ends after ten minutes out of bed. A shorter absence is a trip. A picture near-identical to the last reuses its labels, which keeps the reading at about 70 cents a night.
  • Which door. Two minutes between pictures almost never catches him walking. A second watcher with no AI compares video frames and keeps one every five seconds only while something moves. The model then looks at the few frames around a bed exit and says restroom or left the room.
  • The machine’s clock was hours off and cannot be set. We matched it to the camera: seven events in one night lined up to the minute at a single offset.
  • Privacy. The pictures go from his room to our server and to the model that reads them, nowhere else, and are deleted after seven days.
For the engineers: how the alarm is wired
  • Two readings in a row past a line, so one odd number does not wake the house.
  • Silence is an alert. The sensor goes quiet when his phone is not near him. That needs hands, so it goes to the person in the house, by name.
  • Two levels, kept apart. The message lines and the alarm lines are different numbers. If the alarm fires for ordinary highs, people learn to ignore it.
  • The alarm runs on Pushover, whose critical alerts cut through silent mode and sleep focus on iPhone and Android alike. There is a minimum volume, because my first test got through and did not wake me. Each person acknowledges on their own phone. One tap does not silence the others.
  • Who gets rung is a table, not a prompt. The model can ask to change it. A code on my phone approves it.
  • Off, then test, then on. Every piece was installed switched off, run where only my phone could ring, and then turned on.

The parts

No brand names for the hardware or the models. They matter less than you would think, and I would swap most of them tomorrow.

PieceWhat it is
The agentAn OpenClaw agent with her own WhatsApp number, long-term memory, written instructions, and a voice for voice notes
The modelA large language model with vision, for Athena herself and for reading the pictures. A smaller, cheaper one for the door frames
The recordUniversalHealthCare.ai’s health record on Postgres: a test catalogue, and one row per value, dose, meal and event, each tied to its source
SugarA continuous sensor on his arm, read through his phone into the record every couple of minutes
VitalsA connected blood pressure cuff, a body-composition scale, and a handheld for temperature, oxygen, heart tracing and chest sounds
BreathingHis CPAP machine and a memory card with its own Wi-Fi, read twice a day
The cameraAn ordinary home camera with night vision
In the roomA small laptop that never sleeps, wired to the router, fenced off on a private network
AlarmsPushover critical alerts, per-person acknowledgement, a routing table, a stop switch
PlumbingPython programs on timers on one small Linux server, and a health check every 15 minutes that tells Athena what is alive

Who builds it

WhoWhat they do
MeI know my father. I say what should exist, and I am the only one who can say go
My PrimeA senior agent that works only for me: my chief of staff. It built Athena in March and has rebuilt her ever since. It writes the plain-language spec for each change, runs the servers, reviews the code, installs it switched off, and checks the camera’s reading picture by picture
The builders in my fleetThe coding agents at ExAutomatica, my venture factory. They take each spec and build it on a branch, with tests. On one day this week they shipped five versions
AthenaThe one who is there every day. She also reports her own faults: when her instructions fight reality, she tells the Prime
The caregiverThe hands and the eyes. She noticed the blocked drain. She caught Athena an hour out on a dose time. Everything rests on her

If this were a product

  • Observe, do not ask. The patient is never the interface.
  • Live where the family already lives. A photo or a voice note. Nobody learns an app.
  • Turn paper into rows. Retrieval, not recall.
  • Keep talking and deciding apart. The model explains. Fixed rules wake people.
  • Measure, then trust. A photo of a mask is not a night on a mask.

It would also need a clinician who owns the medical rules, consent for a camera in a bedroom, and setup without me in the room.

What it cannot do yet

  • A fall is his Apple Watch’s job, not hers. And nothing yet acts on him being out of bed too long at night. The camera now produces the facts. The rules are not written.
  • His memory is the thing we measure least. His sugar has a trend line. His Alzheimer’s does not.
  • No single doctor owns the whole of him. Athena holds the record. She is not a doctor, and this is not medical advice.

What I had wrong

There is a sentence every medical student is taught. It is attributed to William Osler.

Listen to your patient. He is telling you the diagnosis.
Attributed to William Osler

All of medicine leans on that sentence. The history. The complaint. Where does it hurt, when did it start, what did you eat. My father leaned on it for a whole career, from the other side of the desk.

Alzheimer’s takes the sentence away. He is still in the room, but he has gone quiet in his own case. He cannot tell you the diagnosis. He cannot tell you about the sweets.

And when the patient goes quiet, you find out that nobody else was holding the story either. The oncologist has a page. The urologist has a page. The caregiver has today. Each of his sons has an afternoon and a group chat. The sleep apnea was diagnosed in 2009 and the cure sat beside his bed. It was known. It was written down. It was not remembered, because a fact on a page is not a fact that someone carries into every night.

For most of this year I thought I was building a small doctor, and I judged Athena by how clever she was. That was the mistake. My father has never been short of clever. He has excellent doctors in two countries. Not one thing she caught required knowing more medicine than they do. Every one required remembering more of him: which pen is his, what the last paper said, what the machine counted while the photograph smiled.

Knowledge was never the scarce thing. Memory was.

That is also what the disease is. Before it takes the names and the faces, it takes the thread: the ability to say what happened this morning and what it means for tonight. A family tries to hold that thread for him, in shifts, in fragments, and drops it at 3am like anyone would.

So that is what she is. Not his doctor. Not his nurse. His memory, kept outside him, where the disease cannot reach it. If I ever build this for other families, that sentence is the whole specification.

He can no longer tell us the diagnosis. So we built something that listens to everything else, and does not forget.

Discuss this on X ↗ or on LinkedIn ↗ Reply to me [email protected]. Mercury, my agent, filters for me.

More from the factory → All writing Karim Elsahy · CEO, ExAutomatica

One email when something ships.