Vibe Coding with Guardrails: A Real-World Field Study

Vibe Coding with Guardrails: A Real-World Field Study

Vibe coding at work: an employee with zero programming skills builds tools with Claude – kept safe by guardrails, a strict pipeline and human sign-off.

Too much jargon?→ Look it up in the glossary

Let's call him Max Power (name changed by the editors). Max can't code. At all. He doesn't know what a variable is.

What he does know is every process in his department, inside out. Every exception, every rule, every "but we always do it this way". I, on the other hand, understand about as much of his field as Max does of programming.

That's the classic problem. The business side knows what it needs. IT knows how to build it. In between: endless meetings, requirement documents and misunderstandings.

I got to follow an experiment at a company that aims to close exactly this gap. The idea: Max doesn't explain to me what he needs. He explains it to the AI. And the AI builds it.

There's a word for this by now: vibe coding. Programming by feel – you describe what you want, the AI writes the code, and you don't even read it. Its reputation matches. People think of apps with open back doors, passwords in plain text and databases anyone can read.

Vibe coding in a company? A headline nobody wants to read. But the trick isn't to forbid Max from doing it. The trick is to build a railing around it.

The setup: a workplace with a railing

Max got two things. First, Claude Desktop, Anthropic's chat app, on his computer. Through it he steers Claude Code (Anthropic's programming tool), which runs in a sealed-off cloud environment – not on Max's computer.

Second, an account on GitLab, a platform where code is managed and versioned. Role: Developer. Meaning: the AI may propose changes in Max's name, upload them and submit them for review. It's no more allowed to merge them into the main codebase than Max himself is.

IT stored the access key (a so-called token) directly in the cloud environment. Max has never seen it. He never has to type it, never has to paste it into a chat. And Max's permissions only cover his own project – not the whole building.

The guardrails

The core isn't the tools, it's the rules. They're stored centrally, and Claude gets them in every session. They apply to the AI just as much as to Max. The most important ones:

  • Never straight into the main codebase. Every change goes onto its own branch and is submitted as a merge request – a request to adopt the change. Technically enforced, not just politely asked.
  • No passwords in the chat. If one shows up anyway, it isn't used – it has to be replaced.
  • Install nothing. If a tool needs extra software, the AI writes a list for IT. A human does the installing.
  • When in doubt, don't delete. Ask instead.
  • What the AI can't solve becomes a ticket. With an owner and a deadline, not a note lost in the void.

Sounds like bureaucracy. It is. But don't worry: the AI handles all of it in the background on its own, once everything is set up. Max doesn't notice a thing.

The process: loops until everything is green

Max describes in plain language what he needs. No jargon, no specification.

Claude builds the tool, creates a branch and uploads the change. The first bouncer is already waiting at that point: a data protection filter. If it spots customer data or credentials sent along by accident, GitLab rejects the upload. The data then never even reaches the repository (the versioned code archive).

If the change gets through, Claude opens the merge request. From there, the pipeline takes over – an automated testing track that runs on every change:

  1. Tests check whether the code does what it should.
  2. A code review by a second AI from a different provider reads the code critically. Whoever checks their own work tends to miss the same mistakes twice – humans and machines alike.
  3. A security audit looks for holes someone could use to get in.

If anything turns red, Claude reads the findings, fixes them and uploads again. The pipeline runs again. Until every stage is green. Max doesn't need to understand any of it.

Only then does the merge request land with an experienced developer. They look it over, ask questions, approve – or don't. For sensitive processes, someone from the business side reviews it too, such as the head of the department. As many pairs of eyes as needed.

The new division of labor

The exciting part isn't that AI can write code. It's the division of labor that results.

Max brings the domain knowledge. The AI brings the craft. The pipeline brings the discipline. The developer brings the judgment. Nobody has to be able to do anyone else's job.

The developer no longer needs every business process explained in detail. They get tested code and review it.

The biggest win, though, is speed. Classically, weeks pass between a wish and the first result: write up the requirements, find a meeting slot, wait, discover a misunderstanding, start over. Now Max sees within minutes what's being built. If something's off, he steers right away. And the follow-up questions don't arrive by email three days later – they come straight from the AI, while Max is still deep in the topic. That speeds up development enormously.

On the side, this defuses a problem many companies know: shadow IT. The Excel macros and makeshift solutions sitting on some network drive that nobody knows about and that retire along with the colleague who built them. Here, no tool gets past the repository – and so none gets past tests and approval either.

Where the limits are

You need your own IT. Someone has to set up and maintain permissions, pipeline and rules properly.

The final approval is only as good as the human behind it. If the developer eventually just clicks through because everything is green anyway, the whole chain was pointless. The routine problem with approvals applies here too.

It isn't free. Claude Code currently requires a paid subscription or the API (the programming interface, billed by usage). The second AI for reviews costs money per run as well. GitLab's Community Edition is free – the server and its upkeep are not. GitHub has a free allowance that runs out quickly with many pipeline runs.

The real sticking point: knowing what you want

For all the guardrails, there's one thing no pipeline can check: whether Max ordered the right thing in the first place.

The AI doesn't replace thinking about the process. Describe it vaguely and you get neatly tested, security-audited nonsense, signed off by two AIs. Every stage green. Still useless.

And here's the part many people skip: this has nothing to do with AI at all. Software projects between humans have been failing exactly like this for decades. If a developer doesn't know what to build, they sit in the office twiddling their thumbs – or diligently build the wrong thing. The only difference is the currency: with humans you burn salary, with AI you burn tokens (chunks of text, roughly syllable-sized – AI providers bill by how many go in and come out).

AI doesn't make this problem smaller. It just makes it visible faster. If you couldn't say what you needed before, you can't with AI either. You just get the proof after ten minutes instead of three months.

So the same rule applies to Max as to any requirements document: think first, then describe. What goes in? What should come out? What happens with exceptions? Answer that, and you get a useful tool. Don't, and all you get is code.

Want to try it?

Is there someone at your company who knows their processes better than any developer? They don't need a programming course. They need a railing.

If the setup looks familiar: this blog is made following a very similar pattern – AI writes, the pipeline checks, a human signs off. When projects this different end up with the same setup, something like a best practice seems to be taking shape.

Start small. One project, one employee, strict rules – or a private project first, where you try out the principle yourself. And make sure the human at the end really looks.