### A control plane so parallel coding agents stop fighting over the same simulator
diff --git a/docs/internal/BRAND.md b/docs/internal/BRAND.md
index 8f8921d49..b8984be62 100644
--- a/docs/internal/BRAND.md
+++ b/docs/internal/BRAND.md
@@ -53,7 +53,7 @@ orange and nothing else.
- Switzer (ITF Free Font License) and Geist Mono (OFL) are self-hosted from
`website/src/fonts/`.
- Headlines have two beats, the second in the accent, with no italics. The
- motto: "Your own simulator cloud. *One device per agent.*"
+ motto: "Turn your Mac into a simulator cloud *that manages itself.*"
- Mono is for labels, commands, ids and metadata, never for sentences.
- Platforms always run iOS, then Android. Hosts run macOS, then Linux.
@@ -108,10 +108,11 @@ on top of it have solid `bg` fills. Never use photos, gradients, landscapes or
A leased phone's screen shows app-like rows at full accent. A free phone's
screen is dark. Slow waves move in toward the focus, leasing and releasing
phones, and a phone flashes full accent for a moment as it boots. Phone size
- follows the scene's shorter side. It sits behind the hero, the social card
- and the banner.
+ follows the scene's shorter side. It sits behind the social card and the
+ banner.
- **Flow.** Soft diagonal bands, capped near the midtone. The quiet backdrop
- behind code, tabs and the drawn console.
+ behind code, tabs, the hero's stage (at half strength, so its wires read)
+ and the drawn console.
- **Hollow.** The fleet with the phone at the focus missing: a dark socket
with a dashed stepped outline that pulses. Only on the 404 page.
@@ -130,12 +131,14 @@ The scenes are generated in `website/src/components/site/dither.ts`.
- Short and plain, one colleague to another. Name the reader: "your agents",
"you". No marketing adjectives, and no "just", "simply" or "easy".
-- Lead with the self-hosted simulator cloud. One machine is where it starts.
+- Lead with one Mac, then the cloud it grows into: Simlock on one machine
+ first, more machines behind a gateway second.
- Page titles: `Simlock: Self-hosted simulator cloud for coding agents` on
the home page, `Page title | Simlock` everywhere else, 60 characters at most.
Built only by `website/src/site/meta.ts`.
- Every command, field and number comes from the user docs. Agents on other
- machines lease over the HTTP API; only the local daemon speaks to the CLI.
+ machines lease over the HTTP API or agent-device; the CLI speaks only to
+ daemons on its own machine (`--gateway` reaches a gateway running there).
## Social card and banner
@@ -157,10 +160,19 @@ The scenes are generated in `website/src/components/site/dither.ts`.
- **Home** (`src/pages/index.astro`): nav, hero, marquee, then [01] How it
works, [02] Fleet, [03] Console, [04] What you get, [05] Safe by default,
[06] FAQ, closing. The hero (`src/components/home/Hero.astro`, `hero.ts`,
- `story.ts`) shows three agents sending one lease request to one gateway URL,
- the gateway's table of where each went and why, and the three workers'
- phones lighting up. The console section draws the console's Overview
- (`ConsoleView.astro`).
+ `story.ts`) is the centred headline, the lede and one button, then a stage
+ that plays two steps in a loop, read left to right: agents, then the
+ gateway, then machines. Two buttons above it name the steps and jump to
+ either; the playing one fills with the accent as it runs, and a two-line
+ caption under them says what is happening. [01] One machine: three agents
+ lease from your Mac three ways, the simlock CLI, agent-device (whose
+ device streams its screen) and HTTP. [02] A fleet of them: a gateway on
+ your Mac and two more machines; every agent leases through the gateway,
+ each sent to a different machine. Wires are measured from the boxes, start
+ and end on an edge and never cross; boxes appear by fading, never by
+ moving, and every changing label keeps its size, so nothing shifts while it
+ plays. Below 60rem the stage stacks, with dashed connectors for wires. The
+ console section draws the console's Overview (`ConsoleView.astro`).
- **404** (`src/pages/404.astro`): the hollow scene behind a card, "This
device was never leased. *The rest of Simlock is.*"
- **Docs:** Starlight, dark by default. The reference pages are copied from
diff --git a/lefthook.yml b/lefthook.yml
index e7e483249..f32012c03 100644
--- a/lefthook.yml
+++ b/lefthook.yml
@@ -4,7 +4,11 @@ pre-commit:
# Formats what is staged and stages the result, so nobody runs a formatter by hand.
format:
glob: "*.{ts,tsx,js,mjs,json,md,yml,yaml}"
- exclude: "docs/**"
+ # website/ is its own package and oxfmt skips it, so a commit with only website/ files would
+ # hand oxfmt nothing and fail.
+ exclude:
+ - "docs/**"
+ - "website/**"
run: pnpm exec oxfmt {staged_files}
stage_fixed: true
lint:
diff --git a/website/README.md b/website/README.md
index 12b79da6b..3f23138a7 100644
--- a/website/README.md
+++ b/website/README.md
@@ -34,7 +34,7 @@ pnpm og # public/og-image.jpg, banner.jpg, favicon.svg, favicon-32.png
| `src/site/brand.ts` | The accent; injected as CSS variables everywhere |
| `src/site/meta.ts` | Page titles: `Name: subtitle` on home, `Page | Name` everywhere else; never write a separator by hand |
| `src/pages/index.astro` | Home page layout; reorder sections with `order` |
-| `src/components/home/Hero.astro`, `hero.ts`, `story.ts` | The hero: agents, the gateway table, the workers; the animation and its data |
+| `src/components/home/Hero.astro`, `hero.ts`, `story.ts` | The hero: copy, then a two-step stage (one machine, then a fleet of them behind a gateway); its animation and data |
| `src/components/home/ConsoleView.astro`, `console-view.ts`, `console-story.ts` | The drawn console in the Console section |
| `src/components/site/dither.ts` | Dithered scenes: `fleet` (the signature), `hollow` (404), `flow`, `mark` |
| `src/components/site/` | Nav, Lockup, Mark, Window, CodeBlock, CopyCommand, Tabs, Marquee, Faq, PixelIcon, Closing, Footer |
diff --git a/website/og/og.html b/website/og/og.html
index 76977fb09..6afce56c8 100644
--- a/website/og/og.html
+++ b/website/og/og.html
@@ -82,6 +82,7 @@
h1 {
margin: 32px 56px 0;
max-width: 1000px;
+ text-wrap: balance;
font-weight: 500;
font-size: 70px;
line-height: 1.04;
diff --git a/website/public/banner.jpg b/website/public/banner.jpg
index 116c623e3..a3e16b23c 100644
Binary files a/website/public/banner.jpg and b/website/public/banner.jpg differ
diff --git a/website/public/og-image.jpg b/website/public/og-image.jpg
index e4a8a15d8..8578e68af 100644
Binary files a/website/public/og-image.jpg and b/website/public/og-image.jpg differ
diff --git a/website/scripts/og.mjs b/website/scripts/og.mjs
index f0592c55d..4b7c4986b 100644
--- a/website/scripts/og.mjs
+++ b/website/scripts/og.mjs
@@ -11,7 +11,7 @@ import { chromium } from "playwright-core";
import sharp from "sharp";
import { accent, accentRgb, brandCss } from "../src/site/brand.ts";
-import { gatewayUrl, lanes } from "../src/components/home/story.ts";
+import { gatewayUrl, steps } from "../src/components/home/story.ts";
import { site } from "../src/site/content.ts";
const root = fileURLToPath(new URL("..", import.meta.url));
@@ -30,8 +30,10 @@ const card = {
install: site.install,
platforms: site.platforms,
mark: site.mark ?? [],
- gateway: gatewayUrl.replace(/^https?:\/\//, ""),
- lanes: lanes.map((l) => ({ agent: l.agent, device: l.device, worker: l.worker.label })),
+ gateway: gatewayUrl,
+ // why: the card's table is the hero's second step: each agent, its device and the worker
+ // the gateway sent it to.
+ lanes: steps[1].agents.map((a) => ({ agent: a.agent, device: a.device, worker: a.worker })),
rgb: accentRgb.split(" ").map(Number),
};
diff --git a/website/src/components/home/Hero.astro b/website/src/components/home/Hero.astro
index ca8e4f021..f4d6db76a 100644
--- a/website/src/components/home/Hero.astro
+++ b/website/src/components/home/Hero.astro
@@ -1,117 +1,179 @@
---
-import CopyCommand from '../site/CopyCommand.astro';
+// why: the hero tells the product's story in two steps: one machine that agents lease from three
+// ways, then a fleet of them behind a gateway. The copy is in content.ts and the steps in story.ts;
+// hero.ts plays them.
import Dither from '../site/Dither.astro';
-import Window from '../site/Window.astro';
-import { docs, home, site } from '../../site/content';
-import { gatewayUrl, lanes, stageLabel } from './story';
+import { docs, site } from '../../site/content';
+import { gatewayUrl, prompt, stageLabel, steps, tokens } from './story';
-const body = (l: (typeof lanes)[number]) => `{"platform":"${l.platform}","device":"${l.device}"}`;
+const num = (i: number) => String(i + 1).padStart(2, '0');
+// why: the server HTML is the first step's finished frame (BRAND.md, Motion); hero.ts resets it
+// before it plays. One stage holds both steps: the fleet's machines are a superset of the first
+// step's, so the second step only shows what the first hides.
+const [first, fleet] = steps;
+const machines = fleet!.machines;
+const holder = (mi: number, si: number) => first!.agents.find((a) => mi === 0 && a.slot === si);
+const streams = (mi: number, si: number) =>
+ steps.some((s) => s.agents.some((a) => a.via === 'AGENT-DEVICE' && a.worker === machines[mi]!.name && a.slot === si));
---
-