The docs site's 18 mermaid blocks are now drawn as SVGs before Hugo
builds the site, by docs/render-diagrams.mjs with pele 1.13.0, and
inlined by a render hook, so no page loads Mermaid's 5.5 MB script.
- docs/render-diagrams.mjs: finds each mermaid block in docs/content,
draws it with pele in Departure Mono at 14px (a measurer from the
font's metrics), and writes <key>.svg and <key>.json (its size) to
the git-ignored docs/.build/diagrams. pele draws edge labels,
messages and notes at round(14 * 0.875) = 12px with no option, so the
measurer gives that text its 14px width and the script rewrites
font-size="12" to 14 on each small-text group (pele-edge-labels,
-notes, -boxes, -frames); a guard fails on any such group without
font-size="12", or small text outside them, and a self-check, run
whenever there's something to draw, renders an edge label, a message
and a note and fails unless pele measured them at 12 and wrote their
group with font-size="12". It also fails on a diagram without
accTitle and accDescr, or on an indented block. A newline after each
</text>, outside any text element, lets the search index see labels
as separate words; screenshots of all 18 are byte-identical with and
without it. (Newlines between a label's tspans would move centered
lines, so a label's own lines stay joined in the index.)
- Caching: a block's key is sha256(salt + "\n" + text)[:16], the salt
being sha256("pele <version>\n" + the script's text)[:16], written to
diagrams/salt. The script keeps every drawing already there, draws
only missing ones (written to .tmp and renamed), prunes files no key
names, and touches the folder. docs:diagrams has sources (the pages,
the script, package.json, the lock) and outputs (the folder), so mise
skips an unchanged run, and runs npm ci only when the lock's SHA-256
differs from docs/node_modules/.devvm-lock-sha256. An unchanged run:
0.45-0.75 s before, 0.02 s now (0.09 s forced); one diagram changed:
0.09 s. CI's check job caches ~/.npm keyed on the lock; the Docs
workflow, which publishes, keeps no cache.
- docs/package.json and package-lock.json pin pele 1.13.0
(sha512-Ie8UKY9x00MsuR3jO6AzUwzK2Z6MIV3Tf4EDdITiuk8Uaz8K7g0R082WqsqNaSU8DdgkrRvZThzhit83mi/uiw==).
- docs/layouts/_markup/render-codeblock-mermaid.html: in place of
Hextra's hook, reads the salt, computes the key from it and .Inner,
inlines the SVG from assets/diagrams (hugo.yaml mounts .build/diagrams
there), sets the wrapper's contain-intrinsic-block-size to the
diagram's height and --devvm-diagram-width to its width, and errorf's
when a drawing or the salt is missing. layouts/_partials/scripts/
mermaid.html and params.mermaid go.
- custom.css: .devvm-diagram with content-visibility: auto, and pele's
--pele-* variables from the palette (subgraphs, lifelines and notes in
the border color). A diagram wider than the text reaches into the
article's right padding (1.5rem, 3rem from 768px) as far as it needs,
then into the left padding for the rest, so it never covers the table
of contents; wider than both, it scrolls. From about 1010px no diagram
scrolls, the four wide ones included (proxy checks 751px, agent store,
VM states, SSH agent); at 900px five scroll. With the table of
contents shown, the proxy checks take 48px on the right and 31px on
the left.
- mise.toml: docs:diagrams, which docs and lint:docs depend on.
docs.yml: the next and release jobs install node and draw the
diagrams; the release job only when the tag has the script, so older
tags still build.
- scripts/bump.sh: bump_pele, named only, replaces bump_mermaid: npm
install --save-exact --ignore-scripts in docs, then mise run
docs:diagrams, whose self-check catches a pele that changed how it
draws small text. TestBumpCoversPins finds docs/package.json's
dependencies (npm:NAME); bump.txtar tests --check and the install.
The header and hextra's note say the mermaid render hook replaces
Hextra's mermaid hook, so check it still has that name.
- Every diagram gets an accTitle and accDescr, which pele makes the
SVG's title and desc (aria-labelledby, aria-describedby). Staying
safe's columns are written in reading order, as pele lays subgraphs
out from left to right. The proxy checks' description names every
branch, and a hand-placed <br> keeps "CA)" off a line of its own.
- AGENTS.md: the one Node script; no other build script is JavaScript,
and no other npm package is installed outside mise's tools.
Contributing's docs, tools and
maintaining pages describe the drawing, the caching, the margin, the
task and the bump.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quick start is now the install tabs, then three cards side by side from
1024px: go to your project, run devvm, start your agent. Each card has a
terminal that loops on its own: cd ~/some-project typed out, devvm typed
and claude checked in its list, and claude typed in the VM's shell. They
are SVG and CSS only, drawn in their end state for reduced motion.
- step-cd.svg, step-pick.svg, step-agent.svg; the type, caret,
caret-blink, pick-list, pick-cursor, pick-check and key classes in
custom.css; three-column cards' art at most twice its size
- What's supported's Backends card is now Layers (layers.svg: the image
docker+nix as a stack, the built-in layers beside it); the Lima fact
moves to the FAQ; backends.svg goes
- the hero's art is centered, and a gap sits above Quick start's cards
- install's unused step parameter goes, from the shortcode, its Markdown
copy and install-tabs.html
- hugo.yaml: Hugo's module fetches use the environment's proxy
- Contributing describes the new cards, drawings and animations
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- doctor --json: backend_source goes (it could only be built-in).
- AgentWhileRunning and the agent_on_risk_running and
agent_devvm_risk_running messages go: nothing sets the field.
Confinement.SSH, NoAgent and AgentFixed stay, as the generic
emulation contract for ssh and agent-toggle.
- The unused experimental badge goes: its shortcode, Markdown version,
partial, CSS, llms.txt filter and flask icon.
- Messages: space_backend_unknown, space_stray, gc_backend_skipped and
gc_orphans_unknown start with "The lima backend" instead of a
lowercase name; backend_lacks and backend_unreviewed point at doctor's
features, not other backends; space_caches_note says Lima's caches;
setup_in_config's description no longer names a backend key.
- Docs: "on every backend" and similar leftovers go (limits, devcontainer,
images, ports, lima, design, the docs index); space's "Lima's caches";
safety/network and security say every Lima VM can have network
policy; images says a docker-layer VM keeps it; ports.md says devvm
records every VM's ssh port; security's set-id paragraph says where a
root-owned file comes from; Contributing lists the invariants a new
backend's threat check covers.
- AGENTS.md: msg.IDOf, now used only by tests, joins deadcode's list.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lima is devvm's only backend. The backend architecture stays (Backend,
Caps, Features, Review/Require, the registry, backendtest.Fake), so
another backend is an addition.
State from a smolvm VM reads as an unknown backend (backend_unknown_vm,
gc_orphans_unknown); nothing migrates it. The image keys of
layers/docker.sh, layers/nix.sh and features/desktop.sh change, so images
rebuild once.
Lima's port forwarder moves off smolvm's files first: newForwarderCmd and
forwarderMain from internal/cli/smolvmports.go to limaports.go, and
assets/container/ports.sh to assets/guest/ports.sh (sent by the forwarder
at run time, so no image key changes).
Removed:
- internal/backend/smolvm (4,070 lines with tests), _smolvm-ports, its
registry entry, registry.Experimental and backend_experimental.
- The decider: backend.Decider/UsesDecider, Confinement.Decider and
DeciderToken, internal/proxy/decider.go and its test, the proxy's
-decider, -decider-to and -decider-token-file, netpolicy's
KeyDeciderPort, KeyDeciderToken and deciderToken, the decider port in
vm's forwarding and UsedPorts.
- backend.AgentStarter/AgentUnchosen, vm's checkAgentStart and
agent_unchosen_stop.
- vmssh/key.go (EnsureKey, Public, HostKey, ServicesArgs, Capped).
- paths.Smolvm/SmolvmImage and space's smolvm folders; paths.VM's
Record, Key, KnownHosts and ProxyURL; project.Detect, which nothing
called (a test helper now).
- ubuntu.ContainerRepo/ContainerDigest/ContainerRef/ContainerOrigin and
bump.sh's ubuntu_image, with its part of bump.txtar.
- assets/smolvm/ and assets/container/; the no-init-system branches of
layers/docker.sh, layers/nix.sh and guest/sync.sh, and the notes in
features/desktop.sh and guest/ca.sh.
- Messages: smolvm_* (14), vm_no_ssh, vm_no_sshd, ports_no_ssh,
creating_from_image, packing_image, pack_failed, backend_experimental,
agent_unchosen_stop; descriptions naming smolvm reworded.
- Tests: smolvm.txtar, the smolvm stub, registry, decider, netpolicy and
sshagent cases; gc_backend, gc_skipped, gc_orphans and space test a
failing or hanging Lima listing instead (the limactl stub's list-fails
and list-hangs); the --backend smolvm examples; e2e's --backend smolvm
and its section (about 1,130 lines), the smol_* helpers and the
link section's backend switch.
- Coverage: internal/backend/smolvm's lines in both baselines.
- Docs: backends/smolvm.md, internals/smolvm.md, design.md's smolvm
notes (Ports on Lima now holds the forwarder's description), the
backends table's smolvm column, every page naming smolvm, the README,
the home page's backends art, and AGENTS.md's smolvm rows and gotchas
(and the Docker bind-mount gotcha, which nothing refers to).
Kept: the docker layer, on Lima; --from's local Docker; --backend, the
BACKEND column and setup's backend choice, which the next commit removes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
hugo.yaml turns on Hextra's llms output at the site root, a markdown
output beside each page and section, and params.page.contextMenu. The
home page keeps html and rss, and sections keep rss. The search index
comes out byte-identical.
- layouts/llms.txt replaces Hextra's. Each section's own page is listed
first, followed by its pages. Each line is the page's description, or
else its first paragraph as plain text on one line, cut at 200
characters (_partials/llms-summary.txt). Hextra's version left out the
section pages, printed HTML entities and newlines, and let the
experimental badge and the CLI "Synopsis" heading into the summaries.
- page/section.markdown.md and _partials/markdown-copy.md render the
shortcodes through .markdown.md versions (install, os-tabs, yes, no,
experimental, section-card, Hextra's cards). They also point links to
a section's _index.md at index.md, so all 867 relative links between
the copies resolve. The install commands live in
_partials/install-tabs.html, which the HTML tabs use too.
- The branding page sets outputs: [html], contextMenu: false and
llms: false. The home page sets contextMenu: false.
- Coding agents gets a description, because its first paragraph is a
heading and a code block.
- custom.css styles the menu in the site's border, surface and lime.
- Contributing's Writing docs describes all of this, including what to
check after adding a page or a shortcode.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The navbar uses Hextra's image logo, devvm-logo-on-dark.svg at its own
size, with the site's title as its alt text, in place of the CSS logo.
The footer's link to the branding page and its styles are gone;
right-clicking the logo still opens the page. Why use devvm?'s fourth
point gets its period.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
/branding/ (content/branding.md, layouts/branding.html: Hextra's home
layout with the home page's look, out of the sidebar): the logo as
box-drawing text in a code block with Hextra's copy button; the logo as
pixel SVGs for dark and light backgrounds, with 4x PNGs
(static/branding/); the app icon as SVG and PNG at 64 to 1024, plus the
site's existing icons; the social card; the palette as click-to-copy
swatches (data/palette.yaml, hexes read from custom.css); the fonts with
samples and Departure Mono's license; usage notes; credits.
Shortcodes: brand-assets, brand-asset (fails the build on a missing
file, reads PNG sizes), palette, font-sample. custom.css: the page's
styles, the footer, and --devvm-accent-dark (#408000), the light logo's
prompt. custom/footer.html: a footer link to the page on every page, and
a contextmenu handler on the navbar logo that opens it.
Contributing > Writing docs describes the page, its shortcodes and how
to render its PNGs again.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The feature shortcode takes an icon, drawn before the title in the
title's own color at 24px. Toolchains gets code, Coding agents and Made
for coding agents robot, Backends cube, Developer ready prompt, Ready in
seconds the new high-voltage icon (Dinkie 0.4.6), Isolated sandbox
locked and Make it yours wrench.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
blast-radius.svg: two machines side by side. Without devvm, four attacks
(prompt injection, leaked secrets, supply chain, rogue agent) land on your
machine and ~/web, ~/.aws, ~/.ssh and ~/api turn red one after another. With
devvm, they land in the VM, each path toward your machine ends at the VM's
border with a cross, and the machine's folders stay as they are.
- --devvm-red (#ff5370) and the .r class, only for compromised parts
- threat-1..4 and hit-1..4: an 8 s story with a hold and a rest
- the beside shortcode: text and art side by side from 1024px, the art
below the text on narrower screens
- Writing docs: the red, the drawing, its animation and the shortcode
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Getting started shows the rocket, as its section card does, and The docs
the open book, as on the home page; the buttons' row may be wider than the
page's column, so they stay side by side on wide screens.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The navbar's GitHub icon is Dinkie's, added to Hextra's icons through
docs/data/icons.yaml. hero-button takes an icon: Install shows a download
arrow and Read the docs an open book, both new from Dinkie Icons 0.4.6.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Heading icons: a heading's icon attribute ({icon="rocket"}) puts a pixel
icon before its text, through a heading render hook in place of Hextra's;
the anchor stays the text's. The home page's five section headings get
rocket, view-grid, shield, speech-balloon-question and prompt, lime at
24px (2px per icon pixel, as Departure Mono's at 22px).
- A 404 page (layouts/404.html) on the site's navbar and footer: a VM's
terminal (assets/home/not-found.svg) answering cd ./this-page with "no
such page" and the blink cursor, Hextra's search box, and links to
Getting started and the docs.
- Callouts: GitHub's > [!NOTE], [!TIP] and [!WARNING] alerts, drawn by a
blockquote alert render hook in the site's palette with
information-circled, a new light-bulb icon and warning; other types fail
the build. Used for keeping network policy on (Your first VM), Docker's
isolation (Docker), --unsafe-folder (Settings) and the VM boundary note
(Staying safe), each moving the existing text.
- Contributing > Writing docs: heading icons, callouts, the 404 page.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The docs' first page is a card per section (section-card on Hextra's
cards), each with its pixel icon: rocket, wrench, locked, cube, prompt,
gear and the GitHub mark. The install and os-tabs shortcodes put the
Apple icon before macOS and the penguin before Linux (os-tab-name.html).
The experimental shortcode (flask, Departure Mono, the site's blue) marks
smolvm and Docker on their pages, in the backends' comparison table and on
the home page's Backends card. yes and no put a check or a cross before a
table cell's word, in the comparison table and Installing's install
script column. Writing docs describes each.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Icons in docs/assets/icons/, one SVG each (12x12 viewBox, one path,
fill="currentColor", shape-rendering="crispEdges"):
- From Dinkie Icons 0.4.6 (MIT, the @dinkie-icons/react package's path
data; LICENSE kept): rocket, wrench, shield, locked,
three-networked-computers, cube, code, gear, brand-github, hammer,
brand-apple, flask, check-mark-circled, cross-mark-button,
diagonal-cross, information-circled, no-entry, view-grid,
speech-balloon-question, ghost, question-face, robot, file-folder,
globe-with-meridians, copies.
- Drawn in the same grid and line weight: penguin (Linux), prompt (>_),
warning (a triangle with !).
{{< icon "name" >}} (and {{< icon "name" "Label" >}}) inlines one through
the icon partial: class devvm-icon, aria-hidden without a label, role=img
and aria-label with one; an unknown name fails the build. custom.css sizes
it 0.75em square on the baseline, so a pixel is one screen pixel in 16px
text. Contributing > Writing docs covers the source, license, shortcode
and adding one.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Developer ready, zero config gets a new drawing: a browser at
localhost:5173 tied to the VM's :5173, a devvm code editor tab over SSH,
and a commit authored by you. The old detection drawing becomes
toolchains.svg, smaller, on the Toolchains card; Coding agents and
Backends get small drawings too (a terminal running claude beside the
three agents; Lima default, smolvm and Docker experimental). agents.svg
shows the history that stays; make-it-yours.svg stacks base with your
features, your layer and the VM, with node:24 feeding base by --from.
Animations are CSS only, in custom.css, turned on by classes in the SVGs
(pulse, pulse-2/3, pulse-slow, lit, lit-chip, lit-2..4, blink, mover,
mover-token, mover-egress), and prefers-reduced-motion turns them all off.
Texts that held tspans separated by spaces are split into texts at their
own x, as Hugo's minifier removed those spaces. Contributing describes
the drawings and the classes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Developer ready, zero config gains a bullet on forwarded ports, and its
devcontainer.json bullet moves to a new Make it yours card (your own layers,
your own features, --from, devcontainer.json), placed in the right column
with feature's new column option. Feature cards' art fills the card.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
On wide screens, features puts the first and third cards in the left
column and the others in the right, so a short card leaves no gap; on
narrow screens the columns drop out and the cards' order styles keep
the page's order. Ready in seconds is the second card again.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Its paragraphs and lists lose their 42rem limit, so the line after the
quick start no longer wraps at half the column.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The home page's quick start and Install devvm, and Installing's Installing devvm, show the install command in Hextra's tabs, from a new install shortcode: macOS with Homebrew, Linux with the install script. The macOS tab is selected in the HTML; a small partial selects the Linux tab for Linux visitors as the page loads. custom.css styles the tabs in the site's palette. README says which command is for which system, and Contributing describes the shortcode.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Departure Mono at 14px in every Mermaid diagram, with labels on an 18px
line and the spacing and actors' boxes scaled to fit it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Mermaid code blocks render with one theme for every diagram: a site
partial in place of Hextra's scripts/mermaid.html loads Mermaid 12.2.0,
pinned in hugo.yaml (params.mermaid.base), and sets the palette
(surface panels, blue borders, lime arrows, no shadows) and Departure
Mono at 11px. Diagrams render at their own size and scroll when wide;
ids are counted across runs, as Mermaid's time-based ones collide.
Five diagrams: the --clone round trip (using/clone.md), the image chain
and which image a new VM gets (using/images.md), the first run
(getting-started/first-vm.md) and a request through the proxy
(safety/network.md). Contributing > Writing docs covers diagrams.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The quick start replaced the recording, so devvm.cast and the asciinema
player's theme and border in custom.css have no use.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The hero names Lima as the default and smolvm and Docker as experimental.
A three-step quick start replaces the recording, followed by a What's
supported row (toolchains, coding agents, backends), feature-card bullets
for devvm code and devcontainer.json, a link to what devvm doesn't
protect, a short FAQ and the install commands again at the bottom.
Claims now match their pages: .git protection is macOS only, and the VM
also gets the agents' config read-only.
The features shortcode takes columns="3" and feature takes level="3".
Contributing's home page notes describe the page's sections and drop the
recording.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The edit link's box at the bottom of the table of contents had Hextra's
dark #111 shadow, a gray band on the black background: custom.css drops it.
The home page's four sections are feature cards in a grid (the features and
feature shortcodes), one centered column, then two per row from 1024px,
their art at 364px or 728px. The art shortcode and the cards share the
art.html partial. Contributing > Writing docs describes the shortcodes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
What you get out of the box gets an ASCII-inspired SVG per section, in
docs/assets/home/ and inlined by a new art shortcode so they use the
page's Departure Mono and palette: toolchain detection, isolation (the
project folder mounted, .git locked, the proxy and its allowlist), VMs
as copies of a cached image, and agents' config and tokens. They're
drawn on the font's 7x14 cell at 11px and shown at twice their size.
The One command code block becomes an asciinema recording of a real
devvm run in a project folder, played by Hextra's asciinema shortcode
with a devvm player theme (the recording terminal's colors), retimed so
commands are typed a letter at a time. The palette gains #0086b3, the
blue of commands in Hextra's highlighting, for the illustrations. Also
the home page's headline, section order and Get started section, and
contributing.md on the illustrations and the recording.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The home page is Hextra's hextra-home layout: "One VM for every folder",
the devvm command and its output, what it does (isolated, ready in
seconds, made for coding agents, each linking its page) and how to
install. The README's first line and the site's description say the
same.
The site is dark only, with a palette from the JustBlack VS Code theme:
a black background and one lime accent, #7fff00, as Hextra's primary
color. Instrument Sans for text and Martian Mono for code come from
Google Fonts; Departure Mono (v1.500, OFL, its license beside it) is
self-hosted for the navbar logo and the home page's headings, badge and
buttons. The logo is the site's title in a box with a box-drawing lock
on its corner, in CSS; the navbar is 30px taller for it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>