All-In-One: FoodFinder + LoopInsights + AutoPresets#1
Closed
taylorpatterson-T1D wants to merge 4 commits intomainfrom
Closed
All-In-One: FoodFinder + LoopInsights + AutoPresets#1taylorpatterson-T1D wants to merge 4 commits intomainfrom
taylorpatterson-T1D wants to merge 4 commits intomainfrom
Conversation
Chore: update dev version to 3.11.0
Point Loop submodule at TaylorJPatterson/Loop feat/AllFeatures branch which merges all three feature branches onto dev. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
b35f361 to
bfcc943
Compare
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
bfcc943 to
3657138
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
All-In-One Feature Branch: FoodFinder + LoopInsights + AutoPresets
This branch bundles all three features into a single build-ready LoopWorkspace. Clone it, open in Xcode, build, and you get everything.
Included Features
1. FoodFinder
AI-powered food identification and nutritional analysis. Scan barcodes, use your camera, voice search, or type to find foods and auto-populate carb entries. Supports OpenAI, Anthropic, Google, and custom endpoints.
2. LoopInsights
AI-powered therapy settings advisor. Analyzes your glucose, insulin, and carb data to suggest adjustments to Carb Ratio, ISF, and Basal Rate schedules with clinical reasoning. Includes AGP charts, trends dashboard, AI chat, and suggestion history with one-tap revert.
3. AutoPresets
Automatically apply Loop presets based on motion and activity data from Apple Health. Set rules to trigger presets during exercise, sleep, or other activities.
How to Build with Xcode
Step 1: Clone the repository
Open Terminal and paste this entire block as one command:
Step 2: Open in Xcode
BEFORE YOU OPEN Xcode - If you do not want to add compatible L&L Customizations, then proceed to build. Otherwise skip down to the L&L Customization Compatibility section, run that script, then return here to proceed to build.
Step 3: Set your signing team
Step 4: Build and install
Step 5: Enable features in the app
Once installed, open Loop on your phone and go to Settings. You'll see three new rows below Therapy Settings:
FoodFinder Settings — Tap to configure your AI provider and API key. Once configured, FoodFinder is available from the carb entry screen (the magnifying glass icon).
LoopInsights — Tap to enable the feature, configure your AI provider and API key, then open the Dashboard to analyze your therapy settings. LoopInsights will read your glucose, insulin, and carb data and suggest setting adjustments with clinical reasoning.
Auto-Apply Presets — Tap to enable and set up rules for automatic preset switching based on motion and activity data from Apple Health.
How to Build with Browser Build (GitHub Actions)
Step 1: Fork this repository
Click the Fork button at the top of this page to copy this repository to your own GitHub account.
Step 2: Follow the standard Browser Build setup
Follow the Loop Browser Build instructions to set up your certificates and provisioning profiles — the same process as building standard Loop.
Step 3: Run the build
Trigger the GitHub Actions workflow from your fork. All three features are included automatically in the build.
Step 4: Install via TestFlight
Once the build completes, install Loop from TestFlight on your device. Enable the features you want in Settings (same as Step 5 above).
Updating to the Latest Version
When new updates are pushed to this branch:
Xcode builders: Open Terminal, navigate to your LoopWorkspace folder, and run:
Then rebuild in Xcode (Cmd+R).
Browser builders: Sync your fork with this repository and trigger a new build.
L&L Customization Compatibility
This branch is compatible with most Loop and Learn customizations. If you already use L&L customizations, you can apply them after cloning this branch, before building in Xcode.
To apply L&L customizations, open Terminal,
cdinto your clonedLoopWorkspacefolder, and run:/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/loopandlearn/lnl-scripts/main/CustomizationSelect.sh)"This opens the CustomizationSelect menu where you can pick which L&L customizations to apply. Select the ones you want, then build in Xcode as usual.
Compatibility Table
*These three patches conflict with files our features modify (
SettingsView.swiftandproject.pbxproj). Updated patches that work with this branch are being worked on. All other customizations apply cleanly.Requirements
Feature Architecture
All three features are fully isolated with prefixed filenames and subdirectories:
FoodFinder_prefix,FoodFinder/subdirectoriesLoopInsights_prefix,LoopInsights/subdirectoriesAutoPresetsprefix,AutoPresets/subdirectoryOnly ~38 lines across 3 existing Loop files are modified. Each feature can be enabled or disabled independently at runtime via in-app toggles. Disabling a feature completely removes it from the Settings screen.