Skip to content
Maxwell CollinsContact

The Witness, an iPhone app that walks a person back to calm by voice

A native iPhone app with a voice-guided sitting practice, a one-tap SOS and a daily lock-screen line.

What it achieved

One tap or a request to Siri starts a voice that talks a person back to calm.

The short version

One tap or a request to Siri starts a voice that talks a person back to calm, from the home screen or the lock screen. Nothing needs reading or typing. Maxwell built The Witness, a native iPhone app in Swift and SwiftUI. Its home screen is a voice-guided minute of sitting. A one-tap SOS lets a person name the moment without typing and talks them through a return. A lock-screen widget shows a new line each day, in three sizes. Everything stays on the phone, and it counts returns instead of streaks, so a missed day never shows as a broken chain.

The problem

A person most needs help at the moment they are least able to use a typical app. They can't read paragraphs, write a journal entry or find their way through menus. Most wellness apps also work against their users, rewarding streaks, shaming misses and chasing time in the app.

In use

  1. They open the app and see one question, what is here right now, and one button: Sit.
  2. A spoken, step-by-step minute guides them with eyes closed.
  3. In a worse moment they tap SOS, from the app, the lock screen or by asking Siri.
  4. They pick a word for what is happening without typing, and a voice talks them back.
  5. The return is logged. A missed day never shows as a broken chain.

What it achieved

  • Help is one action away from anywhere: from the home screen, the lock screen or Siri, a single action reaches a spoken return to calm.
  • Built for the moment a person can't use an ordinary app: nothing to read or type at any step, and the SOS works with no internet connection.
  • A missed day never counts against anyone: the app has no streaks at all and counts returns instead.
  • Everything stays on the phone.

The full record

On this page
In one sentence

Maxwell built The Witness, a native iOS app in Swift and SwiftUI that meets a person in a hard moment and walks them back to calm without asking them to read or type, with a voice-guided sitting practice as its home screen, a one-tap SOS that names the moment and talks them through a return, a daily-rotating lock-screen widget in three sizes, and a hands-free Siri intent that opens straight into the SOS, all local-first and counting returns instead of streaks, measured at 13 Swift files across the app, the widget and a shared module, 33 project files, 18 Markdown documents of 1,541 lines including a 242-line product and engineering spec, a versioned 320-line Constitution of the user's values that feeds the app, and a 206-line study of AI limitations that grounds its AI Guide. He builds by directing AI agents, and he built this system that way.

lines of specification
1,541
Swift files
13
widget families
3
design documents
18

What it does

The Seat: opening the app is the practice

  • One question on open. There is no feed, dashboard or statistics page. The home screen asks what is here right now and offers one button, Sit.
  • A voice-guided minute. Sit starts a guided drop of about sixty seconds, spoken aloud by the system voice (AVSpeech) step by step, so it works with eyes closed and needs no reading.
  • Returns, not streaks. Each sit is logged, and the screen shows a count of returns. The data model has no streak type at all, so a missed day can never show as a broken chain.

The SOS: built for the worst moment

  • One tap. A button labeled for the moment of being overwhelmed opens the SOS from the home screen, from the lock-screen widget, or by voice through Siri.
  • Name the storm, without typing. The first step is naming what is happening. One-tap chips, drawn from the user's own recorded patterns, let them name it without a keyboard; typing is there if they want it.
  • A spoken return. The app reflects that naming the storm is already the first step back, then speaks a guided return of about a minute.
  • Logged as a Return. Each SOS is recorded with what the storm was and how the user reached it.
  • Offline always. The SOS never depends on a network or on the AI Guide.

The lock-screen widget

  • A witness line every day. WidgetKit shows one line from the user's Constitution, chosen by a fixed daily rotation so the same day always shows the same line.
  • Three widget families. An inline line, a rectangular card with a title, and a larger serif card, each tapping straight into the Seat.
  • A seven-day timeline. The widget schedules seven entries ahead, so it updates without the app being opened.

The Siri intent

  • Hands-free. An App Intent lets a person tell Siri they are spiraling. The intent sets a pending-SOS flag, and the app opens directly into the SOS flow, with no screen to read first.

Data that stays on the phone

  • Local-first and fail-closed. Sits and returns are stored as local JSON on the device, decoded fail-soft so a damaged record never locks the user out. The specification calls for encrypted on-device storage and no analytics or tracking of any kind.
  • The only network call is the Guide. The specification defines a thin, stateless proxy on Hono and Cloudflare Workers that holds the model key, receives the minimum slice of the Constitution needed for one turn, stores nothing, and fails closed to local fallbacks if unreachable. Logs are append-only with injected time, so the record of returns cannot be quietly rewritten.

The Constitution and the AI Guide

  • A versioned Constitution of 320 lines, the user's own document, organized into values, teachings, patterns, early warning signs, a description of a good day and the witness lines, with dated addenda as it evolves. It is the source for the widget's lines, the SOS chips and the Guide's grounding.
  • An anti-hallucination Guide. The specification defines an AI companion that may reflect only what is in the Constitution and the logs, must cite which entry it draws on, never asserts the user's inner state or anyone else's motives as fact, and keeps replies short in a hard moment.
  • A deterministic guard layer. A plain-code check rejects and regenerates any reply that makes unsupported claims about people, flatters without grounding, or recommends more app use over real-world action.
  • Grounded in a study of AI limits. A 206-line document works through nine limitations of language models, from missing grounding and bluffing to sycophancy and specification-gaming, and how a harness answers each. The Guide's rules come from it.

The wider product, specified

The 242-line spec defines six core surfaces plus a learning room, each mapped to a real struggle: the Seat; the Day, a good-day compass with a one-tap "next right thing"; the SOS; the Constitution; a Check-Engine that catches early warning signs on write; the Guide; the Open Hand, a 90-second practice for letting go; the Promise Desk, which catches the jump from one missed promise to a verdict on self-worth and steers toward specific, keepable promises; the Return Log; and the Well, an audio-first library of curated talks with clean import and theme shelves.

What it achieved

  • A native iOS app in 13 Swift files and 539 lines of Swift across three targets (the app, the widget and a shared module), with a XcodeGen project file so it builds with one command.
  • Every path to help, from the home screen, the lock screen and Siri, reaches a guided return in one action, with no reading or typing required.
  • A product specification, a Constitution and an AI-limitations study (18 Markdown documents, 1,541 lines) that make the app's rules explicit and testable.

The problem it solves

The moment a person most needs help is the moment they are least able to use a typical app: they cannot read paragraphs, type a journal entry or navigate menus. Most wellness apps also work against their users, rewarding streaks, shaming misses and optimizing for time in the app. The Witness is designed for the fall as the primary case. It works without calm, willpower or reading, it treats a miss as information instead of a verdict, and its measure of success is that the user needs it less over time.

How he built it

  • Design laws first. Six laws in the spec override every feature: help the user see, never cheer or flatter; build for the fall; the practice matters more than the app; no verdicts, only data and return; epistemic humility, enforced; success means needing it less.
  • Anti-features enforced, not hoped for. No streaks, no comparison or social feed, no engagement loops, and friction that routes rapid repeated opens out to the body, a person or the ocean.
  • The OS is the product. Native SwiftUI, WidgetKit, App Intents and AVSpeech were chosen because the core features (one-tap voice SOS, the lock-screen line, the Siri phrase) are deep system integrations.
  • Deterministic everywhere it can be. The widget's rotation, the guard layer and the warning-sign detection are plain code; the model only writes words, inside rules it cannot override.
  • Maxwell built it by directing AI agents.