back to index

GluCoPilot

AI Glucose Insights App

repo: https://github.com/EricSpencer00/GluCoPilot


GluCoPilot was built for the September 2025 OpenAI Hackathon for GPT-OSS:120b, which opened free inference on the model through HuggingFace. The hackathon was intended to produce fine-tuned use cases for the open-source model. Like many other entries, this one is a wrapper around the model rather than a fine-tune; the only tuning applied to 120b is prompt engineering.

GluCoPilot draws on several health sources to produce commentary on a user's glucose readings across the day. Owners of a Dexcom-based continuous glucose monitor (a Stelo or a G7, for example) can pull live data through the manufacturer's APIs. The app combines that with Apple Health and MyFitnessPal, then arranges the aggregate into a 24 hour time series that 120b analyzes. If glucose runs high at 4pm and the Apple Watch record shows little movement at that hour, the model suggests more activity in that window. If a Sprite at 7pm did not cause a spike because of the activity that preceded it, the model notes that too.

In practice the app is limited by how little data reaches it. Logging is the hurdle: a CGM and an Apple Watch record themselves, while MyFitnessPal depends on manual entry and carries missing and inaccurate values. Food bought without a label or a barcode has no nutritional record to look up at all.

On the architecture. The project started as React Native with a Python backend, using the Dexcom library pydexcom. Apple Health integration, among other things, prompted a move to Swift with a lighter Python backend. The Swift frontend authenticates through Dexcom OAuth, and the backend makes rate-limited API calls to the HuggingFace inference servers. Apple Health, Dexcom, and MyFitnessPal data aggregate on the frontend once those services are connected. A single JSON prompt carrying roughly 100k tokens of context then goes to the model.

Accuracy is about 65%. The output is too general in some cases: because the model is forced to always return five results, it produces one or two useful insights and then repeats boilerplate suggestions.

Devpost submission: https://devpost.com/software/glucopilot