Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Where Is Your Agent Working?

Coming back after a break? Take a five-minute warm-up on Section 1 before you start.

When an agent works on a task for you, it’s using a computer somewhere. Sometimes that’s your own computer, and sometimes it’s a computer that belongs to the company behind the agent. Where it works decides what it can reach and what happens when you close the window. It’s also the clearest way to tell apart the kinds of agents you’ll hear about.

On Your Own Computer

Some agents work right on your computer, with your own files. Coding agents such as Claude Code and Codex are the clearest example. You open one in a project folder, and it reads and changes the files there. They’re built for code, but people use them for documents and spreadsheets as well. Some desktop chat apps can also work this way when you give them a longer task and pick a folder on your computer, such as a folder of sales reports to pull into one summary. Either way, the agent works only in a folder you chose.

An agent working here can reach whatever you’ve given it on your computer. If you hand it a whole folder, it can open every file in it, including ones you weren’t thinking about when you asked, and it may change or delete them. Many apps ask before deleting, but don’t count on it. An agent working on your computer usually stops when you close the app or your computer goes to sleep.

The Model Still Runs on the Company’s Computers

Answer this before you read on. A coding agent on your laptop reads a client contract in your project folder. Does the contract’s text stay on your laptop?

No. The file stays in your folder, but the agent sends the contract’s text over the internet to the model, which runs on the company’s computers.

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

00:00 Where Is Your Agent Working?

00:03 When an agent works on a task for you, it’s using a computer somewhere. Sometimes that’s your own computer. Sometimes it’s a computer that belongs to the company behind the agent.

00:13 Where it works decides what it can reach. It also decides what happens when you close the window.

00:19 Some agents work right on your computer, with your own files. Coding agents, such as Claude Code and Codex, are the clearest example. You open one in a project folder, and it reads and changes the files there.

00:32 They’re built for code, but people use them for documents and spreadsheets as well. Some desktop chat apps can also work in a folder you pick. Either way, the agent works only in a folder you chose.

00:44 An agent working here can reach whatever you’ve given it. If you hand it a whole folder, it can open every file in it. That includes files you weren’t thinking about when you asked.

00:54 And it may change or delete them. An agent working on your computer usually stops when you close the app, or when your computer goes to sleep.

01:02 Here’s a question. A coding agent on your laptop reads a client contract in your project folder. Does the contract’s text stay on your laptop? No. The file stays in your folder.

01:15 But the agent sends the contract’s text over the internet to the model, which runs on the company’s computers.

01:22 Even when the agent works on your computer, the model behind it doesn’t. The app runs on your computer and opens your files. The model runs on the company’s computers.

01:32 So the app sends it the text of whatever it reads. That could be a spreadsheet, or a whole folder of reports. Some small models can run entirely on your own computer.

01:43 But the models behind ChatGPT, Claude, and Gemini don’t.

01:48 Other agents work on a computer in the company’s data center, set up for your task. When you ask a chat assistant to take on a bigger job, it often works there.

01:57 For example, you might ask it to research five vendors and write up a comparison. An agent in the cloud can’t see the files on your laptop by itself. It works with what you upload, a web browser of its own, and the apps you’ve connected, like your email or calendar.

02:13 The files it creates stay in the app until you download them. And because the computer isn’t yours, the agent can keep going after you close the window.

02:22 Some desktop apps mix the two. The agent works in the cloud, but the app on your computer lets it reach a folder you picked. That only works while the app is open.

02:32 Close the app, and the agent keeps going in the cloud. But it can’t reach your folder anymore.

02:38 App builders turn a plain-words description into a working app or website, like a sign-up page for a client workshop. You keep asking for changes, often without reading the code.

02:48 App builders also work on the company’s computers. The app gets built there, and it stays there. When you publish it, anyone with the link can use it, unless you limit who can open it.

02:58 And whatever people type into it is usually stored there too. So there are three places an agent can work. Your own computer, its own computer in the cloud, or inside an app builder.

03:10 In all three places, the model runs on the company’s computers. So the text an agent reads travels there, wherever the agent works.

03:19 Closing the window stops an agent only when the agent was running inside that window. To stop a cloud agent, look for a stop or pause button in the app instead.

03:28 The same goes for always-on agents, which work toward a goal for hours or days. A later lesson covers them. So before you hand an agent a task, ask where it works.

03:39 That tells you what it can reach, and whether it keeps going when you leave. Below this video, you can try four cases. For each one, decide where the agent works, and what happens when you close your laptop.

Become a Member to join the conversation.