← Back to work

Engineer (solo build) · 2026

NutriMind

An AI nutrition planning agent that reasons about nutrient interactions, bioavailability and supplement timing, not just macros: built on the Claude Agent SDK and grounded in a curated knowledge base so every recommendation traces back to a rule, never a guess.

Cover image for NutriMind

The problem

Nutrition tracking apps like MacroFactor and MyFitnessPal are good at counting macros, but they stop there. They do not plan around the things that actually change how a diet works: nutrients that compete for absorption, fat-soluble vitamins that need the right meal, foods whose minerals are barely bioavailable. The obvious tool for that planning is a large language model, except an LLM left to its own devices will confidently invent nutrition facts. I wanted to see whether an agent could do this reasoning and still be trustworthy. NutriMind is the result: a personal-use planning agent I built solo.

Approach

The whole design is built around one rule: the model is never allowed to state a nutrition fact from memory. Every per-100g value, every absorption rate, every interaction comes from a tool call against a curated database, and the agent cites the rule by ID in its reasoning so a human can audit it. The agent gets a small, sharp toolbox and an imperative workflow (calculate targets first, look up foods, check interactions, apply them, save last) rather than a vague "be a nutritionist" prompt. Grounding the agent this way is what turns a plausible-sounding chatbot into something whose output you can actually check.

Architecture

What I'd do differently

The agent currently returns its full transcript in one response; the natural next step is streaming, so the reasoning renders as it arrives. The knowledge base is deliberately small and hand-curated, which keeps it trustworthy but limits coverage; growing it, with a source for every rule, is where this would go next. It is a personal prototype, and explicitly not medical advice.