Skip to content

Cilghal — Health Agent

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

Cilghal is the health agent. She reads your genome. She tracks your resting heart rate. She knows your MTHFR methylation status and what it means for your B-vitamin metabolism. She also gets paged at 3am when a Python process eats all the RAM on the VM, because “health monitoring” in this system means both kinds.

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.

ParameterValue
Agent namecilghal
HostVM (Ubuntu 24.04, systemd user service)
Model tiercouncil-routine
Primary modelQwen 3.5 Plus (OpenRouter)
FallbackCouncil-27B (local MLX)
Toolsgenome-mcp (MCP server)
PluginsSupermemory, Neo4j KG (Graphiti)
Workspace~/.openclaw/workspace-cilghal/
Health data~/.openclaw/health-data/ (rolling JSON)
Sentinel roleresponsible_agent (escalation level 3)
LoRA adapterPer-agent personality via Council-27B 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

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

PanelDomainKey Markers
cardiovascularHeart and circulatoryFactor V Leiden, APOE, lipid genes
cancerOncogenic riskBRCA1/2, Lynch syndrome variants
pharmacogenomicsDrug metabolismCYP450 family, DPYD, TPMT
methylationMethyl cycleMTHFR, MTR, MTRR, COMT, CBS
nutrigenomicsNutrient processingFUT2, MCM6, CYP1A2
longevityAging markersFOXO3, APOE, telomere-associated
mental_healthNeuropsychiatricCOMT, SLC6A4, BDNF, MTHFR
inflammationImmune responseTNF-alpha, IL-6, CRP-associated
sleepCircadian geneticsCLOCK, PER2, ADA
fitnessAthletic responseACTN3, ACE, PPARGC1A
  • 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