Skip to content
mike.hamata
← work
Mobile·2026 Live

Isaac

An AI coaching app with a soul: eight personality archetypes, a five-layer memory updated through background reflection, and proactive daily check-ins. Built in React Native, shipped to TestFlight.

ExpoReact NativeExpo RouterTypeScriptZustandReanimatedNativeWindSupabasePostgresClaudeRevenueCat

Role: Founder & engineer

AI stack

Claude Messages API · Structured relational memory · Background reflection + synthesis · Bounded history + response budgets

Under the hood ↓

Isaac is an AI coaching app built around one idea: most "AI coaches" are a chat box with no memory and no point of view. Isaac is the opposite: a coach with a fixed identity, a long memory, and the nerve to tell you the thing you're avoiding. It shipped to TestFlight as a real iOS build, not a prototype.

The product thesis

Isaac is not an AI assistant. He's the version of yourself that can see you clearly, the coach who watched every game tape, who remembers what you said at 2AM when your guard was down.

The bet is that the coaching is the product and the habit tracking is just the substrate that gives the coach something real to reason about. A generic chatbot resets every session; Isaac is designed so that by week four, talking to him feels like texting a mentor who never forgets.

Eight archetypes, one soul

Isaac has a constant soul: a fixed philosophy and a hard set of voice rules (never uses corporate filler, never breaks character, leads with questions, names the emotion before the logic). What changes is the voice, modulated across eight personality archetypes:

Commander · Strategist · Visionary · Catalyst · Sage · Guardian · Executor · Maverick

Each archetype is a distinct coaching register. The Commander is a drill sergeant with respect: short, punchy, "you said X, you did Y, what's the gap?" The Strategist is a chess coach who shows the framework. The Sage runs Socratic dialogue. A user is typed through an onboarding quiz into a primary and secondary archetype, and Isaac blends them 80/20. The soul never bends; only the delivery adapts to the person.

The hard part: a memory that earns trust

The architecture I'm most proud of is the five-layer memory, because it's what makes Isaac feel like he knows you rather than just retaining a transcript:

  1. Identity: Isaac's soul and rules. Never changes.
  2. User profile: archetype, trait scores, goals, life context. Updates weekly.
  3. Relationship map: what works and what falls flat with this specific person, trust level, the inside references that emerge over time. Updated through reflection.
  4. Patterns: recurring behavioral loops and emotional signatures, with a confidence score and an intervention attached to each.
  5. Working memory: current focus, open threads, promises the user made, and Isaac's private notes he holds back until they'll land.

Every system prompt is assembled from these layers plus the last few conversations. And critically, the memory is self-updating: a reflection pipeline can run at the configured interval to extract new facts, confirm or challenge patterns, and decide Isaac's next opener, and a weekly synthesis (a Sunday cron job) writes growth scores, extracts the user's stated principles into a vault, and surfaces the blind spot the data implies.

Grounded in behavioral science, not vibes

The data model encodes real frameworks rather than generic positivity. Patterns and goals carry a Transtheoretical-Model change stage (precontemplation → maintenance) so Isaac matches the intervention to readiness instead of pushing action at someone who isn't there yet. Goals use WOOP / implementation intentions. Conversations track cognitive distortions, rumination, and a self-compassion ratio. The coaching adapts to where the person actually is.

Under the hood

Flow: profile, goals and stored memory → bounded conversation context → Claude reply → background reflection → memory updates and weekly synthesis.

Model names and numeric settings below describe the checked-in implementation, not a verified live deployment configuration.

Application and model routing

Isaac combines an Expo/React Native application with Supabase storage and Deno Edge Functions for chat, reflection, synthesis, and morning prompts. Its Claude client uses the Anthropic Messages API directly. The checked-in configuration defaults to Sonnet 4 for premium chat and Haiku 4.5 for other chat; reflection and weekly synthesis use Haiku. These are configurable defaults rather than confirmation of the deployed service. Chat response limits increase with conversation depth, and requests have a configured timeout.

Memory selection and prompt assembly

Continuity comes from explicit application memory. The prompt builder loads the user's profile, relationship and working-memory layers, active patterns, goals, recent conversation summaries, principles, and follow-up intentions from structured database records. It bounds several collections (for example, five recent conversations and fifteen active patterns) and combines that context with up to fifty recent chat messages. The reviewed path does not embed conversations, run vector similarity search, or use a LangGraph agent loop. Its memory is selected by user, recency, and state, then assembled into the prompt.

Reflection and persistence

After a conversation reaches the configured reflection interval, the chat handler can trigger background analysis. The reflection prompt asks Claude for JSON updates to conversation summaries, relationship memory, working memory, patterns, and other coaching context. The handler parses and sanitizes the response before attempting the memory updates, and uses independent settled promises so a failure in one update does not prevent the others. A weekly synthesis function separately turns accumulated context into a structured review. This updates stored state; it does not train or fine-tune a model.

Safeguards and evaluation limits

The implementation includes authentication helpers, input validation, sanitization, response budgets, and in-memory rate limiting. These are useful safeguards, but they do not establish coaching effectiveness, diagnostic validity, or complete production access control. The portfolio can demonstrate the memory architecture with fictional users and synthetic conversations while keeping real coaching data private.

Architecture

  • Client: Expo + React Native + Expo Router. File-based routing across auth, a five-step onboarding flow (intro → quiz → reveal → goals → schedule), the tab app (home, chat, profile, vault), and conversation screens. State in Zustand, animation in Reanimated, styling in NativeWind.
  • Backend: Supabase. Postgres with row-level security across 11+ tables, plus Postgres cron for the recurring jobs. All AI runs in Deno edge functions: chat, onboarding, morning-prompt, reflection, and synthesis, sharing the soul, archetype voices, and prompt builder.
  • The Vault: a knowledge graph. The user's principles, patterns, and conversations are nodes in a force-directed graph with backlinks, an Obsidian-style map of who they're becoming, rendered on-device.
  • Proactive, not reactive. A morning-prompt cron generates a contextual daily opener and pushes it via notifications. Isaac starts the conversation.

The decision that ties it back to the desk: spend has a worst case

An app where every user can trigger unlimited LLM calls is an uncapped liability, exactly the kind of "what does this do on its worst day?" surface a risk desk is trained to see. Isaac handles it on two axes:

  • Model routing by tier and task. Real-time conversation uses Claude Sonnet only for premium subscribers; the free tier and every background job (onboarding, morning prompts, reflection, weekly synthesis) run on the cheaper Haiku. The expensive model is reserved for the one place a human is waiting on the other end.
  • A sliding-window rate limiter on the edge functions caps each user (chat at 30 messages per 10 minutes, morning prompts at two per hour), to bound requests handled by that function instance. These in-memory limits are not a shared ceiling across instances or restarts.

Monetization runs through RevenueCat, and the premium tier is what unlocks Sonnet, so the cost structure and the business model are the same decision.

Status

A complete, working iOS build shipped to TestFlight: auth, onboarding, the full coaching loop, the vault, and the recurring jobs all wired to real data.

There's also a live, read-only web demo: a web version of Isaac signed into a fully-seeded sample account, no signup. Every write and spend path is disabled, the chat send most of all, since that's the only path that costs an LLM call. So the entire interface is explorable by anyone and the public URL can't run up an API bill: the worst-day question, answered before the link goes out.

What broke

Isaac's whole point is the memory: five layers updated through background reflection. For the first stretch of real use, none of them updated. Ever, for anyone. The reflection job was gated on messageCount % 6 === 0, and at the point in the code where that check ran, the count was always odd. The pipeline was tested, reviewed, and deployed, and it never fired once in production. No error, no crash, just memory tabs that stayed quietly empty while the app pretended to know you.

The fix was one character of arithmetic, which is the humbling part. The lesson was in what came with it: reflection now also fires when a conversation ends instead of trusting a single trigger, and the eight memory-layer updates moved from all-or-nothing to settle-what-you-can, so one failed layer cannot silence the other seven. A crash would have been caught in a day. A silent skip took real usage to find. The failures that cost you are the ones that do not announce themselves, and now I instrument for absence, not just errors.