---
title: "Computer"
description: "Every agent session runs on its own isolated Linux cloud computer with a terminal, filesystem, live computer screen, and browser you can watch or take over anytime."
url: "https://www.thecompany.company/docs/agent/computer"
---

# Computer

> Every agent session runs on its own isolated Linux cloud computer with a terminal, filesystem, live computer screen, and browser you can watch or take over anytime.

Every session in The Company Company runs on an isolated Linux cloud computer with a shell, filesystem, and graphical screen with Chrome. The agent uses it to clone repositories, run tests, start dev servers, browse web apps, click through UI flows, and verify changes visually while your laptop is closed.

## What's on the computer [#whats-on-the-computer]

| Surface | What it gives you |
| --- | --- |
| **Workspace** | Cloned repository checkouts and separate Git worktrees for parallel branches. |
| **Computer** | A live graphical screen with Chrome streamed into the session so you can watch the agent or interact with running apps. |
| **Terminal** | A direct shell on the cloud machine for inspecting files, reading logs, or running commands yourself. |
| **Files & volumes** | Browse workspace files and persistent mounted volumes from the session's **Files** panel. |

> Tell me which workspace path and branch this session is using, and list any uncommitted changes. Don't switch branches or edit files.

<a id="watch-or-take-over-the-live-desktop" className="docs-scroll-anchor" />

## Watch or take over the live computer screen [#watch-or-take-over-the-live-computer-screen]

Agents use the Computer screen and browser to start local apps, click through flows, and verify visual changes before reporting back.

- **Preview a local dev server:** Ask the agent to start your app on the session machine and open its local URL in Chrome on **Computer**. The cloud machine's `localhost` is separate from your own computer's.
- **Step in anytime:** Select **Take control** on **Computer**, which opens it full screen, then click or type to test a flow, sign in to a site, or complete 2FA. Hold Esc or select **Release control** to stop. When the agent pauses on a handoff card waiting for you, select **Done** to hand control back or **Cancel** to decline.
- **Access rules:** Anyone with view access to the session can watch **Computer** live; sending clicks or keystrokes requires edit access to the session (and, on a shared machine, edit access to the session that owns it).

> Start the storefront dev server in this worktree and open its local URL on Computer. Tell me which port it uses so I can inspect the page.

## Parallel branches with worktrees [#parallel-branches-with-worktrees]

When multiple sessions or subsessions share one cloud computer, keep each branch in its own **Git worktree** instead of switching branches in the main checkout so parallel runs do not overwrite each other's files.

1. ### Check the current state [#check-the-current-state]

   Ask the agent to report the repository path, active branch, and any uncommitted changes before editing.
2. ### Work inside a dedicated worktree [#work-inside-a-dedicated-worktree]

   Create a worktree for the task branch, install dependencies inside it, and run builds and tests there. Never symlink `node_modules` or build caches across worktrees.
3. ### Clean up when finished [#clean-up-when-finished]

   Verify there are no uncommitted changes, stop any background processes you started, and remove the worktree once your work is pushed or merged.

> In the storefront repo, create a separate worktree from the default branch for the checkout fix. Install dependencies and run the checkout tests there without touching other worktrees.

Worktrees isolate files, not running processes, ports, or environment variables. When parallel work needs process or port isolation, give the [subsession](/docs/agent/sessions#subagents-and-subsessions) its own dedicated computer or a snapshot copy.

## Sleep, wake, and persistence [#sleep-wake-and-persistence]

Cloud computers pause automatically when idle and wake when the agent or you return to them.

- **Wake manually:** Select **Wake** in **Computer** to reconnect to a paused machine.
- **What survives sleep:** Files on disk and mounted volumes persist across sleep, while running processes (such as dev servers or watchers) stop.
- **Long-running commands:** Tell the agent when a build or test suite needs to run in the background so it keeps the machine alive until the job completes.
- **Back up uncommitted work:** Push commits to Git or save outputs to persistent storage before replacing a machine or ending a long task.

## Next steps [#next-steps]

- [Environments](https://www.thecompany.company/docs/code/environments.md): Configure repositories, setup scripts, and warm snapshots for new computers.
- [Secrets](https://www.thecompany.company/docs/code/secrets.md): Inject encrypted credentials as scoped environment variables.
- [Sessions](https://www.thecompany.company/docs/agent/sessions.md): Share, fork, or spin up dedicated computers for subsessions.
- [Permissions](https://www.thecompany.company/docs/agent/permissions.md): Understand confirmation boundaries and connector tool policies.
