Fig. 05 · Personal finance / Messaging agent

Reeflect

Personal finance that lives in your texts, where the AI never writes a number.

My role
The iMessage agent: the Photon worker, the turn endpoint, and answering, logging and receipt photos by text. Also budgets, recurring payments and bills, category rules, transfer review and CI
Team
Team of three
Timeline
October 2026
Stack
Next.js, TypeScript, Drizzle, Neon, Gemini, Photon
Status
Live · HackNC 2026
reeflect.app
Reeflect landing page with the headline “Reeflect lives in your texts” beside a sample panel showing a daily spending figure and a balance chart.
Captured Oct 2026 from the public page.

§ 01

The problem

Most budgeting apps ask you to open them, and most people stop. A text thread is already open. But a finance assistant that invents a balance is worse than no assistant at all.

Reeflect answers by text with the same figures its website shows, and is built so that a language model cannot be the source of any number a person reads.

§ 02

System drawing

One text · message → replyDwg RF-005
  1. 01 · iPhoneA text arrivesiMessage · Photon Spectrum
  2. 02 · WorkerRelay onlyno database, no model, no business logic
  3. 03 · Next.js APILook up the figurescode reads balances, bills and budgets
  4. 04 · GeminiWrite the sentencessees labels like {cash_total}, never amounts
  5. 05 · CodeFill in and checkreal values in; a digit scan rejects model-written numbers
  6. 06 · OutReply by textthe same figures the website shows
The model chooses words. Every number in a reply is put there by code.

§ 03

How it came together

Scroll to step through · Mine = my work

  1. Stage 1

    A month as a calendar

    Paydays, bills, subscriptions and spending sit on the days they happen, with a balance line and a per-day spending headline.

    + cash-flow calendar on the workspace’s accounts+ statement imports, parsed by code
    October
  2. Stage 2Mine

    The phone can reach the app

    A worker keeps the iMessage connection open and relays each text to one endpoint in the app.

    + agent-worker: Spectrum connection, relay only+ /api/agent/turn
    One text
  3. Stage 3Mine

    “How am I doing?”

    The agent answers with code-supplied figures: the balance, what is owed before payday, and what is left per day.

    + figures looked up in code+ model writes around labels; digit scan on every reply
    Reeflect
  4. Stage 4Mine

    Log it by text

    Spending is logged from a message, questions about categories and budgets get exact answers, and a receipt photo becomes a proposal that is saved only on yes.

    + “12 lunch” → logged, with UNDO+ category, budget, bill and account questions+ receipt photo → proposed transaction, saved on confirm
    Reeflect

§ 04

Decision log

  1. D-01

    The model never produces a number

    Code works out the figures first. Gemini gets label names and plain-word notes, writes the sentences, and code fills the labels in. A digit scan then rejects any reply where the model wrote a number itself. digitScan.ts ↗

  2. D-02

    The worker only relays

    The process holding the iMessage connection passes each text to the app and sends back the reply. It never touches the database, the bank sandbox or the model, so all the logic lives in one place. relay.ts ↗

  3. D-03

    A texted amount must be in the text

    For “12 lunch”, code extracts the amount from the message and the model only proposes a category. An ambiguous amount gets a question back, not a guess. logSpending.ts ↗

  4. D-04

    Texts and the website cannot disagree

    The reply to “how am I doing?” uses the calendar’s own summary on the same data the dashboard loads, so the two are one calculation, not two. ADR-059 ↗

  5. D-05

    Money is integer cents

    Amounts are stored and calculated as whole cents through one money module, so nothing drifts through floating-point arithmetic. money/index.ts ↗

§ 05

What I built

Built for HackNC 2026 with Jacob Heminway and Simon Ormond. Auth, accounts, statement imports, the calendar on live accounts and text alerts are largely Simon’s work; insights, the Nessie sync and the synthetic data generator are largely Jacob’s.