Coding agents and AI tools

Is Windsurf HIPAA Compliant? Does Windsurf Sign a BAA?

Last reviewed: . Vendor facts checked against each vendor's own pages on the dates shown.

Short answer: Not on any plan we could confirm: as of November 15, 2026, Cognition, which owns Windsurf (now Devin Desktop), does not say on the public pages we checked that it signs a BAA, and its terms say not to process medical information. (Windsurf (now Devin Desktop, Cognition AI): public pages we checked (26 pages), verified November 15, 2026) (Windsurf (now Devin Desktop, Cognition AI), Platform Terms of Service | Cognition, verified November 15, 2026) Build with made-up (synthetic) patients only, and keep real records in BAA-covered hosting and databases.

Windsurf is what Cognition calls an agentic IDE: a code editor with a built-in AI agent that writes and edits the code in your project. (Windsurf (now Devin Desktop, Cognition AI), Cognition’s acquisition of Windsurf | Cognition, verified November 15, 2026) If your vibe-coded app outgrew a browser builder, Windsurf may be where you carry it on.

The name has changed. Cognition agreed to buy Windsurf in July 2025 (Windsurf (now Devin Desktop, Cognition AI), Cognition’s acquisition of Windsurf | Cognition, verified November 15, 2026) and now says “Devin Desktop is the new name for Windsurf.” (Windsurf (now Devin Desktop, Cognition AI), Devin Desktop | Devin, verified November 15, 2026) This page uses both names. Two terms first: PHI (protected health information) is health information that identifies a patient. A BAA (business associate agreement) is the contract HIPAA requires before an outside company handles PHI for your practice. (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026) This is not legal advice; whether HIPAA applies to your app, and what any past use means, is for your privacy officer or counsel.

What Windsurf (Cognition) says, in its own words (checked November 15, 2026)

No BAA we could find. We could not confirm from Cognition's or Windsurf's own pages, as of November 15, 2026, that either signs a BAA for Windsurf or Devin Desktop on any plan. We checked the security page, trust center, terms, Master Services Agreement, data processing addenda, privacy policy, plans, enterprise and federal pages, and searched Cognition's full documentation for HIPAA and BAA. (Windsurf (now Devin Desktop, Cognition AI): public pages we checked (26 pages), verified November 15, 2026)

The contracts say patient data stays out. Cognition's Acceptable Use Policy lists data you must not prompt the service with or upload (Windsurf (now Devin Desktop, Cognition AI), Acceptable Use Policy | Cognition, verified November 15, 2026), including this category:

“Contains regulated health information, including Protected Health Information as defined under HIPAA, unless you have entered into a separate written agreement with Cognition expressly permitting such use.”

That exception refers to a separate written agreement. It is not, by itself, a BAA, and no public page we checked says Cognition signs one. (Windsurf (now Devin Desktop, Cognition AI): public pages we checked (26 pages), verified November 15, 2026) Cognition's Platform Terms, where Windsurf's individual terms now point, say the same thing more broadly:

“You agree not to process any medical information or sensitive personal data such as social security numbers, birth dates, passport information, bank account, and credit card numbers in using the Services.”

Windsurf used to be run by a company called Exafunction, Inc. For people who signed up under Exafunction, Cognition's terms say the contracting company is still Exafunction unless the account was reassigned. (Windsurf (now Devin Desktop, Cognition AI), Platform Terms of Service | Cognition, verified November 15, 2026) Windsurf's Master Services Agreement (MSA), which is with Exafunction, is just as plain: “You agree not to share with us or otherwise process any protected health information.” (Windsurf (now Devin Desktop, Cognition AI), Master Services Agreement, verified November 15, 2026) It also says the services are not designed to process personal data on your behalf. (Windsurf (now Devin Desktop, Cognition AI), Master Services Agreement, verified November 15, 2026) The privacy addenda agree. The Windsurf DPA says no sensitive data is intended to be transferred (Windsurf (now Devin Desktop, Cognition AI), Data Processing Addendum | Devin, verified November 15, 2026), and Cognition's current DPA puts responsibility on the customer if sensitive data is submitted anyway. (Windsurf (now Devin Desktop, Cognition AI), Data Processing Agreement | Cognition, verified November 15, 2026)

What happens to your prompts and code by default.

Badges are not a BAA. Cognition says it has held SOC 2 Type II since September 2024 (Windsurf (now Devin Desktop, Cognition AI), Security at Cognition - Devin Docs, verified November 15, 2026), and Devin Desktop has a separate FedRAMP deployment that runs on AWS GovCloud. (Windsurf (now Devin Desktop, Cognition AI), FedRAMP Security Admin Guide - Devin Docs, verified November 15, 2026) SOC 2 is an outside security audit; FedRAMP is a federal government program. Neither one is a BAA. The rename changed no plans, including legacy Windsurf Enterprise plans. (Windsurf (now Devin Desktop, Cognition AI), Devin Desktop FAQ - Devin Docs, verified November 15, 2026)

Why a coding tool is not where patient data belongs

A vibe-coded app lives in two places. One is where the code is written: Windsurf, its agent, and the AI models behind it. The other is the runtime, where the finished app runs for staff and patients: hosting, database, sign-in, file storage, email and text messages, and any AI model the app itself calls. PHI belongs only in the runtime, under BAAs.

Writing code never needs a real patient. A prior authorization form, a refill queue or a lab-result parser works the same on an invented patient as on a real one. Removing a name is not enough to make a record safe: HIPAA's de-identification standard lists identifiers such as email addresses and medical record numbers that must also go. (HHS (eCFR), 45 CFR 164.514 -- Other requirements relating to uses and disclosures of protected health information., verified November 15, 2026) Inventing the patient from scratch is simpler and safer.

Moving the app to covered hosting changes where the app runs, not what Windsurf sees while you build. Both halves need to be checked separately.

What this means for your app

With Windsurf, patient data rarely gets in because someone chose to share it. It slips in through the work. Check these routes:

  • Files in the project folder. An EHR (electronic health record) export, a scanned referral or a spreadsheet saved as test input. Treat anything the agent can open as something it may send to the model.
  • Seed and test data. Starter records the app loads so screens are not empty. If they were copied from real charts, they ride along in every prompt that touches them.
  • Terminal output. A query run against the live database prints real rows. Paste that output into the chat, or leave it where the agent reads it, and the rows travel with your question.
  • Pasted errors and screenshots. Error messages often include the failed record. A screenshot of the live app may show a patient list.
  • Production credentials. A live database password in a settings file lets the agent read real records while it works. Cognition's policy also lists passwords, API keys and access tokens as data you must not upload. (Windsurf (now Devin Desktop, Cognition AI), Acceptable Use Policy | Cognition, verified November 15, 2026)
  • Features that remember. Under the Windsurf MSA, features an administrator turns on, such as Memories, Remote Indexing and Deploys, may store code snippets and other information. (Windsurf (now Devin Desktop, Cognition AI), Master Services Agreement, verified November 15, 2026) Real data sitting in the project can end up stored with them.

Opting out of training is worth doing, but it changes training and model-provider retention, not the contract. Even with no training and no retention, the terms still bar medical information. (Windsurf (now Devin Desktop, Cognition AI), Platform Terms of Service | Cognition, verified November 15, 2026) Under HIPAA, a company that receives or stores PHI for your practice is a business associate even if it never looks at it. (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026) (HHS (Federal Register via govinfo.gov), Modifications to the HIPAA Privacy, Security, Enforcement, and Breach Notification Rules Under the HITECH Act and GINA; Other Modifications to the HIPAA Rules (Final Rule), 78 FR 5566, verified November 15, 2026)

The runtime is where your app's real data should go. See how Vercel's BAA works or AWS under a BAA for hosting, and the OpenAI API or the Anthropic API if the app itself calls a model.

How this goes wrong: a Teams opt-out nobody made and an indexed schedule export

A hypothetical scenario, assembled from ordinary steps.

Imagine a nephrology group where two physicians are building a dialysis chair-schedule app in Windsurf. The office manager buys a Teams plan and becomes its administrator. She also turns on Remote Indexing, so the agent can search the whole project when it answers questions.

Months earlier, one of the physicians exported the current schedule from the EHR to design the screens: patient names, chair times, the type of dialysis access and hepatitis B status. The spreadsheet still sits in the project folder, and the agent uses it whenever it needs sample rows. She is not worried, because she read that training can be switched off and assumes someone did it.

Nobody did. On the Teams plan, only an administrator can opt out, (Windsurf (now Devin Desktop, Cognition AI), Security at Cognition - Devin Docs, verified November 15, 2026) and the office manager never knew the setting existed. Follow the data:

The gap surfaces during the group's risk analysis, when someone asks which tools have ever held patient data and opens the project folder. Turning on Disable training now changes what happens next, not what already happened. The schedule screens never needed a real patient: a dozen invented patients with realistic chair times and access types would have exercised every rule in the code. What already went in is a question for the privacy officer or counsel, using the steps below. For other kidney-care workflows, see vibe-coded apps in nephrology.

Keep, refactor, or rebuild?

Verdict: Keep or Refactor

Keep, if Windsurf only ever saw invented patients: Windsurf was the pen, not the record, and the code holds no patient data unless real records were saved into it as seed data. If real records reached the project folder, a pasted terminal output or an indexed project folder, the code can usually still stay, but that exposure goes to your privacy officer or counsel first. Refactor where the running app stores or sends patient data through a database, hosting provider or AI model with no BAA in place.

The editor that wrote the code does not decide this. What decides it is where the finished app's data and services live, and what Windsurf saw along the way. If you are weighing a bigger change, Keep, refactor, or rebuild? walks through the decision.

If patient information already went into Windsurf

Do not panic, and do not start deleting. Work through this in order:

  1. Stop the flow. Take live passwords out of the project, move any patient file out of the folder, and pause the agent. Hold off on Memories and similar features until you know what they already contain.
  2. Record what happened. Note the plan, whether Disable training was on, which features were on (Memories, Remote Indexing, Deploys), what data went in, roughly how many patients, and the dates.
  3. Find your contract. Is the account under Cognition's Platform Terms or the older Exafunction agreement? (Windsurf (now Devin Desktop, Cognition AI), Platform Terms of Service | Cognition, verified November 15, 2026) Save a copy of what applied on that date.
  4. Bring in your privacy officer or counsel. HIPAA treats an impermissible disclosure as a presumed breach unless a risk assessment shows a low probability the information was compromised. (HHS (eCFR), 45 CFR 164.402 -- Definitions., verified November 15, 2026) Among the factors: who received the information, whether it was actually acquired or viewed, and how far the risk has been reduced. (HHS (eCFR), 45 CFR 164.402 -- Definitions., verified November 15, 2026) If patients must be notified, that has to happen without unreasonable delay and no later than 60 calendar days after discovery. (HHS (eCFR), 45 CFR 164.404 -- Notification to individuals., verified November 15, 2026) Whether notice is needed is their call, not this page's.

The step-by-step guides for the same situation in other tools apply closely: I pasted patient information into Cursor and I pasted patient information into ChatGPT. See also AI tool sent PHI to a model without a BAA.

A safe way to set up Windsurf for your practice

  • The data

    Synthetic only

    Ask the agent to generate invented patients that match your real field layout, including the cases that break code: hyphenated names, missing insurance, duplicate records. Keep EHR exports, scanned forms and screenshots of the live app out of the project folder.

  • The connections

    No production keys

    Give the agent a development database that only ever holds synthetic rows. Keep live database passwords and API keys off the development machine and out of settings files the agent can read.

  • The settings

    Training off, persistence on purpose

    On a paid plan, turn on Disable training (Windsurf (now Devin Desktop, Cognition AI), Security at Cognition - Devin Docs, verified November 15, 2026); on Teams, ask your administrator. (Windsurf (now Devin Desktop, Cognition AI), Security at Cognition - Devin Docs, verified November 15, 2026) Decide deliberately whether to use Memories and similar features. None of these settings is a BAA.

Then put the app's real runtime under BAAs, and write Windsurf into your risk analysis as a development tool that never receives PHI; HIPAA requires a risk analysis of the electronic PHI your practice holds (HHS (eCFR), 45 CFR 164.308 -- Administrative safeguards., verified November 15, 2026), and the risk analysis template has a place for it. Compare tools in BAA Matrix and run your stack through Stack Checker. The same pattern applies to Cursor, Claude Code and GitHub Copilot.

Frequently asked questions

Is Windsurf HIPAA compliant?

Software is not something any authority certifies as HIPAA compliant. The practical question is whether the vendor will sign a BAA, and we could not confirm from Cognition's or Windsurf's own pages, as of November 15, 2026, that either does. (Windsurf (now Devin Desktop, Cognition AI): public pages we checked (26 pages), verified November 15, 2026) Use Windsurf with synthetic data only.

Is Devin Desktop the same thing as Windsurf?

Yes. Cognition announced on June 2, 2026 that Windsurf is now Devin Desktop (Windsurf (now Devin Desktop, Cognition AI), Windsurf is now Devin Desktop | Devin, verified November 15, 2026), and says existing plans keep working as before, including legacy Windsurf Enterprise plans. (Windsurf (now Devin Desktop, Cognition AI), Devin Desktop FAQ - Devin Docs, verified November 15, 2026) Everything on this page applies under either name.

Is one real patient note OK if Disable training is on?

Not under Cognition's own rules. The opt-out stops training and turns on Zero Data Retention with model providers (Windsurf (now Devin Desktop, Cognition AI), Security at Cognition - Devin Docs, verified November 15, 2026), but the Acceptable Use Policy still lists HIPAA PHI as prohibited data unless you have a separate written agreement with Cognition. (Windsurf (now Devin Desktop, Cognition AI), Acceptable Use Policy | Cognition, verified November 15, 2026) Write a realistic fake note instead; the feature you are testing cannot tell the difference.

Our practice is on a Windsurf Enterprise plan. Does that change anything?

It changes training: Cognition says it never trains on Enterprise data without express prior written consent. (Windsurf (now Devin Desktop, Cognition AI), Security at Cognition - Devin Docs, verified November 15, 2026) It does not create a BAA. If your Enterprise agreement says something different about health data, have counsel read it before any PHI goes in.

My app is hosted on a HIPAA-ready service. Is Windsurf covered too?

No. Covered hosting protects the running app. Cognition is a separate company that receives whatever is in your prompts and the project context the agent reads, so keep that side on synthetic data.

I already pasted a patient's details into Windsurf. What now?

Stop, write down what was shared and which features were on, and tell your privacy officer or counsel, who decide whether a breach assessment and notice are needed. The steps are on the Cursor version of this situation and the ChatGPT version.

Palo Alto Health Labs Fabrica

Keep building. We make it safe.

Building in Windsurf and ready for real patients? Keep building on synthetic data; the conversation is about where the patient data goes.

Fabrica moves the patient data in your vibe-coded app into an environment your practice owns, built for HIPAA compliance, with a BAA. You keep building in the tool you already use. Start with a 30-minute call about what you have built and where patient data goes today.

See how Fabrica works and book a 30-minute call

Please do not send patient information when you get in touch. The call is a conversation, not an audit or legal advice.

Sources

Every vendor statement on this page comes from the vendor's own terms, documentation or trust pages, or from the regulator, opened and read on the date shown. Vendor terms change; confirm the current version and your own signed agreement before relying on it. This page is general information, not legal advice.

  1. Windsurf (now Devin Desktop, Cognition AI): public pages we checked (26 pages). Checked November 15, 2026.
  2. Windsurf (now Devin Desktop, Cognition AI), Platform Terms of Service | Cognition. Checked November 15, 2026. Page dated Last updated: June 30, 2026.
  3. Windsurf (now Devin Desktop, Cognition AI), Cognition’s acquisition of Windsurf | Cognition. Checked November 15, 2026. Page dated 2025.07.14.
  4. Windsurf (now Devin Desktop, Cognition AI), Devin Desktop | Devin. Checked November 15, 2026.
  5. HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  6. Windsurf (now Devin Desktop, Cognition AI), Acceptable Use Policy | Cognition. Checked November 15, 2026. Page dated Last updated: June 30, 2026.
  7. Windsurf (now Devin Desktop, Cognition AI), Master Services Agreement. Checked November 15, 2026. Page dated Last Updated: October 27, 2025.
  8. Windsurf (now Devin Desktop, Cognition AI), Data Processing Addendum | Devin. Checked November 15, 2026. Page dated Last Updated: March 9, 2026.
  9. Windsurf (now Devin Desktop, Cognition AI), Data Processing Agreement | Cognition. Checked November 15, 2026. Page dated Last updated: November 12, 2026.
  10. Windsurf (now Devin Desktop, Cognition AI), Security at Cognition - Devin Docs. Checked November 15, 2026.
  11. Windsurf (now Devin Desktop, Cognition AI), FedRAMP Security Admin Guide - Devin Docs. Checked November 15, 2026.
  12. Windsurf (now Devin Desktop, Cognition AI), Devin Desktop FAQ - Devin Docs. Checked November 15, 2026.
  13. HHS (eCFR), 45 CFR 164.514 -- Other requirements relating to uses and disclosures of protected health information.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  14. HHS (eCFR), 45 CFR 160.103 -- Definitions.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  15. HHS (Federal Register via govinfo.gov), Modifications to the HIPAA Privacy, Security, Enforcement, and Breach Notification Rules Under the HITECH Act and GINA; Other Modifications to the HIPAA Rules (Final Rule), 78 FR 5566. Checked November 15, 2026. Page dated 2013-01-25.
  16. HHS (eCFR), 45 CFR 164.402 -- Definitions.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  17. HHS (eCFR), 45 CFR 164.404 -- Notification to individuals.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  18. HHS (eCFR), 45 CFR 164.308 -- Administrative safeguards.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  19. Windsurf (now Devin Desktop, Cognition AI), Windsurf is now Devin Desktop | Devin. Checked November 15, 2026. Page dated June 2, 2026.