Build a Calorie Tracker with Claude¶
| Category | Claude for Work & Life |
| Status | ๐ก Partially completed |
| Repo | nextwork-build-a-calorie-tracker-with-claude |
| Original NextWork guide | nextwork.ai |
Learning project
Practice work following a NextWork guide, separate from my production projects.
๐ NextWork learning project. This is a practice project I built while working through NextWork's Build a Calorie Tracker with Claude guide. It is part of my Learning portfolio and is fully separate from my production projects.
Category: Learning โบ Claude for Work & Life
Status: ๐ก Partially completed
Overview¶
Logging food by chat only works if the assistant keeps a consistent ledger. This run tests that with a small local model and shows where it breaks, which points to doing the arithmetic outside the model.
Summary¶
Standing instructions for a made-up person's food log, plus a day of four meals and an end-of-day check, all in my own words, ran in a local chat stand-in on qwen2.5:3b. The flow works: instructions were saved and every meal got a reply. The log itself is wrong, though. It recorded the wrong foods, repeated earlier items, its totals don't add up (1,070 shown vs 710 summed) and it never flagged a guess. My review in docs/review.md says so. Partial because there's no Claude or Notion account, so there's no tracker database, and the model's arithmetic fails.
The checks behind this are in docs/verification.txt.
Skills & tools¶
Prompt engineering, Iterative prompting, Python, Local LLMs (Ollama)
What I built¶
chat.py: a small local stand-in for the vendor's chat app. It has saved conversations you can rename, list and reopen, custom instructions, a memory file read by every new chat, and artifacts saved as files. It runs on qwen2.5:3b through Ollama.test_chat.pycovers it offline.session.json: my own prompts for a made-up person (none copied from the guide), run withpython chat.py run session.json, which writesdocs/transcript.md.docs/transcript.md: the standing instructions, three tips, four logged meals and the end-of-day table.docs/review.md: my check of every reply against the instructions.
How to run¶
# needs Ollama with qwen2.5:3b
python chat.py run session.json # replays my prompts, writes docs/transcript.md
python chat.py list | python chat.py show <id>
python -m pytest -q test_chat.py
Verification¶
I ran the verification command on 2026-12-03. The full output is in docs/verification.txt.
/workspace/nextwork-portfolio/.venv/bin/python -m pytest -q -p no:cacheprovider test_chat.py && test -s docs/transcript.md && test -s docs/review.md && grep -q 'Priya' docs/transcript.md && echo CHAT OK
What isn't done, and why¶
This doesn't use Claude.ai with Notion or its account: the app is a local stand-in and the model is qwen2.5:3b, which is much weaker than the vendor's model. Features that only exist in the vendor's product aren't reproduced. There's no Notion workspace or template, so meals live only in the chat, not in a database. The model's logging and totals are wrong, as documented.
Original project: https://nextwork.ai/projects/7438986a-0e1b-572c-9a0c-abaa710e5102 ยท Part of my NextWork Learning portfolio (hub).
Verification output¶
From docs/verification.txt:
$ /workspace/nextwork-portfolio/.venv/bin/python -m pytest -q -p no:cacheprovider test_chat.py && test -s docs/transcript.md && test -s docs/review.md && grep -q 'Priya' docs/transcript.md && echo CHAT OK
... [100%]
3 passed in 0.05s
CHAT OK
[exit code 0]