How I use AI in my blog

Edit: I no longer use OpenAI.

A short disclaimer on how I use AI on my blog:

I use Claude Code to develop my blog. The way I use agentic coding is like a super powerful autocomplete: I define the architecture, the stack, the abstractions, and I tell Claude to implement it. I try to make Claude write the code that I would write, and I review every change. I don't like having AI generating code that I don't understand, or that is different from what I would write.

I use the Claude API to estimate the nutritional content of everything I eat, as a way of tracking my calorie and protein intake. My blog has a custom entry type called #food, where I upload a photo of the food and a short description, and a background tasks uses the API to infer the nutritional information (example). It's surprisingly accurate based on the tests I did — usually with a 20% error margin.

Posts generated with the help of AI will have the x-ai-assisted property set to true, and a 🤖 emoji on them. So far the only posts like this are the ones for nutritional content, as described above, and they are always private. It's unlikely that I will use AI to generate other kinds of posts in the future, but I might use it for spellchecking and proofreading longer posts.