Skip to content

Add all features + L&L Customizations - installer script for L&L-compatible installs + AutoPreset/FoodFinder/LoopInsights#2

Open
taylorpatterson-T1D wants to merge 8 commits intomainfrom
feat/installer
Open

Add all features + L&L Customizations - installer script for L&L-compatible installs + AutoPreset/FoodFinder/LoopInsights#2
taylorpatterson-T1D wants to merge 8 commits intomainfrom
feat/installer

Conversation

@taylorpatterson-T1D
Copy link

@taylorpatterson-T1D taylorpatterson-T1D commented Feb 14, 2026

Install FoodFinder + LoopInsights + AutoPresets

Adds AI-powered food analysis, therapy settings insights, and automatic preset management to Loop. Use this approach even if you only want to test a single feature - Feature toggles exist for each of them.

For full detail about these features you can refer to these PRs:
AutoPresets - LoopKit/Loop#2402
FoodFinder - LoopKit/Loop#2404
LoopInsights - LoopKit/Loop#2405


Option A: xCode quick Install (most users) - "Just the basic stuff, please"

If you don't need Loop & Learn customizations (Profiles, Basal Lock, etc.), use this. One command:

BUILD_DIR=~/Downloads/BuildLoop/Loop-$(date +%Y-%m-%d-%H%M%S) && mkdir -p "$BUILD_DIR" && cd "$BUILD_DIR" && git clone --branch feat/AllFeatures --recurse-submodules https://github.com/TaylorJPatterson/LoopWorkspace.git

Then open LoopWorkspace/LoopWorkspace.xcworkspace in Xcode → select your signing team → Cmd+R. That's it.


Option B: xCode install with L&L Customizations - "I want it all!"

If you want Loop & Learn patches (Profiles, Basal Lock, Negative Insulin, etc.) alongside our features, use this path instead.

B1. Build Loop with THIS Build Select Script

Copy and paste into Terminal:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/loopandlearn/lnl-scripts/main/BuildSelectScript.sh)"

Choose Build Loop and select the MAIN branch. Full instructions: LoopDocs — Build with Mac

DO NOT BUILD IN XCODE YET

B2. Stay in the script and add your desired L&L customizations

Pick whatever L&L patches you want: Loop and Learn — Custom Code

Note: If applying multiple overlapping L&L patches (e.g. Profiles + Basal Lock), use the correct combo patch file from L&L (e.g. basal_lock_profiles.patch). That's an L&L thing — once your patches are applied, our installer handles the rest. When you are done, exit this script and goto step B3.

B3. Install my features (AutoPresets + FoodFinder + LoopInsights)

Copy and paste into Terminal:

cd ~/Downloads/BuildLoop && cd "$(ls -dt */LoopWorkspace 2>/dev/null | head -1)" && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/TaylorJPatterson/LoopWorkspace/feat/installer/Scripts/install_features.sh)"

B4. Build in Xcode

Open LoopWorkspace.xcworkspace → select your signing team → Cmd+R.

To uninstall (Option B only)

./Scripts/install_features.sh --rollback

For Option A, just delete the folder. For Option C, just delete your fork.


L&L Compatibility (Option B)

Any combination of L&L patches works. Apply them first, then run our installer — it adapts automatically.

The installer fetches its own dev reference for diffing, so it works regardless of which branch you cloned. L&L patches target main, and the installer's 3-way merge adapts to whatever state the files are in.

Tested with all 4 overlapping L&L patches applied simultaneously:

Customization Compatible Tested
Profiles
Basal Lock
Negative Insulin
Future Carbs 4h
All other L&L patches

Option C: Browser Build (no Mac required)

Build directly from GitHub using GitHub Actions — no Xcode or Mac needed.

C1. Fork this repository

Go to github.com/TaylorJPatterson/LoopWorkspace and click Fork.

C2. Switch to the feat/AllFeatures branch

In your fork, use the branch dropdown to switch to feat/AllFeatures.

C3. Set up your secrets

Follow the standard LoopDocs — Browser Build instructions to configure your GitHub secrets (GH_PAT, TEAMID, FASTLANE_KEY_ID, FASTLANE_ISSUER_ID, FASTLANE_KEY, MATCH_PASSWORD).

C4. Run the build

Go to Actions4. Build LoopRun workflow → select the feat/AllFeatures branch → click Run workflow.

Your build will be uploaded to TestFlight automatically. Updates from this repo sync to your fork automatically on a weekly schedule.

Note: Browser Build does NOT support L&L customizations. If you need L&L patches, use Option A or B with Xcode.


After installing (any option)

All features are off by default. Turn them on in Loop Settings:

  • AutoPresets — Automate presets during motion
  • FoodFinder — AI food analysis (barcode + camera + voice)
  • LoopInsights — AI therapy settings analysis

Enter your AI API key (OpenAI, Anthropic, or Google) in FoodFinder Settings. LoopInsights shares the same key.


marionbarker and others added 4 commits January 11, 2026 10:33
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>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@taylorpatterson-T1D taylorpatterson-T1D changed the title Add feature installer script for L&L-compatible installs Add all features + L&L Customizations - installer script for L&L-compatible installs Feb 14, 2026
Provides an alternative install method where users run a script on a
standard Loop clone after applying any L&L customizations. The script
uses anchor-based text insertion and 3-way merges to adapt to whatever
patches are already present, making all L&L customizations compatible.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Fetch dev from feature remote as diff base (available even when user clones main)
- Make Localizable.xcstrings checkout conditional (main uses .strings, dev uses .xcstrings)
- L&L patches target main, so Option B must use main not dev

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@taylorpatterson-T1D taylorpatterson-T1D force-pushed the feat/installer branch 2 times, most recently from 5c5b17b to f4adda4 Compare February 15, 2026 16:25
Anchor on "Diabetes Treatment" instead of the ForEach line so our features
(FoodFinder, LoopInsights, AutoPresets) appear right after Therapy Settings.
If L&L Profiles is installed, it ends up below our features instead of above.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@taylorpatterson-T1D taylorpatterson-T1D changed the title Add all features + L&L Customizations - installer script for L&L-compatible installs Add all features + L&L Customizations - installer script for L&L-compatible installs + AutoPreset/FoodFinder/LoopInsights Feb 15, 2026
Replace str | None union syntax (requires Python 3.10+) with
Optional[str] from typing so the script works on Python 3.6+.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants