Which permission mode should an AI test agent run in?
On this page
Pick the permission mode for an AI test agent by the cost of its mistakes: use a read-only planning mode while you explore, an ask-first mode for most test writing, an accept-edits mode once you trust the project and review the diff, and no approvals only inside a disposable sandbox. The mode is the main control over what the agent can change.
This guide maps the common modes to test work, adds the controls around them (folder trust, site approvals, review points) and ends with a decision table. Probeflow Desktop is in preview and used as the example.
What does a permission mode control?
It controls which actions the agent may take without asking you. An agent that writes and runs tests does consequential things: editing files, running commands, opening pages, and sending prompts to a model. A mode sets the default answer to “may I do this?” for each of them. It does not make the agent more or less capable. It decides who is in the loop.
A mode is not a sandbox. A mode governs asking; a sandbox governs what an action can reach after it runs. Treat them as two layers.
Which modes exist and what do they mean for tests?
Probeflow Desktop’s documentation lists three modes, plus one that is not yet available.
| Mode | What it does | Good for |
|---|---|---|
| Plan | Read-only: the agent plans and changes nothing | Exploring an unfamiliar app, agreeing a test plan |
| Ask (default) | Asks before every consequential action | First sessions on a project, new test areas |
| Accept edits | Edits to project files go through; other actions still ask | Rewriting a batch of tests you will review as a diff |
| Auto | Not available yet | Not applicable |
| Bypass | Never asks; only inside an OS sandbox or Docker, after confirmation | Throwaway environments only |
The useful split for test work is between editing files, which you can review and revert in version control, and running things, which can touch real data and real sites. Accept edits relaxes the first and keeps the second behind approval.
Diagram From read-only to never asking
- PlanRead-only; changes nothing
- AskDefault: asks before consequential actions
- Accept editsProject file edits go through
- BypassOnly inside a sandbox or Docker
What should you decide before choosing a mode?
Three things matter more than the mode name.
- Is the folder trusted? A newly opened folder is in Restricted Mode in Probeflow Desktop: no session can start, and project instruction files, project agents and skills, connectors and the commands in the project settings file are not read or run until you trust the folder. A repository you just cloned is not yours until you have looked at it, because instruction files can steer an agent.
- Where do the tests run? Local development, a shared staging site and production need different caution. Never point an agent at an environment where a mistake costs money.
- Who reviews the result? If tests land in a pull request, edits can be looser. If they land on main, tighten up.
How should site access work for a test agent?
Default to closed. In Probeflow Desktop the agent may open localhost and your project’s own addresses without asking. For any other site it asks, and you can choose Allow once, Always for this project, or Deny, which is remembered. An “allow every site” setting exists, is off by default, needs confirmation and applies to every folder.
For testing, that default fits. The agent needs your app, not the open web. A page from an unknown site can carry text meant for an agent, so each new site is a decision, not a convenience. Local AI test agent: what it sends, what to keep on your machine covers the data side of the same decision.
What are review points and when do they help?
A review point stops the agent for your review before a chosen stage. Probeflow Desktop lets you choose any of the plan, the cases, the scripts or the run. They are optional.
They are most useful when the mode is loose. If you run Accept edits, a review point before the run gives you a chance to read the scripts before anything executes. If you run Ask, you may not need them. For what to look for when you read generated tests, see AI test generation for Playwright.
Which mode fits which task?
| Task | Suggested setup | Why |
|---|---|---|
| First look at an unknown repository | Restricted, then Plan | Nothing runs; you read the plan |
| Writing tests for a new feature | Ask, review point before scripts | You see each action and the scripts |
| Repairing many broken locators | Accept edits, review the diff | File edits are cheap to revert; see self-healing test scripts |
| Running against shared staging | Ask, site approvals on | Real data is at stake |
| Unattended batch in a throwaway container | Bypass inside the sandbox | Mistakes are contained |
Doing this in Probeflow Desktop
Probeflow Desktop, a local AI test agent, is in preview and has no public installer yet, so this section describes its documented design, not something to download. It starts folders in Restricted Mode, offers the Ask, Accept edits and Plan modes with Ask as the default, and records every approval and action in the session transcript. The details are in its documentation on projects and permissions. Its command line can also run your tests without any model, so CI needs no permission mode at all.
Sources
- Probeflow Desktop documentation: Projects and permissions, checked 2026-11-27
- Probeflow Desktop documentation: Browser and approvals, checked 2026-11-27
- Probeflow Desktop documentation: Command line and CI, checked 2026-11-27
- Probeflow Desktop product page, checked 2026-11-27
Frequently asked questions
What are permission modes for an AI test agent?
A permission mode decides which actions the agent may take without asking you. A cautious mode asks before every consequential action, a middle mode lets file edits through, and a read-only mode lets the agent plan but not change anything.
Which permission mode is safest for a new project?
Start in the mode that asks before every consequential action, and keep the folder restricted until you have looked at what it contains. Loosen the mode only after you have seen how the agent behaves on that project.
Should an AI test agent be allowed to open any website?
No. Allow the local app and your project's own addresses, and approve anything else one site at a time. A test agent rarely needs the open web, and pages it reads can contain instructions aimed at the agent.
When is it acceptable to turn off all approvals?
Only inside an operating system sandbox or a container you can throw away, because a mistake changes real files and sites. Even there, keep a record of every action so you can review it afterwards.