---
title: "Biohacking your glucose with AI"
date: 2024-12-17
description: "Biohacking experiment What prompted this experiment? Prompt to start the AI session What did I learn?  Biohacking experiment..."
canonical_url: https://idratherbewriting.com/blog/biohacking-your-glucose-with-ai
---
# Biohacking your glucose with AI
## What prompted this experiment?

A few months ago I read a book called *[The Case Against Sugar](https://www.amazon.com/Case-Against-Sugar-Gary-Taubes/dp/0307701646)* by Gary Taubes. Afterwards, I decided to give up “added sugar.” The first month, I saw positive health benefits. But after a while, my body wised up and found a sugar workaround: I began eating more fruit than I’ve ever eaten in my life, believing that “natural sugar” in fruit was perfectly fine without moderation. Well, after 3 months of this, my A1C levels jumped up way more than I anticipated, which scared me. So I decided to start wearing, with the recommendation of a nutritionist, a CGM. I bought a $89 [Dexcom Stelo](https://www.stelo.com/) (the kind you can get without a prescription) to track what might be contributing to the glucose spikes.

(BTW, if you’re unsure about the value of glucose biometric data, see this [10 minute highlight from Dr. Casey Means with Dr. Andrew Huberman](https://www.youtube.com/watch?v=XD1y3LhMk5k). She’s really convincing.)

It only took a day to realize that natural sugars in fruits could lead to glucose spikes in the same way as added sugars and carbs. So I was like, duh, of course my blood sugar rose when I ate multiple apples, persimmons, and bananas a day. But I also started thinking about other ways to improve my health through the monitor. Wouldn’t it be great if I had more energy, especially in the evenings? Wouldn’t it be nice if I could sleep better at night? What could my glucose levels reveal about my mood? My circadian rhythms? If I flatten my glucose curves, as [Jessie Inchauspé (aka “the Glucose Goddess”)](https://www.amazon.com/Glucose-Revolution-Life-Changing-Power-Balancing/dp/1982179414) says, would I have more energy and be healthier? Glucose seemed like an interesting and accessible metric to track.

So I started keeping a detailed log of my day’s events—what I ate, any exercise, and general energy levels. I noted the tracking through ongoing AI sessions. I started a new AI session and labeled it “Daily log” (customizing it with the date), and I starred it so I could easily find it. Then throughout the day, when I ate something or exercised, etc., I opened the AI session on my app and made a quick note—for example, 6:30am, drank protein shake with 1 banana, 2 scoops of protein. Or 8:00-8:50 am, did fitness class focusing on body strengthening. Or “2:30pm feeling hungry, ate protein bar.” You get the idea.

## Prompt to start the AI session

I started my AI session with a prompt like this:

 I want you to act as my food, exercise, and glucose tracking assistant. I’ll log the following throughout the day:

 - Exact time of consumption

 - Food and drinks consumed (with estimated portion sizes/calories if possible)

 - Physical activity (type, duration, intensity)

 - Energy levels/how I’m feeling

 - Sleep patterns and other relevant context

 I’m also wearing a CGM throughout the day that tracks my glucose levels, logging the time and levels in 15-minute increments. I’ll provide CGM data at the end of the day. With both the food + exercise + glucose logs, you will then analyze:

 - Food-glucose correlations (considering a ~30-minute delay for digestion)

 - Impact of timing and food combinations

 - Effects of activity and other factors

 - Patterns and trends

 - Recommendations for improvement to minimize glucose spikes.

 When I log an entry, just acknowledge each entry briefly. Save your in-depth analyses for later, when I provide the glucose logs.

For another prompt with a more expanded scope, see the one in [AI stream journaling experiment](/blog/ai-stream-journaling-experiment).

I found that logging events in an ongoing AI session like this was easy. Of course, I could have equally just noted these things in a Google Doc, but why not leverage AI for this? AI could clean up the notes, allowing me to quickly dictate half-intelligible logs on the go and keep track of everything for me in an easy way.

At the end of the day, I exported the glucose logs as a CSV file (from [https://clarity.dexcom.com/](https://clarity.dexcom.com/)), cleaned up irrelevant noise in the exported content (via Google Sheets), then downloaded the cleaned up CSV file with just two columns: time and glucose level.

Then I returned to my AI session and used this prompt:

 I’m all done logging events for the day. Here’s my CGM data (attached as a CSV file). Please create a table to analyze these events with my glucose response. The table should have the following columns: Time, Event, Glucose Level, and Analysis.

 The Glucose Level column should reflect Glucose Level Now → Glucose Level +30 min. This is because if you eat some food, your body has to first metabolize the food, taking about 30 minutes before you see the impact on your glucose. For example, if the glucose level at about 6:00 am is 105, and 30 minutes later it’s 130, then represent the glucose values in the Glucose Level column like this: 105 → 130.

 The “Analysis” column should explain the likely reasons for the observed glucose changes. Focus on actionable recommendations for tomorrow to minimize spikes.

The resulting tables were pretty good. I’m hesitant to share one here due to the personal details, but so you can see the result, I’ll share a little. The tracking is way more detailed and meticulous than I would ever want to do manually. After doing this for about two weeks, I can’t imagine manually tabulating all of this information—it would take hours. Here’s a sample table.

 **Sunday, Dec 15**

 Time
 Event
 Glucose Level (Now → +30min)
 Analysis

 5:15 AM
 Food: Protein shake + Dave’s killer bread with butter
 110 → 128
 Moderate spike (+18). The combination of protein shake with bread caused a rise. Consider eating the protein shake first, waiting 15 minutes, then eating the bread to blunt the glucose response.

 5:45-6:15 AM
 Exercise: Brisk walk
 128 → 84
 Excellent glucose lowering effect (-44). The morning walk effectively brought down the breakfast spike. Continue this timing of post-breakfast walks.

 6:15-6:23 AM
 Exercise: Housework
 84 → 95
 Gentle rise (+11) as body recovers from exercise. This is a healthy stabilization.

 6:25 AM
 Food: Monkeybrew with adaptogens
 95 → 102
 Minimal impact (+7). Good choice for a morning drink.

 7:35-7:55 AM
 Nap
 102 → 104
 Very stable during rest. Good timing for a nap from a glucose perspective.

 7:57 AM
 Food: Barebells protein bar
 104 → 126
 Moderate spike (+22). Consider pairing protein bars with a short walk or eating half at a time.

 9:30 AM
 Food: Greek yogurt with honey, cashews, berries
 97 → 120
 Notable rise (+23). The mix of protein and fat from yogurt and nuts helped moderate what could have been a larger spike from honey and berries. Good combination overall.

 9:45-10:40 AM
 Exercise: Housework and yard work
 120 → 102
 Effective glucose lowering (-18) through sustained activity. This timing after breakfast helped minimize the morning glucose peak.

 10:55 AM
 Food: Nature Valley peanut butter granola bar
 102 → 133
 Significant spike (+31). These bars tend to be high in sugar. Consider switching to a lower-sugar alternative or pairing with protein.

 12:45 PM
 Food: Broccoli with butter, mozzarella, popcorn chicken, fry sauce, chocolate
 111 → 120
 Relatively modest increase (+9) despite mixed meal. The fiber from broccoli and protein/fat combination helped moderate the impact of breading and chocolate. Good meal composition.

 2:30-3:00 PM
 Activity: Wrapping presents
 103 → 105
 Very stable during light activity. Shows good glucose control in early afternoon.

 5:55 PM
 Food: 3 pizza slices, breadstick, cinnamon pretzel, salad with croutons, 2 chocolates
 105 → 162
 Largest spike of day (+57). High-carb dinner with multiple refined carbohydrates.

 6:15-7:00 PM
 Exercise: 45-min brisk walk
 162 → 121
 Excellent glucose lowering effect (-41). The post-dinner walk significantly helped moderate what could have been a larger spike.

 Key Recommendations for Tomorrow:

 - Maintain the post-meal walking habit - it’s clearly effective at managing glucose spikes

 - Consider these meal timing adjustments:

 Eat protein before carbs when having mixed meals

 - Space out carb-heavy foods instead of consuming them together (especially for dinner)

 - Food swaps to consider:

 Replace Nature Valley bar with lower-sugar protein bar or nuts

 - For dinner, try eating the salad first, then waiting 10-15 minutes before the higher-carb items

 - Continue the pattern of activity after meals - even light movement helps

 Positive Patterns Observed:

 - Morning and evening walks are very effective at managing glucose

 - Protein/fat/fiber combinations help moderate glucose response

 - Light activity throughout the day helps maintain stability

 - Good recovery after spikes, suggesting healthy metabolic flexibility

Note that I’ve tried this with Claude, Gemini, and ChatGPT. Claude performed the best with the most helpful analysis. (Some Gemini models also performed excellently.)