Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion features/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h1 class="f-title rise">Everything a <span class="dim">software</span> <span cl
</span>
<span class="menu-icon b"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3 20 7.5v9L12 21l-8-4.5v-9z" /><path d="M12 12 20 7.5M12 12v9M12 12 4 7.5" /></svg></span>
<strong>Sandboxes</strong>
<p>A fresh Linux machine for every session, in Apple's container runtime or Docker, from an image you can make your own.</p>
<p>A fresh Linux machine for every session, in Apple's container runtime, a Firecracker microVM or Docker, from an image you can make your own.</p>
<span class="more">Look inside <span aria-hidden="true">→</span></span>
</a>
<a class="reveal" href="/features/linear/">
Expand Down
40 changes: 27 additions & 13 deletions features/sandboxes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<title>Claude Code sandboxes: a fresh machine per session · fctl</title>
<meta
name="description"
content="Every fctl session gets a Linux sandbox of its own: a lightweight VM with Apple's container on a Mac, Docker elsewhere, from fctl's image or one of your own."
content="Every fctl session gets a Linux sandbox of its own: a VM with Apple's container on a Mac, a Firecracker microVM or Docker on Linux, from any image."
/>
<link rel="canonical" href="https://fctl.sh/features/sandboxes/" />
<meta property="og:title" content="Claude Code sandboxes: a fresh machine per session" />
<meta property="og:description" content="A fresh machine for every session, in Apple's container runtime or Docker, from an image you can make your own." />
<meta property="og:description" content="A fresh machine for every session, in Apple's container runtime, a Firecracker microVM or Docker, from an image you can make your own." />
<meta property="og:url" content="https://fctl.sh/features/sandboxes/" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="fctl" />
Expand Down Expand Up @@ -46,7 +46,7 @@
<h1 class="f-title rise" style="--d: 60ms">A fresh machine <span class="dim">for</span> <span class="hot">every session.</span></h1>
<p class="f-lede rise" style="--d: 140ms">
Each session gets a Linux sandbox of its own on one of your runners: a lightweight VM on a Mac, a
container anywhere else. fctl clones the repository into it, runs the project's setup script, and lets
Firecracker microVM or a container on Linux. fctl clones the repository into it, runs the project's setup script, and lets
Claude Code work there without stopping to ask for permission. The sandbox is the boundary.
</p>
<p class="f-actions rise" style="--d: 220ms">
Expand All @@ -71,12 +71,12 @@ <h1 class="f-title rise" style="--d: 60ms">A fresh machine <span class="dim">for
<div class="reveal">
<span class="num">Apart</span>
<strong>One per session</strong>
<p>A VM of its own with Apple's container on Apple silicon, or a container in Docker, OrbStack or Colima.</p>
<p>A VM of its own with Apple's container on Apple silicon or Firecracker on Linux, or a container in Docker, OrbStack or Colima.</p>
</div>
<div class="reveal">
<span class="num">Quick</span>
<strong>Up in seconds</strong>
<p>From an image the runner already has, with the project's package downloads kept between sessions.</p>
<p>From an image the runner already has, with the project's package downloads kept between sessions on Apple container and Docker runners.</p>
</div>
<div class="reveal">
<span class="num">Sized</span>
Expand All @@ -86,7 +86,7 @@ <h1 class="f-title rise" style="--d: 60ms">A fresh machine <span class="dim">for
<div class="reveal">
<span class="num">Yours</span>
<strong>Your own image</strong>
<p>Use fctl's, name one in a registry, or let runners build it from a Dockerfile in the repository.</p>
<p>Use fctl's, name one in a registry, or let Apple container and Docker runners build it from a Dockerfile in the repository.</p>
</div>
</div>

Expand All @@ -100,7 +100,7 @@ <h2 id="inside">Everything a developer has, nothing it shouldn't.</h2>
environment variables.
</p>
<ul class="f-list">
<li><strong>Nothing of the host.</strong> No home directory, no keys, no other session: Docker's sandboxes don't even reach each other.</li>
<li><strong>Nothing of the host.</strong> No home directory, no keys, no other session: Docker's and Firecracker's sandboxes don't even reach each other.</li>
<li><strong>Gone when done.</strong> An idle session's sandbox stops after the project's idle timeout. A message brings it back.</li>
<li><strong>It knows its size.</strong> fctl tells the agent its CPUs and memory, so that builds and test runs fit.</li>
</ul>
Expand All @@ -127,8 +127,9 @@ <h2 id="inside">Everything a developer has, nothing it shouldn't.</h2>
<h2 id="dockerfile">Purpose-built, from your own Dockerfile.</h2>
<p>
When a project needs more than the default image, keep the recipe next to the code. Name a Dockerfile
or a <code>devcontainer.json</code> in the repository, and each runner builds the image the first time a
session needs it, then again only when the recipe or the directory it copies from changes.
or a <code>devcontainer.json</code> in the repository, and each Apple container or Docker runner builds the
image the first time a session needs it, then again only when the recipe or the directory it copies from
changes.
</p>
<p>
Here milkfloat's sandboxes add the solvers its benchmarks compare against, and maturin for its Python
Expand Down Expand Up @@ -164,8 +165,8 @@ <h2 id="dockerfile">Purpose-built, from your own Dockerfile.</h2>
<h2 id="settings">Set up once, the same every time.</h2>
<p>
A setup script runs in the fresh clone before the agent starts: <code>npm ci</code>, <code>cargo fetch</code>,
a database migration. With package caches on, each runner keeps the project's downloads, so the
script fetches only what is new.
a database migration. With package caches on, each Apple container or Docker runner keeps the project's
downloads, so the script fetches only what is new.
</p>
<ul class="f-list">
<li><strong>Caches for the usual suspects.</strong> npm, pnpm, Yarn, Bun, Cargo, uv, pip, Go modules and Playwright's browsers.</li>
Expand All @@ -181,11 +182,13 @@ <h2 id="settings">Set up once, the same every time.</h2>

<section class="f-section wide" aria-labelledby="drivers">
<div class="f-copy reveal">
<h2 id="drivers">Apple container on a Mac, Docker everywhere.</h2>
<h2 id="drivers">Apple container on a Mac, Firecracker on Linux, Docker everywhere.</h2>
<p>
Runners use what their machine has. <code>fctl host install</code> looks, and picks: Apple's own
<code>container</code> runtime on a Mac with Apple silicon, Docker on Linux and on any Mac that prefers it.
Either way the agent gets the same Linux, the same image and the same tools.
On Linux with KVM, <code>--driver firecracker</code> gives each session a microVM of its own instead, for
now as an experiment.
Whichever it is, the agent gets the same Linux, the same image and the same tools.
</p>
</div>
<div class="f-drivers">
Expand All @@ -200,6 +203,17 @@ <h3>Apple container</h3>
<dt>caches</dt><dd>A directory on the Mac, mounted into each sandbox</dd>
</dl>
</article>
<article class="reveal" style="--glow: var(--c-blue)">
<span class="menu-icon b"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="5.5" y="5.5" width="13" height="13" rx="2.5" /><rect x="9.5" y="9.5" width="5" height="5" rx="1" /><path d="M9 2.5v3M15 2.5v3M9 18.5v3M15 18.5v3M2.5 9h3M2.5 15h3M18.5 9h3M18.5 15h3" /></svg></span>
<h3>Firecracker</h3>
<p>Experimental: each session is a microVM with a Linux kernel of its own, from Firecracker, the virtual machine monitor AWS Lambda runs on. Nothing on the host runs as root.</p>
<dl>
<dt>isolation</dt><dd>A microVM per session</dd>
<dt>runs on</dt><dd>Linux machines with KVM, x86_64 or arm64</dd>
<dt>images</dt><dd>fctl's or a registry's, pulled without Docker; it builds none</dd>
<dt>caches</dt><dd>None: the VMs share no files with the host</dd>
</dl>
</article>
<article class="reveal" style="--glow: var(--c-pink)">
<span class="menu-icon p"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3.5 13.5h17l-1.6 4.2a2 2 0 0 1-1.9 1.3H7a2 2 0 0 1-1.9-1.3z" /><rect x="5" y="9" width="3.5" height="3" rx=".6" /><rect x="9.25" y="9" width="3.5" height="3" rx=".6" /><rect x="13.5" y="9" width="3.5" height="3" rx=".6" /><rect x="9.25" y="5.25" width="3.5" height="3" rx=".6" /></svg></span>
<h3>Docker</h3>
Expand Down
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ <h1 class="rise">
</div>
</div>
<p class="works rise" style="--d: 260ms">
<span>Claude Code</span><span>Cloudflare Workers</span><span>Apple container</span><span>Docker</span
<span>Claude Code</span><span>Cloudflare Workers</span><span>Apple container</span><span>Firecracker</span><span>Docker</span
><span>GitHub</span><span>Linear</span>
</p>
</div>
Expand All @@ -122,9 +122,9 @@ <h2 id="how" class="section-title reveal">Three steps from a spare Mac to agents
<div>
<h3>Turn a machine into a runner</h3>
<p>
One command registers it and starts it as a service. Each session gets its own lightweight
Linux VM — Apple's container runtime on a Mac, Docker on Linux — with a fresh clone, its own
branch and your project's setup script.
One command registers it and starts it as a service. Each session gets a Linux sandbox of its
own — a lightweight VM with Apple's container runtime on a Mac, a Firecracker microVM or a Docker
container on Linux — with a fresh clone, its own branch and your project's setup script.
</p>
<pre><code><span class="prompt">$</span> fctl host install</code></pre>
<p class="step-links">
Expand Down Expand Up @@ -226,7 +226,7 @@ <h4>A break it can't reach makes <code>insert_break</code> loop forever</h4>
<h3><a class="card-link" href="/features/runners/">Runners and sandboxes</a></h3>
<p>
One command turns a Mac or a Linux box into a runner. Every session gets a fresh sandbox of its own
there, in Apple's container runtime or Docker.
there, in Apple's container runtime, a Firecracker microVM or Docker.
</p>
<span class="card-more card-pair">
<span>Runners <span aria-hidden="true">→</span></span>
Expand Down Expand Up @@ -463,7 +463,7 @@ <h2 id="flow" class="section-title reveal">How the pieces fit.</h2>
</div>
<div class="map-node" data-host="linux">
<span class="map-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3.5" y="4" width="17" height="6.5" rx="1.8" /><rect x="3.5" y="13.5" width="17" height="6.5" rx="1.8" /><path d="M7 7.25h.01M7 16.75h.01" /></svg></span>
<span><strong>A Linux box</strong><small>Docker</small></span>
<span><strong>A Linux box</strong><small>Firecracker or Docker</small></span>
</div>
</div>
<div class="map-col map-sandboxes">
Expand Down
11 changes: 11 additions & 0 deletions src/features.css
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,17 @@ figcaption {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
}
/* Three in a row where they fit; two to a row, an odd one out takes its row. */
@media (min-width: 1081px) {
.f-drivers:has(> article:nth-child(3)) {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (min-width: 761px) and (max-width: 1080px) {
.f-drivers > article:last-child:nth-child(odd) {
grid-column: 1 / -1;
}
}
@media (max-width: 760px) {
.f-drivers {
grid-template-columns: minmax(0, 1fr);
Expand Down