Verified in the code on main. Whether each piece is running in production was not checked here.
Accounts
- Staff create an account from a phone number. The member logs in with one word from a pool of wellness-style words. A text link recovers the word.
- Public signup is switched off in code (since 2026-09-28). The join form answers that Mantra is not taking new members.
Conversation
- Web chat at
/chat, with streamed replies.
- Texting over SMS and iMessage through a relay on a Mac that reads Messages. Texts Mantra starts go into an outbox and are pushed to the relay. Sending needs a secret that is set in production only.
- Intake asks what to call the member, what brings them in, and a 1 to 10 rating for today. A free note is optional.
- Replies ask one question at a time and stay under 480 characters. A reply that claims something was logged is checked against what was actually saved.
- Members can set tone and cadence, pause, snooze, resume and opt out. They can correct, dispute or remove facts Mantra holds about them.
Check-ins and tracking
- Eleven playbooks: intake, pre-treatment, post-treatment, post-session feel, weekly check-in, follow-up, instrument recheck, adulting checkup, daily NIR, knee replacement and NIR knee rental.
- Weekly cadence backs off. One check-in is open at a time. A member who has not answered for 21 days is flagged for staff. Program check-ins and reminders go out between 08:00 and 21:00 in the member's time zone.
- Programs: knee replacement (weekly before surgery, daily to day 14, every third day to day 42, weekly to day 90) and a rented NIR panel for the knee (daily minutes).
- Twelve questionnaires: PHQ-9, GAD-7, ISI, ASRS part A, BPI short form, painDETECT, RPQ, FSS, WHO-5, PSS-10, PROMIS Global-10 and PROMIS cognition. A public evaluations page describes them.
- A progress page at
/profile/progress with one curve per score, trend sentences computed in code, and a CSV download.
- Progress photos, stored privately. A vision model comments on framing only.
- Dates and reminders: medication refills, taxes, car and bills, sent only when the member asks.
Sessions and pages
/run gives hands-free spoken guidance and timing for a protocol the member runs on themselves.
/protocols describes the clinic's pressure and light offerings.
Staff and operators
- Staff pages: overview, inbox, jobs, playbook library, sample members and a JSON research export for consenting members.
- Research jobs search PubMed and the web. Staff review the results before anything goes to a member.
- Square webhook ingest and customer sync.
- A read-only MCP endpoint for operators. A Matrix feed of activity, off until a room is set. A fleet of simulated members that gates merges.
Safety
- A keyword screen for self-harm sends a fixed reply, holds the conversation and pages staff.
- A physical symptom such as chest pain gets a gentler reply that points to 911, with no hold.