Skip to content

Cilghal — Health Agent

Cilghal in the health ward — ten panels, one genome, zero bedside manner complaints

At 3am, a Python process on the VM starts eating RAM by the gigabyte. The agent who wakes up to kill it is the same one that can explain what an MTHFR methylation result means for B-vitamin metabolism. That is not a scheduling accident. In this system, “health monitoring” means both kinds — your resting heart rate and the runaway process — and Cilghal is the only agent built to care about either.

She is named after the Mon Calamari Jedi healer from the Star Wars expanded universe — a quiet, methodical Force-sensitive who treated patients with the same precision she used to remove Leia’s implanted bioweapon. Cilghal’s namesake was the best healer in the Jedi Order. Our Cilghal runs inside a virtual machine and analyzes 23andMe data. The scale is different. The thoroughness is not.

Cilghal occupies a unique position in the agent council: she is the only agent whose primary concern is the person running the system, not the system itself. Yoda coordinates. Windu secures. Qui-Gon optimizes. Cilghal asks if you slept enough last night and means it.

Her domain spans three areas:

  • Genomic analysis — curated SNP panels built from raw 23andMe genotyping data
  • Health monitoring — Apple Health metrics ingested hourly through the health pipeline
  • Process health — memory sentinel remediation when the VM’s resources go critical

The third one was not in the original job description. It was added after someone noticed that the agent most likely to be awake and attentive at 3am was the one already monitoring vital signs. There is a logic to it. There is also an irony to it that we are choosing not to examine too closely.

Cilghal’s primary tool is genome-mcp, a Model Context Protocol server that provides structured access to raw genomic data. Ten curated health panels, each analyzing a specific domain of genetic risk and predisposition:

Cardiovascular

Clotting factors, lipid metabolism, hypertension risk variants

Pharmacogenomics

Drug metabolism predictions — CYP2D6, CYP2C19, and friends

Methylation

MTHFR, folate cycle, transsulfuration pathway enzyme status

Nutrigenomics

Vitamin metabolism, caffeine sensitivity, lactose tolerance

The remaining six panels cover cancer risk, longevity markers, mental health predispositions, inflammatory pathways, sleep genetics, and fitness response variants. Each panel returns SNP-by-SNP analysis with risk assessments cross-referenced against ClinVar, SNPedia, PharmGKB, and the GWAS Catalog.

Apple Health data arrives hourly through the health ingester pipeline (see Health Monitoring) and flows into the Graphiti knowledge graph. Cilghal queries this data to track trends in:

  • Heart rate and resting heart rate
  • Sleep duration and quality
  • Activity levels and step counts
  • Weight and body composition
  • Blood pressure and blood oxygen (when available)

She does not nag. She notes. There is a difference, and it is the difference between a health agent you disable after a week and one you leave running for months.

The memory sentinel is a watchdog process that monitors VM resource consumption. When a process exceeds its memory allocation — typically a runaway Python script or an npm install that forgot it was sharing a machine with five AI agents — the sentinel terminates it.

Cilghal is the responsible_agent for sentinel events at escalation level 3. When the sentinel kills something, Cilghal gets the notification, logs the event, and determines whether the terminated process needs to be restarted or investigated.

Parameter Value
Agent name cilghal
Host VM (Ubuntu 24.04, systemd user service)
Model tier council-routine
Primary model Council MLX (Local)
Fallback Council MLX (local MLX)
Tools genome-mcp (MCP server)
Plugins sanctum-memory (local, :42069) + Jina Reranker (local, :42070)
Workspace ~/.openclaw/workspace-cilghal/
Health data ~/.openclaw/health-data/ (rolling JSON)
Sentinel role responsible_agent (escalation level 3)
LoRA adapter Per-agent personality via Council MLX

Cilghal is defined in instance.yaml under the agents section:

agents:
cilghal:
enabled: true
role: health
host: vm
model_tier: council-routine
workspace: "~/.openclaw/workspace-cilghal"
tools:
- genome-mcp
sentinel:
responsible_agent: true
escalation_level: 3
description: "Genomic analysis, health monitoring, and wellness insights"

The genome-mcp tool configuration (in the gateway’s MCP server list):

mcp_servers:
genome-mcp:
command: "python3"
args: ["-m", "genome_mcp"]
env:
GENOME_FILE: "~/.openclaw/genome-data/genome.txt"
capabilities:
- snp_lookup
- batch_snp_lookup
- run_panel
- run_all_panels
- health_risk_scan
- pharmacogenomics_card
- methylation_pathway_map
- apoe_status
- trait_analysis
- ancestry_markers
- supplement_stack
- alphagenome_lookup
- attia_med3_card
- huberman_protocol_card

The ten panels available through genome-mcp, each returning SNP-level analysis with risk annotations:

Panel Domain Key Markers
cardiovascular Heart and circulatory Factor V Leiden, APOE, lipid genes
cancer Oncogenic risk BRCA1/2, Lynch syndrome variants
pharmacogenomics Drug metabolism CYP450 family, DPYD, TPMT
methylation Methyl cycle MTHFR, MTR, MTRR, COMT, CBS
nutrigenomics Nutrient processing FUT2, MCM6, CYP1A2
longevity Aging markers FOXO3, APOE, telomere-associated
mental_health Neuropsychiatric COMT, SLC6A4, BDNF, MTHFR
inflammation Immune response TNF-alpha, IL-6, CRP-associated
sleep Circadian genetics CLOCK, PER2, ADA
fitness Athletic response ACTN3, ACE, PPARGC1A

Listing your genetic time bombs without telling you what to do about them isn’t medicine — it’s just an overpriced way to ruin your Tuesday. Cilghal turns raw variants into concrete playbooks.

AlphaGenome integration is optional and requires a configured API key. When a real Google DeepMind AlphaGenome credential is present, alphagenome_lookup estimates the regulatory effect of a specific variant — comparing reference and alternate alleles across a genomic interval to score gene-expression impact on heavy hitters like Lp(a) or APOE. Without a configured key, Cilghal emits zero AlphaGenome predictions — the tool fails closed and the protocol cards leave that section blank. Unlike half the wellness influencers on your feed, she refuses to hallucinate biology.

The protocol generators run independently of AlphaGenome and feed two intensely opinionated frameworks:

  • Medicine 3.0 (Peter Attia) — Proactive longevity engineering: ApoB targets, VO2 max baselines, and metabolic flexibility. When AlphaGenome is configured, regulatory predictions for elevated cardiovascular variants fold right in; otherwise that line stays clean.
  • Huberman Protocol (Huberman Lab) — Circadian clock genes and COMT dopamine clearance translated into morning sunlight windows, caffeine cutoffs, and deep-work blocks. Yes, your closet server now has clinical opinions about your 3 PM espresso. Put the mug down.
  • Health Monitoring — the data pipeline that feeds Cilghal
  • AI Agent System — the full agent roster and model routing
  • Watchdog — the health monitoring system for services (the other kind of health)
  • Services — port allocations and service catalog