Ownership·4 min read·Oct 23, 2026

How we keep an AI agent away from your production keys

Clearloom Fix lets you report a bug in plain language and get a verified fix. Here's what the agent that writes the change is given, what it never holds, and how a change reaches your live app.

Clearloom Fix is a self-service product for the apps Clearloom builds. When something in one of your apps isn't working, you describe the problem the way you'd describe it to a colleague and paste in a screenshot or two. An AI agent reproduces the problem, finds the cause in the code, and makes the change. The change is then checked, and it ships only after those checks pass.

The first question any owner should ask about this, and the first one your IT provider will ask, is what that agent can reach. We designed Fix on the assumption that the agent might make a mistake, and that someone might try to mislead it, for example by hiding instructions inside a bug report or a screenshot. So the protections don't rely on the agent behaving well. They rely on which credentials it's given, and the ones that could do real damage are never given to it.

Where the agent does its work

Each fix runs in a disposable sandbox, which is a temporary, isolated computer created for that one request and discarded afterward. The sandbox holds a copy of one app's code. Nothing from any other app or any other customer is in it.

To download that copy of the code, the system uses an access token that only works on that one repository and expires shortly after it's issued. Before the agent starts, the token is removed from the downloaded copy, so the agent has no credential it could use to push changes anywhere. The agent is also instructed not to commit, push or create branches, and not to try to reach deployment systems.

What the agent never holds

These credentials never enter the sandbox:

  • The credential that deploys code to your live app.
  • The connection details for Clearloom's own databases, which hold workspace records, bug reports and billing.
  • The key to the payment system.
  • The master credential that lets Clearloom issue repository access tokens in the first place.

Your app still has to build and run inside the sandbox, because the checks described below are meaningless if the app can't start. That means it needs its own configuration settings. By default it's built with the app's preview settings, the ones used for test versions of the app, which normally point at test infrastructure. Some apps need a few production settings to start at all, and for those the database setting can be pinned to a non-production database while everything else comes from production. If the system can't honor that pin, the run stops before the agent begins, because continuing would put unshipped code next to your live records.

The worst case we design for is an agent that has been misled completely. Even then, it can't deploy anything or reach the payment system, and whatever code it writes still has to pass the same checks as any other change.

How a change gets checked

When the agent finishes, its only output is a set of edited files inside the sandbox. Everything that happens next is done by separate code that Clearloom runs after the agent has stopped.

That code runs your app's own checks against the change. The type checker confirms that the pieces of code still fit together. The build confirms the app compiles into something that can run. The automated browser tests click through the app the way a person would and confirm that it still behaves as expected. Which of these checks are required is set for each app, and if any required check fails, nothing is deployed. If a check that isn't required fails, the run record says so, which lets you see exactly which checks a change passed.

Everything written to the run record passes through a filter that removes access tokens before it's stored or shown to you.

How a change reaches your live app

By default, a change that passes its checks stops at a working preview of your app with the fix applied, so you can see it running. Nothing is deployed at that stage.

An app can be set up to go further once the checks pass. In that case the same separate code commits the change to a new branch, opens a pull request that records a summary of the change and the checks it passed, and deploys it as a preview. Release to production then waits for an owner in your workspace to approve it. Only an app that has been deliberately set to release automatically goes straight to production, and that setting is off unless someone turns it on for that app.

Committed changes live in the app's repository, which belongs to you, so every change Fix ships is a commit you can read.

Questions to ask about any AI tool that changes your code

If you're evaluating this kind of product from any provider, these questions will tell you most of what you need to know:

  1. Which credentials does the agent hold while it works?
  2. Can the agent deploy its own changes, or does something else do that after verification?
  3. What has to pass before a change ships, and who decides that?
  4. Does the agent's working environment touch production data?
  5. Where is the record of what changed, and who owns it?

Start with what you're paying for today

Fix works on the apps we build. If you'd like to see which of your current tools an owned app could replace, our free SaaS audit is a practical first step. It's a 15-minute call. You share your last three months of software invoices, and we return a ranked list of what to cancel, what to consolidate, and the projected savings. You keep the list whether you work with us or not. You can book it at clearloom.ai/audit.

Next step

Want the real numbers for your own stack?

Send us three months of software invoices. We'll come back with a ranked kill-list and the 12-month ROI math. Free.

Book the audit