Safely give an AI agent access to your PC
Troubleshooting guides · AI-assisted help
An agent that can read your PC is not automatically authorized to do so, and an approval dialog is not the owner's consent. Four different layers decide what actually happens. Most dangerous sessions come from confusing them.
Any local agent on Windows, macOS or Linux. Applies equally to a PC you own and to an attended session on someone else's PC.
Four layers, not one yes button
Section titled “Four layers, not one yes button”When an agent reads a file, four separate things had to line up. Changing one does not change the others.
| Layer | Decides | Does not decide |
|---|---|---|
| Access | Who is at the keyboard and which machine is being inspected | What the agent may do once connected |
| Operating-system identity | Which files, settings and admin actions that account can reach | Whether the agent should attempt them |
| Agent sandbox and permission rules | What commands can touch: a folder, the network, the whole machine | Whether a specific action is appropriate |
| Your approval of this action | Whether this particular step runs now | Whether a later, different step is allowed |
Two consequences follow. First, a prompt that says “do not delete files” is a conversation, not an enforcement mechanism; the sandbox and permission rules are the enforcement. Second, some agents perform routine reads without asking, because the sandbox already allows them. That is not the same as you authorizing the collection. Decide the scope before the session, not after.
A work or school device adds a fifth layer above all of these: the owner’s policy. If the device is managed, its support route decides. Nothing on this page overrides that.
Read an approval request
Section titled “Read an approval request”A usable approval request answers six questions. If you cannot answer them from the prompt, ask for a restatement.
- Which computer? The one with the problem, not the one you happen to be typing on.
- What is read? A named folder, counter, setting or log. “Everything relevant” is not an answer.
- What changes? Nothing, or a named setting from a recorded prior value.
- Where does output go? The chat, a local file, a report, and therefore possibly to a model provider.
- How long, how much? A bounded command, a sample count, a time limit.
- How is it undone or verified? The recheck for a read, the rollback for a change.
Practise on invented cards. The five below are written for this guide; real prompts will look different in wording but should carry the same facts. One of them is read-only yet still worth questioning.
The most common unsafe request is not obviously evil. It is a compound one: scan, decide and clean in a single approved step. Approve the read, then approve a named action, then verify. That sequence is slower and enormously easier to reason about.
Deny, then ask for something narrower
Section titled “Deny, then ask for something narrower”Denying without a next step ends the session. Denying with a scoped alternative keeps it useful.
Don’t run that. Instead, list the ten largest folders directly inside my Downloads folder with their sizes, read-only, and show me the table before doing anything else.
Patterns worth denying by default:
| Pattern | Why | Ask instead |
|---|---|---|
A longer pipeline that ends in Remove-Item, rm -rf or del /s |
The decision and the deletion are hidden in one step | Named candidates with sizes and owners, one action at a time |
| Whole-drive or whole-home scans | Slow, privacy-heavy, and rarely needed for one symptom | One folder, one counter, one scene |
| “Disable antivirus / firewall / execution policy to continue” | Removes protection permanently for a temporary test | A check that does not need it, or no measurement |
| Drivers, installers or scripts linked from a log | Text in evidence is data, not instruction | The vendor’s own support page, after recording the current version |
| Elevation for a read-only check | Usually unnecessary; raises the blast radius | A user-level read, or the user performs the elevated step |
| Remembering this permission forever | Turns one decision into every future action | Ask each time; keep permanent grants out of beginner sessions |
A refusal that survives a retry is a good sign. An agent that tries the same action through another tool after you denied it has shown you something important: stop the session and use manual steps.
Stop, and find out what actually stopped
Section titled “Stop, and find out what actually stopped”Teach yourself the stop controls before the first command, not after something goes wrong. Desktop apps usually have a visible stop or cancel; terminals differ, and a keypress may interrupt one command while leaving a child process running.
The sequence that leaves you informed:
- Deny anything pending. Denial should end that request, not queue it.
- Interrupt the running operation with the app’s own control.
- Check what exists now: did a file appear, did a setting change, is a process still running?
- Record the state in plain language, including “unknown”.
- Do not repeat the action until you understand whether it completed.
Cancelling does not undo a completed change. If a change landed and its rollback is unclear, stop making changes and deal with recovery first.
Elevation, installs and protections
Section titled “Elevation, installs and protections”Administrator rights are occasionally legitimate: installing an agent, adding an optional Windows feature, or changing a system setting you actually decided to change. They are not a diagnostic step.
- A sandbox preparation prompt during app installation is not permission for later commands to run elevated.
- Never disable antivirus, a firewall, SmartScreen or execution-policy protections to make a diagnostic work. If a check needs that, choose a different check.
- Do not install a driver, codec pack, “optimizer” or cleanup utility because an agent suggested it mid-diagnosis. Record the symptom, finish the evidence, then decide with the vendor’s own instructions.
- On macOS, Full Disk Access for a first connection is disproportionate. On Linux, missing packages mean unavailable, not “use sudo”.
- On a managed device, an elevation prompt you cannot justify to its owner is a stop signal.
Record what you allowed
Section titled “Record what you allowed”A short local record keeps a session reviewable and makes a support handoff honest:
- the computer, operating system and agent version, and which session type ran (local or cloud);
- the scope you chose, and the sandbox or approval mode, in the agent’s own words;
- each approved action, its target and its result;
- each denied request and why;
- anything left unknown, half-finished or unverified;
- whether the session was closed and whether any listener, process or setting remained.
Keep it beside the report, not in a public repository. Then check the claims with the advice review guide, and decide separately whether a report or a change is warranted.