← All projects

Month of Meals

An AI agent that plans a month of meals around your calories and protein.

Why I built it

Planning a month of meals that hits your calories and protein, with make-ahead prep and one shopping list, takes hours by hand. In October 2026 I asked Claude Code to plan a month of meals for me. It hit the numbers on paper, but much of it was awkward to live with: clumsy prep, messy shopping lists and odd portion sizes. It had no rules for what makes a plan easy to live with, so I built an agent that does. It’s a solo project, front end to back end.

What it does

You give it your daily calories and protein. It builds a plan of one to four weeks, reviews it with you a week at a time, and prints fridge pages, recipe cards, prep sheets and a shopping list. It batches the cooking into sessions on your prep days and checks that each dish keeps until it’s eaten. Each prep sheet groups the cooking by station, starting with the oven so the stovetop work happens while things roast, and the shopping list splits food into buy-once and fresh-each-week trips. It reaches your targets by changing portions and pairings, never by changing what’s in a recipe.

Reviewing a week: every day is on target, one dinner is open, and hovering over its dish drawing spreads out the ingredients
Reviewing a week. Every day is on target.

How the agent works

  • A 19-node LangGraph agent with 6 tools, 7 routing decisions and 2 points where it stops and waits for you, plus a smaller agent that plans the prep.
  • Vector search over 20,504 recipes, with nutrition from 8,029 USDA foods.
  • Code decides what’s correct, and the model decides what’s good. Calories, protein, allergies and food-safety rules are checked in plain code, and the model only gets to fix what the code flags.
  • The review pauses the graph with LangGraph’s interrupt(), and a checkpointer keeps each plan’s state, so you can close the tab mid-plan.
The agent's week-building loop: draft the week, fill each part with recipe search or a plate built from USDA data, close the calorie and protein gaps with snacks, check every rule, then fix the week or move on to the next one
Part of the agent: how each week gets built. The full graph (opens in a new tab) has review and output steps too.

How I built it

I decided what to build and why, and Claude Code did most of the coding. Each feature answered a problem from that October plan. I worked out a design doc with Claude before any code, each design became a written plan of small tasks, and each task was one pull request that needed a code review, a browser check and passing tests. I worked through the agent’s core (its state, nodes and routing) one piece at a time while Claude explained each change.

That came to 321 commits and 80 merged pull requests between October 12 and December 2, 2026. The test suite grew from 561 tests to 995, and they run in about 16 seconds.