ποΈ PrismCoach
Military-grade AI fitness coach. iPhone Β· iPad Β· Apple Watch app. Tracks recovery, predicts fatigue, generates training programs, and coaches you in real-time β in 23 languages. Works fully offline with an on-device AI model (Pro+). Standalone repo: forge-watch.
π Body Battery
Your primary readiness score β a composite of overnight HRV, resting heart rate trend, sleep quality, and training load accumulated over the past 7 days.
- Scoring β 0β100. β₯ 75 = Fresh (green), 50β74 = Moderate (yellow), 25β49 = Fatigued (orange), < 25 = Depleted (red).
- HealthKit integration β reads passive overnight HRV captured by Apple Watch. No manual input required.
- Baseline recalibration β body battery recomputes its rolling baseline weekly so a well-trained athlete and a beginner see correctly normalised scores.
- ATR Engine β Adaptive Training Readiness synthesises 7+ biometric signals into a single readiness index. Accounts for acute (last 3 days) vs. chronic (28-day) load ratio.
View Screenshot β Dashboard
Body Battery dashboard β composite readiness score, weekly trend, and quick-action shortcuts.
πͺ Muscle Recovery Map
Per-muscle fatigue tracking across 14 anatomical regions using a parametric body-map canvas rendered in SwiftUI.
- 14 muscle groups β Chest, Anterior/Lateral/Posterior Delts, Biceps, Triceps, Traps, Lats, Core, Lower Back, Glutes, Quads, Hamstrings, Calves.
- Charge model β each muscle decays from 100% to 0% over 48β96 hours post-workout depending on exercise volume and RPE. Recovery follows a sigmoidal curve (not linear).
- Front / Back toggle β tap to flip the silhouette. iOS uses a segmented picker; watchOS shows both views as swipe tabs.
- Color coding β β₯ 75% green, 50β75% yellow, 25β50% orange, < 25% red.
- Training highlights β muscles targeted by today's program pulse orange on the canvas.
View Screenshot β Muscle Map
Muscle recovery map β 14 regions, colour-coded by charge. Pulsing overlay shows today's target muscles.
π Training Programs
Six science-based periodisation templates covering all major training goals.
| Program | Structure | Goal |
|---|---|---|
| PPL (Power/Push/Pull/Legs) | 6-day upper/lower split | Hypertrophy + strength |
| 5/3/1 Wendler | 4-day barbell + accessory | Powerlifting strength |
| GZCLP | 3-day tier system | Beginner linear progression |
| Upper/Lower | 4-day classic split | Balanced hypertrophy |
| Full Body | 3-day compound-focused | General fitness |
| Deload / Maintenance | 1-day active recovery | Regeneration |
- AI-generated programs (Elite) β describe your goal and constraints; PrismCoach generates a fully custom multi-week block using Prism 8B or Claude Sonnet.
- JSON Program Generator β programs are represented as typed Swift models; the engine can generate a full 8-week program in < 500 ms on-device.
- Watch sync β active program caches to Apple Watch for offline coaching (< 100 KB payload).
View Screenshot β Programs
Training programs β six periodisation templates with AI-generated custom programs for Elite.
π Nutrition Engine
NLP-powered meal logger β describe food in plain language, get macros.
- NLP meal logging β type or dictate "2 eggs, toast with butter, black coffee" and the engine parses food entities, quantities, and units using regex + Claude Haiku.
- Macro targets β calculated from body weight, goal (cut/bulk/maintain), and activity level. Adjusts daily based on training load.
- Caloric tracking β running daily total with breakdown (protein / carbs / fat / fibre / water).
- Nutrient density scoring β flags micronutrient gaps based on logged foods.
- Hydration reminders β adaptive push notifications based on workout sweat rate estimate.
View Screenshot β Nutrition
Nutrition tracker β NLP meal logging, daily macro targets, and hydration tracking.
π€ AI Coach
Conversational coaching that knows your recovery state, last session, and program context.
- Free tier β no AI (static program templates only).
- Pro β Prism 1.7B on-device β runs via llama.cpp with Metal acceleration. Zero network, fully private. Answers questions about your training, suggests form corrections, adjusts today's volume based on readiness.
- Elite β Prism 1.7B β 8B β Claude Sonnet cascade β on-device first; escalates to Prism inference server (8B) for complex questions; falls back to Claude Sonnet for nuanced coaching.
- Context window β ForgeMemoryStore injects last 3 sessions, active program week, current muscle charges, and body battery score into every prompt.
- Voice output β AI replies are spoken via ForgeTTSEngine: Synalux cloud TTS (MP3, 24 kHz) with AVSpeechSynthesizer offline fallback. Six coaching tones: Friendly, Calm, Excited, Precise, Empathetic, Hopeful.
- Proactive coaching β ProactiveCoachEngine surfaces unprompted insights (e.g. "Your HRV dropped 15% β consider reducing intensity today") based on 7 trigger types.
View Screenshot β AI Coach
AI Coach β context-aware conversational coach with voice output and proactive insights.
β Apple Watch App
Full companion app β not just notifications. Independent session tracking on wrist.
- 5 Watch tabs β Dashboard (Body Battery), Muscle Map, Workout Logger, CNS Tap Test, Settings.
- Workout session β log sets (exercise, weight, reps, RPE) directly from wrist. 90-second rest timer with haptic countdown.
- CNS Tap Test β 10-second pre-workout fast-tap test. Measures taps/sec; flags neuromuscular fatigue if below personal baseline.
- Haptic Pace-Keeper β rhythmic haptics during AMRAP/EMOM circuits.
- Phone sync β WatchConnectivity bridge pushes batteries, body battery, and feature flags bidirectionally in real time.
- Auto-Set Detection β accelerometer + gyroscope recognise set start/stop and classify exercise type. Disable to save watch battery.
- Velocity-Based Training β wrist-mounted bar velocity estimation using CoreMotion. Flags neuromuscular fatigue when bar speed drops > 15%.
View Screenshot β Watch Dashboard
Apple Watch companion β Body Battery glanceable dashboard with recovery ring.
𧬠Femme Engine
Cycle-phase-aware metric adjustments for female athletes (opt-in).
- 4 phases β Menstrual, Follicular, Ovulatory, Luteal.
- Training adjustments β volume, intensity targets, and RPE recommendations shift per phase based on published research on hormonal effects on strength and recovery.
- Body battery correction β basal body temperature and heart rate variability baselines are adjusted by phase to prevent false fatigue flags mid-cycle.
- Privacy β cycle data never leaves the device (CoreData, no sync).
π§ Sleep & HRV
Overnight recovery science running silently in the background.
- HRV capture β passive HealthKit queries for overnight HRV samples. No active measurement required.
- Sleep stage analysis β reads Apple's sleep stage data (awake/core/deep/REM) to score sleep quality.
- Training loop β SleepTrainingLoop correlates prior day's load with next-morning HRV to build a personal stressβrecovery model over time.
- Body battery baseline β rolling 28-day median HRV used as personal reference; deviations drive the battery score.
π Voice & TTS
AI coaching spoken aloud in your language.
- Synalux TTS β cloud MP3 synthesis at 24 kHz/96 kbps mono via Synalux portal. 6 coaching tones.
- Offline fallback β AVSpeechSynthesizer with auto-selection of highest available voice quality (premium β₯ enhanced β₯ default). Works in all 23 supported languages.
- Music ducking β ForgeTTSEngine automatically ducks Apple Music / Spotify during coaching speech and restores volume after.
- Auto-tone inference β message content is scanned for emotional keywords (PR, fatigue, injury, comeback, etc.) and the appropriate tone is selected automatically.
- Voice commands β VoiceCommandEngine handles hands-free set logging ("log 100kg 5 reps RPE 8") and navigation ("show my muscle map") via Speech framework.
π Languages
23 supported languages via Apple's speech stack + Synalux TTS.
- BCP-47 language codes β per-user language preference stored in LanguageStore; used for TTS voice selection and AI coach system prompt locale.
- AI coaching β prompts are written in the user's selected language. Claude and Prism models handle all 23 languages.
- 23 languages β English, Spanish, French, Portuguese, German, Italian, Dutch, Polish, Russian, Ukrainian, Romanian, Czech, Hungarian, Swedish, Norwegian, Finnish, Japanese, Korean, Mandarin, Arabic, Hindi, Turkish, Hebrew.
ποΈ Architecture
- PrismCoachCore β shared Swift Package (SPM) containing all engines, models, and business logic. Consumed by the iOS app, Mac Catalyst app, and watchOS extension.
- llama.cpp (Metal) β on-device inference for Prism 1.7B GGUF model via a local SPM package (
_llama_cpp_local). iOS/macOS only; excluded from watchOS at compile time. - WatchConnectivity bridge β
WatchBridgesyncs muscle batteries, body battery, and feature flags bidirectionally between iPhone and Watch in real time. - CloudKit sync β
CloudKitSyncEnginereplicates workout history and user profile across devices using CKRecord change tokens with conflict resolution. - HealthKit β reads HRV, sleep stages, resting HR, active energy, and workout samples. Writes workout session summaries.
- Siri Intents β
LogWorkoutIntent,GetBodyBatteryIntent,StartRestTimerIntentfor Shortcuts integration.
π Privacy
- Local-first β all biometric data stays on-device. No analytics SDK. No third-party crash reporting.
- HealthKit β read-only access except workout session writes. Described in App Store privacy label.
- AI prompts β Pro tier never sends data to any server. Elite tier sends anonymised training context to Prism inference server (no PII, no HealthKit data).
- Subscription check β email posted via HTTPS to
api.prismcoach.app/subscription/check. Email stored in Keychain with 24-hour TTL and 48-hour grace window. - Cycle data β Femme Engine data is CoreData-only, never synced.
π³ Plans
| Feature | Free | Pro | Elite |
|---|---|---|---|
| Body Battery + HRV dashboard | β | β | β |
| Muscle recovery map | β | β | β |
| Workout logging (60-day history) | β | β | β |
| Unlimited workout history | β | β | β |
| All 6 training templates | β | β | β |
| Full nutrition engine + food DB | β | β | β |
| Body visualizer (front/back canvas) | β | β | β |
| Apple Watch companion app | β | β | β |
| Femme Engine (cycle tracking) | β | β | β |
| AI Coach β Prism 1.7B on-device | β | β | β |
| AI Coach β Prism 8B server | β | β | β |
| AI Coach β Claude Sonnet cascade | β | β | β |
| AI-generated custom programs | β | β | β |
| Monthly | Free | $8.99/mo | $17.99/mo |
| Annual | Free | $69.99/yr | $129.99/yr |
Subscribe at prismcoach.app/subscribe β Stripe-backed web checkout. No in-app purchase required.
π§ͺ Tests
904 automated tests covering all core engines β ATR, Body Battery, Muscle Battery, AI routing, Nutrition, Sleep, CNS, Siri Intents, Subscription, CloudKit, VBT, Voice commands, and more.
watchOS build: β
BUILD SUCCEEDED
iOS tests (904): β
904/904 passed, 0 failures