Skip to main content

Vibe-coding in the enterprise: what your platform has to enforce

· 8 min read
Ruben Fiszel

An agent can now build an internal tool, a workflow or a small app in a few minutes, and the people asking it to are no longer only engineers. Finance, ops and support teams are doing it today, whether IT has approved a tool or not. Generating the code is no longer the hard part. The hard part is everything after it: what the app is allowed to touch, who checks it, how it reaches production, and who still owns it a year from now.

This post is the written version of our talk at Generation AI Paris on December 1, 2026. It covers six properties we think any enterprise vibe-coding platform has to enforce, whether you build your own or buy one. We build one of those platforms, so the last section shows how Windmill implements them, but the rest applies to any of them.

The problem is not the code​

Shadow IT has always existed: a spreadsheet with macros, an Access database under someone's desk, a cron job on a forgotten VM. Vibe coding changes the volume and the reach. A non-developer can now produce in an afternoon what used to take a contractor a month, and that code can call your CRM, your data warehouse and your payment provider.

Banning it doesn't work, because the productivity gain is real and people route around bans. Letting it run free doesn't work either, because the first leaked API key or the first script that writes to the wrong table ends the experiment for everyone.

So the job of the platform is to make the safe path the default one. Six properties get you most of the way.

1. Keep everything as code​

Models are best at writing code, and code is the only format the rest of your controls already know how to handle. Code can be diffed, reviewed, tested, versioned in git and scanned by the same tools your engineers use. A drag-and-drop canvas produced by an agent is much harder to review, and a prompt is not reproducible at all.

Code also keeps you portable. If what your teams built lives as files in a repository, you can move it, audit it or rewrite it without asking a vendor. Every other property on this list is easier to enforce when the artifact is plain code.

2. Give the agent the context a developer has​

An agent's output is only as good as what it can see. A developer joining a team gets the type definitions, the list of approved integrations, the conventions, and a way to run their code before shipping it. The agent needs the same: the schemas of the resources it can use, the scripts the team already maintains, written instructions, and a loop where it runs and tests what it wrote.

This is also where you set the paved road. If the approved way to call the CRM is a shared, reviewed integration that the agent can see, it will use it instead of asking the user to paste an API key. Guardrails that live in the context steer the agent before anything needs to be blocked.

Meet builders in the tools they already use. Developers will want to work in Claude Code, Cursor or their own editor, while business teams want a chat in the browser. A platform that forces everyone into one proprietary chat box gets bypassed, and bypassing it is how shadow IT starts again.

3. Isolate every experiment​

Most vibe-coded attempts are thrown away, and that's fine as long as they never touched production. Every session should run on an isolated copy: its own fork of the workspace or project, where the agent can create, break and retry without affecting what others rely on.

Isolation applies to execution as well as to code. Unreviewed code should run on workers or machines that can only reach development systems, not next to production jobs that hold production credentials.

4. Least privilege for the author, the agent and the running app​

There are three identities here, and they are often confused:

  • The author: the person asking for the app.
  • The agent: what it can read and call while it builds.
  • The running app: who the deployed code executes as, and which secrets it holds, once real users start clicking.

The agent should act with the author's permissions, never more, so scoping a team also scopes its AI. The running app is where most incidents happen: a tool deployed with its builder's personal credentials, or a public link that exposes data to anyone holding the URL. Decide explicitly whether an app runs as its publisher, as a service account or as the viewer, and keep production secrets out of the places builders can read.

Permissions also apply to authoring itself. Someone assembling flows from approved building blocks doesn't need the right to write arbitrary code, and the platform should let you draw that line per team.

5. Review by blast radius, promote deliberately​

Agents produce code faster than any team can review it. If every change waits for a senior engineer, the review queue becomes the bottleneck and people find a way around it.

So sort changes by what they can break. A personal, read-only dashboard can ship on its author's say-so. Anything that writes to a production system, talks to customers or handles money goes through review and an explicit promotion to production. The platform has to make that rule enforceable, not a convention: direct deployment to production disabled, a named group that can approve, and a diff they can actually read.

Promotion also has to handle configuration. Code moves from dev to prod, but the dev database credentials must not come with it.

6. Every app has an owner and a trail​

This is the cost nobody puts in the business case. After two years of vibe coding you have hundreds of internal apps, and some of them belong to people who have left the company. When one breaks at 3am, someone has to know what it does, who uses it and what changed last.

Every app needs an owner (a team, not just a person), a version history you can roll back, and an audit log of who deployed what and who ran it with which inputs. Without that, you've built shadow IT with a faster compiler.

What this looks like in Windmill​

Windmill is an open-source platform for scripts, flows and apps, and it can be self-hosted. Here is how it maps to the six properties. The guide to letting business teams build with AI safely combines them into one setup.

PropertyIn Windmill
Everything as codeScripts, flows and apps are code and YAML, synced to your repository with Git sync
Context for the agentAI sessions see the workspace's scripts, resources and skills, follow workspace instructions, and run what they build in a live preview. Locally, wmill init generates the context files for Claude Code or Cursor
IsolationEach session can run in a workspace fork, and worker groups keep unreviewed code on separate workers
Least privilegeThe AI acts with the user's permissions, workspace roles separate composing from writing code, and run on behalf of sets who a deployed item executes as
Review and promotionProtection rulesets disable direct deployment, and changes reach production from a reviewed diff in a dev workspace or through a pull request
Ownership and auditItems live in folders whose permissions are granted to groups, with version history and audit logs

Protection rulesets, custom roles, locking a production workspace and full audit logs are Enterprise Edition features.

A checklist to take home​

Whatever platform you use or build, ask these questions about it:

  1. Is what people build stored as plain code you can diff and move?
  2. Does the agent see your approved integrations and conventions, and can it run what it writes?
  3. Does every experiment happen on an isolated copy, on workers that can't reach production?
  4. Can you say, for any deployed app, who it runs as and which secrets it holds?
  5. Is review required by rule for changes that can break something, and only for those?
  6. Does every app have an owning team, a version history and an audit trail?

If the answer is yes to all six, you can let the whole company vibe-code.

Windmill Logo
Windmill is an open-source and self-hostable code-first platform for workflows, apps and AI agents, running on the fastest self-hostable orchestrator. Engineers write code in 20+ languages, business teams build with AI, and engineers review and promote what ships.

You can self-host Windmill using a docker compose up, or go with the cloud app.