Inspiration
Could we make quesadillas tonight and still have burrito bowls tomorrow? Meal plans tend to break after the groceries come home. Someone wants a different dinner, and cooking it on a whim can use up what a later dinner needed. Pantry Plan is for households that bought groceries for several dinners and want to change one.
What it does
Pantry Plan plans a week of dinners for a household and turns them into one grocery list, counted in the whole packages you'd buy, after subtracting food already at home. Cook walks through each dinner step by step.
During the challenge I built Make another dinner, a swap you can make after pickup:
- In Cook, open a dinner you haven't made and tap Make another dinner.
- Confirm what came home: count the packs that match the list, mark anything missing, or record the same grocery in a different package size.
- Tap Confirm and find dinners. The app offers dinners you can make while leaving enough for every other dinner still planned, including portions already cooked.
- If a replacement means changing a second dinner, the app names that dinner and asks before changing both.
- If nothing fits, it says so and shows which extra packages would cover a replacement and the rest of the week.
The original shopping list stays available the whole time.
How I built it
- A native iPhone app in Swift and SwiftUI, for iOS 17 or later.
- The swap logic in
ios/PantryPlan/Core/AfterShopping.swiftstarts from pantry food plus the packages you confirmed. It holds what the other dinners need and only offers dinners that still fit. It runs on the phone and makes no AI request, so it can't invent groceries. - Tests in
ios/PantryPlanTests/AfterShoppingTests.swiftcover different package sizes, the original list surviving repeated swaps and a reload, missing groceries never being counted, two-dinner changes being shown first and never using cooked portions, and missing stock shown as packages to buy without changing the week. On November 28 the native suite ran 224 tests with 0 failures and 1 known skip. - Optional AI dinner ideas come from Claude Haiku through a small gateway on the user's Mac, using their own API key. The app checks each suggestion and works out servings, packages and totals itself.
Challenges I ran into
- Never counting food twice. Dinners already cooked keep their portions, and a missing package is never counted as received.
- Groceries that come home in a different size than the list planned.
- Explaining a change to two dinners clearly before applying it.
Accomplishments that I'm proud of
- A swap never takes groceries that another planned dinner needs.
- When nothing fits, the app says so and shows what one more package would make possible, instead of guessing.
What I learned
A meal plan is only useful if it survives what actually came home. Counting whole packages and holding food for later dinners mattered more than clever suggestions.
What's next for Pantry Plan
- Test the swap with real households.
- Make first-run setup simpler and add more recipes.
- Use live store prices only after a retailer approves access. Until then, prices are examples.
Built during the event (November 21–28)
Everything in the video's Make another dinner flow, plus its tests: the confirm step, replacements that keep the rest of the week covered, two-dinner changes, the different package size option, and the "If you buy more" suggestions. The swap was first committed on November 25 (464a689) and different package sizes on November 26 (424bc3a). The last commit before the event is f2aefbe, from November 19.
Weekly dinner planning, the whole-package grocery list, pantry and Cook, the sample recipes and example prices, the optional Claude Haiku gateway and an older web version existed before the event. My other commits that week are in the public history: a new icon, layouts that fit larger text, more sample dinners, App Store preparation, and a rename to Easy Dinners. The video focuses on the swap.
How I used AI
- Building it: Claude Code and Codex wrote and reviewed much of the code at my direction. I set the product rules and decided what shipped: whole packages only, unknown prices never treated as free, and no fake AI output. For example, when I tried the iPhone pilot on November 18, it felt like way too much, so we cut the next test down to one text, one reply and one Walmart link.
- In the app: the swap uses no AI. Optional dinner ideas come from Claude Haiku with your own API key. AI never supplies prices, products or totals. Without a key, the app says "AI not connected".
- The video: Claude Code put it together from simulator screenshots of the app. The narration is a macOS computer voice.
Notes for judges
- To run it: open
ios/PantryPlan.xcodeprojin Xcode and run the PantryPlan scheme on an iPhone simulator. No account, store login or AI key is needed. The README has the steps. - Prices: they are examples. There are no live store prices and no in-app checkout.
- Name: the latest code shows the app name as Easy Dinners. It's the same app.