← Build an AI Team Lesson 8 of 12

A computer for each bot

One laptop, one set of files

Right now, when a bot runs a command, it runs on your laptop, with your files. Its own folder keeps its memory and keys apart, but its commands can reach everything you can. One wrong command from one bot can delete another bot's work, or yours.

Step through. Marketing is asked to “clean up old files”.

What if each bot had a computer of its own?

A computer inside your computer

A container is a small, separate computer that runs inside your laptop, made with a free tool called Docker. It has its own files. Commands run inside it can't see your laptop's files, and deleting something there deletes nothing of yours. Hermes calls this a sandbox.
what happens in the sandbox stays in the sandbox

Run the same command in each place. Compare.
$ rm *_old.csv

your laptop

Marketing's sandbox

Hermes also locks the container down: no extra system powers, and a cap on how many programs it can start.

First, Docker itself.

Install Docker

On a Mac or on Windows, install the free Docker Desktop app and start it. On Linux, or inside WSL2's Ubuntu, one command installs it. Then check with a tiny test container: if it prints a hello message, Docker works.
install Docker → docker run hello-world

Pick your laptop.
  1. Download Docker Desktop from docker.com and install it.
  2. Start it, and wait until it says it's running.
  3. On Windows, in its settings, turn on WSL2 for your Ubuntu.
  4. In your terminal (Ubuntu on Windows):
docker run hello-world

The second Linux line lets you use Docker without typing sudo every time.

Docker works. Now move a bot into it.

Switch a bot to its sandbox

Where a bot runs its commands is one setting in its own config.yaml: terminal.backend. It starts as local (your laptop). Set it to docker, and Hermes starts a container for that bot the first time it needs one, and keeps it for next time. Each bot gets its own.
terminal.backend: local → docker

Switch each bot. See its setting.

But now the bots can't share files at all.

Share one folder, on purpose

Some work has to pass between bots: Production writes the packing list, Operations reads it. So you mount one chosen folder into each container that needs it: the same folder, seen from inside. Everything else stays out of reach.
a bot sees only the folders you mount

Mount folders into Operations' sandbox. See what it can reach.

your laptop

Operations' sandbox

Files a bot makes anywhere else stay inside its container. To hand you a file, it must save it in a mounted folder.

One more thing: how big is each sandbox?

Set its limits

Containers share your laptop's memory. So give each one a cap with container_memory, in MB (1,024 MB = 1 GB), so one runaway bot can't freeze the laptop. Everything must fit together:
memory caps + local model + you ≤ laptop memory
4 bots × 1 GB + an 8 GB model + 3 GB for you = 15 GB: fits in 16 GB.

Set the numbers. Does it fit?
GB

In config.yaml: container_memory: 1024. container_cpu and container_disk cap processor and space the same way.

Count it on new numbers.

✏️ Practice 8.1

Remember:
memory caps + local model + you ≤ laptop memory
1,024 MB = 1 GB. Allow 3 GB for you and your apps.

Work each one out. Type the answer, press Check.
4 bots, each with container_memory: 1024. How many GB can the sandboxes use in total?
Same bots, a 16 GB laptop, a local model using 8 GB, 3 GB for you. How many GB are left?
Same setup on an 8 GB laptop. How many GB are left? (It can be below zero.)
8 GB laptop, an online model (0 GB), 3 GB for you, 4 bots. You want at least 2 GB spare. Which cap: 512, 1,024 or 2,048 MB? Type the biggest that fits.

And when the sandbox won't start?

When it goes wrong

Most sandbox problems are Docker not running, permissions, or a file in the wrong place. Read the error, then match it.

Match each problem to its fix.

Checked against Hermes Agent v0.23 (November 2026). See the Hermes Docker docs if a setting has moved.

Quick check: did it all make sense?

Lesson 8 test

5 questions, one for each idea in this lesson. Answer them all right to pass. A wrong answer tells you why, and which page to look at again.

1. WhyEach bot already has its own profile folder. Why does it need a sandbox too?
2. PredictA sandboxed bot runs rm *_old.csv. What happens to your laptop's files?
3. HowHow do you move Production into a sandbox?
4. Find itOperations says it saved labels.pdf, but it isn't on your laptop. Why?
5. Fits?16 GB laptop, local 8 GB model, 3 GB for you, 6 bots with 2 GB caps. Does it fit?

What's next.

Out of the house

Each bot now works in its own sandbox, sharing only the folders you chose. Tick what you've really done:

An order just came in, and you're at the market. How do I tell you?

This leaves a question
Your team lives on your laptop. How do you reach it when you're out?
Lesson 9 answers it.
For your business: which folders should each bot see? List them, and mark the ones two bots must share.