In September, Headway released our first app for patients on the App Store. It took a lean team three months to build a mobile app from scratch for a complex platform in a highly regulated industry.
Our mission at Headway is to build a mental healthcare system everyone can access, and a mobile app has been on our wish list for a long time. More than three-quarters of patients we surveyed told us that they’d rather manage their care from their phone than anywhere else.
When I joined Headway in late May, I had one goal: to get the first version of the patient app out as quickly as possible while meeting our high bar for the patient experience. I’m proud to say that we delivered an app that lets patients view and receive notifications of upcoming appointments, join telehealth appointments, message their providers, and see their cost estimate and deductible progress before booking.
I’ll walk through the constraints we faced in building the app and how we strategically used healthcare-safe AI to overcome them, plus the unique aspects of Headway’s culture that make it possible to move fast without compromising quality.
Building an app from scratch in a highly complex, highly regulated industry
I joined Headway specifically because I was excited by the opportunity to work on a zero to one product at a successful company. I’m always fascinated by zero to one efforts and the common themes that contribute to success or failure, but I’m most interested in the constraints. And Headway has many interesting constraints I hadn’t encountered before.
Healthcare-specific data regulations
As a company that works in the healthcare industry, Headway is responsible for storing, facilitating, and generating Protected Health Information (PHI) and must comply with the Health Insurance Portability and Accountability Act of 1996 (HIPAA), along with related state and federal laws and regulations. Headway restricts access to PHI to the minimum necessary, and requires that each employee has a legitimate business use prior to accessing the data. Using PHI impacts which third-parties we can work with, how we leverage AI and, most importantly, requires us to be extremely careful as we build and integrate new tooling.
We’re required to execute a HIPAA-mandated business associate agreement (BAA) with every third-party who may interact with PHI, the negotiation of which can involve a significant investment of time and capital.
Even when a BAA is in place, vendor terms may limit our ability to use third-party services. For example, when Anthropic released Fable 5 without zero-data retention, we couldn’t use it for development because the model was excluded from BAA coverage.
No mobile infrastructure
Aside from a few experiments, Headway had never built a mobile app before, so we had to quickly set up a lot of infrastructure specific to mobile:
- CI, CD, and build tooling
- Healthcare-safe AI tooling and skills
- Processes for working with the App Store, like facilitating invites for TestFlight and managing Headway’s registration on App Store Connect
- AI-native end-to-end testing
- Mock and testing data suitable for mobile testing that as close enough to the real backend services to be valuable
Some of these problems were interesting, but a lot of this frankly felt like a necessary tax to pay before we got to focus on the important product work.
No computer use
In my personal projects, Codex and Claude computer use and the embedded simulators in the AI agent apps are a huge productivity boost for E2E testing apps. But computer use is currently a dangerous surface area for accidental PHI leaks, so we’ve chosen to keep it out of our development workflow at Headway.
This meant that any E2E testing had to come from other UI automation that was more indirect and required more code to get working. Almost all of our local E2E testing was custom tooling built on top of local CLIs and MCPs.
Healthcare product state complexity
There is a lot of complexity in healthcare products! I was new to healthcare when I joined Headway and had never previously had to deal with requirements around telehealth, insurance, or documentation expectations before and after an appointment. For every possible state, we had to build a flow and UI and test each potential combination thoroughly to make sure they matched designs to spec, all without impeding iteration and shipping speed too much.
To give color to the complexity, here are some examples of the dozens of states we had to build for. (All of the following screenshots are mockups and contain no actual patient information or insurance details.)
Telehealth
Telehealth had 53 possible states, including camera and microphone permissions, muted or unmuted, waiting in the waiting room for the provider to join, and connectivity issues.

Insurance
Insurance had 25 possible states, including coverage warnings, expired insurance, errors specific to a given state’s coverage, deductible met or unmet, and out-of-pocket maximum met or unmet.

Appointments
Appointments had 27 possible states, including scheduling appointments with an existing or new provider, pre/post-consultation calls, in-person directions or telehealth join links, pre-appointment requirements, and pre-appointment check-ins.

What made it work
There were a few factors that made it possible for us to move quickly while managing all of our constraints.
A high-ownership, high-enablement culture
Headway’s culture is the meta-enabler that made it possible to build the app quickly given all these constraints.
Our leadership trusted us to solve each problem however we thought best. Unlike companies that say you can change things, but don’t mean it, Headway is willing to completely forego existing practices if that’s what the situation calls for.
Any time I went to someone to propose a solution to unblock us on whatever we were dealing with, they did whatever they could to handle it. For example, our insurance team built an entirely new endpoint specifically for the mobile app so we could avoid multiple API calls to vend the state for one view.
People are also generous with their time and knowledge. The people who worked on earlier efforts to prototype an iOS app (including our CTO, Arnaud) were always available to give me context that helped speed up development.
Headway also doesn’t limit token usage (or enforce tokenmaxxing). Being able to use Cursor and Claude Code without worrying about how much I was using just removed one more thing to worry about while I was trying to move as quickly as possible.
Eddy, Headway’s healthcare-safe AI platform
PHI is a constraint for all of our development, not just on mobile, which is why Headway engineers developed Eddy, our healthcare-safe AI platform. Eddy provides much more controlled access to data, company information, and development processes than general AI agents like Claude, Cursor, and ChatGPT, and it was huge for unblocking me.
Eddy is useful both as a development agent and a repository of company knowledge. It cut down a lot of the manual information hunting I had to do in previous roles. Here are some of the types of questions I asked it:
- “What are all of the previous Google docs and Slack conversations related to the telehealth backend that would help inform mobile implementation?”
- “What is the best Slack channel to post in for reviewing this PR that changes this webview rendered during patient onboarding?”
- “What are the differences in how Headway uses product test environments vs Development servers?”
- “What’s the standard Datadog sample rate for applications across Headway?”
- “How do I expense an Uber for this work event?”
Revyl
The one third-party vendor we were able to onboard during development was Revyl, an AI-driven end-to-end mobile testing tool that integrates nicely with Cursor Cloud. Cursor has some constraints with Linux cloud VMs that prevented us from doing iOS development with their cloud agents.
Revyl unblocked that and also gave us a great tool for end-to-end testing flows that was faster and more efficient than our local XcodeBuildMCP / AXe workflows, while freeing up local resources for the testing that required a human in the loop.
Prior experience with full-stack systems
Before I started working on iOS apps professionally, I spent over a decade on everything from networking infra to data warehouses to full-stack API/UI systems. My experience helped me quickly figure out the best tools and abstractions in the stack to solve particular problems, even if I hadn’t encountered them before.
For example, I had to make decisions around whether to use existing APIs or design new ones just for mobile (it depended on the case!). Or I had to decide whether it was better to make updates to our React frontend directly (with downstream team dependencies and review overhead) or implement custom client-side logic in our webview via injected scripts. Often it was the latter, especially for changes like hiding the nav and footer on webviews that needed to be on every view, but we also made changes with the blessing of our web teams to improve layouts, unify product tracking data, and tighten design within the small container of our webviews.
How we used AI to unblock gaps and bottlenecks in tooling and testing
As we were first bootstrapping the entire iOS SDLC, we employed AI where we saw unique opportunities to safely and securely fill gaps in tooling and testing.
E2E telehealth testing harness
Telehealth was one of the app’s most important features (Headway patients need to be able to attend their appointments!), but it was also the product area where I felt most out of my depth. There is so much complexity in video chat software, including things like:
- Camera and microphone permissions
- Memory footprint and app performance during audio/video streaming
- Safely closing connections and any async streams of data
- Real-time messaging during the session
- Enabling a two-sided experience: one on the web for providers, one on mobile for patients
I decided to use a variety of AI tools to build a custom end-to-end harness that tested telehealth calls from both the provider and patient sides, including the chat experience during the session.
I recorded a HAR file that captured all the necessary API calls while I navigated through the provider scheduling flow in our testing accounts. This gave us a way to bypass a lot of the UI navigation required to schedule an appointment and quickly bootstrap the test appointment. Then I combined that optimized event creation sequence with Playwright navigation for the provider to join the telehealth call.
Simultaneously, I used the XcodeBuildMCP CLI to log in and navigate to a test patient account associated with the test provider. The patient joined the call, and depending on which video vendor they were assigned to (Daily or Zoom), went through the associated UI flow.
After joining, XcodeBuildMCP would do things like go through the permissions flow for camera and microphone, mute/unmute, toggle and flip the video stream, message the provider, monitor the perf and memory, and then automatically close the call after a specified amount of time.
Implementing telehealth with Daily took a few weeks because of the amount of testing involved, but because we had built the harness, adding Zoom later on took a third of the time because we had such strong E2E verification.
Debug screens and feature flag overrides
We built a system of debug screens that made automated testing really easy, even with all the states we had to test for. The screens could do things like reset onboarding, toggle networking environments, surface anything wrong with our push notifications configuration, override feature flags, and test forced or suggested upgrades.

This helped us ensure we were carefully rolling out features to our testing group and that all of the gates and initial app states were covered when we tested them with XcodeBuildMCP or Revyl. The E2E tests could manually toggle or override states locally to make sure we covered all possible edge cases for certain UI and app states.
Claude Design, Figma MCP, and snapshot testing
We had to translate an enormous amount of components, tokens, and screens from designs to code. Using HTML/ZIP exports from Claude Design and the Figma MCP sped up the feedback and creation loop. Snapshot image testing of all the key components and every app screen meant we could loop an agent on the output of the UI code and compare it against the design assets.
I also used Claude Design to design internal native apps for reviewing large PR stacks and the feature flag override functionality in the app.
Looking toward the next phase of the roadmap
We’re really proud of everything we accomplished in the initial release. But we’re also excited about what’s coming next.
Our vision is to make the Headway app the best destination for finding and receiving integrated care. To get there, we’re:
- Crafting and polishing: We’re using Claude Design to make interactive tools for dialing in interaction design in the app. Taking inspiration from stuff like DialKit, we’re building our own flavor of UI tweaks specific to Headway’s UI interactions and explorations. We also have various skills for creating isolated prototypes in a separate dev app that we can later “promote” to the main app after exploration and testing.
- Expanding AI end-to-end testing: We want to build internal tooling that lets us create on-demand patient state to test all flows without specific instructions, getting us closer to “software factory”-adjacent workflows and expanding the pool of Headway product engineers who can contribute to iOS.
- Exploring other iOS verticals: Next year, we want to laterally scale our iOS infrastructure to expand our mobile footprint with an app dedicated to providers.
- Adding more features around the patient care journey: Our motivation for mobile was to create a new way to meet patients where they are at any time, and we have a lot of great stuff planned for reaching patients in between sessions to help them reach their goals.
If you want to work at a company where individuals get the freedom, support, and resources they need to take on hard, important problems, we’re hiring!




