Skip to content
zeeshare.com

writing / FDE and agents

How Claude Code works

How Claude Code worksPart 1

Where Claude runs

On this page
  1. Who talks to whom
  2. The machines in one session
  3. Why a locked workroom at all
  4. From your phone
  5. An example day, logged
  6. What to take away

In short: Picture Claude as a skilled new colleague. Their brain is at head office. They have a desk in the cloud where they do most of the work. They can also use a locked workroom in your house, but only the rooms you unlock. And your phone is a walkie-talkie to talk to them from anywhere. Knowing which is which tells you what Claude can and cannot reach.

This series explains Claude Code with one picture: Claude is a new colleague joining your team. Each part adds one piece, and by the end you will have a setup that works the way you work. Part 2 covers sessions and forks.

Claude model Cloud workspace VM Sandbox VM on your laptop Phone (no VM)

Who talks to whom

Think of it like this: Your colleague thinks at head office, works at a desk in the cloud, and only steps into your house when you hand them a key to a room.

Flip the switches below. See what still works when you move to your phone, when your laptop goes to sleep, or when you unlock a folder.

chat over the internet runs a command on your files Phone Claude app a window only · no VM Your laptop Claude desktop app chat window + bridge to your files Sandbox Linux VM ● running ○ idle sees only folders you connect ~/mnt/projects/ the rest of the laptop stays hidden no folder yet click "Add folder" in the app asleep · offline Claude model Anthropic's servers Cloud workspace VM Linux · per session shell, scratch files, builds, published pages recycled when idle; your files are kept The web through an allowlist
  • Chat with Claude in the desktop app
  • Build files and pages in the cloud VM
  • Search the web (allowlisted sites)
  • Laptop files: connect a folder first
  • Approve a new folder (the prompt shows on the laptop)
  • Use files you attach in the chat
  • The Claude model is the brain. It reads your messages and decides what to do. It runs on Anthropic’s servers, never on your laptop or phone.
  • The cloud workspace is the desk. A small computer in the cloud, made for your conversation. Claude’s own files, tools and builds live there.
  • The sandbox on your laptop is the locked workroom. It runs inside the Claude desktop app and can only see folders you connect.
  • Your phone is the walkie-talkie. You can talk and approve things, but nothing runs on it.

Remember: The folder is the key. Without a connected folder, Claude cannot touch anything on your laptop, even when the laptop is awake.

The machines in one session

Here is what each place looked like in one session. The numbers are examples, and yours will differ.

Cloud workspace VMexample values
Where
Anthropic's cloud
OS
Linux (Ubuntu)
CPU
2 virtual cores
RAM
About 8 GB
Disk
About 30 GB for the session
Network
A private address; the internet only through a proxy with an allowlist
Lifetime
Recycled when idle; the session's files are kept
Sandbox VM on your laptopstarts with a folder
Where
Inside the Claude desktop app
OS
A small, isolated Linux
Sees
Only folders you connect, at ~/mnt/<folder>
Internet
Your organisation's settings, possibly none
Deletes
Blocked until you approve
Lifetime
While the app is open and the laptop is awake
Your phoneno VM
Role
A window into the same session
Runs
Nothing for Claude; just the chat app
You can
Chat, approve requests, open files and pages, attach files
You can't
Grant a new laptop folder; that prompt shows on the laptop
Claude sees
Only files you attach

Why a locked workroom at all

Think of it like this: You would let a new colleague work in your study. You would not hand them the keys to the whole house.

Working on files where they already are is faster than copying them to the cloud and back. The workroom lets Claude do that, while everything you did not unlock stays out of reach.

Inside the fence
  • Folders you connect, such as projects/ or notes/
  • Reading, searching, editing and converting files in them
  • Things only your network can reach, such as a VPN, a LAN machine or an SSH host, if your organisation allows it
Outside the fence
  • The rest of the laptop: Documents, Desktop and Downloads unless you grant them
  • Passwords, keys and the app's own data folders, always
  • Your other apps and your screen
  • Permanent deletes, until you say yes

From your phone

Think of it like this: A walkie-talkie does not change where your colleague sits. It only lets you talk to them from somewhere else.

Opening the same conversation on your phone creates nothing new. The brain, the desk and the files are all the same.

  • Your laptop stays linked. If it is awake with the app open, Claude can still work in your connected folders.
  • If the laptop sleeps, Claude cannot reach it until it wakes. The cloud desk keeps working.
  • You can approve things from your phone, like deleting a file.
  • Unlocking a new folder has to be done on the laptop itself.

Rule: Connect your folders before you leave your desk, keep the laptop awake, and you can steer the work from your phone.

An example day, logged

Think of it like this: The desk can be swapped overnight, like a hot desk, but your colleague’s notebook comes with them.

The log below is invented for this post. It shows one conversation moving between the places above over a few days.

example session · invented for this post
6requests
1page published
2cloud VMs used
1fork subagent
0session forks
Monexplain checkout add a field VM recycled 3 days idle Thuwhich machine? laptop tests fork subagent publish summary example only a session fork here would copy everything up to "laptop tests"

The session outlived its machine. The cloud VM on Monday and the one on Thursday were different machines, with different kernel builds and boot times. The conversation and its files were still there. A session is its history, not a computer.

  1. Mon 09:10cloud VM #1"Explain how the checkout flow works."Read the checkout code and summarised the three steps.ReadGrep
  2. Mon 11:30cloud VM #1"Add a discount code field."Added the field and a test, then ran the tests.EditBash · npm test
  3. Mon → ThuidleNo activity. The cloud VM was reclaimed; the session and its files were kept.
  4. Thu 10:02cloud VM #2"Which machine is this running on?"Checked the cloud VM and asked the linked laptop for its details.Bash · unamedevice info
  5. Thu 10:06sandbox VM on the laptop"Run the tests on my laptop's copy."Asked for access to the project folder, then ran the tests where the files live.folder accessdevice shell · npm test
  6. Thu 10:20fork subagent"Fork yourself to check every form for missing labels."The fork read 40 files and returned a four-item list.Agent · fork
  7. Thu 10:45cloud VM #2"Publish a summary page for the team."Built the page in the cloud VM and published it.publish

What to take away

  • A conversation is its notebook, not a machine. The cloud desk can be replaced and nothing is lost.
  • The brain decides; the desk and the workroom do. Each can only reach what it was given.
  • Your phone is a remote. Your laptop is only reachable while it is awake and a folder is connected.
Under the hood: the technical names
In this postWhat it really is
The brainThe Claude model, running on Anthropic’s servers
The desk in the cloudA cloud workspace: a Linux virtual machine created for the session, recycled when idle, with your files kept
The locked workroomA small, isolated Linux virtual machine inside the Claude desktop app. Connected folders appear at ~/mnt/<folder>. Deletes need your approval
The walkie-talkieThe Claude app on your phone, a window into the same session

This describes the Claude desktop app’s Cowork mode as seen from inside one session in November 2026.

Check yourselfYou are on your phone and ask Claude to edit a file in a folder on your laptop. The laptop is asleep. What happens?

Show the answer

Claude cannot reach the laptop until it wakes. It can still work at its cloud desk, or on a file you attach in the chat.

Words in this post:

  • Model: the part of Claude that thinks and writes.
  • Virtual machine (VM): a computer made of software, running inside a bigger computer.
  • Session: one conversation with Claude and everything in it.
  • Connected folder: a folder on your laptop you have given Claude access to.

Next, Part 2: Sessions and forks explains how your colleague remembers, and how to try two ideas at once.

Setting up Claude Code or AI agents for your team?

I help teams build this: agents, RAG search and Claude Code setups that hold up in production.

See services
Next in this seriesHow Claude Code worksSessions and forks6 min read