Where clinical expertise meets production-grade engineering.
I'm Mohamed Fakhry. I architect, build, evaluate, and improve clinical AI systems and healthcare software, from RAG pipelines and safety guardrails to applications that clinicians built themselves with AI coding tools. One person who understands both the medicine and the code, and owns the work end to end.
Clinical and Engineering Expertise
Medicine, software engineering, AI and business leadership, applied to the same system
Trained physician with clinical practice and medical center leadership behind him. I read software the way it will be used: inside real clinical workflows, documentation constraints and operational risk.
Design and build of clinically grounded LLM systems: hybrid retrieval with citations, structured outputs, agentic workflows, multimodal extraction, and cost and latency optimization.
Golden datasets, LLM-as-judge evaluation, regression testing, deterministic guardrails and audit trails, so changes can be measured and risky outputs can be controlled.
Former founder and CEO. I take systems from architecture to deployment, monitoring and handover, and I understand the commercial pressure they operate under.
Problems I Solve
Each starts with a bounded, clearly scoped engagement
Retrieval misses, unsupported claims, unvalidated outputs, missing evaluation, safety rules that live only in a prompt.
Clinical AI Reliability Audit
From $3,500 · approximately 14 days
Built with Claude Code, Cursor, Lovable, Replit or similar, with or without AI inside the product. You need to know what to fix before a pilot, launch or technical review.
Clinical Prototype Readiness Review
$950 · typically 5 business days
You have the engineers. You need clinical logic review, clinical AI evaluation and independent assessment, without growing your permanent team.
Partnerships for software teams
Scoped per project
Prototype-to-production engineering, continuous reliability support, or architecture ownership for a healthcare product.
Engineering collaborations
Quoted after assessment
Demonstrated Work
Independent clinical AI prototypes with deterministic safety checks and audit trails. Code and limitations are public.
A composable rule-based verification layer that catches physically impossible, biologically inconsistent, or logically contradictory LLM outputs before they reach the end user.
A real-time safety check for medical chatbot answers: a fast System One model (TypeSafe's Jev) scores ten narrow questions in about 0.3 s, and deterministic VLM-Guard rules turn those scores into pass, flag, correct, block or escalate, with a full audit record.
A retrieve-or-refuse Retrieval-Augmented Generation system for heart failure clinical decision support, grounded exclusively in the 2022 AHA/ACC Heart Failure Guidelines with an 8-engine guardrail validation pipeline.
Background & Experience
Programming since childhood, medicine at Cairo University (Kasr Al-Ainy), clinical and management roles, a company of my own, and enterprise AI engineering
- 2024 - PresentAI Engineer, enterprise AI in financial services
- 2022 - 2024Founder & CEO, SpiderSEO (technology-enabled services)
- 2021 - 2022Medical Center Director
- 2018 - 2021General Practitioner, Egyptian Ministry of Health
Latest Insights
Thoughts on engineering, healthcare, and the future of work.

HeartSafe RAG: Building a Retrieve-or-Refuse Cardiology Agent
When AI gives medical advice, 'probably right' isn't good enough. HeartSafe RAG is a retrieval-augmented generation system designed to refuse rather than guess: it answers from the AHA/ACC Heart Failure Guidelines, validates its claims, or declines to answer.
More articles
- Beyond 'Vibe Checking': Implementing Automated LLM-as-a-Judge Pipelines
- Building a RAG-Powered Medical Web App: How I Engineered an AI Prescription Validator
- Building an Autonomous SEO Agency: How I Engineered an AI-Powered ERP on Google Workspace
- The Doctor Who Codes: Diagnosing Software Bugs with Clinical Precision
Let's Work Together
Consulting, engineering partnerships, or a full-time role. Choose the path that fits.
For HealthTech founders, clinical AI companies and clinicians with a product. Start with a free 15-minute scoping call.
For agencies and software teams that need clinical expertise and clinical AI evaluation on healthcare projects.
For hiring managers and recruiters. Experience, projects and background are all here, and I am easy to reach on LinkedIn.
Speaking, writing, research collaboration or a question that does not fit a box.